Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.320053] ================================================================== [ 31.320652] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 31.320937] Write of size 1 at addr fff00000c767e00a by task kunit_try_catch/157 [ 31.321219] [ 31.321313] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 31.321767] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.321904] Hardware name: linux,dummy-virt (DT) [ 31.322115] Call trace: [ 31.322219] show_stack+0x20/0x38 (C) [ 31.322363] dump_stack_lvl+0x8c/0xd0 [ 31.322481] print_report+0x118/0x608 [ 31.322600] kasan_report+0xdc/0x128 [ 31.323024] __asan_report_store1_noabort+0x20/0x30 [ 31.323391] kmalloc_large_oob_right+0x278/0x2b8 [ 31.323685] kunit_try_run_case+0x170/0x3f0 [ 31.323881] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.324029] kthread+0x328/0x630 [ 31.324181] ret_from_fork+0x10/0x20 [ 31.324408] [ 31.324665] The buggy address belongs to the physical page: [ 31.324758] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10767c [ 31.324873] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.324960] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.325489] page_type: f8(unknown) [ 31.325882] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.326011] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.326247] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.326394] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.326522] head: 0bfffe0000000002 ffffc1ffc31d9f01 00000000ffffffff 00000000ffffffff [ 31.326704] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 31.327123] page dumped because: kasan: bad access detected [ 31.327207] [ 31.327351] Memory state around the buggy address: [ 31.327594] fff00000c767df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.327853] fff00000c767df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.328079] >fff00000c767e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 31.328186] ^ [ 31.328266] fff00000c767e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 31.328872] fff00000c767e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 31.329009] ==================================================================
[ 24.835231] ================================================================== [ 24.835750] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 24.836628] Write of size 1 at addr ffff8881038e200a by task kunit_try_catch/175 [ 24.837873] [ 24.838392] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 24.838525] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.838550] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.838591] Call Trace: [ 24.838618] <TASK> [ 24.838652] dump_stack_lvl+0x73/0xb0 [ 24.838717] print_report+0xd1/0x650 [ 24.838757] ? __virt_addr_valid+0x1db/0x2d0 [ 24.838794] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.838831] ? kasan_addr_to_slab+0x11/0xa0 [ 24.838871] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.838913] kasan_report+0x141/0x180 [ 24.838959] ? kmalloc_large_oob_right+0x2e9/0x330 [ 24.838995] __asan_report_store1_noabort+0x1b/0x30 [ 24.839021] kmalloc_large_oob_right+0x2e9/0x330 [ 24.839044] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 24.839068] ? __schedule+0x10cc/0x2b60 [ 24.839092] ? __pfx_read_tsc+0x10/0x10 [ 24.839116] ? ktime_get_ts64+0x86/0x230 [ 24.839150] kunit_try_run_case+0x1a5/0x480 [ 24.839189] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.839211] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.839235] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.839258] ? __kthread_parkme+0x82/0x180 [ 24.839280] ? preempt_count_sub+0x50/0x80 [ 24.839305] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.839329] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.839353] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.839378] kthread+0x337/0x6f0 [ 24.839398] ? trace_preempt_on+0x20/0xc0 [ 24.839423] ? __pfx_kthread+0x10/0x10 [ 24.839466] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.839492] ? calculate_sigpending+0x7b/0xa0 [ 24.839517] ? __pfx_kthread+0x10/0x10 [ 24.839539] ret_from_fork+0x116/0x1d0 [ 24.839573] ? __pfx_kthread+0x10/0x10 [ 24.839609] ret_from_fork_asm+0x1a/0x30 [ 24.839660] </TASK> [ 24.839679] [ 24.852587] The buggy address belongs to the physical page: [ 24.852876] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e0 [ 24.853290] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.853583] flags: 0x200000000000040(head|node=0|zone=2) [ 24.853893] page_type: f8(unknown) [ 24.854158] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.855162] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.855872] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.856517] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 24.857071] head: 0200000000000002 ffffea00040e3801 00000000ffffffff 00000000ffffffff [ 24.857777] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.858102] page dumped because: kasan: bad access detected [ 24.858619] [ 24.858801] Memory state around the buggy address: [ 24.859315] ffff8881038e1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.860334] ffff8881038e1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.860580] >ffff8881038e2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.860915] ^ [ 24.861307] ffff8881038e2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.861828] ffff8881038e2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.862509] ==================================================================