Date
July 13, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-x86_64 |
[ 16.604155] ================================================================== [ 16.604577] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x3c/0x70 [ 16.604904] Read of size 121 at addr ffff888103434a00 by task kunit_try_catch/303 [ 16.605221] [ 16.605333] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.605382] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.605396] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.605420] Call Trace: [ 16.605441] <TASK> [ 16.605474] dump_stack_lvl+0x73/0xb0 [ 16.605508] print_report+0xd1/0x610 [ 16.605534] ? __virt_addr_valid+0x1db/0x2d0 [ 16.605559] ? _copy_to_user+0x3c/0x70 [ 16.605580] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.605606] ? _copy_to_user+0x3c/0x70 [ 16.605627] kasan_report+0x141/0x180 [ 16.605651] ? _copy_to_user+0x3c/0x70 [ 16.605676] kasan_check_range+0x10c/0x1c0 [ 16.605702] __kasan_check_read+0x15/0x20 [ 16.605724] _copy_to_user+0x3c/0x70 [ 16.605745] copy_user_test_oob+0x364/0x10f0 [ 16.605774] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.605799] ? finish_task_switch.isra.0+0x153/0x700 [ 16.605824] ? __switch_to+0x47/0xf50 [ 16.605852] ? __schedule+0x10cc/0x2b60 [ 16.605877] ? __pfx_read_tsc+0x10/0x10 [ 16.605900] ? ktime_get_ts64+0x86/0x230 [ 16.605926] kunit_try_run_case+0x1a5/0x480 [ 16.605951] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.605976] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.606001] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.606028] ? __kthread_parkme+0x82/0x180 [ 16.606051] ? preempt_count_sub+0x50/0x80 [ 16.606076] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.606102] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.606129] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.606156] kthread+0x337/0x6f0 [ 16.606176] ? trace_preempt_on+0x20/0xc0 [ 16.606202] ? __pfx_kthread+0x10/0x10 [ 16.606224] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.606248] ? calculate_sigpending+0x7b/0xa0 [ 16.606275] ? __pfx_kthread+0x10/0x10 [ 16.606297] ret_from_fork+0x116/0x1d0 [ 16.606317] ? __pfx_kthread+0x10/0x10 [ 16.606339] ret_from_fork_asm+0x1a/0x30 [ 16.606372] </TASK> [ 16.606384] [ 16.615031] Allocated by task 303: [ 16.615209] kasan_save_stack+0x45/0x70 [ 16.615736] kasan_save_track+0x18/0x40 [ 16.615965] kasan_save_alloc_info+0x3b/0x50 [ 16.616118] __kasan_kmalloc+0xb7/0xc0 [ 16.616291] __kmalloc_noprof+0x1c9/0x500 [ 16.616782] kunit_kmalloc_array+0x25/0x60 [ 16.616995] copy_user_test_oob+0xab/0x10f0 [ 16.617188] kunit_try_run_case+0x1a5/0x480 [ 16.617381] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.617912] kthread+0x337/0x6f0 [ 16.618248] ret_from_fork+0x116/0x1d0 [ 16.618652] ret_from_fork_asm+0x1a/0x30 [ 16.618925] [ 16.619004] The buggy address belongs to the object at ffff888103434a00 [ 16.619004] which belongs to the cache kmalloc-128 of size 128 [ 16.619370] The buggy address is located 0 bytes inside of [ 16.619370] allocated 120-byte region [ffff888103434a00, ffff888103434a78) [ 16.620498] [ 16.620670] The buggy address belongs to the physical page: [ 16.621164] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103434 [ 16.621836] flags: 0x200000000000000(node=0|zone=2) [ 16.622007] page_type: f5(slab) [ 16.622133] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.622365] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.623097] page dumped because: kasan: bad access detected [ 16.623633] [ 16.623791] Memory state around the buggy address: [ 16.624234] ffff888103434900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.624884] ffff888103434980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.625380] >ffff888103434a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.625659] ^ [ 16.626162] ffff888103434a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.626381] ffff888103434b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.627040] ==================================================================
[ 16.973593] ================================================================== [ 16.973918] BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x3c/0x70 [ 16.974278] Read of size 121 at addr ffff8881025b8100 by task kunit_try_catch/304 [ 16.974589] [ 16.974707] CPU: 0 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.974772] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.974786] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.974808] Call Trace: [ 16.974824] <TASK> [ 16.974839] dump_stack_lvl+0x73/0xb0 [ 16.974870] print_report+0xd1/0x610 [ 16.974894] ? __virt_addr_valid+0x1db/0x2d0 [ 16.974941] ? _copy_to_user+0x3c/0x70 [ 16.974962] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.974988] ? _copy_to_user+0x3c/0x70 [ 16.975009] kasan_report+0x141/0x180 [ 16.975032] ? _copy_to_user+0x3c/0x70 [ 16.975068] kasan_check_range+0x10c/0x1c0 [ 16.975094] __kasan_check_read+0x15/0x20 [ 16.975115] _copy_to_user+0x3c/0x70 [ 16.975136] copy_user_test_oob+0x364/0x10f0 [ 16.975180] ? __pfx_copy_user_test_oob+0x10/0x10 [ 16.975214] ? finish_task_switch.isra.0+0x153/0x700 [ 16.975252] ? __switch_to+0x47/0xf50 [ 16.975278] ? __schedule+0x10cc/0x2b60 [ 16.975303] ? __pfx_read_tsc+0x10/0x10 [ 16.975342] ? ktime_get_ts64+0x86/0x230 [ 16.975368] kunit_try_run_case+0x1a5/0x480 [ 16.975394] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.975419] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.975447] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.975474] ? __kthread_parkme+0x82/0x180 [ 16.975496] ? preempt_count_sub+0x50/0x80 [ 16.975520] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.975547] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.975574] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.975602] kthread+0x337/0x6f0 [ 16.975622] ? trace_preempt_on+0x20/0xc0 [ 16.975647] ? __pfx_kthread+0x10/0x10 [ 16.975669] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.975693] ? calculate_sigpending+0x7b/0xa0 [ 16.975719] ? __pfx_kthread+0x10/0x10 [ 16.975742] ret_from_fork+0x116/0x1d0 [ 16.975763] ? __pfx_kthread+0x10/0x10 [ 16.975786] ret_from_fork_asm+0x1a/0x30 [ 16.975819] </TASK> [ 16.975830] [ 16.983519] Allocated by task 304: [ 16.983704] kasan_save_stack+0x45/0x70 [ 16.983920] kasan_save_track+0x18/0x40 [ 16.984066] kasan_save_alloc_info+0x3b/0x50 [ 16.984295] __kasan_kmalloc+0xb7/0xc0 [ 16.984587] __kmalloc_noprof+0x1c9/0x500 [ 16.984819] kunit_kmalloc_array+0x25/0x60 [ 16.985018] copy_user_test_oob+0xab/0x10f0 [ 16.985244] kunit_try_run_case+0x1a5/0x480 [ 16.985391] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.985648] kthread+0x337/0x6f0 [ 16.985840] ret_from_fork+0x116/0x1d0 [ 16.986039] ret_from_fork_asm+0x1a/0x30 [ 16.986279] [ 16.986393] The buggy address belongs to the object at ffff8881025b8100 [ 16.986393] which belongs to the cache kmalloc-128 of size 128 [ 16.986976] The buggy address is located 0 bytes inside of [ 16.986976] allocated 120-byte region [ffff8881025b8100, ffff8881025b8178) [ 16.987524] [ 16.987621] The buggy address belongs to the physical page: [ 16.987874] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025b8 [ 16.988202] flags: 0x200000000000000(node=0|zone=2) [ 16.988364] page_type: f5(slab) [ 16.988484] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.988941] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.989523] page dumped because: kasan: bad access detected [ 16.989795] [ 16.989907] Memory state around the buggy address: [ 16.990140] ffff8881025b8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.990452] ffff8881025b8080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.990686] >ffff8881025b8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.991018] ^ [ 16.991327] ffff8881025b8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.991540] ffff8881025b8200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.991848] ==================================================================