Date
July 23, 2025, 3:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.092029] ================================================================== [ 30.092226] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 30.092288] Write of size 1 at addr fff00000c1addf00 by task kunit_try_catch/177 [ 30.092336] [ 30.092569] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT [ 30.092962] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.092989] Hardware name: linux,dummy-virt (DT) [ 30.093019] Call trace: [ 30.093042] show_stack+0x20/0x38 (C) [ 30.093237] dump_stack_lvl+0x8c/0xd0 [ 30.093287] print_report+0x118/0x5e8 [ 30.093339] kasan_report+0xdc/0x128 [ 30.093582] __asan_report_store1_noabort+0x20/0x30 [ 30.093639] kmalloc_big_oob_right+0x2a4/0x2f0 [ 30.093686] kunit_try_run_case+0x170/0x3f0 [ 30.093734] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.093906] kthread+0x328/0x630 [ 30.094101] ret_from_fork+0x10/0x20 [ 30.094157] [ 30.094245] Allocated by task 177: [ 30.094336] kasan_save_stack+0x3c/0x68 [ 30.094386] kasan_save_track+0x20/0x40 [ 30.094420] kasan_save_alloc_info+0x40/0x58 [ 30.094463] __kasan_kmalloc+0xd4/0xd8 [ 30.094562] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.094624] kmalloc_big_oob_right+0xb8/0x2f0 [ 30.094663] kunit_try_run_case+0x170/0x3f0 [ 30.094738] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.094893] kthread+0x328/0x630 [ 30.095246] ret_from_fork+0x10/0x20 [ 30.095528] [ 30.095552] The buggy address belongs to the object at fff00000c1adc000 [ 30.095552] which belongs to the cache kmalloc-8k of size 8192 [ 30.095736] The buggy address is located 0 bytes to the right of [ 30.095736] allocated 7936-byte region [fff00000c1adc000, fff00000c1addf00) [ 30.095889] [ 30.095924] The buggy address belongs to the physical page: [ 30.096042] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101ad8 [ 30.096734] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.096858] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.097202] page_type: f5(slab) [ 30.097301] raw: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122 [ 30.097356] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 30.097512] head: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122 [ 30.097751] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 30.097800] head: 0bfffe0000000003 ffffc1ffc306b601 00000000ffffffff 00000000ffffffff [ 30.097870] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 30.098021] page dumped because: kasan: bad access detected [ 30.098082] [ 30.098101] Memory state around the buggy address: [ 30.098133] fff00000c1adde00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.098465] fff00000c1adde80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.098711] >fff00000c1addf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.098762] ^ [ 30.098839] fff00000c1addf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.098879] fff00000c1ade000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.098925] ==================================================================
[ 24.537809] ================================================================== [ 24.538871] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 24.539610] Write of size 1 at addr ffff88810299df00 by task kunit_try_catch/193 [ 24.540671] [ 24.540772] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250723 #1 PREEMPT(voluntary) [ 24.540823] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.540836] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.540857] Call Trace: [ 24.540873] <TASK> [ 24.540893] dump_stack_lvl+0x73/0xb0 [ 24.540931] print_report+0xd1/0x640 [ 24.540969] ? __virt_addr_valid+0x1db/0x2d0 [ 24.540995] ? kmalloc_big_oob_right+0x316/0x370 [ 24.541018] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.541193] ? kmalloc_big_oob_right+0x316/0x370 [ 24.541216] kasan_report+0x141/0x180 [ 24.541238] ? kmalloc_big_oob_right+0x316/0x370 [ 24.541265] __asan_report_store1_noabort+0x1b/0x30 [ 24.541290] kmalloc_big_oob_right+0x316/0x370 [ 24.541312] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 24.541335] ? __schedule+0x10da/0x2b60 [ 24.541360] ? __pfx_read_tsc+0x10/0x10 [ 24.541523] ? ktime_get_ts64+0x86/0x230 [ 24.541555] kunit_try_run_case+0x1a5/0x480 [ 24.541580] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.541602] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.541627] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.541652] ? __kthread_parkme+0x82/0x180 [ 24.541673] ? preempt_count_sub+0x50/0x80 [ 24.541696] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.541719] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.541742] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.541765] kthread+0x337/0x6f0 [ 24.541785] ? trace_preempt_on+0x20/0xc0 [ 24.541810] ? __pfx_kthread+0x10/0x10 [ 24.541830] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.541853] ? calculate_sigpending+0x7b/0xa0 [ 24.541877] ? __pfx_kthread+0x10/0x10 [ 24.541898] ret_from_fork+0x116/0x1d0 [ 24.541917] ? __pfx_kthread+0x10/0x10 [ 24.541937] ret_from_fork_asm+0x1a/0x30 [ 24.541979] </TASK> [ 24.541991] [ 24.557605] Allocated by task 193: [ 24.558041] kasan_save_stack+0x45/0x70 [ 24.558504] kasan_save_track+0x18/0x40 [ 24.558638] kasan_save_alloc_info+0x3b/0x50 [ 24.558777] __kasan_kmalloc+0xb7/0xc0 [ 24.558900] __kmalloc_cache_noprof+0x189/0x420 [ 24.559295] kmalloc_big_oob_right+0xa9/0x370 [ 24.559724] kunit_try_run_case+0x1a5/0x480 [ 24.560248] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.560858] kthread+0x337/0x6f0 [ 24.561257] ret_from_fork+0x116/0x1d0 [ 24.561706] ret_from_fork_asm+0x1a/0x30 [ 24.562114] [ 24.562293] The buggy address belongs to the object at ffff88810299c000 [ 24.562293] which belongs to the cache kmalloc-8k of size 8192 [ 24.563387] The buggy address is located 0 bytes to the right of [ 24.563387] allocated 7936-byte region [ffff88810299c000, ffff88810299df00) [ 24.564232] [ 24.564447] The buggy address belongs to the physical page: [ 24.564927] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102998 [ 24.565490] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.565711] flags: 0x200000000000040(head|node=0|zone=2) [ 24.565882] page_type: f5(slab) [ 24.566004] raw: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 [ 24.566527] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.566883] head: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 [ 24.567594] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.568406] head: 0200000000000003 ffffea00040a6601 00000000ffffffff 00000000ffffffff [ 24.569189] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.569415] page dumped because: kasan: bad access detected [ 24.569591] [ 24.569652] Memory state around the buggy address: [ 24.569799] ffff88810299de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.570026] ffff88810299de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.570304] >ffff88810299df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.570570] ^ [ 24.570727] ffff88810299df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.570986] ffff88810299e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.571297] ==================================================================