Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 11.578251] ================================================================== [ 11.578744] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 11.579277] Write of size 128 at addr ffff88810258d000 by task kunit_try_catch/187 [ 11.579579] [ 11.579724] CPU: 0 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.579772] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.579784] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.579805] Call Trace: [ 11.579819] <TASK> [ 11.579838] dump_stack_lvl+0x73/0xb0 [ 11.579868] print_report+0xd1/0x650 [ 11.579892] ? __virt_addr_valid+0x1db/0x2d0 [ 11.579915] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.579936] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.579956] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.579978] kasan_report+0x141/0x180 [ 11.579999] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.580024] kasan_check_range+0x10c/0x1c0 [ 11.580047] __asan_memset+0x27/0x50 [ 11.580065] kmalloc_oob_in_memset+0x15f/0x320 [ 11.580086] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 11.580108] ? __schedule+0x10cc/0x2b60 [ 11.580130] ? __pfx_read_tsc+0x10/0x10 [ 11.580150] ? ktime_get_ts64+0x86/0x230 [ 11.580175] kunit_try_run_case+0x1a5/0x480 [ 11.580199] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.580220] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.580244] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.580265] ? __kthread_parkme+0x82/0x180 [ 11.580286] ? preempt_count_sub+0x50/0x80 [ 11.580310] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.580332] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.580353] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.580386] kthread+0x337/0x6f0 [ 11.580411] ? trace_preempt_on+0x20/0xc0 [ 11.580434] ? __pfx_kthread+0x10/0x10 [ 11.580453] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.580473] ? calculate_sigpending+0x7b/0xa0 [ 11.580496] ? __pfx_kthread+0x10/0x10 [ 11.580516] ret_from_fork+0x116/0x1d0 [ 11.580535] ? __pfx_kthread+0x10/0x10 [ 11.580554] ret_from_fork_asm+0x1a/0x30 [ 11.580585] </TASK> [ 11.580596] [ 11.588310] Allocated by task 187: [ 11.588525] kasan_save_stack+0x45/0x70 [ 11.588683] kasan_save_track+0x18/0x40 [ 11.588817] kasan_save_alloc_info+0x3b/0x50 [ 11.588965] __kasan_kmalloc+0xb7/0xc0 [ 11.589096] __kmalloc_cache_noprof+0x189/0x420 [ 11.589381] kmalloc_oob_in_memset+0xac/0x320 [ 11.589590] kunit_try_run_case+0x1a5/0x480 [ 11.589962] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.590225] kthread+0x337/0x6f0 [ 11.590348] ret_from_fork+0x116/0x1d0 [ 11.590488] ret_from_fork_asm+0x1a/0x30 [ 11.590814] [ 11.590914] The buggy address belongs to the object at ffff88810258d000 [ 11.590914] which belongs to the cache kmalloc-128 of size 128 [ 11.592034] The buggy address is located 0 bytes inside of [ 11.592034] allocated 120-byte region [ffff88810258d000, ffff88810258d078) [ 11.592465] [ 11.592540] The buggy address belongs to the physical page: [ 11.592717] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10258d [ 11.593405] flags: 0x200000000000000(node=0|zone=2) [ 11.593647] page_type: f5(slab) [ 11.593822] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.594109] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.594337] page dumped because: kasan: bad access detected [ 11.594520] [ 11.594669] Memory state around the buggy address: [ 11.594896] ffff88810258cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.595252] ffff88810258cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.595596] >ffff88810258d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.595894] ^ [ 11.596174] ffff88810258d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.596444] ffff88810258d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.597258] ==================================================================