Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 26.688710] ================================================================== [ 26.689758] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 26.690423] Write of size 121 at addr ffff888102ed7700 by task kunit_try_catch/305 [ 26.691066] [ 26.691385] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 26.691554] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.691598] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.691662] Call Trace: [ 26.691729] <TASK> [ 26.691817] dump_stack_lvl+0x73/0xb0 [ 26.691932] print_report+0xd1/0x650 [ 26.692017] ? __virt_addr_valid+0x1db/0x2d0 [ 26.692119] ? _copy_from_user+0x32/0x90 [ 26.692224] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.692324] ? _copy_from_user+0x32/0x90 [ 26.692400] kasan_report+0x141/0x180 [ 26.692504] ? _copy_from_user+0x32/0x90 [ 26.692621] kasan_check_range+0x10c/0x1c0 [ 26.692694] __kasan_check_write+0x18/0x20 [ 26.692729] _copy_from_user+0x32/0x90 [ 26.692762] copy_user_test_oob+0x2be/0x10f0 [ 26.692808] ? __pfx_copy_user_test_oob+0x10/0x10 [ 26.692873] ? finish_task_switch.isra.0+0x153/0x700 [ 26.692954] ? __switch_to+0x5d9/0xf60 [ 26.693030] ? dequeue_task_fair+0x166/0x4e0 [ 26.693134] ? __schedule+0x10cc/0x2b60 [ 26.693251] ? __pfx_read_tsc+0x10/0x10 [ 26.693343] ? ktime_get_ts64+0x86/0x230 [ 26.693460] kunit_try_run_case+0x1a5/0x480 [ 26.693576] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.693651] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.693701] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.693740] ? __kthread_parkme+0x82/0x180 [ 26.693777] ? preempt_count_sub+0x50/0x80 [ 26.693816] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.693852] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.693891] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.693927] kthread+0x337/0x6f0 [ 26.693954] ? trace_preempt_on+0x20/0xc0 [ 26.693996] ? __pfx_kthread+0x10/0x10 [ 26.694025] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.694090] ? calculate_sigpending+0x7b/0xa0 [ 26.694129] ? __pfx_kthread+0x10/0x10 [ 26.694157] ret_from_fork+0x41/0x80 [ 26.694192] ? __pfx_kthread+0x10/0x10 [ 26.694222] ret_from_fork_asm+0x1a/0x30 [ 26.694268] </TASK> [ 26.694286] [ 26.712648] Allocated by task 305: [ 26.713319] kasan_save_stack+0x45/0x70 [ 26.713768] kasan_save_track+0x18/0x40 [ 26.714392] kasan_save_alloc_info+0x3b/0x50 [ 26.714881] __kasan_kmalloc+0xb7/0xc0 [ 26.715446] __kmalloc_noprof+0x1c9/0x500 [ 26.715898] kunit_kmalloc_array+0x25/0x60 [ 26.716504] copy_user_test_oob+0xab/0x10f0 [ 26.716938] kunit_try_run_case+0x1a5/0x480 [ 26.717448] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.718130] kthread+0x337/0x6f0 [ 26.718499] ret_from_fork+0x41/0x80 [ 26.719116] ret_from_fork_asm+0x1a/0x30 [ 26.719570] [ 26.719903] The buggy address belongs to the object at ffff888102ed7700 [ 26.719903] which belongs to the cache kmalloc-128 of size 128 [ 26.720962] The buggy address is located 0 bytes inside of [ 26.720962] allocated 120-byte region [ffff888102ed7700, ffff888102ed7778) [ 26.722021] [ 26.722447] The buggy address belongs to the physical page: [ 26.723008] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ed7 [ 26.723612] flags: 0x200000000000000(node=0|zone=2) [ 26.724089] page_type: f5(slab) [ 26.724589] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.725650] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.726392] page dumped because: kasan: bad access detected [ 26.726958] [ 26.727180] Memory state around the buggy address: [ 26.727784] ffff888102ed7600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.728701] ffff888102ed7680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.729897] >ffff888102ed7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.730785] ^ [ 26.731359] ffff888102ed7780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.732026] ffff888102ed7800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.732623] ==================================================================