Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 12.625627] ================================================================== [ 12.626070] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.626658] Write of size 128 at addr ffff8881026f5100 by task kunit_try_catch/189 [ 12.626984] [ 12.627162] CPU: 0 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 12.627211] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.627224] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.627246] Call Trace: [ 12.627257] <TASK> [ 12.627273] dump_stack_lvl+0x73/0xb0 [ 12.627315] print_report+0xd1/0x650 [ 12.627336] ? __virt_addr_valid+0x1db/0x2d0 [ 12.627358] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.627379] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.627401] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.627423] kasan_report+0x141/0x180 [ 12.627445] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.627471] kasan_check_range+0x10c/0x1c0 [ 12.627491] __asan_memset+0x27/0x50 [ 12.627510] kmalloc_oob_in_memset+0x15f/0x320 [ 12.627532] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.627555] ? __schedule+0x10cc/0x2b30 [ 12.627578] ? __pfx_read_tsc+0x10/0x10 [ 12.627598] ? ktime_get_ts64+0x86/0x230 [ 12.627622] kunit_try_run_case+0x1a5/0x480 [ 12.627646] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.627667] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.627690] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.627712] ? __kthread_parkme+0x82/0x180 [ 12.627733] ? preempt_count_sub+0x50/0x80 [ 12.627758] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.627781] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.627802] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.627824] kthread+0x337/0x6f0 [ 12.627840] ? trace_preempt_on+0x20/0xc0 [ 12.627863] ? __pfx_kthread+0x10/0x10 [ 12.627881] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.627918] ? calculate_sigpending+0x7b/0xa0 [ 12.627939] ? __pfx_kthread+0x10/0x10 [ 12.627957] ret_from_fork+0x41/0x80 [ 12.627977] ? __pfx_kthread+0x10/0x10 [ 12.627994] ret_from_fork_asm+0x1a/0x30 [ 12.628025] </TASK> [ 12.628036] [ 12.635823] Allocated by task 189: [ 12.636037] kasan_save_stack+0x45/0x70 [ 12.636229] kasan_save_track+0x18/0x40 [ 12.636381] kasan_save_alloc_info+0x3b/0x50 [ 12.636594] __kasan_kmalloc+0xb7/0xc0 [ 12.636797] __kmalloc_cache_noprof+0x189/0x420 [ 12.637077] kmalloc_oob_in_memset+0xac/0x320 [ 12.637268] kunit_try_run_case+0x1a5/0x480 [ 12.637477] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.637737] kthread+0x337/0x6f0 [ 12.637891] ret_from_fork+0x41/0x80 [ 12.638097] ret_from_fork_asm+0x1a/0x30 [ 12.638302] [ 12.638391] The buggy address belongs to the object at ffff8881026f5100 [ 12.638391] which belongs to the cache kmalloc-128 of size 128 [ 12.638881] The buggy address is located 0 bytes inside of [ 12.638881] allocated 120-byte region [ffff8881026f5100, ffff8881026f5178) [ 12.639486] [ 12.639576] The buggy address belongs to the physical page: [ 12.639804] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026f5 [ 12.640180] flags: 0x200000000000000(node=0|zone=2) [ 12.640355] page_type: f5(slab) [ 12.640478] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.640706] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.641100] page dumped because: kasan: bad access detected [ 12.641383] [ 12.641541] Memory state around the buggy address: [ 12.641770] ffff8881026f5000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.642338] ffff8881026f5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.642631] >ffff8881026f5100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.642851] ^ [ 12.643064] ffff8881026f5180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.643277] ffff8881026f5200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.643710] ==================================================================