Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.592186] ================================================================== [ 16.592284] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.592357] Read of size 1 at addr fff00000c50d9000 by task kunit_try_catch/149 [ 16.592424] [ 16.592459] CPU: 1 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 16.592546] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.592572] Hardware name: linux,dummy-virt (DT) [ 16.592735] Call trace: [ 16.592893] show_stack+0x20/0x38 (C) [ 16.592974] dump_stack_lvl+0x8c/0xd0 [ 16.593024] print_report+0x118/0x608 [ 16.593072] kasan_report+0xdc/0x128 [ 16.593117] __asan_report_load1_noabort+0x20/0x30 [ 16.593166] kmalloc_node_oob_right+0x2f4/0x330 [ 16.593232] kunit_try_run_case+0x170/0x3f0 [ 16.593298] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.593365] kthread+0x328/0x630 [ 16.593424] ret_from_fork+0x10/0x20 [ 16.593490] [ 16.593509] Allocated by task 149: [ 16.593555] kasan_save_stack+0x3c/0x68 [ 16.593620] kasan_save_track+0x20/0x40 [ 16.593664] kasan_save_alloc_info+0x40/0x58 [ 16.593701] __kasan_kmalloc+0xd4/0xd8 [ 16.593745] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.593787] kmalloc_node_oob_right+0xbc/0x330 [ 16.594156] kunit_try_run_case+0x170/0x3f0 [ 16.594251] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.594316] kthread+0x328/0x630 [ 16.594367] ret_from_fork+0x10/0x20 [ 16.594403] [ 16.594446] The buggy address belongs to the object at fff00000c50d8000 [ 16.594446] which belongs to the cache kmalloc-4k of size 4096 [ 16.594507] The buggy address is located 0 bytes to the right of [ 16.594507] allocated 4096-byte region [fff00000c50d8000, fff00000c50d9000) [ 16.594571] [ 16.594591] The buggy address belongs to the physical page: [ 16.594876] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1050d8 [ 16.595129] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.595202] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.595302] page_type: f5(slab) [ 16.595344] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.595394] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.595463] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.595521] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.595570] head: 0bfffe0000000003 ffffc1ffc3143601 00000000ffffffff 00000000ffffffff [ 16.595619] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.595692] page dumped because: kasan: bad access detected [ 16.595729] [ 16.595755] Memory state around the buggy address: [ 16.595786] fff00000c50d8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.595838] fff00000c50d8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.595888] >fff00000c50d9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.595950] ^ [ 16.595978] fff00000c50d9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.596020] fff00000c50d9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.596067] ==================================================================
[ 16.771563] ================================================================== [ 16.772573] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 16.773641] Read of size 1 at addr ffff88810385b000 by task kunit_try_catch/167 [ 16.774146] [ 16.774464] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 16.774608] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.774649] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.774729] Call Trace: [ 16.774768] <TASK> [ 16.774814] dump_stack_lvl+0x73/0xb0 [ 16.774914] print_report+0xd1/0x650 [ 16.774983] ? __virt_addr_valid+0x1db/0x2d0 [ 16.775057] ? kmalloc_node_oob_right+0x369/0x3c0 [ 16.775128] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.775197] ? kmalloc_node_oob_right+0x369/0x3c0 [ 16.775294] kasan_report+0x141/0x180 [ 16.775620] ? kmalloc_node_oob_right+0x369/0x3c0 [ 16.775743] __asan_report_load1_noabort+0x18/0x20 [ 16.775811] kmalloc_node_oob_right+0x369/0x3c0 [ 16.775877] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 16.775915] ? __schedule+0x10cc/0x2b60 [ 16.775946] ? __pfx_read_tsc+0x10/0x10 [ 16.775976] ? ktime_get_ts64+0x86/0x230 [ 16.776011] kunit_try_run_case+0x1a5/0x480 [ 16.776047] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.776078] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.776106] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.776143] ? __kthread_parkme+0x82/0x180 [ 16.776170] ? preempt_count_sub+0x50/0x80 [ 16.776202] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.776354] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.776404] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.776438] kthread+0x337/0x6f0 [ 16.776465] ? trace_preempt_on+0x20/0xc0 [ 16.776500] ? __pfx_kthread+0x10/0x10 [ 16.776528] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.776560] ? calculate_sigpending+0x7b/0xa0 [ 16.776593] ? __pfx_kthread+0x10/0x10 [ 16.776621] ret_from_fork+0x116/0x1d0 [ 16.776647] ? __pfx_kthread+0x10/0x10 [ 16.776675] ret_from_fork_asm+0x1a/0x30 [ 16.776715] </TASK> [ 16.776730] [ 16.795633] Allocated by task 167: [ 16.796015] kasan_save_stack+0x45/0x70 [ 16.796767] kasan_save_track+0x18/0x40 [ 16.797067] kasan_save_alloc_info+0x3b/0x50 [ 16.797986] __kasan_kmalloc+0xb7/0xc0 [ 16.798751] __kmalloc_cache_node_noprof+0x188/0x420 [ 16.799792] kmalloc_node_oob_right+0xab/0x3c0 [ 16.800108] kunit_try_run_case+0x1a5/0x480 [ 16.800740] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.801903] kthread+0x337/0x6f0 [ 16.802514] ret_from_fork+0x116/0x1d0 [ 16.803231] ret_from_fork_asm+0x1a/0x30 [ 16.803866] [ 16.804055] The buggy address belongs to the object at ffff88810385a000 [ 16.804055] which belongs to the cache kmalloc-4k of size 4096 [ 16.805328] The buggy address is located 0 bytes to the right of [ 16.805328] allocated 4096-byte region [ffff88810385a000, ffff88810385b000) [ 16.806450] [ 16.806707] The buggy address belongs to the physical page: [ 16.807427] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103858 [ 16.808489] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.809451] flags: 0x200000000000040(head|node=0|zone=2) [ 16.810090] page_type: f5(slab) [ 16.810629] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.811122] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.812470] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 16.813205] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.814145] head: 0200000000000003 ffffea00040e1601 00000000ffffffff 00000000ffffffff [ 16.814987] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.815893] page dumped because: kasan: bad access detected [ 16.816616] [ 16.816898] Memory state around the buggy address: [ 16.817563] ffff88810385af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.818585] ffff88810385af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.819497] >ffff88810385b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.820020] ^ [ 16.820453] ffff88810385b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.820927] ffff88810385b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.821812] ==================================================================