Date
April 20, 2025, 11:09 p.m.
Environment | |
---|---|
x86 |
[ 76.721839] ================================================================== [ 76.729064] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x4a/0x70 [ 76.735518] Read of size 121 at addr ffff888104ee9700 by task kunit_try_catch/328 [ 76.742997] [ 76.744499] CPU: 0 UID: 0 PID: 328 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 76.744508] Tainted: [B]=BAD_PAGE, [N]=TEST [ 76.744510] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021 [ 76.744514] Call Trace: [ 76.744516] <TASK> [ 76.744517] dump_stack_lvl+0x73/0xb0 [ 76.744521] print_report+0xd1/0x650 [ 76.744526] ? __virt_addr_valid+0x1db/0x2d0 [ 76.744530] ? _copy_to_user+0x4a/0x70 [ 76.744534] ? kasan_complete_mode_report_info+0x2a/0x200 [ 76.744539] ? _copy_to_user+0x4a/0x70 [ 76.744544] kasan_report+0x141/0x180 [ 76.744548] ? _copy_to_user+0x4a/0x70 [ 76.744554] kasan_check_range+0x10c/0x1c0 [ 76.744558] __kasan_check_read+0x15/0x20 [ 76.744562] _copy_to_user+0x4a/0x70 [ 76.744567] copy_user_test_oob+0x364/0x10f0 [ 76.744571] ? __pfx_copy_user_test_oob+0x10/0x10 [ 76.744575] ? finish_task_switch.isra.0+0x153/0x700 [ 76.744579] ? __switch_to+0x5d9/0xf60 [ 76.744583] ? dequeue_task_fair+0x166/0x4e0 [ 76.744588] ? __schedule+0x10cc/0x2b30 [ 76.744593] ? ktime_get_ts64+0x83/0x230 [ 76.744598] kunit_try_run_case+0x1a2/0x480 [ 76.744602] ? __pfx_kunit_try_run_case+0x10/0x10 [ 76.744607] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 76.744611] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 76.744616] ? __kthread_parkme+0x82/0x180 [ 76.744620] ? preempt_count_sub+0x50/0x80 [ 76.744625] ? __pfx_kunit_try_run_case+0x10/0x10 [ 76.744630] kunit_generic_run_threadfn_adapter+0x82/0xf0 [ 76.744634] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 76.744639] kthread+0x334/0x6f0 [ 76.744643] ? trace_preempt_on+0x20/0xc0 [ 76.744647] ? __pfx_kthread+0x10/0x10 [ 76.744652] ? _raw_spin_unlock_irq+0x47/0x80 [ 76.744656] ? calculate_sigpending+0x7b/0xa0 [ 76.744660] ? __pfx_kthread+0x10/0x10 [ 76.744665] ret_from_fork+0x3e/0x80 [ 76.744669] ? __pfx_kthread+0x10/0x10 [ 76.744691] ret_from_fork_asm+0x1a/0x30 [ 76.744697] </TASK> [ 76.744698] [ 76.926089] Allocated by task 328: [ 76.929495] kasan_save_stack+0x45/0x70 [ 76.933336] kasan_save_track+0x18/0x40 [ 76.937183] kasan_save_alloc_info+0x3b/0x50 [ 76.941455] __kasan_kmalloc+0xb7/0xc0 [ 76.945210] __kmalloc_noprof+0x1c9/0x500 [ 76.949228] kunit_kmalloc_array+0x25/0x60 [ 76.953328] copy_user_test_oob+0xab/0x10f0 [ 76.957516] kunit_try_run_case+0x1a2/0x480 [ 76.961710] kunit_generic_run_threadfn_adapter+0x82/0xf0 [ 76.967132] kthread+0x334/0x6f0 [ 76.970365] ret_from_fork+0x3e/0x80 [ 76.973945] ret_from_fork_asm+0x1a/0x30 [ 76.977870] [ 76.979370] The buggy address belongs to the object at ffff888104ee9700 [ 76.979370] which belongs to the cache kmalloc-128 of size 128 [ 76.991884] The buggy address is located 0 bytes inside of [ 76.991884] allocated 120-byte region [ffff888104ee9700, ffff888104ee9778) [ 77.004311] [ 77.005812] The buggy address belongs to the physical page: [ 77.011385] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104ee9 [ 77.019391] flags: 0x200000000000000(node=0|zone=2) [ 77.024269] page_type: f5(slab) [ 77.027418] raw: 0200000000000000 ffff888100042a00 dead000000000122 0000000000000000 [ 77.035164] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 77.042902] page dumped because: kasan: bad access detected [ 77.048475] [ 77.049974] Memory state around the buggy address: [ 77.054768] ffff888104ee9600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 77.061987] ffff888104ee9680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.069214] >ffff888104ee9700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 77.076433] ^ [ 77.083566] ffff888104ee9780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.090783] ffff888104ee9800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 77.098002] ==================================================================