Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.125855] ================================================================== [ 18.125941] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 18.126008] Read of size 1 at addr fff00000c7719000 by task kunit_try_catch/141 [ 18.126063] [ 18.126105] CPU: 1 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.126216] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.126244] Hardware name: linux,dummy-virt (DT) [ 18.126280] Call trace: [ 18.126304] show_stack+0x20/0x38 (C) [ 18.126358] dump_stack_lvl+0x8c/0xd0 [ 18.126410] print_report+0x118/0x608 [ 18.126459] kasan_report+0xdc/0x128 [ 18.126507] __asan_report_load1_noabort+0x20/0x30 [ 18.126561] kmalloc_node_oob_right+0x2f4/0x330 [ 18.126612] kunit_try_run_case+0x170/0x3f0 [ 18.126664] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.126721] kthread+0x328/0x630 [ 18.127153] ret_from_fork+0x10/0x20 [ 18.127301] [ 18.127333] Allocated by task 141: [ 18.127365] kasan_save_stack+0x3c/0x68 [ 18.127411] kasan_save_track+0x20/0x40 [ 18.127472] kasan_save_alloc_info+0x40/0x58 [ 18.127823] __kasan_kmalloc+0xd4/0xd8 [ 18.127882] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 18.127979] kmalloc_node_oob_right+0xbc/0x330 [ 18.128618] kunit_try_run_case+0x170/0x3f0 [ 18.128669] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.128716] kthread+0x328/0x630 [ 18.128751] ret_from_fork+0x10/0x20 [ 18.128788] [ 18.128810] The buggy address belongs to the object at fff00000c7718000 [ 18.128810] which belongs to the cache kmalloc-4k of size 4096 [ 18.128874] The buggy address is located 0 bytes to the right of [ 18.128874] allocated 4096-byte region [fff00000c7718000, fff00000c7719000) [ 18.128944] [ 18.128970] The buggy address belongs to the physical page: [ 18.129057] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107718 [ 18.129461] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.129602] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.129787] page_type: f5(slab) [ 18.129835] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.129973] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.130241] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.130399] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.130503] head: 0bfffe0000000003 ffffc1ffc31dc601 00000000ffffffff 00000000ffffffff [ 18.130587] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.130658] page dumped because: kasan: bad access detected [ 18.130856] [ 18.130889] Memory state around the buggy address: [ 18.130928] fff00000c7718f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.131055] fff00000c7718f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.131159] >fff00000c7719000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.131202] ^ [ 18.131232] fff00000c7719080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.131278] fff00000c7719100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.131320] ==================================================================
[ 10.898617] ================================================================== [ 10.899799] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.900608] Read of size 1 at addr ffff8881039f1000 by task kunit_try_catch/157 [ 10.901489] [ 10.901692] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.901745] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.901758] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.901781] Call Trace: [ 10.901795] <TASK> [ 10.901817] dump_stack_lvl+0x73/0xb0 [ 10.901851] print_report+0xd1/0x650 [ 10.901874] ? __virt_addr_valid+0x1db/0x2d0 [ 10.901899] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.901920] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.901941] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.901963] kasan_report+0x141/0x180 [ 10.901983] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.902011] __asan_report_load1_noabort+0x18/0x20 [ 10.902034] kmalloc_node_oob_right+0x369/0x3c0 [ 10.902057] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.902080] ? __schedule+0x10cc/0x2b60 [ 10.902102] ? __pfx_read_tsc+0x10/0x10 [ 10.902124] ? ktime_get_ts64+0x86/0x230 [ 10.902149] kunit_try_run_case+0x1a5/0x480 [ 10.902174] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.902195] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.902218] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.902239] ? __kthread_parkme+0x82/0x180 [ 10.902259] ? preempt_count_sub+0x50/0x80 [ 10.902283] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.902305] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.902327] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.902348] kthread+0x337/0x6f0 [ 10.902366] ? trace_preempt_on+0x20/0xc0 [ 10.902405] ? __pfx_kthread+0x10/0x10 [ 10.902424] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.902444] ? calculate_sigpending+0x7b/0xa0 [ 10.902468] ? __pfx_kthread+0x10/0x10 [ 10.902488] ret_from_fork+0x116/0x1d0 [ 10.902557] ? __pfx_kthread+0x10/0x10 [ 10.902581] ret_from_fork_asm+0x1a/0x30 [ 10.902624] </TASK> [ 10.902637] [ 10.915096] Allocated by task 157: [ 10.915512] kasan_save_stack+0x45/0x70 [ 10.916069] kasan_save_track+0x18/0x40 [ 10.916487] kasan_save_alloc_info+0x3b/0x50 [ 10.917005] __kasan_kmalloc+0xb7/0xc0 [ 10.917415] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.917844] kmalloc_node_oob_right+0xab/0x3c0 [ 10.918233] kunit_try_run_case+0x1a5/0x480 [ 10.918394] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.918566] kthread+0x337/0x6f0 [ 10.918685] ret_from_fork+0x116/0x1d0 [ 10.918813] ret_from_fork_asm+0x1a/0x30 [ 10.919073] [ 10.919277] The buggy address belongs to the object at ffff8881039f0000 [ 10.919277] which belongs to the cache kmalloc-4k of size 4096 [ 10.920588] The buggy address is located 0 bytes to the right of [ 10.920588] allocated 4096-byte region [ffff8881039f0000, ffff8881039f1000) [ 10.921990] [ 10.922197] The buggy address belongs to the physical page: [ 10.922809] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039f0 [ 10.923896] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.924182] flags: 0x200000000000040(head|node=0|zone=2) [ 10.924471] page_type: f5(slab) [ 10.924674] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.925502] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.926359] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.927216] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.928032] head: 0200000000000003 ffffea00040e7c01 00000000ffffffff 00000000ffffffff [ 10.928406] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.928689] page dumped because: kasan: bad access detected [ 10.929204] [ 10.929361] Memory state around the buggy address: [ 10.929846] ffff8881039f0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.930520] ffff8881039f0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.931020] >ffff8881039f1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.931677] ^ [ 10.931802] ffff8881039f1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.932247] ffff8881039f1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.932891] ==================================================================