Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 11.123255] ================================================================== [ 11.124458] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 11.124919] Write of size 8 at addr ffff888102a7ac71 by task kunit_try_catch/194 [ 11.125785] [ 11.125986] CPU: 1 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 11.126240] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.126258] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.126280] Call Trace: [ 11.126294] <TASK> [ 11.126310] dump_stack_lvl+0x73/0xb0 [ 11.126338] print_report+0xd1/0x650 [ 11.126361] ? __virt_addr_valid+0x1db/0x2d0 [ 11.126396] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.126417] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.126439] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.126461] kasan_report+0x141/0x180 [ 11.126483] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.126509] kasan_check_range+0x10c/0x1c0 [ 11.126532] __asan_memset+0x27/0x50 [ 11.126551] kmalloc_oob_memset_8+0x166/0x330 [ 11.126574] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 11.126596] ? __schedule+0x10cc/0x2b60 [ 11.126619] ? __pfx_read_tsc+0x10/0x10 [ 11.126639] ? ktime_get_ts64+0x86/0x230 [ 11.126663] kunit_try_run_case+0x1a5/0x480 [ 11.126683] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.126701] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.126737] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.126761] ? __kthread_parkme+0x82/0x180 [ 11.126781] ? preempt_count_sub+0x50/0x80 [ 11.126803] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.126824] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.126847] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.126870] kthread+0x337/0x6f0 [ 11.126889] ? trace_preempt_on+0x20/0xc0 [ 11.126911] ? __pfx_kthread+0x10/0x10 [ 11.126931] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.126954] ? calculate_sigpending+0x7b/0xa0 [ 11.126977] ? __pfx_kthread+0x10/0x10 [ 11.126998] ret_from_fork+0x116/0x1d0 [ 11.127018] ? __pfx_kthread+0x10/0x10 [ 11.127040] ret_from_fork_asm+0x1a/0x30 [ 11.127070] </TASK> [ 11.127080] [ 11.139552] Allocated by task 194: [ 11.140075] kasan_save_stack+0x45/0x70 [ 11.140387] kasan_save_track+0x18/0x40 [ 11.140675] kasan_save_alloc_info+0x3b/0x50 [ 11.140925] __kasan_kmalloc+0xb7/0xc0 [ 11.141307] __kmalloc_cache_noprof+0x189/0x420 [ 11.141541] kmalloc_oob_memset_8+0xac/0x330 [ 11.141856] kunit_try_run_case+0x1a5/0x480 [ 11.142371] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.142653] kthread+0x337/0x6f0 [ 11.143091] ret_from_fork+0x116/0x1d0 [ 11.143304] ret_from_fork_asm+0x1a/0x30 [ 11.143703] [ 11.143868] The buggy address belongs to the object at ffff888102a7ac00 [ 11.143868] which belongs to the cache kmalloc-128 of size 128 [ 11.144627] The buggy address is located 113 bytes inside of [ 11.144627] allocated 120-byte region [ffff888102a7ac00, ffff888102a7ac78) [ 11.145644] [ 11.145755] The buggy address belongs to the physical page: [ 11.145985] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a7a [ 11.146280] flags: 0x200000000000000(node=0|zone=2) [ 11.146739] page_type: f5(slab) [ 11.146969] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.147421] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.147876] page dumped because: kasan: bad access detected [ 11.148131] [ 11.148208] Memory state around the buggy address: [ 11.148428] ffff888102a7ab00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.148906] ffff888102a7ab80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.149333] >ffff888102a7ac00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.150012] ^ [ 11.150727] ffff888102a7ac80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.151577] ffff888102a7ad00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.152300] ==================================================================