Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.960867] ================================================================== [ 23.961021] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 23.961295] Read of size 1 at addr fff00000c642f000 by task kunit_try_catch/142 [ 23.961445] [ 23.961538] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 23.961752] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.962034] Hardware name: linux,dummy-virt (DT) [ 23.962165] Call trace: [ 23.962622] show_stack+0x20/0x38 (C) [ 23.962909] dump_stack_lvl+0x8c/0xd0 [ 23.963149] print_report+0x118/0x608 [ 23.963283] kasan_report+0xdc/0x128 [ 23.963493] __asan_report_load1_noabort+0x20/0x30 [ 23.963625] kmalloc_node_oob_right+0x2f4/0x330 [ 23.963749] kunit_try_run_case+0x170/0x3f0 [ 23.963929] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.964083] kthread+0x328/0x630 [ 23.964223] ret_from_fork+0x10/0x20 [ 23.964361] [ 23.964425] Allocated by task 142: [ 23.964499] kasan_save_stack+0x3c/0x68 [ 23.964592] kasan_save_track+0x20/0x40 [ 23.964842] kasan_save_alloc_info+0x40/0x58 [ 23.965122] __kasan_kmalloc+0xd4/0xd8 [ 23.965825] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 23.966149] kmalloc_node_oob_right+0xbc/0x330 [ 23.966367] kunit_try_run_case+0x170/0x3f0 [ 23.966486] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.967061] kthread+0x328/0x630 [ 23.967236] ret_from_fork+0x10/0x20 [ 23.967490] [ 23.967588] The buggy address belongs to the object at fff00000c642e000 [ 23.967588] which belongs to the cache kmalloc-4k of size 4096 [ 23.967910] The buggy address is located 0 bytes to the right of [ 23.967910] allocated 4096-byte region [fff00000c642e000, fff00000c642f000) [ 23.968219] [ 23.968431] The buggy address belongs to the physical page: [ 23.968771] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106428 [ 23.969978] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.970119] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 23.970540] page_type: f5(slab) [ 23.970988] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 23.971198] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 23.971343] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 23.971690] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 23.972120] head: 0bfffe0000000003 ffffc1ffc3190a01 00000000ffffffff 00000000ffffffff [ 23.972354] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 23.972484] page dumped because: kasan: bad access detected [ 23.972994] [ 23.973152] Memory state around the buggy address: [ 23.973310] fff00000c642ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.973565] fff00000c642ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.973828] >fff00000c642f000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.974143] ^ [ 23.974267] fff00000c642f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.974740] fff00000c642f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.974852] ==================================================================
[ 15.978520] ================================================================== [ 15.979622] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 15.980266] Read of size 1 at addr ffff888102b9f000 by task kunit_try_catch/161 [ 15.980984] [ 15.981282] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 15.981552] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.981676] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.981839] Call Trace: [ 15.981907] <TASK> [ 15.981954] dump_stack_lvl+0x73/0xb0 [ 15.982029] print_report+0xd1/0x650 [ 15.982099] ? __virt_addr_valid+0x1db/0x2d0 [ 15.982169] ? kmalloc_node_oob_right+0x369/0x3c0 [ 15.982234] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.982306] ? kmalloc_node_oob_right+0x369/0x3c0 [ 15.982390] kasan_report+0x141/0x180 [ 15.982447] ? kmalloc_node_oob_right+0x369/0x3c0 [ 15.982482] __asan_report_load1_noabort+0x18/0x20 [ 15.982512] kmalloc_node_oob_right+0x369/0x3c0 [ 15.982541] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 15.982570] ? __schedule+0x10cc/0x2b60 [ 15.982601] ? __pfx_read_tsc+0x10/0x10 [ 15.982709] ? ktime_get_ts64+0x86/0x230 [ 15.982762] kunit_try_run_case+0x1a5/0x480 [ 15.982802] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.982836] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.982872] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.982907] ? __kthread_parkme+0x82/0x180 [ 15.982940] ? preempt_count_sub+0x50/0x80 [ 15.982977] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.983012] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.983045] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.983079] kthread+0x337/0x6f0 [ 15.983104] ? trace_preempt_on+0x20/0xc0 [ 15.983138] ? __pfx_kthread+0x10/0x10 [ 15.983163] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.983195] ? calculate_sigpending+0x7b/0xa0 [ 15.983271] ? __pfx_kthread+0x10/0x10 [ 15.983303] ret_from_fork+0x41/0x80 [ 15.983335] ? __pfx_kthread+0x10/0x10 [ 15.983360] ret_from_fork_asm+0x1a/0x30 [ 15.983402] </TASK> [ 15.983416] [ 16.000787] Allocated by task 161: [ 16.001163] kasan_save_stack+0x45/0x70 [ 16.001805] kasan_save_track+0x18/0x40 [ 16.002282] kasan_save_alloc_info+0x3b/0x50 [ 16.002955] __kasan_kmalloc+0xb7/0xc0 [ 16.003393] __kmalloc_cache_node_noprof+0x188/0x420 [ 16.004043] kmalloc_node_oob_right+0xab/0x3c0 [ 16.004539] kunit_try_run_case+0x1a5/0x480 [ 16.005122] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.005885] kthread+0x337/0x6f0 [ 16.006281] ret_from_fork+0x41/0x80 [ 16.006832] ret_from_fork_asm+0x1a/0x30 [ 16.007290] [ 16.007523] The buggy address belongs to the object at ffff888102b9e000 [ 16.007523] which belongs to the cache kmalloc-4k of size 4096 [ 16.008465] The buggy address is located 0 bytes to the right of [ 16.008465] allocated 4096-byte region [ffff888102b9e000, ffff888102b9f000) [ 16.009852] [ 16.010034] The buggy address belongs to the physical page: [ 16.010855] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b98 [ 16.012133] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.012996] flags: 0x200000000000040(head|node=0|zone=2) [ 16.013700] page_type: f5(slab) [ 16.014025] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.015065] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.015869] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.016779] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.017399] head: 0200000000000003 ffffea00040ae601 00000000ffffffff 00000000ffffffff [ 16.018184] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.019014] page dumped because: kasan: bad access detected [ 16.019545] [ 16.019922] Memory state around the buggy address: [ 16.020348] ffff888102b9ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.020965] ffff888102b9ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.021556] >ffff888102b9f000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.022139] ^ [ 16.022788] ffff888102b9f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.023919] ffff888102b9f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.024538] ==================================================================