Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.130013] ================================================================== [ 17.130094] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 17.130246] Write of size 1 at addr fff00000c663600a by task kunit_try_catch/146 [ 17.130303] [ 17.130390] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.130496] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.130522] Hardware name: linux,dummy-virt (DT) [ 17.130571] Call trace: [ 17.130594] show_stack+0x20/0x38 (C) [ 17.130642] dump_stack_lvl+0x8c/0xd0 [ 17.130809] print_report+0x118/0x608 [ 17.130869] kasan_report+0xdc/0x128 [ 17.131099] __asan_report_store1_noabort+0x20/0x30 [ 17.131290] kmalloc_large_oob_right+0x278/0x2b8 [ 17.131630] kunit_try_run_case+0x170/0x3f0 [ 17.131759] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.131887] kthread+0x328/0x630 [ 17.131929] ret_from_fork+0x10/0x20 [ 17.131987] [ 17.132026] The buggy address belongs to the physical page: [ 17.132233] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106634 [ 17.132393] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.132569] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.132771] page_type: f8(unknown) [ 17.132849] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.133004] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.133128] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.133307] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.133359] head: 0bfffe0000000002 ffffc1ffc3198d01 00000000ffffffff 00000000ffffffff [ 17.133672] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.133796] page dumped because: kasan: bad access detected [ 17.133902] [ 17.133973] Memory state around the buggy address: [ 17.134092] fff00000c6635f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.134175] fff00000c6635f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.134317] >fff00000c6636000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.134392] ^ [ 17.134429] fff00000c6636080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.134731] fff00000c6636100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.134927] ==================================================================
[ 10.978622] ================================================================== [ 10.979240] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 10.979553] Write of size 1 at addr ffff88810295600a by task kunit_try_catch/163 [ 10.979861] [ 10.979974] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.980016] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.980040] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.980061] Call Trace: [ 10.980073] <TASK> [ 10.980089] dump_stack_lvl+0x73/0xb0 [ 10.980117] print_report+0xd1/0x650 [ 10.980139] ? __virt_addr_valid+0x1db/0x2d0 [ 10.980161] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.980181] ? kasan_addr_to_slab+0x11/0xa0 [ 10.980200] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.980221] kasan_report+0x141/0x180 [ 10.980241] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.980266] __asan_report_store1_noabort+0x1b/0x30 [ 10.980285] kmalloc_large_oob_right+0x2e9/0x330 [ 10.980306] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 10.980327] ? __schedule+0x10cc/0x2b60 [ 10.980348] ? __pfx_read_tsc+0x10/0x10 [ 10.980368] ? ktime_get_ts64+0x86/0x230 [ 10.980392] kunit_try_run_case+0x1a5/0x480 [ 10.980416] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.980436] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.980458] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.980479] ? __kthread_parkme+0x82/0x180 [ 10.980498] ? preempt_count_sub+0x50/0x80 [ 10.980521] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.980543] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.980564] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.980585] kthread+0x337/0x6f0 [ 10.980603] ? trace_preempt_on+0x20/0xc0 [ 10.980625] ? __pfx_kthread+0x10/0x10 [ 10.980644] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.980663] ? calculate_sigpending+0x7b/0xa0 [ 10.980686] ? __pfx_kthread+0x10/0x10 [ 10.980705] ret_from_fork+0x116/0x1d0 [ 10.980722] ? __pfx_kthread+0x10/0x10 [ 10.980742] ret_from_fork_asm+0x1a/0x30 [ 10.980771] </TASK> [ 10.980782] [ 10.989507] The buggy address belongs to the physical page: [ 10.989924] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102954 [ 10.990426] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.990815] flags: 0x200000000000040(head|node=0|zone=2) [ 10.991164] page_type: f8(unknown) [ 10.991411] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.991753] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.992204] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.992553] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.992895] head: 0200000000000002 ffffea00040a5501 00000000ffffffff 00000000ffffffff [ 10.993294] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.993631] page dumped because: kasan: bad access detected [ 10.993873] [ 10.993987] Memory state around the buggy address: [ 10.994401] ffff888102955f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.994736] ffff888102955f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.995217] >ffff888102956000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.995529] ^ [ 10.995702] ffff888102956080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.996177] ffff888102956100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.996506] ==================================================================