Date
June 26, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 14.781480] ================================================================== [ 14.782386] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 14.782986] Write of size 121 at addr ffff888102f60f00 by task kunit_try_catch/304 [ 14.783965] [ 14.784221] CPU: 1 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT(voluntary) [ 14.784321] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.784335] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.784362] Call Trace: [ 14.784379] <TASK> [ 14.784404] dump_stack_lvl+0x73/0xb0 [ 14.784437] print_report+0xd1/0x650 [ 14.784464] ? __virt_addr_valid+0x1db/0x2d0 [ 14.784490] ? _copy_from_user+0x32/0x90 [ 14.784511] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.784536] ? _copy_from_user+0x32/0x90 [ 14.784595] kasan_report+0x141/0x180 [ 14.784620] ? _copy_from_user+0x32/0x90 [ 14.784645] kasan_check_range+0x10c/0x1c0 [ 14.784677] __kasan_check_write+0x18/0x20 [ 14.784698] _copy_from_user+0x32/0x90 [ 14.784734] copy_user_test_oob+0x2be/0x10f0 [ 14.784759] ? __pfx_copy_user_test_oob+0x10/0x10 [ 14.784779] ? finish_task_switch.isra.0+0x153/0x700 [ 14.784806] ? __switch_to+0x5d9/0xf60 [ 14.784829] ? dequeue_task_fair+0x166/0x4e0 [ 14.784854] ? __schedule+0x10cc/0x2b60 [ 14.784879] ? __pfx_read_tsc+0x10/0x10 [ 14.784902] ? ktime_get_ts64+0x86/0x230 [ 14.784940] kunit_try_run_case+0x1a5/0x480 [ 14.784966] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.784989] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.785015] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.785039] ? __kthread_parkme+0x82/0x180 [ 14.785063] ? preempt_count_sub+0x50/0x80 [ 14.785090] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.785114] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.785138] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.785162] kthread+0x337/0x6f0 [ 14.785180] ? trace_preempt_on+0x20/0xc0 [ 14.785206] ? __pfx_kthread+0x10/0x10 [ 14.785225] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.785247] ? calculate_sigpending+0x7b/0xa0 [ 14.785271] ? __pfx_kthread+0x10/0x10 [ 14.785291] ret_from_fork+0x41/0x80 [ 14.785313] ? __pfx_kthread+0x10/0x10 [ 14.785333] ret_from_fork_asm+0x1a/0x30 [ 14.785365] </TASK> [ 14.785378] [ 14.796212] Allocated by task 304: [ 14.796441] kasan_save_stack+0x45/0x70 [ 14.796638] kasan_save_track+0x18/0x40 [ 14.796800] kasan_save_alloc_info+0x3b/0x50 [ 14.797137] __kasan_kmalloc+0xb7/0xc0 [ 14.797276] __kmalloc_noprof+0x1c9/0x500 [ 14.797418] kunit_kmalloc_array+0x25/0x60 [ 14.797586] copy_user_test_oob+0xab/0x10f0 [ 14.797746] kunit_try_run_case+0x1a5/0x480 [ 14.797950] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.798202] kthread+0x337/0x6f0 [ 14.798536] ret_from_fork+0x41/0x80 [ 14.799009] ret_from_fork_asm+0x1a/0x30 [ 14.799212] [ 14.799322] The buggy address belongs to the object at ffff888102f60f00 [ 14.799322] which belongs to the cache kmalloc-128 of size 128 [ 14.799982] The buggy address is located 0 bytes inside of [ 14.799982] allocated 120-byte region [ffff888102f60f00, ffff888102f60f78) [ 14.800484] [ 14.800615] The buggy address belongs to the physical page: [ 14.800910] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f60 [ 14.801162] flags: 0x200000000000000(node=0|zone=2) [ 14.801402] page_type: f5(slab) [ 14.801872] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.802229] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.802500] page dumped because: kasan: bad access detected [ 14.802698] [ 14.802810] Memory state around the buggy address: [ 14.803122] ffff888102f60e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.803602] ffff888102f60e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.804043] >ffff888102f60f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 14.804650] ^ [ 14.804867] ffff888102f60f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.805341] ffff888102f61000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.805800] ==================================================================