Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 23.683158] ================================================================== [ 23.684097] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 23.684685] Write of size 121 at addr ffff888102c74500 by task kunit_try_catch/293 [ 23.685158] [ 23.686098] CPU: 0 UID: 0 PID: 293 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 23.686214] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.686248] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.686300] Call Trace: [ 23.686343] <TASK> [ 23.686392] dump_stack_lvl+0x73/0xb0 [ 23.686486] print_report+0xd1/0x650 [ 23.686546] ? __virt_addr_valid+0x1db/0x2d0 [ 23.686611] ? _copy_from_user+0x32/0x90 [ 23.686663] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.686703] ? _copy_from_user+0x32/0x90 [ 23.686733] kasan_report+0x140/0x180 [ 23.686764] ? _copy_from_user+0x32/0x90 [ 23.686796] kasan_check_range+0x10c/0x1c0 [ 23.686829] __kasan_check_write+0x18/0x20 [ 23.686883] _copy_from_user+0x32/0x90 [ 23.686913] copy_user_test_oob+0x2bf/0x10f0 [ 23.686949] ? __pfx_copy_user_test_oob+0x10/0x10 [ 23.686979] ? finish_task_switch.isra.0+0x153/0x700 [ 23.687013] ? __switch_to+0x5d9/0xf60 [ 23.687050] ? __schedule+0xce8/0x2840 [ 23.687083] ? __pfx_read_tsc+0x10/0x10 [ 23.687113] ? ktime_get_ts64+0x86/0x230 [ 23.687160] kunit_try_run_case+0x1a6/0x480 [ 23.687197] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.687226] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.687258] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.687297] ? __kthread_parkme+0x82/0x160 [ 23.687341] ? preempt_count_sub+0x50/0x80 [ 23.687375] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.687406] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.687442] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.687476] kthread+0x324/0x6e0 [ 23.687504] ? trace_preempt_on+0x20/0xc0 [ 23.687537] ? __pfx_kthread+0x10/0x10 [ 23.687567] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.687597] ? calculate_sigpending+0x7b/0xa0 [ 23.687627] ? __pfx_kthread+0x10/0x10 [ 23.687657] ret_from_fork+0x41/0x80 [ 23.687697] ? __pfx_kthread+0x10/0x10 [ 23.687729] ret_from_fork_asm+0x1a/0x30 [ 23.687774] </TASK> [ 23.687791] [ 23.705287] Allocated by task 293: [ 23.706111] kasan_save_stack+0x45/0x70 [ 23.706537] kasan_save_track+0x18/0x40 [ 23.706934] kasan_save_alloc_info+0x3b/0x50 [ 23.707230] __kasan_kmalloc+0xb7/0xc0 [ 23.707787] __kmalloc_noprof+0x1ca/0x500 [ 23.708203] kunit_kmalloc_array+0x25/0x60 [ 23.708766] copy_user_test_oob+0xac/0x10f0 [ 23.709053] kunit_try_run_case+0x1a6/0x480 [ 23.709430] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.709876] kthread+0x324/0x6e0 [ 23.710280] ret_from_fork+0x41/0x80 [ 23.710590] ret_from_fork_asm+0x1a/0x30 [ 23.711028] [ 23.711357] The buggy address belongs to the object at ffff888102c74500 [ 23.711357] which belongs to the cache kmalloc-128 of size 128 [ 23.712541] The buggy address is located 0 bytes inside of [ 23.712541] allocated 120-byte region [ffff888102c74500, ffff888102c74578) [ 23.713699] [ 23.714128] The buggy address belongs to the physical page: [ 23.714714] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c74 [ 23.715575] flags: 0x200000000000000(node=0|zone=2) [ 23.715988] page_type: f5(slab) [ 23.716340] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.716947] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.717321] page dumped because: kasan: bad access detected [ 23.718473] [ 23.718622] Memory state around the buggy address: [ 23.719376] ffff888102c74400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.719826] ffff888102c74480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.720614] >ffff888102c74500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.721238] ^ [ 23.721966] ffff888102c74580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.722620] ffff888102c74600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.723221] ==================================================================