FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 ====================================================== WARNING: possible circular locking dependency detected 6.13.0-rc1-syzkaller-00002-gcdd30ebb1b9f #0 Not tainted ------------------------------------------------------ syz.4.1149/10526 is trying to acquire lock: ffffffff8e0c8800 (console_owner){-.-.}-{0:0}, at: console_lock_spinning_enable+0x9f/0xd0 kernel/printk/printk.c:1924 but task is already holding lock: ffff8880b863ebd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:606 [inline] ffff8880b863ebd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:591 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #4 (&rq->__lock){-.-.}-{2:2}: _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:598 raw_spin_rq_lock kernel/sched/sched.h:1514 [inline] task_rq_lock+0xcf/0x3b0 kernel/sched/core.c:700 cgroup_move_task+0x82/0x250 kernel/sched/psi.c:1161 css_set_move_task+0x288/0x5f0 kernel/cgroup/cgroup.c:898 cgroup_post_fork+0x1c6/0x910 kernel/cgroup/cgroup.c:6691 copy_process+0x50d9/0x8df0 kernel/fork.c:2621 kernel_clone+0xfd/0x960 kernel/fork.c:2807 user_mode_thread+0xb4/0xf0 kernel/fork.c:2885 rest_init+0x23/0x2b0 init/main.c:712 start_kernel+0x3e4/0x4d0 init/main.c:1102 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:488 common_startup_64+0x13e/0x148 -> #3 (&p->pi_lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:551 [inline] try_to_wake_up+0xb6/0x1490 kernel/sched/core.c:4205 __wake_up_common+0x131/0x1e0 kernel/sched/wait.c:89 __wake_up_common_lock kernel/sched/wait.c:106 [inline] __wake_up+0x31/0x60 kernel/sched/wait.c:127 tty_port_default_wakeup+0x2a/0x40 drivers/tty/tty_port.c:69 serial8250_tx_chars+0x68e/0x860 drivers/tty/serial/8250/8250_port.c:1840 serial8250_handle_irq+0x74d/0xc80 drivers/tty/serial/8250/8250_port.c:1948 serial8250_default_handle_irq+0x9a/0x210 drivers/tty/serial/8250/8250_port.c:1968 serial8250_interrupt+0x103/0x210 drivers/tty/serial/8250/8250_core.c:86 __handle_irq_event_percpu+0x229/0x7d0 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x263/0xd10 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:285 common_interrupt+0xba/0xe0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 unwind_next_frame+0x4e6/0x20c0 arch/x86/kernel/unwind_orc.c:505 arch_stack_walk+0x95/0x100 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x95/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:901 [inline] kzalloc_noprof include/linux/slab.h:1037 [inline] netlbl_secattr_alloc_noprof include/net/netlabel.h:385 [inline] selinux_netlbl_sock_genattr+0xe8/0x4f0 security/selinux/netlabel.c:78 selinux_netlbl_socket_post_create+0xb0/0x1b0 security/selinux/netlabel.c:404 selinux_socket_post_create+0x2fa/0x7f0 security/selinux/hooks.c:4685 security_socket_post_create+0x247/0x260 security/security.c:4574 __sock_create+0x738/0x8d0 net/socket.c:1581 sock_create net/socket.c:1616 [inline] __sys_socket_create net/socket.c:1653 [inline] __sys_socket+0x14f/0x260 net/socket.c:1700 __do_sys_socket net/socket.c:1714 [inline] __se_sys_socket net/socket.c:1712 [inline] __x64_sys_socket+0x72/0xb0 net/socket.c:1712 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #2 (&tty->write_wait){-.-.}-{3:3}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:105 [inline] __wake_up+0x1c/0x60 kernel/sched/wait.c:127 tty_port_default_wakeup+0x2a/0x40 drivers/tty/tty_port.c:69 serial8250_tx_chars+0x68e/0x860 drivers/tty/serial/8250/8250_port.c:1840 serial8250_handle_irq+0x74d/0xc80 drivers/tty/serial/8250/8250_port.c:1948 serial8250_default_handle_irq+0x9a/0x210 drivers/tty/serial/8250/8250_port.c:1968 serial8250_interrupt+0x103/0x210 drivers/tty/serial/8250/8250_core.c:86 __handle_irq_event_percpu+0x229/0x7d0 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x263/0xd10 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:285 common_interrupt+0xba/0xe0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] uart_port_unlock_irqrestore include/linux/serial_core.h:786 [inline] uart_write+0x2a4/0xb30 drivers/tty/serial/serial_core.c:636 process_output_block drivers/tty/n_tty.c:574 [inline] n_tty_write+0x419/0x1140 drivers/tty/n_tty.c:2389 iterate_tty_write drivers/tty/tty_io.c:1015 [inline] file_tty_write.constprop.0+0x506/0x9a0 drivers/tty/tty_io.c:1090 tty_write drivers/tty/tty_io.c:1111 [inline] redirected_tty_write drivers/tty/tty_io.c:1134 [inline] redirected_tty_write+0xcc/0x140 drivers/tty/tty_io.c:1114 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:679 ksys_write+0x12b/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #1 (&port_lock_key){-.-.}-{3:3}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 uart_port_lock_irqsave include/linux/serial_core.h:715 [inline] serial8250_console_write+0xb56/0x17c0 drivers/tty/serial/8250/8250_port.c:3371 console_emit_next_record kernel/printk/printk.c:3122 [inline] console_flush_all+0x803/0xc60 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0xd9/0x210 kernel/printk/printk.c:3309 vprintk_emit+0x424/0x6f0 kernel/printk/printk.c:2432 vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:86 _printk+0xc8/0x100 kernel/printk/printk.c:2457 register_console+0xbfd/0x1170 kernel/printk/printk.c:4099 univ8250_console_init+0x5f/0x90 drivers/tty/serial/8250/8250_core.c:513 console_init+0x154/0x690 kernel/printk/printk.c:4292 start_kernel+0x29a/0x4d0 init/main.c:1037 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:488 common_startup_64+0x13e/0x148 -> #0 (console_owner){-.-.}-{0:0}: check_prev_add kernel/locking/lockdep.c:3161 [inline] check_prevs_add kernel/locking/lockdep.c:3280 [inline] validate_chain kernel/locking/lockdep.c:3904 [inline] __lock_acquire+0x249e/0x3c40 kernel/locking/lockdep.c:5226 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849 console_lock_spinning_enable+0xb0/0xd0 kernel/printk/printk.c:1924 console_emit_next_record kernel/printk/printk.c:3116 [inline] console_flush_all+0x7ac/0xc60 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0xd9/0x210 kernel/printk/printk.c:3309 vprintk_emit+0x424/0x6f0 kernel/printk/printk.c:2432 vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:86 _printk+0xc8/0x100 kernel/printk/printk.c:2457 fail_dump lib/fault-inject.c:46 [inline] should_fail_ex+0x46c/0x5b0 lib/fault-inject.c:154 __copy_to_user_inatomic include/linux/uaccess.h:132 [inline] copy_to_user_nofault+0xac/0x180 mm/maccess.c:156 ____bpf_probe_write_user kernel/trace/bpf_trace.c:348 [inline] bpf_probe_write_user+0xaf/0xf0 kernel/trace/bpf_trace.c:326 bpf_prog_6303d92f98284ad8+0x44/0x48 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2351 [inline] bpf_trace_run4+0x245/0x5a0 kernel/trace/bpf_trace.c:2394 __bpf_trace_sched_switch+0x13e/0x190 include/trace/events/sched.h:222 __traceiter_sched_switch+0x6c/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x1b71/0x5ad0 kernel/sched/core.c:6753 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7078 irqentry_exit+0x36/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 mas_start lib/maple_tree.c:1367 [inline] mas_state_walk lib/maple_tree.c:3613 [inline] mt_find+0x5ea/0xa20 lib/maple_tree.c:6929 find_vma+0xc0/0x140 mm/mmap.c:956 lock_mm_and_find_vma+0x62/0x6a0 mm/memory.c:6212 do_user_addr_fault+0x2b5/0x13f0 arch/x86/mm/fault.c:1361 handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:65 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:178 [inline] _copy_from_user+0x9a/0xd0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] uhid_event_from_user drivers/hid/uhid.c:473 [inline] uhid_char_write+0x190/0x10b0 drivers/hid/uhid.c:738 vfs_write+0x24c/0x1150 fs/read_write.c:677 ksys_write+0x207/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Chain exists of: console_owner --> &p->pi_lock --> &rq->__lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&rq->__lock); lock(&p->pi_lock); lock(&rq->__lock); lock(console_owner); *** DEADLOCK *** 7 locks held by syz.4.1149/10526: #0: ffff88805a160068 (&uhid->devlock){+.+.}-{4:4}, at: uhid_char_write+0x6b/0x10b0 drivers/hid/uhid.c:731 #1: ffff888033f88ba0 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_trylock include/linux/mmap_lock.h:163 [inline] #1: ffff888033f88ba0 (&mm->mmap_lock){++++}-{4:4}, at: get_mmap_lock_carefully mm/memory.c:6149 [inline] #1: ffff888033f88ba0 (&mm->mmap_lock){++++}-{4:4}, at: lock_mm_and_find_vma+0x35/0x6a0 mm/memory.c:6209 #2: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: mt_find+0x154/0xa20 lib/maple_tree.c:6927 #3: ffff8880b863ebd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:606 [inline] #3: ffff8880b863ebd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:591 #4: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #4: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #4: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2350 [inline] #4: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run4+0x1d6/0x5a0 kernel/trace/bpf_trace.c:2394 #5: ffffffff8e1a8c40 (console_lock){+.+.}-{0:0}, at: vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:86 #6: ffffffff8e1a8cb0 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:342 [inline] #6: ffffffff8e1a8cb0 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:297 [inline] #6: ffffffff8e1a8cb0 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:288 [inline] #6: ffffffff8e1a8cb0 (console_srcu){....}-{0:0}, at: console_flush_all+0x159/0xc60 kernel/printk/printk.c:3187 stack backtrace: CPU: 0 UID: 0 PID: 10526 Comm: syz.4.1149 Not tainted 6.13.0-rc1-syzkaller-00002-gcdd30ebb1b9f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_circular_bug+0x419/0x5d0 kernel/locking/lockdep.c:2074 check_noncircular+0x31a/0x400 kernel/locking/lockdep.c:2206 check_prev_add kernel/locking/lockdep.c:3161 [inline] check_prevs_add kernel/locking/lockdep.c:3280 [inline] validate_chain kernel/locking/lockdep.c:3904 [inline] __lock_acquire+0x249e/0x3c40 kernel/locking/lockdep.c:5226 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849 console_lock_spinning_enable+0xb0/0xd0 kernel/printk/printk.c:1924 console_emit_next_record kernel/printk/printk.c:3116 [inline] console_flush_all+0x7ac/0xc60 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0xd9/0x210 kernel/printk/printk.c:3309 vprintk_emit+0x424/0x6f0 kernel/printk/printk.c:2432 vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:86 _printk+0xc8/0x100 kernel/printk/printk.c:2457 fail_dump lib/fault-inject.c:46 [inline] should_fail_ex+0x46c/0x5b0 lib/fault-inject.c:154 __copy_to_user_inatomic include/linux/uaccess.h:132 [inline] copy_to_user_nofault+0xac/0x180 mm/maccess.c:156 ____bpf_probe_write_user kernel/trace/bpf_trace.c:348 [inline] bpf_probe_write_user+0xaf/0xf0 kernel/trace/bpf_trace.c:326 bpf_prog_6303d92f98284ad8+0x44/0x48 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2351 [inline] bpf_trace_run4+0x245/0x5a0 kernel/trace/bpf_trace.c:2394 __bpf_trace_sched_switch+0x13e/0x190 include/trace/events/sched.h:222 __traceiter_sched_switch+0x6c/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x1b71/0x5ad0 kernel/sched/core.c:6753 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7078 irqentry_exit+0x36/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:xa_is_node include/linux/xarray.h:1264 [inline] RIP: 0010:mas_start lib/maple_tree.c:1377 [inline] RIP: 0010:mas_state_walk lib/maple_tree.c:3613 [inline] RIP: 0010:mt_find+0x5ea/0xa20 lib/maple_tree.c:6929 Code: 00 89 ee e8 a8 a4 76 f6 83 fd 01 0f 85 db 03 00 00 e8 5a a2 76 f6 be 01 00 00 00 bf 01 00 00 00 e8 8b a4 76 f6 e9 af fb ff ff 41 a2 76 f6 48 89 de bf 00 10 00 00 e8 a4 a4 76 f6 48 81 fb 00 RSP: 0018:ffffc9000f327998 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88807b220e1e RCX: ffffffff8b2360ae RDX: ffff88807da72440 RSI: 0000000000000002 RDI: 0000000000000007 RBP: dffffc0000000000 R08: 0000000000000007 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000001 R13: ffffc9000f327ad8 R14: 0000000000000002 R15: 0000000000000300 find_vma+0xc0/0x140 mm/mmap.c:956 lock_mm_and_find_vma+0x62/0x6a0 mm/memory.c:6212 do_user_addr_fault+0x2b5/0x13f0 arch/x86/mm/fault.c:1361 handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 a4 c3 cc cc cc cc 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 RSP: 0018:ffffc9000f327cb0 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 00000000000000b1 RDX: ffffed100b42c02d RSI: 0000000000000000 RDI: ffff88805a1600b0 RBP: 00000000000000b1 R08: 0000000000000001 R09: ffffed100b42c02c R10: ffff88805a160160 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88805a1600b0 R14: 00000000000000b1 R15: ffff88805a1600b0 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:178 [inline] _copy_from_user+0x9a/0xd0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] uhid_event_from_user drivers/hid/uhid.c:473 [inline] uhid_char_write+0x190/0x10b0 drivers/hid/uhid.c:738 vfs_write+0x24c/0x1150 fs/read_write.c:677 ksys_write+0x207/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f11d037ff19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f11d1208058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f11d0545fa0 RCX: 00007f11d037ff19 RDX: 00000000000000b1 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f11d12080a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f11d0545fa0 R15: 00007ffcae78f858 CPU: 0 UID: 0 PID: 10526 Comm: syz.4.1149 Not tainted 6.13.0-rc1-syzkaller-00002-gcdd30ebb1b9f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 fail_dump lib/fault-inject.c:53 [inline] should_fail_ex+0x497/0x5b0 lib/fault-inject.c:154 __copy_to_user_inatomic include/linux/uaccess.h:132 [inline] copy_to_user_nofault+0xac/0x180 mm/maccess.c:156 ____bpf_probe_write_user kernel/trace/bpf_trace.c:348 [inline] bpf_probe_write_user+0xaf/0xf0 kernel/trace/bpf_trace.c:326 bpf_prog_6303d92f98284ad8+0x44/0x48 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2351 [inline] bpf_trace_run4+0x245/0x5a0 kernel/trace/bpf_trace.c:2394 __bpf_trace_sched_switch+0x13e/0x190 include/trace/events/sched.h:222 __traceiter_sched_switch+0x6c/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x1b71/0x5ad0 kernel/sched/core.c:6753 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7078 irqentry_exit+0x36/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:xa_is_node include/linux/xarray.h:1264 [inline] RIP: 0010:mas_start lib/maple_tree.c:1377 [inline] RIP: 0010:mas_state_walk lib/maple_tree.c:3613 [inline] RIP: 0010:mt_find+0x5ea/0xa20 lib/maple_tree.c:6929 Code: 00 89 ee e8 a8 a4 76 f6 83 fd 01 0f 85 db 03 00 00 e8 5a a2 76 f6 be 01 00 00 00 bf 01 00 00 00 e8 8b a4 76 f6 e9 af fb ff ff 41 a2 76 f6 48 89 de bf 00 10 00 00 e8 a4 a4 76 f6 48 81 fb 00 RSP: 0018:ffffc9000f327998 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88807b220e1e RCX: ffffffff8b2360ae RDX: ffff88807da72440 RSI: 0000000000000002 RDI: 0000000000000007 RBP: dffffc0000000000 R08: 0000000000000007 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: 0000000000000001 R13: ffffc9000f327ad8 R14: 0000000000000002 R15: 0000000000000300 find_vma+0xc0/0x140 mm/mmap.c:956 lock_mm_and_find_vma+0x62/0x6a0 mm/memory.c:6212 do_user_addr_fault+0x2b5/0x13f0 arch/x86/mm/fault.c:1361 handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71 Code: 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 a4 c3 cc cc cc cc 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 RSP: 0018:ffffc9000f327cb0 EFLAGS: 00050206 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 00000000000000b1 RDX: ffffed100b42c02d RSI: 0000000000000000 RDI: ffff88805a1600b0 RBP: 00000000000000b1 R08: 0000000000000001 R09: ffffed100b42c02c R10: ffff88805a160160 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88805a1600b0 R14: 00000000000000b1 R15: ffff88805a1600b0 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:178 [inline] _copy_from_user+0x9a/0xd0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:212 [inline] uhid_event_from_user drivers/hid/uhid.c:473 [inline] uhid_char_write+0x190/0x10b0 drivers/hid/uhid.c:738 vfs_write+0x24c/0x1150 fs/read_write.c:677 ksys_write+0x207/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f11d037ff19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f11d1208058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f11d0545fa0 RCX: 00007f11d037ff19 RDX: 00000000000000b1 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f11d12080a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f11d0545fa0 R15: 00007ffcae78f858 ---------------- Code disassembly (best guess): 0: 00 89 ee e8 a8 a4 add %cl,-0x5b571712(%rcx) 6: 76 f6 jbe 0xfffffffe 8: 83 fd 01 cmp $0x1,%ebp b: 0f 85 db 03 00 00 jne 0x3ec 11: e8 5a a2 76 f6 call 0xf676a270 16: be 01 00 00 00 mov $0x1,%esi 1b: bf 01 00 00 00 mov $0x1,%edi 20: e8 8b a4 76 f6 call 0xf676a4b0 25: e9 af fb ff ff jmp 0xfffffbd9 * 2a: e8 41 a2 76 f6 call 0xf676a270 <-- trapping instruction 2f: 48 89 de mov %rbx,%rsi 32: bf 00 10 00 00 mov $0x1000,%edi 37: e8 a4 a4 76 f6 call 0xf676a4e0 3c: 48 rex.W 3d: 81 .byte 0x81 3e: fb sti