Date
July 2, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 27.162400] ================================================================== [ 27.163079] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 27.163516] Write of size 121 at addr ffff88810255ef00 by task kunit_try_catch/334 [ 27.163866] [ 27.164025] CPU: 0 UID: 0 PID: 334 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 27.164100] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.164117] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.164146] Call Trace: [ 27.164163] <TASK> [ 27.164190] dump_stack_lvl+0x73/0xb0 [ 27.164228] print_report+0xd1/0x650 [ 27.164257] ? __virt_addr_valid+0x1db/0x2d0 [ 27.164287] ? _copy_from_user+0x32/0x90 [ 27.164310] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.164340] ? _copy_from_user+0x32/0x90 [ 27.164364] kasan_report+0x141/0x180 [ 27.164388] ? _copy_from_user+0x32/0x90 [ 27.164417] kasan_check_range+0x10c/0x1c0 [ 27.164443] __kasan_check_write+0x18/0x20 [ 27.164469] _copy_from_user+0x32/0x90 [ 27.164494] copy_user_test_oob+0x2be/0x10f0 [ 27.164523] ? __pfx_copy_user_test_oob+0x10/0x10 [ 27.164549] ? finish_task_switch.isra.0+0x153/0x700 [ 27.164576] ? __switch_to+0x47/0xf50 [ 27.164607] ? __schedule+0x10cc/0x2b60 [ 27.164631] ? __pfx_read_tsc+0x10/0x10 [ 27.164657] ? ktime_get_ts64+0x86/0x230 [ 27.164687] kunit_try_run_case+0x1a5/0x480 [ 27.164716] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.164742] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.164768] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.164793] ? __kthread_parkme+0x82/0x180 [ 27.164817] ? preempt_count_sub+0x50/0x80 [ 27.164843] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.164872] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.164900] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.164954] kthread+0x337/0x6f0 [ 27.164979] ? trace_preempt_on+0x20/0xc0 [ 27.165007] ? __pfx_kthread+0x10/0x10 [ 27.165032] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.165069] ? calculate_sigpending+0x7b/0xa0 [ 27.165097] ? __pfx_kthread+0x10/0x10 [ 27.165122] ret_from_fork+0x116/0x1d0 [ 27.165145] ? __pfx_kthread+0x10/0x10 [ 27.165170] ret_from_fork_asm+0x1a/0x30 [ 27.165205] </TASK> [ 27.165221] [ 27.172491] Allocated by task 334: [ 27.172699] kasan_save_stack+0x45/0x70 [ 27.172937] kasan_save_track+0x18/0x40 [ 27.173155] kasan_save_alloc_info+0x3b/0x50 [ 27.173378] __kasan_kmalloc+0xb7/0xc0 [ 27.173517] __kmalloc_noprof+0x1c9/0x500 [ 27.173667] kunit_kmalloc_array+0x25/0x60 [ 27.173886] copy_user_test_oob+0xab/0x10f0 [ 27.174130] kunit_try_run_case+0x1a5/0x480 [ 27.174322] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.174507] kthread+0x337/0x6f0 [ 27.174633] ret_from_fork+0x116/0x1d0 [ 27.174819] ret_from_fork_asm+0x1a/0x30 [ 27.175056] [ 27.175165] The buggy address belongs to the object at ffff88810255ef00 [ 27.175165] which belongs to the cache kmalloc-128 of size 128 [ 27.175747] The buggy address is located 0 bytes inside of [ 27.175747] allocated 120-byte region [ffff88810255ef00, ffff88810255ef78) [ 27.176293] [ 27.176395] The buggy address belongs to the physical page: [ 27.176584] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10255e [ 27.176970] flags: 0x200000000000000(node=0|zone=2) [ 27.177215] page_type: f5(slab) [ 27.177357] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 27.177600] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 27.177846] page dumped because: kasan: bad access detected [ 27.178080] [ 27.178177] Memory state around the buggy address: [ 27.178413] ffff88810255ee00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.178746] ffff88810255ee80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.179108] >ffff88810255ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 27.179426] ^ [ 27.179686] ffff88810255ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.179909] ffff88810255f000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.180161] ==================================================================
[ 26.937393] ================================================================== [ 26.938333] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 26.938634] Write of size 121 at addr ffff888105898a00 by task kunit_try_catch/333 [ 26.939195] [ 26.939471] CPU: 0 UID: 0 PID: 333 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 26.939839] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.939856] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.939885] Call Trace: [ 26.939901] <TASK> [ 26.939927] dump_stack_lvl+0x73/0xb0 [ 26.939967] print_report+0xd1/0x650 [ 26.939993] ? __virt_addr_valid+0x1db/0x2d0 [ 26.940021] ? _copy_from_user+0x32/0x90 [ 26.940044] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.940071] ? _copy_from_user+0x32/0x90 [ 26.940093] kasan_report+0x141/0x180 [ 26.940115] ? _copy_from_user+0x32/0x90 [ 26.940142] kasan_check_range+0x10c/0x1c0 [ 26.940166] __kasan_check_write+0x18/0x20 [ 26.940190] _copy_from_user+0x32/0x90 [ 26.940213] copy_user_test_oob+0x2be/0x10f0 [ 26.940240] ? __pfx_copy_user_test_oob+0x10/0x10 [ 26.940263] ? finish_task_switch.isra.0+0x153/0x700 [ 26.940288] ? __switch_to+0x47/0xf50 [ 26.940330] ? __schedule+0x10cc/0x2b60 [ 26.940366] ? __pfx_read_tsc+0x10/0x10 [ 26.940389] ? ktime_get_ts64+0x86/0x230 [ 26.940418] kunit_try_run_case+0x1a5/0x480 [ 26.940456] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.940480] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.940520] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.940543] ? __kthread_parkme+0x82/0x180 [ 26.940565] ? preempt_count_sub+0x50/0x80 [ 26.940589] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.940615] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.940640] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.940667] kthread+0x337/0x6f0 [ 26.940689] ? trace_preempt_on+0x20/0xc0 [ 26.940715] ? __pfx_kthread+0x10/0x10 [ 26.940737] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.940762] ? calculate_sigpending+0x7b/0xa0 [ 26.940788] ? __pfx_kthread+0x10/0x10 [ 26.940811] ret_from_fork+0x116/0x1d0 [ 26.940832] ? __pfx_kthread+0x10/0x10 [ 26.940854] ret_from_fork_asm+0x1a/0x30 [ 26.940888] </TASK> [ 26.940903] [ 26.952153] Allocated by task 333: [ 26.952609] kasan_save_stack+0x45/0x70 [ 26.952925] kasan_save_track+0x18/0x40 [ 26.953085] kasan_save_alloc_info+0x3b/0x50 [ 26.953434] __kasan_kmalloc+0xb7/0xc0 [ 26.953714] __kmalloc_noprof+0x1c9/0x500 [ 26.954006] kunit_kmalloc_array+0x25/0x60 [ 26.954192] copy_user_test_oob+0xab/0x10f0 [ 26.954407] kunit_try_run_case+0x1a5/0x480 [ 26.954765] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.955102] kthread+0x337/0x6f0 [ 26.955232] ret_from_fork+0x116/0x1d0 [ 26.955420] ret_from_fork_asm+0x1a/0x30 [ 26.955850] [ 26.955959] The buggy address belongs to the object at ffff888105898a00 [ 26.955959] which belongs to the cache kmalloc-128 of size 128 [ 26.956760] The buggy address is located 0 bytes inside of [ 26.956760] allocated 120-byte region [ffff888105898a00, ffff888105898a78) [ 26.957225] [ 26.957314] The buggy address belongs to the physical page: [ 26.957502] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105898 [ 26.958426] flags: 0x200000000000000(node=0|zone=2) [ 26.958992] page_type: f5(slab) [ 26.959391] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.960233] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.961077] page dumped because: kasan: bad access detected [ 26.961717] [ 26.961804] Memory state around the buggy address: [ 26.961956] ffff888105898900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.962162] ffff888105898980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.962396] >ffff888105898a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.962699] ^ [ 26.963018] ffff888105898a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.963296] ffff888105898b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.963618] ==================================================================