Date
July 22, 2025, 5:13 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 29.265986] ================================================================== [ 29.267303] BUG: KASAN: slab-out-of-bounds in _copy_from_user+0x32/0x90 [ 29.268254] Write of size 121 at addr ffff888104975500 by task kunit_try_catch/333 [ 29.269083] [ 29.269381] CPU: 0 UID: 0 PID: 333 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) [ 29.269444] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.269460] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.269493] Call Trace: [ 29.269512] <TASK> [ 29.269534] dump_stack_lvl+0x73/0xb0 [ 29.269570] print_report+0xd1/0x640 [ 29.269597] ? __virt_addr_valid+0x1db/0x2d0 [ 29.269625] ? _copy_from_user+0x32/0x90 [ 29.269647] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.269677] ? _copy_from_user+0x32/0x90 [ 29.269700] kasan_report+0x141/0x180 [ 29.269725] ? _copy_from_user+0x32/0x90 [ 29.269751] kasan_check_range+0x10c/0x1c0 [ 29.269776] __kasan_check_write+0x18/0x20 [ 29.269803] _copy_from_user+0x32/0x90 [ 29.269826] copy_user_test_oob+0x2be/0x10f0 [ 29.269863] ? __pfx_copy_user_test_oob+0x10/0x10 [ 29.269889] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 29.269924] ? __pfx_copy_user_test_oob+0x10/0x10 [ 29.269954] kunit_try_run_case+0x1a5/0x480 [ 29.269979] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.270004] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.270030] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.270056] ? __kthread_parkme+0x82/0x180 [ 29.270079] ? preempt_count_sub+0x50/0x80 [ 29.270104] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.270129] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.270155] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.270196] kthread+0x337/0x6f0 [ 29.270217] ? trace_preempt_on+0x20/0xc0 [ 29.270245] ? __pfx_kthread+0x10/0x10 [ 29.270269] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.270296] ? calculate_sigpending+0x7b/0xa0 [ 29.270323] ? __pfx_kthread+0x10/0x10 [ 29.270347] ret_from_fork+0x116/0x1d0 [ 29.270370] ? __pfx_kthread+0x10/0x10 [ 29.270393] ret_from_fork_asm+0x1a/0x30 [ 29.270427] </TASK> [ 29.270442] [ 29.283411] Allocated by task 333: [ 29.283750] kasan_save_stack+0x45/0x70 [ 29.284117] kasan_save_track+0x18/0x40 [ 29.284557] kasan_save_alloc_info+0x3b/0x50 [ 29.284967] __kasan_kmalloc+0xb7/0xc0 [ 29.285155] __kmalloc_noprof+0x1ca/0x510 [ 29.285530] kunit_kmalloc_array+0x25/0x60 [ 29.285999] copy_user_test_oob+0xab/0x10f0 [ 29.286153] kunit_try_run_case+0x1a5/0x480 [ 29.286300] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.286566] kthread+0x337/0x6f0 [ 29.286875] ret_from_fork+0x116/0x1d0 [ 29.287226] ret_from_fork_asm+0x1a/0x30 [ 29.287671] [ 29.287847] The buggy address belongs to the object at ffff888104975500 [ 29.287847] which belongs to the cache kmalloc-128 of size 128 [ 29.288989] The buggy address is located 0 bytes inside of [ 29.288989] allocated 120-byte region [ffff888104975500, ffff888104975578) [ 29.290075] [ 29.290191] The buggy address belongs to the physical page: [ 29.290382] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104975 [ 29.291133] flags: 0x200000000000000(node=0|zone=2) [ 29.291627] page_type: f5(slab) [ 29.291900] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 29.292138] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.292908] page dumped because: kasan: bad access detected [ 29.293652] [ 29.293823] Memory state around the buggy address: [ 29.294148] ffff888104975400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.294372] ffff888104975480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.294939] >ffff888104975500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.295631] ^ [ 29.296260] ffff888104975580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.296710] ffff888104975600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.296954] ==================================================================