Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.929040] ================================================================== [ 18.929261] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 18.929394] Write of size 1 at addr fff00000c66a600a by task kunit_try_catch/147 [ 18.929509] [ 18.929594] CPU: 0 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.929789] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.929858] Hardware name: linux,dummy-virt (DT) [ 18.929921] Call trace: [ 18.930000] show_stack+0x20/0x38 (C) [ 18.930116] dump_stack_lvl+0x8c/0xd0 [ 18.930214] print_report+0x118/0x608 [ 18.930311] kasan_report+0xdc/0x128 [ 18.930411] __asan_report_store1_noabort+0x20/0x30 [ 18.930523] kmalloc_large_oob_right+0x278/0x2b8 [ 18.930626] kunit_try_run_case+0x170/0x3f0 [ 18.930723] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.930871] kthread+0x328/0x630 [ 18.931014] ret_from_fork+0x10/0x20 [ 18.931172] [ 18.931269] The buggy address belongs to the physical page: [ 18.931343] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1066a4 [ 18.931468] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.931564] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.931711] page_type: f8(unknown) [ 18.931801] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.931944] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.932148] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.932291] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.932413] head: 0bfffe0000000002 ffffc1ffc319a901 00000000ffffffff 00000000ffffffff [ 18.932526] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.932617] page dumped because: kasan: bad access detected [ 18.933449] [ 18.933535] Memory state around the buggy address: [ 18.933753] fff00000c66a5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.934334] fff00000c66a5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.934570] >fff00000c66a6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.934721] ^ [ 18.934945] fff00000c66a6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.935084] fff00000c66a6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.935272] ==================================================================
[ 12.146060] ================================================================== [ 12.146609] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 12.146961] Write of size 1 at addr ffff88810294e00a by task kunit_try_catch/164 [ 12.147479] [ 12.147588] CPU: 1 UID: 0 PID: 164 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.147631] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.147641] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.147662] Call Trace: [ 12.147674] <TASK> [ 12.147688] dump_stack_lvl+0x73/0xb0 [ 12.147718] print_report+0xd1/0x650 [ 12.147740] ? __virt_addr_valid+0x1db/0x2d0 [ 12.147776] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.147946] ? kasan_addr_to_slab+0x11/0xa0 [ 12.147974] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.147997] kasan_report+0x141/0x180 [ 12.148020] ? kmalloc_large_oob_right+0x2e9/0x330 [ 12.148047] __asan_report_store1_noabort+0x1b/0x30 [ 12.148072] kmalloc_large_oob_right+0x2e9/0x330 [ 12.148095] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 12.148119] ? __schedule+0x10cc/0x2b60 [ 12.148141] ? __pfx_read_tsc+0x10/0x10 [ 12.148161] ? ktime_get_ts64+0x86/0x230 [ 12.148185] kunit_try_run_case+0x1a5/0x480 [ 12.148210] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.148232] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.148255] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.148279] ? __kthread_parkme+0x82/0x180 [ 12.148299] ? preempt_count_sub+0x50/0x80 [ 12.148323] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.148348] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.148372] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.148397] kthread+0x337/0x6f0 [ 12.148418] ? trace_preempt_on+0x20/0xc0 [ 12.148442] ? __pfx_kthread+0x10/0x10 [ 12.148463] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.148484] ? calculate_sigpending+0x7b/0xa0 [ 12.148508] ? __pfx_kthread+0x10/0x10 [ 12.148529] ret_from_fork+0x116/0x1d0 [ 12.148548] ? __pfx_kthread+0x10/0x10 [ 12.148569] ret_from_fork_asm+0x1a/0x30 [ 12.148599] </TASK> [ 12.148609] [ 12.155873] The buggy address belongs to the physical page: [ 12.156142] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10294c [ 12.156497] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.157016] flags: 0x200000000000040(head|node=0|zone=2) [ 12.157217] page_type: f8(unknown) [ 12.157400] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.157909] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.158220] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 12.158496] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 12.158941] head: 0200000000000002 ffffea00040a5301 00000000ffffffff 00000000ffffffff [ 12.159175] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 12.159467] page dumped because: kasan: bad access detected [ 12.159814] [ 12.159960] Memory state around the buggy address: [ 12.160185] ffff88810294df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.160444] ffff88810294df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.160855] >ffff88810294e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.161199] ^ [ 12.161374] ffff88810294e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.161755] ffff88810294e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 12.161983] ==================================================================