Date
July 20, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.190357] ================================================================== [ 15.190443] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 15.190530] Write of size 1 at addr fff00000c775200a by task kunit_try_catch/146 [ 15.190579] [ 15.190626] CPU: 0 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.190746] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.190773] Hardware name: linux,dummy-virt (DT) [ 15.190803] Call trace: [ 15.190852] show_stack+0x20/0x38 (C) [ 15.190900] dump_stack_lvl+0x8c/0xd0 [ 15.190944] print_report+0x118/0x5d0 [ 15.190989] kasan_report+0xdc/0x128 [ 15.191077] __asan_report_store1_noabort+0x20/0x30 [ 15.191127] kmalloc_large_oob_right+0x278/0x2b8 [ 15.191172] kunit_try_run_case+0x170/0x3f0 [ 15.191216] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.191265] kthread+0x328/0x630 [ 15.191305] ret_from_fork+0x10/0x20 [ 15.191490] [ 15.191529] The buggy address belongs to the physical page: [ 15.191605] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107750 [ 15.191691] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.191758] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.191842] page_type: f8(unknown) [ 15.191959] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.192085] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.192173] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.192222] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.192572] head: 0bfffe0000000002 ffffc1ffc31dd401 00000000ffffffff 00000000ffffffff [ 15.192874] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.192920] page dumped because: kasan: bad access detected [ 15.192951] [ 15.193034] Memory state around the buggy address: [ 15.193104] fff00000c7751f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.193157] fff00000c7751f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.193245] >fff00000c7752000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.193364] ^ [ 15.193461] fff00000c7752080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.193613] fff00000c7752100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.193907] ==================================================================
[ 11.755047] ================================================================== [ 11.755555] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 11.756717] Write of size 1 at addr ffff88810299e00a by task kunit_try_catch/163 [ 11.757811] [ 11.758123] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.758172] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.758184] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.758204] Call Trace: [ 11.758217] <TASK> [ 11.758231] dump_stack_lvl+0x73/0xb0 [ 11.758260] print_report+0xd1/0x610 [ 11.758281] ? __virt_addr_valid+0x1db/0x2d0 [ 11.758302] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.758322] ? kasan_addr_to_slab+0x11/0xa0 [ 11.758342] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.758505] kasan_report+0x141/0x180 [ 11.758527] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.758552] __asan_report_store1_noabort+0x1b/0x30 [ 11.758575] kmalloc_large_oob_right+0x2e9/0x330 [ 11.758596] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 11.758617] ? __schedule+0x10cc/0x2b60 [ 11.758638] ? __pfx_read_tsc+0x10/0x10 [ 11.758657] ? ktime_get_ts64+0x86/0x230 [ 11.758681] kunit_try_run_case+0x1a5/0x480 [ 11.758703] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.758724] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.758746] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.758768] ? __kthread_parkme+0x82/0x180 [ 11.758786] ? preempt_count_sub+0x50/0x80 [ 11.758808] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.758830] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.758851] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.758873] kthread+0x337/0x6f0 [ 11.758891] ? trace_preempt_on+0x20/0xc0 [ 11.758927] ? __pfx_kthread+0x10/0x10 [ 11.758947] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.758966] ? calculate_sigpending+0x7b/0xa0 [ 11.758988] ? __pfx_kthread+0x10/0x10 [ 11.759008] ret_from_fork+0x116/0x1d0 [ 11.759026] ? __pfx_kthread+0x10/0x10 [ 11.759047] ret_from_fork_asm+0x1a/0x30 [ 11.759082] </TASK> [ 11.759095] [ 11.769275] The buggy address belongs to the physical page: [ 11.769702] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10299c [ 11.770094] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.770676] flags: 0x200000000000040(head|node=0|zone=2) [ 11.770984] page_type: f8(unknown) [ 11.771291] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.771814] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.772358] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.772690] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.773117] head: 0200000000000002 ffffea00040a6701 00000000ffffffff 00000000ffffffff [ 11.773543] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.774070] page dumped because: kasan: bad access detected [ 11.774345] [ 11.774459] Memory state around the buggy address: [ 11.774858] ffff88810299df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.775330] ffff88810299df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.775922] >ffff88810299e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.776235] ^ [ 11.776631] ffff88810299e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.777114] ffff88810299e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.777578] ==================================================================