Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.840572] ================================================================== [ 17.840798] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 17.840861] Write of size 1 at addr fff00000c65e600a by task kunit_try_catch/146 [ 17.840947] [ 17.841012] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.841133] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.841159] Hardware name: linux,dummy-virt (DT) [ 17.841227] Call trace: [ 17.841266] show_stack+0x20/0x38 (C) [ 17.841315] dump_stack_lvl+0x8c/0xd0 [ 17.841422] print_report+0x118/0x608 [ 17.841470] kasan_report+0xdc/0x128 [ 17.841549] __asan_report_store1_noabort+0x20/0x30 [ 17.841598] kmalloc_large_oob_right+0x278/0x2b8 [ 17.841646] kunit_try_run_case+0x170/0x3f0 [ 17.842036] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.842166] kthread+0x328/0x630 [ 17.842267] ret_from_fork+0x10/0x20 [ 17.842463] [ 17.842570] The buggy address belongs to the physical page: [ 17.842610] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065e4 [ 17.842743] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.842820] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.842992] page_type: f8(unknown) [ 17.843031] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.843103] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.843462] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.843658] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.844087] head: 0bfffe0000000002 ffffc1ffc3197901 00000000ffffffff 00000000ffffffff [ 17.844257] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.844303] page dumped because: kasan: bad access detected [ 17.844333] [ 17.844363] Memory state around the buggy address: [ 17.844411] fff00000c65e5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.844453] fff00000c65e5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.844495] >fff00000c65e6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.844539] ^ [ 17.844566] fff00000c65e6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.844619] fff00000c65e6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.844655] ==================================================================
[ 11.068371] ================================================================== [ 11.069085] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 11.069449] Write of size 1 at addr ffff88810295200a by task kunit_try_catch/163 [ 11.069844] [ 11.069974] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.070030] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.070042] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.070075] Call Trace: [ 11.070099] <TASK> [ 11.070116] dump_stack_lvl+0x73/0xb0 [ 11.070144] print_report+0xd1/0x650 [ 11.070165] ? __virt_addr_valid+0x1db/0x2d0 [ 11.070187] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.070218] ? kasan_addr_to_slab+0x11/0xa0 [ 11.070238] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.070260] kasan_report+0x141/0x180 [ 11.070292] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.070318] __asan_report_store1_noabort+0x1b/0x30 [ 11.070338] kmalloc_large_oob_right+0x2e9/0x330 [ 11.070360] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 11.070382] ? __schedule+0x10cc/0x2b60 [ 11.070404] ? __pfx_read_tsc+0x10/0x10 [ 11.070425] ? ktime_get_ts64+0x86/0x230 [ 11.070449] kunit_try_run_case+0x1a5/0x480 [ 11.070472] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.070494] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.070516] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.070538] ? __kthread_parkme+0x82/0x180 [ 11.070558] ? preempt_count_sub+0x50/0x80 [ 11.070582] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.070605] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.070676] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.070712] kthread+0x337/0x6f0 [ 11.070731] ? trace_preempt_on+0x20/0xc0 [ 11.070755] ? __pfx_kthread+0x10/0x10 [ 11.070775] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.070796] ? calculate_sigpending+0x7b/0xa0 [ 11.070820] ? __pfx_kthread+0x10/0x10 [ 11.070849] ret_from_fork+0x116/0x1d0 [ 11.070867] ? __pfx_kthread+0x10/0x10 [ 11.070887] ret_from_fork_asm+0x1a/0x30 [ 11.070937] </TASK> [ 11.070949] [ 11.079859] The buggy address belongs to the physical page: [ 11.080160] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102950 [ 11.080470] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.080840] flags: 0x200000000000040(head|node=0|zone=2) [ 11.081112] page_type: f8(unknown) [ 11.081318] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.081660] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.082024] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.082360] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.082861] head: 0200000000000002 ffffea00040a5401 00000000ffffffff 00000000ffffffff [ 11.083250] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.083660] page dumped because: kasan: bad access detected [ 11.083900] [ 11.083986] Memory state around the buggy address: [ 11.084176] ffff888102951f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.084462] ffff888102951f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.085153] >ffff888102952000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.085636] ^ [ 11.085789] ffff888102952080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.086168] ffff888102952100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.086468] ==================================================================