Date
July 20, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.152866] ================================================================== [ 15.152927] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 15.152978] Read of size 1 at addr fff00000c6465000 by task kunit_try_catch/140 [ 15.153026] [ 15.153055] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.153134] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.153160] Hardware name: linux,dummy-virt (DT) [ 15.153190] Call trace: [ 15.153210] show_stack+0x20/0x38 (C) [ 15.153286] dump_stack_lvl+0x8c/0xd0 [ 15.153332] print_report+0x118/0x5d0 [ 15.153376] kasan_report+0xdc/0x128 [ 15.153426] __asan_report_load1_noabort+0x20/0x30 [ 15.153475] kmalloc_node_oob_right+0x2f4/0x330 [ 15.153530] kunit_try_run_case+0x170/0x3f0 [ 15.153576] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.153641] kthread+0x328/0x630 [ 15.153706] ret_from_fork+0x10/0x20 [ 15.153753] [ 15.153772] Allocated by task 140: [ 15.153798] kasan_save_stack+0x3c/0x68 [ 15.153836] kasan_save_track+0x20/0x40 [ 15.153874] kasan_save_alloc_info+0x40/0x58 [ 15.153913] __kasan_kmalloc+0xd4/0xd8 [ 15.153949] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 15.153999] kmalloc_node_oob_right+0xbc/0x330 [ 15.154036] kunit_try_run_case+0x170/0x3f0 [ 15.154081] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.154122] kthread+0x328/0x630 [ 15.154152] ret_from_fork+0x10/0x20 [ 15.154186] [ 15.154205] The buggy address belongs to the object at fff00000c6464000 [ 15.154205] which belongs to the cache kmalloc-4k of size 4096 [ 15.154260] The buggy address is located 0 bytes to the right of [ 15.154260] allocated 4096-byte region [fff00000c6464000, fff00000c6465000) [ 15.154321] [ 15.154339] The buggy address belongs to the physical page: [ 15.154407] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106460 [ 15.154569] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.154616] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.154687] page_type: f5(slab) [ 15.154724] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 15.154772] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.155749] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 15.155836] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.155953] head: 0bfffe0000000003 ffffc1ffc3191801 00000000ffffffff 00000000ffffffff [ 15.156058] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.156528] page dumped because: kasan: bad access detected [ 15.156628] [ 15.156742] Memory state around the buggy address: [ 15.156811] fff00000c6464f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.156855] fff00000c6464f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.156897] >fff00000c6465000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.156933] ^ [ 15.156960] fff00000c6465080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.157000] fff00000c6465100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.157037] ==================================================================
[ 11.631983] ================================================================== [ 11.633615] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 11.634010] Read of size 1 at addr ffff888102877000 by task kunit_try_catch/157 [ 11.634355] [ 11.634476] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.634519] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.634530] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.634577] Call Trace: [ 11.634588] <TASK> [ 11.634605] dump_stack_lvl+0x73/0xb0 [ 11.634636] print_report+0xd1/0x610 [ 11.634669] ? __virt_addr_valid+0x1db/0x2d0 [ 11.634691] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.634713] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.634733] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.634755] kasan_report+0x141/0x180 [ 11.634776] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.634802] __asan_report_load1_noabort+0x18/0x20 [ 11.634825] kmalloc_node_oob_right+0x369/0x3c0 [ 11.634847] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 11.634926] ? __schedule+0x10cc/0x2b60 [ 11.634949] ? __pfx_read_tsc+0x10/0x10 [ 11.634969] ? ktime_get_ts64+0x86/0x230 [ 11.634992] kunit_try_run_case+0x1a5/0x480 [ 11.635016] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.635038] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.635064] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.635085] ? __kthread_parkme+0x82/0x180 [ 11.635105] ? preempt_count_sub+0x50/0x80 [ 11.635127] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.635150] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.635171] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.635193] kthread+0x337/0x6f0 [ 11.635211] ? trace_preempt_on+0x20/0xc0 [ 11.635233] ? __pfx_kthread+0x10/0x10 [ 11.635252] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.635272] ? calculate_sigpending+0x7b/0xa0 [ 11.635294] ? __pfx_kthread+0x10/0x10 [ 11.635314] ret_from_fork+0x116/0x1d0 [ 11.635331] ? __pfx_kthread+0x10/0x10 [ 11.635350] ret_from_fork_asm+0x1a/0x30 [ 11.635379] </TASK> [ 11.635390] [ 11.643050] Allocated by task 157: [ 11.643223] kasan_save_stack+0x45/0x70 [ 11.643934] kasan_save_track+0x18/0x40 [ 11.644128] kasan_save_alloc_info+0x3b/0x50 [ 11.644328] __kasan_kmalloc+0xb7/0xc0 [ 11.644501] __kmalloc_cache_node_noprof+0x188/0x420 [ 11.644721] kmalloc_node_oob_right+0xab/0x3c0 [ 11.644932] kunit_try_run_case+0x1a5/0x480 [ 11.645125] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.645354] kthread+0x337/0x6f0 [ 11.645504] ret_from_fork+0x116/0x1d0 [ 11.645671] ret_from_fork_asm+0x1a/0x30 [ 11.645840] [ 11.646143] The buggy address belongs to the object at ffff888102876000 [ 11.646143] which belongs to the cache kmalloc-4k of size 4096 [ 11.648689] The buggy address is located 0 bytes to the right of [ 11.648689] allocated 4096-byte region [ffff888102876000, ffff888102877000) [ 11.650017] [ 11.650281] The buggy address belongs to the physical page: [ 11.651027] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102870 [ 11.651797] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.652137] flags: 0x200000000000040(head|node=0|zone=2) [ 11.652694] page_type: f5(slab) [ 11.653042] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.653714] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.654067] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.654375] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.655146] head: 0200000000000003 ffffea00040a1c01 00000000ffffffff 00000000ffffffff [ 11.655842] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.656372] page dumped because: kasan: bad access detected [ 11.656977] [ 11.657246] Memory state around the buggy address: [ 11.657479] ffff888102876f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.658019] ffff888102876f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.658232] >ffff888102877000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.658436] ^ [ 11.658547] ffff888102877080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.658752] ffff888102877100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.658967] ==================================================================