Date
July 8, 2025, 7:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.035284] ================================================================== [ 19.035534] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 19.035597] Write of size 1 at addr fff00000c781600a by task kunit_try_catch/146 [ 19.035890] [ 19.036125] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.036241] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.036378] Hardware name: linux,dummy-virt (DT) [ 19.036552] Call trace: [ 19.036611] show_stack+0x20/0x38 (C) [ 19.036729] dump_stack_lvl+0x8c/0xd0 [ 19.036775] print_report+0x118/0x608 [ 19.037119] kasan_report+0xdc/0x128 [ 19.037336] __asan_report_store1_noabort+0x20/0x30 [ 19.037637] kmalloc_large_oob_right+0x278/0x2b8 [ 19.038017] kunit_try_run_case+0x170/0x3f0 [ 19.038730] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.038843] kthread+0x328/0x630 [ 19.038920] ret_from_fork+0x10/0x20 [ 19.039339] [ 19.039753] The buggy address belongs to the physical page: [ 19.039800] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107814 [ 19.039917] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.040002] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.040319] page_type: f8(unknown) [ 19.040365] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.040427] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.040483] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.040723] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.041138] head: 0bfffe0000000002 ffffc1ffc31e0501 00000000ffffffff 00000000ffffffff [ 19.041238] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 19.041367] page dumped because: kasan: bad access detected [ 19.041458] [ 19.041510] Memory state around the buggy address: [ 19.041637] fff00000c7815f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.041731] fff00000c7815f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.041777] >fff00000c7816000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.041813] ^ [ 19.041841] fff00000c7816080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.041884] fff00000c7816100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 19.041921] ==================================================================
[ 12.303465] ================================================================== [ 12.304578] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 12.304964] Write of size 1 at addr ffff888102b6a00a by task kunit_try_catch/163 [ 12.305259] [ 12.305359] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.305406] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.305417] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.305439] Call Trace: [ 12.305452] <TASK> [ 12.305470] dump_stack_lvl+0x73/0xb0 [ 12.305500] print_report+0xd1/0x650 [ 12.305522] ? __virt_addr_valid+0x1db/0x2d0 [ 12.305546] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.305574] ? kasan_addr_to_slab+0x11/0xa0 [ 12.305593] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.305614] kasan_report+0x141/0x180 [ 12.305635] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.305660] __asan_report_store1_noabort+0x1b/0x30 [ 12.305683] kmalloc_large_oob_right+0x2e9/0x330 [ 12.305704] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 12.305725] ? __schedule+0x10cc/0x2b60 [ 12.305747] ? __pfx_read_tsc+0x10/0x10 [ 12.305768] ? ktime_get_ts64+0x86/0x230 [ 12.305793] kunit_try_run_case+0x1a5/0x480 [ 12.305818] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.305838] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.305861] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.305883] ? __kthread_parkme+0x82/0x180 [ 12.305903] ? preempt_count_sub+0x50/0x80 [ 12.305927] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.305949] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.305970] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.305992] kthread+0x337/0x6f0 [ 12.306010] ? trace_preempt_on+0x20/0xc0 [ 12.306033] ? __pfx_kthread+0x10/0x10 [ 12.306079] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.306099] ? calculate_sigpending+0x7b/0xa0 [ 12.306123] ? __pfx_kthread+0x10/0x10 [ 12.306143] ret_from_fork+0x116/0x1d0 [ 12.306161] ? __pfx_kthread+0x10/0x10 [ 12.306180] ret_from_fork_asm+0x1a/0x30 [ 12.306211] </TASK> [ 12.306223] [ 12.316660] The buggy address belongs to the physical page: [ 12.317213] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b68 [ 12.318184] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.318766] flags: 0x200000000000040(head|node=0|zone=2) [ 12.319361] page_type: f8(unknown) [ 12.319642] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.320452] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.320862] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.321223] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.321889] head: 0200000000000002 ffffea00040ada01 00000000ffffffff 00000000ffffffff [ 12.322690] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.323380] page dumped because: kasan: bad access detected [ 12.323574] [ 12.323729] Memory state around the buggy address: [ 12.324184] ffff888102b69f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.324840] ffff888102b69f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.325355] >ffff888102b6a000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.325954] ^ [ 12.326231] ffff888102b6a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.326939] ffff888102b6a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.327490] ==================================================================