Date
June 26, 2025, 11:12 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 14.809682] ================================================================== [ 14.810050] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x4a/0x70 [ 14.810399] Read of size 121 at addr ffff888102f60f00 by task kunit_try_catch/304 [ 14.810796] [ 14.810966] CPU: 1 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT(voluntary) [ 14.811051] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.811124] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.811150] Call Trace: [ 14.811178] <TASK> [ 14.811198] dump_stack_lvl+0x73/0xb0 [ 14.811227] print_report+0xd1/0x650 [ 14.811254] ? __virt_addr_valid+0x1db/0x2d0 [ 14.811277] ? _copy_to_user+0x4a/0x70 [ 14.811297] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.811321] ? _copy_to_user+0x4a/0x70 [ 14.811341] kasan_report+0x141/0x180 [ 14.811366] ? _copy_to_user+0x4a/0x70 [ 14.811391] kasan_check_range+0x10c/0x1c0 [ 14.811412] __kasan_check_read+0x15/0x20 [ 14.811433] _copy_to_user+0x4a/0x70 [ 14.811453] copy_user_test_oob+0x364/0x10f0 [ 14.811477] ? __pfx_copy_user_test_oob+0x10/0x10 [ 14.811497] ? finish_task_switch.isra.0+0x153/0x700 [ 14.811522] ? __switch_to+0x5d9/0xf60 [ 14.811544] ? dequeue_task_fair+0x166/0x4e0 [ 14.811592] ? __schedule+0x10cc/0x2b60 [ 14.811616] ? __pfx_read_tsc+0x10/0x10 [ 14.811638] ? ktime_get_ts64+0x86/0x230 [ 14.811665] kunit_try_run_case+0x1a5/0x480 [ 14.811690] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.811713] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.811739] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.811764] ? __kthread_parkme+0x82/0x180 [ 14.811787] ? preempt_count_sub+0x50/0x80 [ 14.811813] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.811837] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.811862] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.811886] kthread+0x337/0x6f0 [ 14.811903] ? trace_preempt_on+0x20/0xc0 [ 14.811937] ? __pfx_kthread+0x10/0x10 [ 14.811956] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.811978] ? calculate_sigpending+0x7b/0xa0 [ 14.812002] ? __pfx_kthread+0x10/0x10 [ 14.812021] ret_from_fork+0x41/0x80 [ 14.812043] ? __pfx_kthread+0x10/0x10 [ 14.812061] ret_from_fork_asm+0x1a/0x30 [ 14.812093] </TASK> [ 14.812105] [ 14.820896] Allocated by task 304: [ 14.821064] kasan_save_stack+0x45/0x70 [ 14.821217] kasan_save_track+0x18/0x40 [ 14.821380] kasan_save_alloc_info+0x3b/0x50 [ 14.821804] __kasan_kmalloc+0xb7/0xc0 [ 14.822009] __kmalloc_noprof+0x1c9/0x500 [ 14.822253] kunit_kmalloc_array+0x25/0x60 [ 14.822499] copy_user_test_oob+0xab/0x10f0 [ 14.822725] kunit_try_run_case+0x1a5/0x480 [ 14.822985] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.823243] kthread+0x337/0x6f0 [ 14.823371] ret_from_fork+0x41/0x80 [ 14.823612] ret_from_fork_asm+0x1a/0x30 [ 14.823848] [ 14.823931] The buggy address belongs to the object at ffff888102f60f00 [ 14.823931] which belongs to the cache kmalloc-128 of size 128 [ 14.824538] The buggy address is located 0 bytes inside of [ 14.824538] allocated 120-byte region [ffff888102f60f00, ffff888102f60f78) [ 14.825147] [ 14.825262] The buggy address belongs to the physical page: [ 14.825454] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f60 [ 14.825906] flags: 0x200000000000000(node=0|zone=2) [ 14.826175] page_type: f5(slab) [ 14.826358] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.826802] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.827163] page dumped because: kasan: bad access detected [ 14.827390] [ 14.827519] Memory state around the buggy address: [ 14.827783] ffff888102f60e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.828230] ffff888102f60e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.828543] >ffff888102f60f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 14.828795] ^ [ 14.829111] ffff888102f60f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.829427] ffff888102f61000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.829760] ==================================================================