Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 13.819284] ================================================================== [ 13.819718] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 13.820232] Write of size 4 at addr ffff888103391975 by task kunit_try_catch/194 [ 13.821065] [ 13.821232] CPU: 0 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 13.821338] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.821360] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.821395] Call Trace: [ 13.821419] <TASK> [ 13.821448] dump_stack_lvl+0x73/0xb0 [ 13.821506] print_report+0xd1/0x650 [ 13.821544] ? __virt_addr_valid+0x1db/0x2d0 [ 13.821596] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.821984] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.822064] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.822117] kasan_report+0x141/0x180 [ 13.822163] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.822214] kasan_check_range+0x10c/0x1c0 [ 13.822249] __asan_memset+0x27/0x50 [ 13.822288] kmalloc_oob_memset_4+0x166/0x330 [ 13.822331] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 13.822372] ? __schedule+0x10cc/0x2b30 [ 13.822406] ? __pfx_read_tsc+0x10/0x10 [ 13.822433] ? ktime_get_ts64+0x86/0x230 [ 13.822460] kunit_try_run_case+0x1a5/0x480 [ 13.822486] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.822507] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.822530] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.822552] ? __kthread_parkme+0x82/0x180 [ 13.822597] ? preempt_count_sub+0x50/0x80 [ 13.822737] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.822763] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.822786] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.822807] kthread+0x337/0x6f0 [ 13.822824] ? trace_preempt_on+0x20/0xc0 [ 13.822848] ? __pfx_kthread+0x10/0x10 [ 13.822866] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.822886] ? calculate_sigpending+0x7b/0xa0 [ 13.822908] ? __pfx_kthread+0x10/0x10 [ 13.822925] ret_from_fork+0x41/0x80 [ 13.822946] ? __pfx_kthread+0x10/0x10 [ 13.822964] ret_from_fork_asm+0x1a/0x30 [ 13.822992] </TASK> [ 13.823006] [ 13.834418] Allocated by task 194: [ 13.834783] kasan_save_stack+0x45/0x70 [ 13.835055] kasan_save_track+0x18/0x40 [ 13.836287] kasan_save_alloc_info+0x3b/0x50 [ 13.836514] __kasan_kmalloc+0xb7/0xc0 [ 13.836661] __kmalloc_cache_noprof+0x189/0x420 [ 13.837475] kmalloc_oob_memset_4+0xac/0x330 [ 13.837751] kunit_try_run_case+0x1a5/0x480 [ 13.838250] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.838530] kthread+0x337/0x6f0 [ 13.838684] ret_from_fork+0x41/0x80 [ 13.839364] ret_from_fork_asm+0x1a/0x30 [ 13.839619] [ 13.840013] The buggy address belongs to the object at ffff888103391900 [ 13.840013] which belongs to the cache kmalloc-128 of size 128 [ 13.841032] The buggy address is located 117 bytes inside of [ 13.841032] allocated 120-byte region [ffff888103391900, ffff888103391978) [ 13.841619] [ 13.842624] The buggy address belongs to the physical page: [ 13.842985] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103391 [ 13.843506] flags: 0x200000000000000(node=0|zone=2) [ 13.843978] page_type: f5(slab) [ 13.844450] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.845121] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.845466] page dumped because: kasan: bad access detected [ 13.845872] [ 13.845984] Memory state around the buggy address: [ 13.846344] ffff888103391800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.846650] ffff888103391880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.847594] >ffff888103391900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.848499] ^ [ 13.849174] ffff888103391980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.849786] ffff888103391a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.850273] ==================================================================