Date
June 25, 2025, 8:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.634046] ================================================================== [ 26.634120] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 26.634267] Write of size 2 at addr fff00000c3fade77 by task kunit_try_catch/184 [ 26.634319] [ 26.634354] CPU: 1 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT [ 26.634493] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.634552] Hardware name: linux,dummy-virt (DT) [ 26.634618] Call trace: [ 26.634895] show_stack+0x20/0x38 (C) [ 26.635086] dump_stack_lvl+0x8c/0xd0 [ 26.635148] print_report+0x118/0x608 [ 26.635193] kasan_report+0xdc/0x128 [ 26.635296] kasan_check_range+0x100/0x1a8 [ 26.635460] __asan_memset+0x34/0x78 [ 26.635506] kmalloc_oob_memset_2+0x150/0x2f8 [ 26.635720] kunit_try_run_case+0x170/0x3f0 [ 26.635872] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.635936] kthread+0x328/0x630 [ 26.635976] ret_from_fork+0x10/0x20 [ 26.636029] [ 26.636048] Allocated by task 184: [ 26.636077] kasan_save_stack+0x3c/0x68 [ 26.636511] kasan_save_track+0x20/0x40 [ 26.636767] kasan_save_alloc_info+0x40/0x58 [ 26.636902] __kasan_kmalloc+0xd4/0xd8 [ 26.636942] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.637387] kmalloc_oob_memset_2+0xb0/0x2f8 [ 26.637626] kunit_try_run_case+0x170/0x3f0 [ 26.637752] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.637809] kthread+0x328/0x630 [ 26.637841] ret_from_fork+0x10/0x20 [ 26.638012] [ 26.638258] The buggy address belongs to the object at fff00000c3fade00 [ 26.638258] which belongs to the cache kmalloc-128 of size 128 [ 26.638654] The buggy address is located 119 bytes inside of [ 26.638654] allocated 120-byte region [fff00000c3fade00, fff00000c3fade78) [ 26.638893] [ 26.639154] The buggy address belongs to the physical page: [ 26.639615] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fad [ 26.639998] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.640083] page_type: f5(slab) [ 26.640156] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 26.640225] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.640265] page dumped because: kasan: bad access detected [ 26.640311] [ 26.640336] Memory state around the buggy address: [ 26.640368] fff00000c3fadd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.640902] fff00000c3fadd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.641072] >fff00000c3fade00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.641258] ^ [ 26.641300] fff00000c3fade80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.641616] fff00000c3fadf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.641707] ==================================================================
[ 21.929141] ================================================================== [ 21.929524] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 21.929753] Write of size 2 at addr ffff8881039c3577 by task kunit_try_catch/201 [ 21.930354] [ 21.930538] CPU: 1 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) [ 21.930588] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.930600] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.930621] Call Trace: [ 21.930634] <TASK> [ 21.930650] dump_stack_lvl+0x73/0xb0 [ 21.930677] print_report+0xd1/0x650 [ 21.930697] ? __virt_addr_valid+0x1db/0x2d0 [ 21.930720] ? kmalloc_oob_memset_2+0x166/0x330 [ 21.930740] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.930764] ? kmalloc_oob_memset_2+0x166/0x330 [ 21.930783] kasan_report+0x141/0x180 [ 21.930803] ? kmalloc_oob_memset_2+0x166/0x330 [ 21.930932] kasan_check_range+0x10c/0x1c0 [ 21.930968] __asan_memset+0x27/0x50 [ 21.930989] kmalloc_oob_memset_2+0x166/0x330 [ 21.931009] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 21.931030] ? __schedule+0x10cc/0x2b60 [ 21.931054] ? __pfx_read_tsc+0x10/0x10 [ 21.931075] ? ktime_get_ts64+0x86/0x230 [ 21.931101] kunit_try_run_case+0x1a5/0x480 [ 21.931126] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.931147] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.931166] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.931190] ? __kthread_parkme+0x82/0x180 [ 21.931209] ? preempt_count_sub+0x50/0x80 [ 21.931232] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.931254] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.931275] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.931297] kthread+0x337/0x6f0 [ 21.931315] ? trace_preempt_on+0x20/0xc0 [ 21.931337] ? __pfx_kthread+0x10/0x10 [ 21.931356] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.931377] ? calculate_sigpending+0x7b/0xa0 [ 21.931399] ? __pfx_kthread+0x10/0x10 [ 21.931419] ret_from_fork+0x116/0x1d0 [ 21.931436] ? __pfx_kthread+0x10/0x10 [ 21.931455] ret_from_fork_asm+0x1a/0x30 [ 21.931483] </TASK> [ 21.931494] [ 21.944581] Allocated by task 201: [ 21.944715] kasan_save_stack+0x45/0x70 [ 21.945009] kasan_save_track+0x18/0x40 [ 21.945393] kasan_save_alloc_info+0x3b/0x50 [ 21.945794] __kasan_kmalloc+0xb7/0xc0 [ 21.946215] __kmalloc_cache_noprof+0x189/0x420 [ 21.946371] kmalloc_oob_memset_2+0xac/0x330 [ 21.946508] kunit_try_run_case+0x1a5/0x480 [ 21.946644] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.946857] kthread+0x337/0x6f0 [ 21.947260] ret_from_fork+0x116/0x1d0 [ 21.947623] ret_from_fork_asm+0x1a/0x30 [ 21.948087] [ 21.948280] The buggy address belongs to the object at ffff8881039c3500 [ 21.948280] which belongs to the cache kmalloc-128 of size 128 [ 21.949537] The buggy address is located 119 bytes inside of [ 21.949537] allocated 120-byte region [ffff8881039c3500, ffff8881039c3578) [ 21.950701] [ 21.950773] The buggy address belongs to the physical page: [ 21.951301] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c3 [ 21.951676] flags: 0x200000000000000(node=0|zone=2) [ 21.951906] page_type: f5(slab) [ 21.952232] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.953038] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.953675] page dumped because: kasan: bad access detected [ 21.953891] [ 21.954054] Memory state around the buggy address: [ 21.954481] ffff8881039c3400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.955058] ffff8881039c3480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.955574] >ffff8881039c3500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.955870] ^ [ 21.956661] ffff8881039c3580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.957130] ffff8881039c3600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.958002] ==================================================================