Date
Nov. 20, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.738825] ================================================================== [ 35.739782] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 35.740627] Write of size 1 at addr fff00000c673200a by task kunit_try_catch/135 [ 35.741331] [ 35.742438] CPU: 1 UID: 0 PID: 135 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 35.743398] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.743939] Hardware name: linux,dummy-virt (DT) [ 35.744581] Call trace: [ 35.745053] show_stack+0x20/0x38 (C) [ 35.745970] dump_stack_lvl+0x8c/0xd0 [ 35.746694] print_report+0x118/0x5e0 [ 35.747405] kasan_report+0xc8/0x118 [ 35.747973] __asan_report_store1_noabort+0x20/0x30 [ 35.748545] kmalloc_large_oob_right+0x278/0x2b8 [ 35.749691] kunit_try_run_case+0x14c/0x3d0 [ 35.750235] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.751013] kthread+0x24c/0x2d0 [ 35.751806] ret_from_fork+0x10/0x20 [ 35.752301] [ 35.752803] The buggy address belongs to the physical page: [ 35.753808] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106730 [ 35.754477] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 35.755208] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 35.756107] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 35.756907] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 35.757784] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 35.758593] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 35.759468] head: 0bfffe0000000002 ffffc1ffc319cc01 ffffffffffffffff 0000000000000000 [ 35.760319] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 35.761149] page dumped because: kasan: bad access detected [ 35.761875] [ 35.762107] Memory state around the buggy address: [ 35.763094] fff00000c6731f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.764483] fff00000c6731f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.765489] >fff00000c6732000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 35.766136] ^ [ 35.766670] fff00000c6732080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 35.767293] fff00000c6732100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 35.768129] ==================================================================
[ 26.962858] ================================================================== [ 26.963906] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2eb/0x340 [ 26.964767] Write of size 1 at addr ffff8881024f600a by task kunit_try_catch/153 [ 26.965369] [ 26.965538] CPU: 1 UID: 0 PID: 153 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 26.966668] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.967792] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.969578] Call Trace: [ 26.970028] <TASK> [ 26.970596] dump_stack_lvl+0x73/0xb0 [ 26.971156] print_report+0xd1/0x640 [ 26.971970] ? __virt_addr_valid+0x1db/0x2d0 [ 26.972941] ? kasan_addr_to_slab+0x11/0xa0 [ 26.973401] kasan_report+0x102/0x140 [ 26.974094] ? kmalloc_large_oob_right+0x2eb/0x340 [ 26.974515] ? kmalloc_large_oob_right+0x2eb/0x340 [ 26.975223] __asan_report_store1_noabort+0x1b/0x30 [ 26.975721] kmalloc_large_oob_right+0x2eb/0x340 [ 26.977020] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 26.977714] ? __schedule+0xc3e/0x2790 [ 26.978580] ? __pfx_read_tsc+0x10/0x10 [ 26.979007] ? ktime_get_ts64+0x84/0x230 [ 26.979588] kunit_try_run_case+0x1b3/0x490 [ 26.980062] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.980565] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.980903] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.982283] ? __kthread_parkme+0x82/0x160 [ 26.982640] ? preempt_count_sub+0x50/0x80 [ 26.983352] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.983849] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.984677] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.985103] kthread+0x257/0x310 [ 26.985780] ? __pfx_kthread+0x10/0x10 [ 26.986399] ret_from_fork+0x41/0x80 [ 26.986720] ? __pfx_kthread+0x10/0x10 [ 26.987265] ret_from_fork_asm+0x1a/0x30 [ 26.987600] </TASK> [ 26.988104] [ 26.988316] The buggy address belongs to the physical page: [ 26.988906] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024f4 [ 26.991136] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 26.991838] flags: 0x200000000000040(head|node=0|zone=2) [ 26.992409] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.993554] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 26.994433] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 26.995767] head: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 26.996943] head: 0200000000000002 ffffea0004093d01 ffffffffffffffff 0000000000000000 [ 26.998143] head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 [ 26.999077] page dumped because: kasan: bad access detected [ 26.999579] [ 26.999766] Memory state around the buggy address: [ 27.000262] ffff8881024f5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.001438] ffff8881024f5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.002494] >ffff8881024f6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 27.003116] ^ [ 27.003944] ffff8881024f6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 27.004824] ffff8881024f6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 27.005490] ==================================================================