======================================================== WARNING: possible irq lock inversion dependency detected 6.11.0-rc7-syzkaller-00020-g8d8d276ba2fb #0 Not tainted -------------------------------------------------------- dhcpcd-run-hook/17527 just changed the state of lock: ffff88804305b230 (&dev->event_lock#2){..-.}-{2:2}, at: input_inject_event+0xa4/0x370 drivers/input/input.c:423 but this lock took another, SOFTIRQ-READ-unsafe lock in the past: (tasklist_lock){.+.+}-{2:2} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &dev->event_lock#2 --> &client->buffer_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&client->buffer_lock); lock(&dev->event_lock#2); *** DEADLOCK *** 2 locks held by dhcpcd-run-hook/17527: #0: ffffc90000858cb0 (drivers/tty/vt/keyboard.c:274){+.-.}-{0:0}, at: call_timer_fn+0x11a/0x610 kernel/time/timer.c:1789 #1: ffffffff8ddb9fe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline] #1: ffffffff8ddb9fe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #1: ffffffff8ddb9fe0 (rcu_read_lock){....}-{1:2}, at: input_handler_for_each_handle+0x3e/0x250 drivers/input/input.c:2676 the shortest dependencies between 2nd lock and 1st lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1591 do_wait+0x219/0x570 kernel/exit.c:1635 kernel_wait+0xa0/0x160 kernel/exit.c:1811 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xed0 kernel/workqueue.c:3389 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1591 do_wait+0x219/0x570 kernel/exit.c:1635 kernel_wait+0xa0/0x160 kernel/exit.c:1811 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xed0 kernel/workqueue.c:3389 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 copy_process+0x4420/0x8de0 kernel/fork.c:2500 kernel_clone+0xfd/0x960 kernel/fork.c:2781 user_mode_thread+0xb4/0xf0 kernel/fork.c:2859 rest_init+0x23/0x2b0 init/main.c:712 start_kernel+0x3df/0x4c0 init/main.c:1103 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 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1591 do_wait+0x219/0x570 kernel/exit.c:1635 kernel_wait+0xa0/0x160 kernel/exit.c:1811 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xed0 kernel/workqueue.c:3389 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xb4/0x3c0 fs/fcntl.c:830 kill_fasync_rcu fs/fcntl.c:1035 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x1f6/0x4f0 fs/fcntl.c:1042 lease_break_callback+0x23/0x30 fs/locks.c:558 __break_lease+0x67c/0x17d0 fs/locks.c:1592 break_lease include/linux/filelock.h:431 [inline] break_lease include/linux/filelock.h:421 [inline] do_dentry_open+0x6ba/0x15f0 fs/open.c:950 vfs_open+0x82/0x3f0 fs/open.c:1089 do_open fs/namei.c:3727 [inline] path_openat+0x2141/0x2d20 fs/namei.c:3886 do_filp_open+0x1dc/0x430 fs/namei.c:3913 do_sys_openat2+0x17a/0x1e0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1442 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 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x46/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xc30 fs/fcntl.c:855 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3432 tcp_check_urg net/ipv4/tcp_input.c:5831 [inline] tcp_urg+0x343/0xb80 net/ipv4/tcp_input.c:5872 tcp_rcv_established+0x8a6/0x21c0 net/ipv4/tcp_input.c:6227 tcp_v4_do_rcv+0x5ca/0xa90 net/ipv4/tcp_ipv4.c:1911 tcp_v4_rcv+0x33a8/0x4390 net/ipv4/tcp_ipv4.c:2346 ip_protocol_deliver_rcu+0xba/0x4c0 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x316/0x570 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] ip_local_deliver+0x18e/0x1f0 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:460 [inline] ip_rcv_finish net/ipv4/ip_input.c:449 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] ip_rcv+0x2c5/0x5d0 net/ipv4/ip_input.c:569 __netif_receive_skb_one_core+0x199/0x1e0 net/core/dev.c:5661 __netif_receive_skb+0x1d/0x160 net/core/dev.c:5775 process_backlog+0x443/0x15f0 net/core/dev.c:6108 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6772 napi_poll net/core/dev.c:6841 [inline] net_rx_action+0xa92/0x1010 net/core/dev.c:6963 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554 do_softirq kernel/softirq.c:455 [inline] do_softirq+0xb2/0xf0 kernel/softirq.c:442 __local_bh_enable_ip+0x100/0x120 kernel/softirq.c:382 local_bh_enable include/linux/bottom_half.h:33 [inline] fpregs_unlock arch/x86/include/asm/fpu/api.h:80 [inline] fpu_clone+0x398/0xbc0 arch/x86/kernel/fpu/core.c:634 copy_thread+0x451/0xb80 arch/x86/kernel/process.c:214 copy_process+0x3c79/0x8de0 kernel/fork.c:2383 kernel_clone+0xfd/0x960 kernel/fork.c:2781 __do_sys_clone3+0x1f5/0x270 kernel/fork.c:3085 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 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 f_modown+0x2a/0x380 fs/fcntl.c:93 __f_setown fs/fcntl.c:112 [inline] f_setown+0xd4/0x2a0 fs/fcntl.c:140 do_fcntl+0x11f7/0x1380 fs/fcntl.c:412 __do_sys_fcntl fs/fcntl.c:492 [inline] __se_sys_fcntl fs/fcntl.c:477 [inline] __x64_sys_fcntl+0x174/0x200 fs/fcntl.c:477 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 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xc30 fs/fcntl.c:855 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3432 queue_oob net/unix/af_unix.c:2240 [inline] unix_stream_sendmsg+0xe37/0x10f0 net/unix/af_unix.c:2358 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab5/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 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 } ... key at: [] __key.2+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigio+0x28/0x3c0 fs/fcntl.c:816 kill_fasync_rcu fs/fcntl.c:1035 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x1f6/0x4f0 fs/fcntl.c:1042 sock_wake_async+0x132/0x160 net/socket.c:1475 sk_wake_async_rcu include/net/sock.h:2448 [inline] sk_wake_async_rcu include/net/sock.h:2445 [inline] sock_def_error_report+0x352/0x400 net/core/sock.c:3361 sk_error_report+0x3e/0x2a0 net/core/sock.c:347 tcp_disconnect+0x1410/0x1e00 net/ipv4/tcp.c:3140 inet_shutdown+0x26c/0x440 net/ipv4/af_inet.c:937 __sys_shutdown_sock net/socket.c:2438 [inline] __sys_shutdown_sock net/socket.c:2432 [inline] __sys_shutdown+0xff/0x1c0 net/socket.c:2450 __do_sys_shutdown net/socket.c:2458 [inline] __se_sys_shutdown net/socket.c:2456 [inline] __x64_sys_shutdown+0x53/0x80 net/socket.c:2456 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 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 fasync_remove_entry+0xb9/0x1f0 fs/fcntl.c:905 fasync_helper+0xaf/0xd0 fs/fcntl.c:1008 sock_fasync+0x98/0x140 net/socket.c:1446 __fput+0x94a/0xbb0 fs/file_table.c:419 task_work_run+0x14e/0x250 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1028 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x138/0x4f0 fs/fcntl.c:1042 sock_wake_async+0x132/0x160 net/socket.c:1475 sk_wake_async_rcu include/net/sock.h:2448 [inline] sk_wake_async_rcu include/net/sock.h:2445 [inline] sock_def_error_report+0x352/0x400 net/core/sock.c:3361 sk_error_report+0x3e/0x2a0 net/core/sock.c:347 tcp_disconnect+0x1410/0x1e00 net/ipv4/tcp.c:3140 inet_shutdown+0x26c/0x440 net/ipv4/af_inet.c:937 __sys_shutdown_sock net/socket.c:2438 [inline] __sys_shutdown_sock net/socket.c:2432 [inline] __sys_shutdown+0xff/0x1c0 net/socket.c:2450 __do_sys_shutdown net/socket.c:2458 [inline] __se_sys_shutdown net/socket.c:2456 [inline] __x64_sys_shutdown+0x53/0x80 net/socket.c:2456 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 } ... key at: [] __key.0+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1028 [inline] kill_fasync fs/fcntl.c:1049 [inline] kill_fasync+0x138/0x4f0 fs/fcntl.c:1042 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x777/0x8e0 drivers/input/input.c:126 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf0b/0x14d0 drivers/input/input.c:369 input_inject_event+0x1bb/0x370 drivers/input/input.c:428 evdev_write+0x450/0x750 drivers/input/evdev.c:521 vfs_write+0x29a/0x1140 fs/read_write.c:588 ksys_write+0x1f8/0x260 fs/read_write.c:643 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 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_handle_get_val+0x66/0x600 drivers/input/evdev.c:891 evdev_do_ioctl+0xfb4/0x1ae0 drivers/input/evdev.c:1146 evdev_ioctl_handler drivers/input/evdev.c:1263 [inline] evdev_ioctl+0x170/0x1a0 drivers/input/evdev.c:1272 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x193/0x220 fs/ioctl.c:893 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 } ... key at: [] __key.1+0x0/0x40 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_handle_get_val+0x66/0x600 drivers/input/evdev.c:891 evdev_do_ioctl+0xfb4/0x1ae0 drivers/input/evdev.c:1146 evdev_ioctl_handler drivers/input/evdev.c:1263 [inline] evdev_ioctl+0x170/0x1a0 drivers/input/evdev.c:1272 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x193/0x220 fs/ioctl.c:893 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 -> (&dev->event_lock#2){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 input_inject_event+0xa4/0x370 drivers/input/input.c:423 kd_sound_helper+0x20f/0x280 drivers/tty/vt/keyboard.c:261 input_handler_for_each_handle+0xd4/0x250 drivers/input/input.c:2679 call_timer_fn+0x1a0/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers+0x74b/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __might_sleep+0x9a/0x170 kernel/sched/core.c:8393 __might_fault+0x83/0x190 mm/memory.c:6384 __clear_user arch/x86/include/asm/uaccess_64.h:165 [inline] clear_user arch/x86/include/asm/uaccess_64.h:189 [inline] padzero fs/binfmt_elf.c:125 [inline] elf_load+0x695/0x880 fs/binfmt_elf.c:421 load_elf_interp fs/binfmt_elf.c:675 [inline] load_elf_binary+0x339e/0x4d90 fs/binfmt_elf.c:1235 search_binary_handler fs/exec.c:1827 [inline] exec_binprm fs/exec.c:1869 [inline] bprm_execve fs/exec.c:1920 [inline] bprm_execve+0x703/0x1960 fs/exec.c:1896 do_execveat_common.isra.0+0x4f1/0x630 fs/exec.c:2027 do_execve fs/exec.c:2101 [inline] __do_sys_execve fs/exec.c:2177 [inline] __se_sys_execve fs/exec.c:2172 [inline] __x64_sys_execve+0x8c/0xb0 fs/exec.c:2172 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 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 input_inject_event+0xa4/0x370 drivers/input/input.c:423 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:323 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:354 [inline] led_set_brightness+0x211/0x290 drivers/leds/led-core.c:316 kbd_led_trigger_activate+0xcb/0x110 drivers/tty/vt/keyboard.c:1036 led_trigger_set+0x59a/0xc60 drivers/leds/led-triggers.c:212 led_match_default_trigger drivers/leds/led-triggers.c:269 [inline] led_match_default_trigger drivers/leds/led-triggers.c:263 [inline] led_trigger_set_default drivers/leds/led-triggers.c:287 [inline] led_trigger_set_default+0x1bd/0x2a0 drivers/leds/led-triggers.c:276 led_classdev_register_ext+0x78c/0x9e0 drivers/leds/led-class.c:555 led_classdev_register include/linux/leds.h:273 [inline] input_leds_connect+0x54a/0x8e0 drivers/input/input-leds.c:145 input_attach_handler.isra.0+0x181/0x260 drivers/input/input.c:1027 input_register_device+0xa8e/0x1140 drivers/input/input.c:2473 atkbd_connect+0x5e2/0xa20 drivers/input/keyboard/atkbd.c:1342 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x74/0xa0 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:578 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:657 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:799 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:829 __driver_attach+0x283/0x580 drivers/base/dd.c:1215 bus_for_each_dev+0x13c/0x1d0 drivers/base/bus.c:368 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x2bb/0xa90 drivers/input/serio/serio.c:224 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xed0 kernel/workqueue.c:3389 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 } ... key at: [] __key.7+0x0/0x40 ... acquired at: mark_usage kernel/locking/lockdep.c:4566 [inline] __lock_acquire+0x11d7/0x3cb0 kernel/locking/lockdep.c:5096 lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 input_inject_event+0xa4/0x370 drivers/input/input.c:423 kd_sound_helper+0x20f/0x280 drivers/tty/vt/keyboard.c:261 input_handler_for_each_handle+0xd4/0x250 drivers/input/input.c:2679 call_timer_fn+0x1a0/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers+0x74b/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __might_sleep+0x9a/0x170 kernel/sched/core.c:8393 __might_fault+0x83/0x190 mm/memory.c:6384 __clear_user arch/x86/include/asm/uaccess_64.h:165 [inline] clear_user arch/x86/include/asm/uaccess_64.h:189 [inline] padzero fs/binfmt_elf.c:125 [inline] elf_load+0x695/0x880 fs/binfmt_elf.c:421 load_elf_interp fs/binfmt_elf.c:675 [inline] load_elf_binary+0x339e/0x4d90 fs/binfmt_elf.c:1235 search_binary_handler fs/exec.c:1827 [inline] exec_binprm fs/exec.c:1869 [inline] bprm_execve fs/exec.c:1920 [inline] bprm_execve+0x703/0x1960 fs/exec.c:1896 do_execveat_common.isra.0+0x4f1/0x630 fs/exec.c:2027 do_execve fs/exec.c:2101 [inline] __do_sys_execve fs/exec.c:2177 [inline] __se_sys_execve fs/exec.c:2172 [inline] __x64_sys_execve+0x8c/0xb0 fs/exec.c:2172 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 stack backtrace: CPU: 2 UID: 0 PID: 17527 Comm: dhcpcd-run-hook Not tainted 6.11.0-rc7-syzkaller-00020-g8d8d276ba2fb #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 print_irq_inversion_bug.part.0+0x3e9/0x5a0 kernel/locking/lockdep.c:4079 print_irq_inversion_bug kernel/locking/lockdep.c:4032 [inline] check_usage_forwards kernel/locking/lockdep.c:4110 [inline] mark_lock_irq kernel/locking/lockdep.c:4242 [inline] mark_lock+0x574/0xc60 kernel/locking/lockdep.c:4677 mark_usage kernel/locking/lockdep.c:4566 [inline] __lock_acquire+0x11d7/0x3cb0 kernel/locking/lockdep.c:5096 lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 input_inject_event+0xa4/0x370 drivers/input/input.c:423 kd_sound_helper+0x20f/0x280 drivers/tty/vt/keyboard.c:261 input_handler_for_each_handle+0xd4/0x250 drivers/input/input.c:2679 call_timer_fn+0x1a0/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers+0x74b/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x216/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__might_sleep+0x9a/0x170 kernel/sched/core.c:8392 Code: ea 03 80 3c 02 00 0f 85 ae 00 00 00 49 83 bc 24 68 17 00 00 00 74 09 80 3d 98 5c a1 0e 00 74 14 48 83 c4 10 89 ee 48 89 df 5b <31> d2 5d 41 5c e9 6c f9 ff ff c6 05 7b 5c a1 0e 01 90 65 4c 8b 25 RSP: 0018:ffffc9000739fb70 EFLAGS: 00000282 RAX: 0000000000000003 RBX: ffffffff8b5fdde0 RCX: ffffffff81d1f2b2 RDX: 0000000000000000 RSI: 00000000000000a5 RDI: ffffffff8b5fdde0 RBP: 00000000000000a5 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888027e64880 R13: 00007ff5c77b5000 R14: ffff8880382d88c8 R15: ffff8880382d88b8 __might_fault+0x83/0x190 mm/memory.c:6384 __clear_user arch/x86/include/asm/uaccess_64.h:165 [inline] clear_user arch/x86/include/asm/uaccess_64.h:189 [inline] padzero fs/binfmt_elf.c:125 [inline] elf_load+0x695/0x880 fs/binfmt_elf.c:421 load_elf_interp fs/binfmt_elf.c:675 [inline] load_elf_binary+0x339e/0x4d90 fs/binfmt_elf.c:1235 search_binary_handler fs/exec.c:1827 [inline] exec_binprm fs/exec.c:1869 [inline] bprm_execve fs/exec.c:1920 [inline] bprm_execve+0x703/0x1960 fs/exec.c:1896 do_execveat_common.isra.0+0x4f1/0x630 fs/exec.c:2027 do_execve fs/exec.c:2101 [inline] __do_sys_execve fs/exec.c:2177 [inline] __se_sys_execve fs/exec.c:2172 [inline] __x64_sys_execve+0x8c/0xb0 fs/exec.c:2172 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:0x7ff255f3cef7 Code: Unable to access opcode bytes at 0x7ff255f3cecd. RSP: 002b:00007ff255de6e78 EFLAGS: 00000246 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00007fff400a6c90 RCX: 00007ff255f3cef7 RDX: 000055c8e1fb60e0 RSI: 00007fff400a7180 RDI: 000055c8cd4cfdf6 RBP: 00007ff255de6ff0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 00007fff400a6fa8 R13: 00007ff255de6f28 R14: 0000000000000000 R15: 0000000000000041 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 03 80 3c 02 00 0f add 0xf00023c(%rax),%eax 6: 85 ae 00 00 00 49 test %ebp,0x49000000(%rsi) c: 83 bc 24 68 17 00 00 cmpl $0x0,0x1768(%rsp) 13: 00 14: 74 09 je 0x1f 16: 80 3d 98 5c a1 0e 00 cmpb $0x0,0xea15c98(%rip) # 0xea15cb5 1d: 74 14 je 0x33 1f: 48 83 c4 10 add $0x10,%rsp 23: 89 ee mov %ebp,%esi 25: 48 89 df mov %rbx,%rdi 28: 5b pop %rbx * 29: 31 d2 xor %edx,%edx <-- trapping instruction 2b: 5d pop %rbp 2c: 41 5c pop %r12 2e: e9 6c f9 ff ff jmp 0xfffff99f 33: c6 05 7b 5c a1 0e 01 movb $0x1,0xea15c7b(%rip) # 0xea15cb5 3a: 90 nop 3b: 65 gs 3c: 4c rex.WR 3d: 8b .byte 0x8b 3e: 25 .byte 0x25