Date
June 23, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 21.872970] ================================================================== [ 21.873751] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 21.874187] Write of size 4 at addr ffff8881023ac475 by task kunit_try_catch/203 [ 21.874537] [ 21.874682] CPU: 0 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 21.874766] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.874788] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.874823] Call Trace: [ 21.874847] <TASK> [ 21.874880] dump_stack_lvl+0x73/0xb0 [ 21.876876] print_report+0xd1/0x650 [ 21.876968] ? __virt_addr_valid+0x1db/0x2d0 [ 21.877011] ? kmalloc_oob_memset_4+0x166/0x330 [ 21.877042] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.877081] ? kmalloc_oob_memset_4+0x166/0x330 [ 21.877135] kasan_report+0x141/0x180 [ 21.877170] ? kmalloc_oob_memset_4+0x166/0x330 [ 21.877203] kasan_check_range+0x10c/0x1c0 [ 21.877225] __asan_memset+0x27/0x50 [ 21.877245] kmalloc_oob_memset_4+0x166/0x330 [ 21.877265] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 21.877284] ? __schedule+0x10cc/0x2b60 [ 21.877304] ? __pfx_read_tsc+0x10/0x10 [ 21.877325] ? ktime_get_ts64+0x86/0x230 [ 21.877347] kunit_try_run_case+0x1a5/0x480 [ 21.877369] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.877411] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.877432] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.877451] ? __kthread_parkme+0x82/0x180 [ 21.877470] ? preempt_count_sub+0x50/0x80 [ 21.877491] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.877511] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.877531] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.877550] kthread+0x337/0x6f0 [ 21.877567] ? trace_preempt_on+0x20/0xc0 [ 21.877587] ? __pfx_kthread+0x10/0x10 [ 21.877605] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.877640] ? calculate_sigpending+0x7b/0xa0 [ 21.877663] ? __pfx_kthread+0x10/0x10 [ 21.877682] ret_from_fork+0x116/0x1d0 [ 21.877698] ? __pfx_kthread+0x10/0x10 [ 21.877715] ret_from_fork_asm+0x1a/0x30 [ 21.877744] </TASK> [ 21.877755] [ 21.891689] Allocated by task 203: [ 21.892273] kasan_save_stack+0x45/0x70 [ 21.892550] kasan_save_track+0x18/0x40 [ 21.893118] kasan_save_alloc_info+0x3b/0x50 [ 21.893315] __kasan_kmalloc+0xb7/0xc0 [ 21.893597] __kmalloc_cache_noprof+0x189/0x420 [ 21.893985] kmalloc_oob_memset_4+0xac/0x330 [ 21.894412] kunit_try_run_case+0x1a5/0x480 [ 21.894812] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.895354] kthread+0x337/0x6f0 [ 21.895737] ret_from_fork+0x116/0x1d0 [ 21.896075] ret_from_fork_asm+0x1a/0x30 [ 21.896302] [ 21.896396] The buggy address belongs to the object at ffff8881023ac400 [ 21.896396] which belongs to the cache kmalloc-128 of size 128 [ 21.897246] The buggy address is located 117 bytes inside of [ 21.897246] allocated 120-byte region [ffff8881023ac400, ffff8881023ac478) [ 21.898331] [ 21.898497] The buggy address belongs to the physical page: [ 21.899045] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1023ac [ 21.899608] flags: 0x200000000000000(node=0|zone=2) [ 21.900424] page_type: f5(slab) [ 21.900672] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.900916] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.901401] page dumped because: kasan: bad access detected [ 21.901752] [ 21.901868] Memory state around the buggy address: [ 21.902143] ffff8881023ac300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.903458] ffff8881023ac380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.903690] >ffff8881023ac400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.904226] ^ [ 21.904456] ffff8881023ac480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.905150] ffff8881023ac500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.905367] ==================================================================