Date
July 13, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 16.570712] ================================================================== [ 16.572695] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 16.572956] Write of size 121 at addr ffff888103434a00 by task kunit_try_catch/303 [ 16.573190] [ 16.573293] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.573348] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.573362] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.573389] Call Trace: [ 16.573406] <TASK> [ 16.573430] dump_stack_lvl+0x73/0xb0 [ 16.573476] print_report+0xd1/0x610 [ 16.573504] ? __virt_addr_valid+0x1db/0x2d0 [ 16.573533] ? _copy_from_user+0x32/0x90 [ 16.573553] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.573579] ? _copy_from_user+0x32/0x90 [ 16.573600] kasan_report+0x141/0x180 [ 16.573623] ? _copy_from_user+0x32/0x90 [ 16.573649] kasan_check_range+0x10c/0x1c0 [ 16.573674] __kasan_check_write+0x18/0x20 [ 16.573695] _copy_from_user+0x32/0x90 [ 16.573718] copy_user_test_oob+0x2be/0x10f0 [ 16.573767] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.573793] ? finish_task_switch.isra.0+0x153/0x700 [ 16.573819] ? __switch_to+0x47/0xf50 [ 16.573847] ? __schedule+0x10cc/0x2b60 [ 16.573873] ? __pfx_read_tsc+0x10/0x10 [ 16.573896] ? ktime_get_ts64+0x86/0x230 [ 16.573924] kunit_try_run_case+0x1a5/0x480 [ 16.573949] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.573974] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.574000] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.574026] ? __kthread_parkme+0x82/0x180 [ 16.574049] ? preempt_count_sub+0x50/0x80 [ 16.574074] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.574100] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.574127] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.574155] kthread+0x337/0x6f0 [ 16.574175] ? trace_preempt_on+0x20/0xc0 [ 16.574201] ? __pfx_kthread+0x10/0x10 [ 16.574223] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.574246] ? calculate_sigpending+0x7b/0xa0 [ 16.574273] ? __pfx_kthread+0x10/0x10 [ 16.574296] ret_from_fork+0x116/0x1d0 [ 16.574317] ? __pfx_kthread+0x10/0x10 [ 16.574339] ret_from_fork_asm+0x1a/0x30 [ 16.574371] </TASK> [ 16.574384] [ 16.587080] Allocated by task 303: [ 16.587516] kasan_save_stack+0x45/0x70 [ 16.587932] kasan_save_track+0x18/0x40 [ 16.588324] kasan_save_alloc_info+0x3b/0x50 [ 16.588769] __kasan_kmalloc+0xb7/0xc0 [ 16.589148] __kmalloc_noprof+0x1c9/0x500 [ 16.589590] kunit_kmalloc_array+0x25/0x60 [ 16.589993] copy_user_test_oob+0xab/0x10f0 [ 16.590414] kunit_try_run_case+0x1a5/0x480 [ 16.590839] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.591340] kthread+0x337/0x6f0 [ 16.591621] ret_from_fork+0x116/0x1d0 [ 16.591761] ret_from_fork_asm+0x1a/0x30 [ 16.591906] [ 16.591984] The buggy address belongs to the object at ffff888103434a00 [ 16.591984] which belongs to the cache kmalloc-128 of size 128 [ 16.592357] The buggy address is located 0 bytes inside of [ 16.592357] allocated 120-byte region [ffff888103434a00, ffff888103434a78) [ 16.593619] [ 16.593846] The buggy address belongs to the physical page: [ 16.594378] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103434 [ 16.595113] flags: 0x200000000000000(node=0|zone=2) [ 16.595651] page_type: f5(slab) [ 16.596001] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.596769] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.597494] page dumped because: kasan: bad access detected [ 16.597850] [ 16.597925] Memory state around the buggy address: [ 16.598088] ffff888103434900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.598306] ffff888103434980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.598560] >ffff888103434a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.599081] ^ [ 16.599394] ffff888103434a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.599745] ffff888103434b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.600022] ==================================================================
[ 16.948717] ================================================================== [ 16.949538] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 16.949990] Write of size 121 at addr ffff8881025b8100 by task kunit_try_catch/304 [ 16.950706] [ 16.950835] CPU: 0 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.950886] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.950900] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.950926] Call Trace: [ 16.950940] <TASK> [ 16.950960] dump_stack_lvl+0x73/0xb0 [ 16.951156] print_report+0xd1/0x610 [ 16.951184] ? __virt_addr_valid+0x1db/0x2d0 [ 16.951212] ? _copy_from_user+0x32/0x90 [ 16.951233] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.951259] ? _copy_from_user+0x32/0x90 [ 16.951281] kasan_report+0x141/0x180 [ 16.951304] ? _copy_from_user+0x32/0x90 [ 16.951330] kasan_check_range+0x10c/0x1c0 [ 16.951355] __kasan_check_write+0x18/0x20 [ 16.951377] _copy_from_user+0x32/0x90 [ 16.951400] copy_user_test_oob+0x2be/0x10f0 [ 16.951429] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.951455] ? finish_task_switch.isra.0+0x153/0x700 [ 16.951481] ? __switch_to+0x47/0xf50 [ 16.951509] ? __schedule+0x10cc/0x2b60 [ 16.951533] ? __pfx_read_tsc+0x10/0x10 [ 16.951557] ? ktime_get_ts64+0x86/0x230 [ 16.951585] kunit_try_run_case+0x1a5/0x480 [ 16.951611] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.951636] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.951662] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.951688] ? __kthread_parkme+0x82/0x180 [ 16.951711] ? preempt_count_sub+0x50/0x80 [ 16.951736] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.951763] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.951790] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.951818] kthread+0x337/0x6f0 [ 16.951838] ? trace_preempt_on+0x20/0xc0 [ 16.951865] ? __pfx_kthread+0x10/0x10 [ 16.951888] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.951911] ? calculate_sigpending+0x7b/0xa0 [ 16.951938] ? __pfx_kthread+0x10/0x10 [ 16.951961] ret_from_fork+0x116/0x1d0 [ 16.951982] ? __pfx_kthread+0x10/0x10 [ 16.952005] ret_from_fork_asm+0x1a/0x30 [ 16.952038] </TASK> [ 16.952064] [ 16.960704] Allocated by task 304: [ 16.960931] kasan_save_stack+0x45/0x70 [ 16.961141] kasan_save_track+0x18/0x40 [ 16.961388] kasan_save_alloc_info+0x3b/0x50 [ 16.961681] __kasan_kmalloc+0xb7/0xc0 [ 16.961871] __kmalloc_noprof+0x1c9/0x500 [ 16.962059] kunit_kmalloc_array+0x25/0x60 [ 16.962207] copy_user_test_oob+0xab/0x10f0 [ 16.962477] kunit_try_run_case+0x1a5/0x480 [ 16.962689] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.963044] kthread+0x337/0x6f0 [ 16.963283] ret_from_fork+0x116/0x1d0 [ 16.963496] ret_from_fork_asm+0x1a/0x30 [ 16.963642] [ 16.963715] The buggy address belongs to the object at ffff8881025b8100 [ 16.963715] which belongs to the cache kmalloc-128 of size 128 [ 16.964467] The buggy address is located 0 bytes inside of [ 16.964467] allocated 120-byte region [ffff8881025b8100, ffff8881025b8178) [ 16.964997] [ 16.965133] The buggy address belongs to the physical page: [ 16.965412] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025b8 [ 16.965799] flags: 0x200000000000000(node=0|zone=2) [ 16.966082] page_type: f5(slab) [ 16.966279] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.966651] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.967013] page dumped because: kasan: bad access detected [ 16.967347] [ 16.967458] Memory state around the buggy address: [ 16.967710] ffff8881025b8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.968070] ffff8881025b8080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.968420] >ffff8881025b8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.968871] ^ [ 16.969246] ffff8881025b8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.969589] ffff8881025b8200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.969911] ==================================================================