Date
June 25, 2025, 8:08 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 25.719221] ================================================================== [ 25.719783] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 25.720093] Write of size 121 at addr ffff888102597c00 by task kunit_try_catch/314 [ 25.720834] [ 25.720979] CPU: 0 UID: 0 PID: 314 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) [ 25.721038] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.721053] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.721080] Call Trace: [ 25.721096] <TASK> [ 25.721121] dump_stack_lvl+0x73/0xb0 [ 25.721155] print_report+0xd1/0x650 [ 25.721183] ? __virt_addr_valid+0x1db/0x2d0 [ 25.721210] ? _copy_from_user+0x32/0x90 [ 25.721233] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.721259] ? _copy_from_user+0x32/0x90 [ 25.721279] kasan_report+0x141/0x180 [ 25.721301] ? _copy_from_user+0x32/0x90 [ 25.721326] kasan_check_range+0x10c/0x1c0 [ 25.721349] __kasan_check_write+0x18/0x20 [ 25.721372] _copy_from_user+0x32/0x90 [ 25.721393] copy_user_test_oob+0x2be/0x10f0 [ 25.721419] ? __pfx_copy_user_test_oob+0x10/0x10 [ 25.721442] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 25.721471] ? __pfx_copy_user_test_oob+0x10/0x10 [ 25.721497] kunit_try_run_case+0x1a5/0x480 [ 25.721522] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.721546] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.721568] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.721594] ? __kthread_parkme+0x82/0x180 [ 25.721617] ? preempt_count_sub+0x50/0x80 [ 25.721641] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.721666] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.721690] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.721715] kthread+0x337/0x6f0 [ 25.721735] ? trace_preempt_on+0x20/0xc0 [ 25.721761] ? __pfx_kthread+0x10/0x10 [ 25.721782] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.721806] ? calculate_sigpending+0x7b/0xa0 [ 25.721831] ? __pfx_kthread+0x10/0x10 [ 25.721853] ret_from_fork+0x116/0x1d0 [ 25.721873] ? __pfx_kthread+0x10/0x10 [ 25.721894] ret_from_fork_asm+0x1a/0x30 [ 25.721925] </TASK> [ 25.721949] [ 25.730523] Allocated by task 314: [ 25.730743] kasan_save_stack+0x45/0x70 [ 25.730963] kasan_save_track+0x18/0x40 [ 25.731119] kasan_save_alloc_info+0x3b/0x50 [ 25.731285] __kasan_kmalloc+0xb7/0xc0 [ 25.731467] __kmalloc_noprof+0x1c9/0x500 [ 25.731660] kunit_kmalloc_array+0x25/0x60 [ 25.731852] copy_user_test_oob+0xab/0x10f0 [ 25.732052] kunit_try_run_case+0x1a5/0x480 [ 25.732253] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.732533] kthread+0x337/0x6f0 [ 25.732651] ret_from_fork+0x116/0x1d0 [ 25.732777] ret_from_fork_asm+0x1a/0x30 [ 25.732910] [ 25.733008] The buggy address belongs to the object at ffff888102597c00 [ 25.733008] which belongs to the cache kmalloc-128 of size 128 [ 25.733870] The buggy address is located 0 bytes inside of [ 25.733870] allocated 120-byte region [ffff888102597c00, ffff888102597c78) [ 25.734887] [ 25.735057] The buggy address belongs to the physical page: [ 25.735707] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102597 [ 25.736439] flags: 0x200000000000000(node=0|zone=2) [ 25.736905] page_type: f5(slab) [ 25.737257] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.737924] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.738536] page dumped because: kasan: bad access detected [ 25.738706] [ 25.738769] Memory state around the buggy address: [ 25.738926] ffff888102597b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.739171] ffff888102597b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.739584] >ffff888102597c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.739877] ^ [ 25.740194] ffff888102597c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.741088] ffff888102597d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.741385] ==================================================================