Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.902073] ================================================================== [ 17.902463] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 17.902925] Write of size 1 at addr fff00000c786e00a by task kunit_try_catch/146 [ 17.903166] [ 17.903475] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.903922] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.903962] Hardware name: linux,dummy-virt (DT) [ 17.904127] Call trace: [ 17.904361] show_stack+0x20/0x38 (C) [ 17.904425] dump_stack_lvl+0x8c/0xd0 [ 17.904470] print_report+0x118/0x608 [ 17.905024] kasan_report+0xdc/0x128 [ 17.905105] __asan_report_store1_noabort+0x20/0x30 [ 17.905154] kmalloc_large_oob_right+0x278/0x2b8 [ 17.905200] kunit_try_run_case+0x170/0x3f0 [ 17.905457] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.905508] kthread+0x328/0x630 [ 17.906124] ret_from_fork+0x10/0x20 [ 17.906183] [ 17.906406] The buggy address belongs to the physical page: [ 17.906440] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10786c [ 17.906901] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.906996] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.907096] page_type: f8(unknown) [ 17.907136] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.907714] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.907775] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.908086] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.908360] head: 0bfffe0000000002 ffffc1ffc31e1b01 00000000ffffffff 00000000ffffffff [ 17.908865] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.909084] page dumped because: kasan: bad access detected [ 17.909146] [ 17.909190] Memory state around the buggy address: [ 17.909590] fff00000c786df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.909763] fff00000c786df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.910005] >fff00000c786e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.910043] ^ [ 17.910072] fff00000c786e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.910112] fff00000c786e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.910149] ==================================================================
[ 10.901346] ================================================================== [ 10.902463] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 10.902718] Write of size 1 at addr ffff8881029ca00a by task kunit_try_catch/165 [ 10.902951] [ 10.903040] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.903083] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.903094] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.903114] Call Trace: [ 10.903127] <TASK> [ 10.903143] dump_stack_lvl+0x73/0xb0 [ 10.903170] print_report+0xd1/0x650 [ 10.903193] ? __virt_addr_valid+0x1db/0x2d0 [ 10.903214] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.903235] ? kasan_addr_to_slab+0x11/0xa0 [ 10.903254] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.903275] kasan_report+0x141/0x180 [ 10.903296] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.903321] __asan_report_store1_noabort+0x1b/0x30 [ 10.903340] kmalloc_large_oob_right+0x2e9/0x330 [ 10.903361] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 10.903408] ? __schedule+0x10cc/0x2b60 [ 10.903433] ? __pfx_read_tsc+0x10/0x10 [ 10.903454] ? ktime_get_ts64+0x86/0x230 [ 10.903478] kunit_try_run_case+0x1a5/0x480 [ 10.903525] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.903546] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.903569] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.903590] ? __kthread_parkme+0x82/0x180 [ 10.903610] ? preempt_count_sub+0x50/0x80 [ 10.903633] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.903657] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.903679] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.903705] kthread+0x337/0x6f0 [ 10.903723] ? trace_preempt_on+0x20/0xc0 [ 10.903747] ? __pfx_kthread+0x10/0x10 [ 10.903766] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.903786] ? calculate_sigpending+0x7b/0xa0 [ 10.903809] ? __pfx_kthread+0x10/0x10 [ 10.903829] ret_from_fork+0x116/0x1d0 [ 10.903846] ? __pfx_kthread+0x10/0x10 [ 10.903865] ret_from_fork_asm+0x1a/0x30 [ 10.903895] </TASK> [ 10.903905] [ 10.919525] The buggy address belongs to the physical page: [ 10.920147] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029c8 [ 10.920878] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.921109] flags: 0x200000000000040(head|node=0|zone=2) [ 10.921309] page_type: f8(unknown) [ 10.921462] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.921980] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.922851] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.923605] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.924197] head: 0200000000000002 ffffea00040a7201 00000000ffffffff 00000000ffffffff [ 10.924443] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.924712] page dumped because: kasan: bad access detected [ 10.925198] [ 10.925469] Memory state around the buggy address: [ 10.925736] ffff8881029c9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.926637] ffff8881029c9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.927181] >ffff8881029ca000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.927621] ^ [ 10.927767] ffff8881029ca080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.927985] ffff8881029ca100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.928198] ==================================================================