Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.292443] ================================================================== [ 29.292504] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 29.292556] Read of size 1 at addr fff00000c99c9000 by task kunit_try_catch/173 [ 29.292607] [ 29.292636] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 29.292886] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.292931] Hardware name: linux,dummy-virt (DT) [ 29.292973] Call trace: [ 29.292997] show_stack+0x20/0x38 (C) [ 29.293137] dump_stack_lvl+0x8c/0xd0 [ 29.293211] print_report+0x118/0x608 [ 29.293336] kasan_report+0xdc/0x128 [ 29.293381] __asan_report_load1_noabort+0x20/0x30 [ 29.293428] kmalloc_node_oob_right+0x2f4/0x330 [ 29.293516] kunit_try_run_case+0x170/0x3f0 [ 29.293569] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.293733] kthread+0x328/0x630 [ 29.293905] ret_from_fork+0x10/0x20 [ 29.293962] [ 29.294038] Allocated by task 173: [ 29.294066] kasan_save_stack+0x3c/0x68 [ 29.294197] kasan_save_track+0x20/0x40 [ 29.294316] kasan_save_alloc_info+0x40/0x58 [ 29.294413] __kasan_kmalloc+0xd4/0xd8 [ 29.294449] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 29.294490] kmalloc_node_oob_right+0xbc/0x330 [ 29.294527] kunit_try_run_case+0x170/0x3f0 [ 29.294564] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.294607] kthread+0x328/0x630 [ 29.294638] ret_from_fork+0x10/0x20 [ 29.294672] [ 29.294690] The buggy address belongs to the object at fff00000c99c8000 [ 29.294690] which belongs to the cache kmalloc-4k of size 4096 [ 29.294746] The buggy address is located 0 bytes to the right of [ 29.294746] allocated 4096-byte region [fff00000c99c8000, fff00000c99c9000) [ 29.294808] [ 29.294827] The buggy address belongs to the physical page: [ 29.294894] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099c8 [ 29.295160] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.295290] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.295370] page_type: f5(slab) [ 29.295519] raw: 0bfffe0000000040 fff00000c0002140 dead000000000100 dead000000000122 [ 29.295581] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 29.295797] head: 0bfffe0000000040 fff00000c0002140 dead000000000100 dead000000000122 [ 29.295926] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 29.296017] head: 0bfffe0000000003 ffffc1ffc3267201 00000000ffffffff 00000000ffffffff [ 29.296065] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 29.296361] page dumped because: kasan: bad access detected [ 29.296395] [ 29.296413] Memory state around the buggy address: [ 29.296511] fff00000c99c8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.296708] fff00000c99c8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.296789] >fff00000c99c9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.296826] ^ [ 29.296853] fff00000c99c9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.296893] fff00000c99c9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.296940] ==================================================================
[ 24.208524] ================================================================== [ 24.208940] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 24.209209] Read of size 1 at addr ffff8881062ab000 by task kunit_try_catch/189 [ 24.209723] [ 24.209847] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 24.209906] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.209919] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.209943] Call Trace: [ 24.209958] <TASK> [ 24.209980] dump_stack_lvl+0x73/0xb0 [ 24.210011] print_report+0xd1/0x650 [ 24.210034] ? __virt_addr_valid+0x1db/0x2d0 [ 24.210060] ? kmalloc_node_oob_right+0x369/0x3c0 [ 24.210082] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.210108] ? kmalloc_node_oob_right+0x369/0x3c0 [ 24.210131] kasan_report+0x141/0x180 [ 24.210428] ? kmalloc_node_oob_right+0x369/0x3c0 [ 24.210468] __asan_report_load1_noabort+0x18/0x20 [ 24.210493] kmalloc_node_oob_right+0x369/0x3c0 [ 24.210517] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 24.210543] ? __schedule+0x10cc/0x2b60 [ 24.210569] ? __pfx_read_tsc+0x10/0x10 [ 24.210591] ? ktime_get_ts64+0x86/0x230 [ 24.210617] kunit_try_run_case+0x1a5/0x480 [ 24.210645] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.210669] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.210694] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.210718] ? __kthread_parkme+0x82/0x180 [ 24.210740] ? preempt_count_sub+0x50/0x80 [ 24.210764] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.210789] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.210813] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.210837] kthread+0x337/0x6f0 [ 24.210857] ? trace_preempt_on+0x20/0xc0 [ 24.210882] ? __pfx_kthread+0x10/0x10 [ 24.210902] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.210925] ? calculate_sigpending+0x7b/0xa0 [ 24.210950] ? __pfx_kthread+0x10/0x10 [ 24.210971] ret_from_fork+0x116/0x1d0 [ 24.210990] ? __pfx_kthread+0x10/0x10 [ 24.211011] ret_from_fork_asm+0x1a/0x30 [ 24.211043] </TASK> [ 24.211056] [ 24.221580] Allocated by task 189: [ 24.221773] kasan_save_stack+0x45/0x70 [ 24.222033] kasan_save_track+0x18/0x40 [ 24.222272] kasan_save_alloc_info+0x3b/0x50 [ 24.222465] __kasan_kmalloc+0xb7/0xc0 [ 24.222599] __kmalloc_cache_node_noprof+0x188/0x420 [ 24.222758] kmalloc_node_oob_right+0xab/0x3c0 [ 24.222971] kunit_try_run_case+0x1a5/0x480 [ 24.223301] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.223509] kthread+0x337/0x6f0 [ 24.223628] ret_from_fork+0x116/0x1d0 [ 24.223757] ret_from_fork_asm+0x1a/0x30 [ 24.223933] [ 24.224032] The buggy address belongs to the object at ffff8881062aa000 [ 24.224032] which belongs to the cache kmalloc-4k of size 4096 [ 24.224597] The buggy address is located 0 bytes to the right of [ 24.224597] allocated 4096-byte region [ffff8881062aa000, ffff8881062ab000) [ 24.225188] [ 24.225287] The buggy address belongs to the physical page: [ 24.225525] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1062a8 [ 24.226256] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.226625] flags: 0x200000000000040(head|node=0|zone=2) [ 24.226971] page_type: f5(slab) [ 24.227132] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 24.227412] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 24.227807] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 24.228142] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 24.228513] head: 0200000000000003 ffffea000418aa01 00000000ffffffff 00000000ffffffff [ 24.228850] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.229272] page dumped because: kasan: bad access detected [ 24.229531] [ 24.229602] Memory state around the buggy address: [ 24.229757] ffff8881062aaf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.229973] ffff8881062aaf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.230219] >ffff8881062ab000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.230638] ^ [ 24.230887] ffff8881062ab080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.231105] ffff8881062ab100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.231322] ==================================================================