Date
July 25, 2025, 3:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.051663] ================================================================== [ 32.052063] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 32.052135] Read of size 1 at addr fff00000c9af1000 by task kunit_try_catch/172 [ 32.052293] [ 32.052329] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250725 #1 PREEMPT [ 32.052421] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 32.052539] Hardware name: linux,dummy-virt (DT) [ 32.052609] Call trace: [ 32.052690] show_stack+0x20/0x38 (C) [ 32.052817] dump_stack_lvl+0x8c/0xd0 [ 32.052867] print_report+0x118/0x5e8 [ 32.052920] kasan_report+0xdc/0x128 [ 32.053023] __asan_report_load1_noabort+0x20/0x30 [ 32.053337] kmalloc_node_oob_right+0x2f4/0x330 [ 32.053397] kunit_try_run_case+0x170/0x3f0 [ 32.053444] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.053495] kthread+0x328/0x630 [ 32.053535] ret_from_fork+0x10/0x20 [ 32.053582] [ 32.053601] Allocated by task 172: [ 32.053661] kasan_save_stack+0x3c/0x68 [ 32.053702] kasan_save_track+0x20/0x40 [ 32.053780] kasan_save_alloc_info+0x40/0x58 [ 32.053818] __kasan_kmalloc+0xd4/0xd8 [ 32.053851] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 32.053892] kmalloc_node_oob_right+0xbc/0x330 [ 32.053936] kunit_try_run_case+0x170/0x3f0 [ 32.054112] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.054217] kthread+0x328/0x630 [ 32.054279] ret_from_fork+0x10/0x20 [ 32.054422] [ 32.054440] The buggy address belongs to the object at fff00000c9af0000 [ 32.054440] which belongs to the cache kmalloc-4k of size 4096 [ 32.054495] The buggy address is located 0 bytes to the right of [ 32.054495] allocated 4096-byte region [fff00000c9af0000, fff00000c9af1000) [ 32.054555] [ 32.054574] The buggy address belongs to the physical page: [ 32.055166] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109af0 [ 32.055288] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 32.055345] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 32.055407] page_type: f5(slab) [ 32.055445] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 32.055492] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 32.055544] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 32.055590] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 32.055636] head: 0bfffe0000000003 ffffc1ffc326bc01 00000000ffffffff 00000000ffffffff [ 32.055989] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 32.056034] page dumped because: kasan: bad access detected [ 32.056063] [ 32.056082] Memory state around the buggy address: [ 32.056114] fff00000c9af0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.056156] fff00000c9af0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.056197] >fff00000c9af1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.056233] ^ [ 32.056260] fff00000c9af1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.056300] fff00000c9af1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.056335] ==================================================================
[ 25.070437] ================================================================== [ 25.071655] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 25.072316] Read of size 1 at addr ffff888106087000 by task kunit_try_catch/189 [ 25.072558] [ 25.072653] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) [ 25.072702] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.072715] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.072736] Call Trace: [ 25.072751] <TASK> [ 25.072769] dump_stack_lvl+0x73/0xb0 [ 25.072809] print_report+0xd1/0x640 [ 25.072832] ? __virt_addr_valid+0x1db/0x2d0 [ 25.072856] ? kmalloc_node_oob_right+0x369/0x3c0 [ 25.072880] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.072906] ? kmalloc_node_oob_right+0x369/0x3c0 [ 25.072930] kasan_report+0x141/0x180 [ 25.072964] ? kmalloc_node_oob_right+0x369/0x3c0 [ 25.072993] __asan_report_load1_noabort+0x18/0x20 [ 25.073017] kmalloc_node_oob_right+0x369/0x3c0 [ 25.073042] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 25.073312] ? __schedule+0x10da/0x2b60 [ 25.073342] ? __pfx_read_tsc+0x10/0x10 [ 25.073365] ? ktime_get_ts64+0x86/0x230 [ 25.073391] kunit_try_run_case+0x1a5/0x480 [ 25.073418] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.073441] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.073464] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.073490] ? __kthread_parkme+0x82/0x180 [ 25.073510] ? preempt_count_sub+0x50/0x80 [ 25.073534] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.073558] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.073582] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.073606] kthread+0x337/0x6f0 [ 25.073625] ? trace_preempt_on+0x20/0xc0 [ 25.073649] ? __pfx_kthread+0x10/0x10 [ 25.073669] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.073694] ? calculate_sigpending+0x7b/0xa0 [ 25.073717] ? __pfx_kthread+0x10/0x10 [ 25.073739] ret_from_fork+0x116/0x1d0 [ 25.073758] ? __pfx_kthread+0x10/0x10 [ 25.073779] ret_from_fork_asm+0x1a/0x30 [ 25.074095] </TASK> [ 25.074109] [ 25.087823] Allocated by task 189: [ 25.088250] kasan_save_stack+0x45/0x70 [ 25.088691] kasan_save_track+0x18/0x40 [ 25.089198] kasan_save_alloc_info+0x3b/0x50 [ 25.089392] __kasan_kmalloc+0xb7/0xc0 [ 25.089765] __kmalloc_cache_node_noprof+0x188/0x420 [ 25.090280] kmalloc_node_oob_right+0xab/0x3c0 [ 25.090445] kunit_try_run_case+0x1a5/0x480 [ 25.090591] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.090768] kthread+0x337/0x6f0 [ 25.090940] ret_from_fork+0x116/0x1d0 [ 25.091386] ret_from_fork_asm+0x1a/0x30 [ 25.091776] [ 25.091930] The buggy address belongs to the object at ffff888106086000 [ 25.091930] which belongs to the cache kmalloc-4k of size 4096 [ 25.093210] The buggy address is located 0 bytes to the right of [ 25.093210] allocated 4096-byte region [ffff888106086000, ffff888106087000) [ 25.094645] [ 25.094721] The buggy address belongs to the physical page: [ 25.095372] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106080 [ 25.096043] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 25.096300] flags: 0x200000000000040(head|node=0|zone=2) [ 25.096572] page_type: f5(slab) [ 25.096695] raw: 0200000000000040 ffff888100042140 ffffea0004182400 dead000000000002 [ 25.097664] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 25.098546] head: 0200000000000040 ffff888100042140 ffffea0004182400 dead000000000002 [ 25.099400] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 25.100230] head: 0200000000000003 ffffea0004182001 00000000ffffffff 00000000ffffffff [ 25.101086] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 25.101781] page dumped because: kasan: bad access detected [ 25.102416] [ 25.102509] Memory state around the buggy address: [ 25.102669] ffff888106086f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.103186] ffff888106086f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.103857] >ffff888106087000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.104468] ^ [ 25.104586] ffff888106087080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.104863] ffff888106087100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.105566] ==================================================================