===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.15.0-rc7-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.1/20093 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8c60a058 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xbe/0x300 fs/fcntl.c:810 and this task is already holding: ffff88807e4352b8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x2f/0x300 fs/fcntl.c:796 which would create a new lock dependency: (&f->f_owner.lock){...-}-{2:2} -> (tasklist_lock){.+.+}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&dev->event_lock){-.-.}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 input_event+0x89/0xc0 drivers/input/input.c:445 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:123 [inline] psmouse_report_standard_packet+0x4f/0x200 drivers/input/mouse/psmouse-base.c:141 psmouse_process_byte+0x44f/0x640 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x44/0x4a0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x6d0/0x10c0 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x88/0x130 drivers/input/serio/serio.c:1001 i8042_interrupt+0x34c/0x740 drivers/input/serio/i8042.c:602 __handle_irq_event_percpu+0x20d/0x730 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x10a/0x300 kernel/irq/handle.c:213 handle_edge_irq+0x245/0xbe0 kernel/irq/chip.c:822 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xce/0x1e0 arch/x86/kernel/irq.c:250 common_interrupt+0x9c/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x1e/0x40 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] i8042_command drivers/input/serio/i8042.c:352 [inline] i8042_aux_write+0x118/0x190 drivers/input/serio/i8042.c:387 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x210/0x720 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x5c/0x110 drivers/input/serio/libps2.c:92 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status+0x151/0x610 drivers/input/mouse/cypress_ps2.c:116 cypress_send_ext_cmd+0xfa/0x3e0 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x8f/0x220 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1023 [inline] psmouse_extensions+0x149a/0x2100 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x307/0x840 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x91a/0x1630 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 call_driver_probe+0x96/0x250 really_probe+0x223/0x9b0 drivers/base/dd.c:596 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:751 driver_probe_device+0x50/0x240 drivers/base/dd.c:781 __driver_attach+0x2ba/0x520 drivers/base/dd.c:1140 bus_for_each_dev+0x188/0x1f0 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x8d1/0x1070 drivers/input/serio/serio.c:227 process_one_work+0x853/0x1140 kernel/workqueue.c:2297 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1504 kernel_wait+0xe4/0x230 kernel/exit.c:1694 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x853/0x1140 kernel/workqueue.c:2297 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 other info that might help us debug this: Chain exists of: &dev->event_lock --> &f->f_owner.lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock); lock(&f->f_owner.lock); lock(&dev->event_lock); *** DEADLOCK *** 5 locks held by syz-executor.1/20093: #0: ffffffff8ca3e2f0 (file_rwsem){.+.+}-{0:0}, at: __break_lease+0x444/0x1980 fs/locks.c:1531 #1: ffff888072929d28 (&ctx->flc_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #1: ffff888072929d28 (&ctx->flc_lock){+.+.}-{2:2}, at: __break_lease+0x451/0x1980 fs/locks.c:1532 #2: ffffffff8c91c980 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #3: ffff888072b4f750 (&new->fa_lock){...-}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1014 [inline] #3: ffff888072b4f750 (&new->fa_lock){...-}-{2:2}, at: kill_fasync+0x13b/0x430 fs/fcntl.c:1035 #4: ffff88807e4352b8 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x2f/0x300 fs/fcntl.c:796 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock){-.-.}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 input_event+0x89/0xc0 drivers/input/input.c:445 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons drivers/input/mouse/psmouse-base.c:123 [inline] psmouse_report_standard_packet+0x4f/0x200 drivers/input/mouse/psmouse-base.c:141 psmouse_process_byte+0x44f/0x640 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0x44/0x4a0 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0x6d0/0x10c0 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x88/0x130 drivers/input/serio/serio.c:1001 i8042_interrupt+0x34c/0x740 drivers/input/serio/i8042.c:602 __handle_irq_event_percpu+0x20d/0x730 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x10a/0x300 kernel/irq/handle.c:213 handle_edge_irq+0x245/0xbe0 kernel/irq/chip.c:822 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0xce/0x1e0 arch/x86/kernel/irq.c:250 common_interrupt+0x9c/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x1e/0x40 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] i8042_command drivers/input/serio/i8042.c:352 [inline] i8042_aux_write+0x118/0x190 drivers/input/serio/i8042.c:387 serio_write include/linux/serio.h:125 [inline] ps2_do_sendbyte+0x210/0x720 drivers/input/serio/libps2.c:40 ps2_sendbyte+0x5c/0x110 drivers/input/serio/libps2.c:92 cypress_ps2_sendbyte drivers/input/mouse/cypress_ps2.c:42 [inline] cypress_ps2_read_cmd_status+0x151/0x610 drivers/input/mouse/cypress_ps2.c:116 cypress_send_ext_cmd+0xfa/0x3e0 drivers/input/mouse/cypress_ps2.c:189 cypress_detect+0x8f/0x220 drivers/input/mouse/cypress_ps2.c:205 psmouse_do_detect drivers/input/mouse/psmouse-base.c:1009 [inline] psmouse_try_protocol drivers/input/mouse/psmouse-base.c:1023 [inline] psmouse_extensions+0x149a/0x2100 drivers/input/mouse/psmouse-base.c:1146 psmouse_switch_protocol+0x307/0x840 drivers/input/mouse/psmouse-base.c:1542 psmouse_connect+0x91a/0x1630 drivers/input/mouse/psmouse-base.c:1632 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 call_driver_probe+0x96/0x250 really_probe+0x223/0x9b0 drivers/base/dd.c:596 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:751 driver_probe_device+0x50/0x240 drivers/base/dd.c:781 __driver_attach+0x2ba/0x520 drivers/base/dd.c:1140 bus_for_each_dev+0x188/0x1f0 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x8d1/0x1070 drivers/input/serio/serio.c:227 process_one_work+0x853/0x1140 kernel/workqueue.c:2297 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 IN-SOFTIRQ-W at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 input_event+0x89/0xc0 drivers/input/input.c:445 hidinput_hid_event+0x1086/0x18c0 drivers/hid/hid-input.c:1440 hid_process_event+0x45c/0x5b0 drivers/hid/hid-core.c:1522 hid_report_raw_event+0xcf9/0x1440 drivers/hid/hid-core.c:1786 hid_input_report+0x3f6/0x4d0 drivers/hid/hid-core.c:1853 hid_irq_in+0x48d/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x375/0x520 drivers/usb/core/hcd.c:1656 dummy_timer+0x808/0x3150 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0xf6/0x210 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers+0x71a/0x910 kernel/time/timer.c:1734 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1747 __do_softirq+0x392/0x7a3 kernel/softirq.c:558 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline] __wake_up_common_lock kernel/sched/wait.c:140 [inline] __wake_up_sync_key+0x124/0x1c0 kernel/sched/wait.c:205 sock_def_readable+0x106/0x200 net/core/sock.c:3054 __netlink_sendskb net/netlink/af_netlink.c:1266 [inline] netlink_broadcast_deliver net/netlink/af_netlink.c:1398 [inline] do_one_broadcast net/netlink/af_netlink.c:1483 [inline] netlink_broadcast_filtered+0xbd6/0x1110 net/netlink/af_netlink.c:1527 netlink_broadcast net/netlink/af_netlink.c:1551 [inline] netlink_sendmsg+0x996/0xe50 net/netlink/af_netlink.c:1933 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] ____sys_sendmsg+0x5b9/0x910 net/socket.c:2409 ___sys_sendmsg net/socket.c:2463 [inline] __sys_sendmsg+0x36f/0x450 net/socket.c:2492 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 input_inject_event+0xb4/0x270 drivers/input/input.c:471 led_trigger_event+0x6f/0xd0 drivers/leds/led-triggers.c:388 kbd_led_trigger_activate+0xb8/0x100 drivers/tty/vt/keyboard.c:1029 led_trigger_set+0x5c8/0x940 drivers/leds/led-triggers.c:195 led_trigger_set_default+0x1ca/0x200 drivers/leds/led-triggers.c:259 led_classdev_register_ext+0x6dc/0x8d0 drivers/leds/led-class.c:417 led_classdev_register include/linux/leds.h:196 [inline] input_leds_connect+0x53e/0x790 drivers/input/input-leds.c:139 input_attach_handler drivers/input/input.c:1035 [inline] input_register_device+0xd95/0x1140 drivers/input/input.c:2335 atkbd_connect+0x74f/0xa60 drivers/input/keyboard/atkbd.c:1293 serio_connect_driver drivers/input/serio/serio.c:47 [inline] serio_driver_probe+0x76/0x90 drivers/input/serio/serio.c:778 call_driver_probe+0x96/0x250 really_probe+0x223/0x9b0 drivers/base/dd.c:596 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:751 driver_probe_device+0x50/0x240 drivers/base/dd.c:781 __driver_attach+0x2ba/0x520 drivers/base/dd.c:1140 bus_for_each_dev+0x188/0x1f0 drivers/base/bus.c:301 serio_attach_driver drivers/input/serio/serio.c:807 [inline] serio_handle_event+0x8d1/0x1070 drivers/input/serio/serio.c:227 process_one_work+0x853/0x1140 kernel/workqueue.c:2297 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 } ... key at: [] input_allocate_device.__key.6+0x0/0x40 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 evdev_events+0x195/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x87c/0x11e0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x189/0x270 drivers/input/input.c:476 evdev_write+0x634/0x7a0 drivers/input/evdev.c:530 vfs_write+0x327/0xe90 fs/read_write.c:592 ksys_write+0x18f/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] evdev_open.__key.23+0x0/0x40 ... acquired at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 evdev_events+0x195/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x87c/0x11e0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x189/0x270 drivers/input/input.c:476 evdev_write+0x634/0x7a0 drivers/input/evdev.c:530 vfs_write+0x327/0xe90 fs/read_write.c:592 ksys_write+0x18f/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&new->fa_lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1035 sock_wake_async+0x133/0x150 rcu_read_unlock include/linux/rcupdate.h:716 [inline] sk_wake_async+0x12e/0x200 include/net/sock.h:2369 tcp_check_urg net/ipv4/tcp_input.c:5550 [inline] tcp_urg+0x2b6/0xb40 net/ipv4/tcp_input.c:5591 tcp_rcv_established+0x9ec/0x22b0 net/ipv4/tcp_input.c:5925 tcp_v4_do_rcv+0x3a1/0x880 net/ipv4/tcp_ipv4.c:1713 tcp_v4_rcv+0x3aa1/0x4880 net/ipv4/tcp_ipv4.c:2106 ip_protocol_deliver_rcu+0x1ed/0x3b0 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip_local_deliver+0x316/0x490 net/ipv4/ip_input.c:252 __netif_receive_skb_one_core net/core/dev.c:5443 [inline] __netif_receive_skb+0x1d1/0x500 net/core/dev.c:5557 process_backlog+0x518/0x9a0 net/core/dev.c:6434 __napi_poll+0xba/0x4f0 net/core/dev.c:6993 napi_poll net/core/dev.c:7060 [inline] net_rx_action+0x61c/0xf30 net/core/dev.c:7147 __do_softirq+0x392/0x7a3 kernel/softirq.c:558 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:920 smpboot_thread_fn+0x533/0x9d0 kernel/smpboot.c:164 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316 fasync_remove_entry+0xff/0x1d0 fs/fcntl.c:891 __fput+0x720/0x870 fs/file_table.c:277 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x209/0x220 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1035 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x195/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x87c/0x11e0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x189/0x270 drivers/input/input.c:476 evdev_write+0x634/0x7a0 drivers/input/evdev.c:530 vfs_write+0x327/0xe90 fs/read_write.c:592 ksys_write+0x18f/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] fasync_insert_entry.__key+0x0/0x40 ... acquired at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1014 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1035 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x195/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x87c/0x11e0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x189/0x270 drivers/input/input.c:476 evdev_write+0x634/0x7a0 drivers/input/evdev.c:530 vfs_write+0x327/0xe90 fs/read_write.c:592 ksys_write+0x18f/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigurg+0x25/0x360 fs/fcntl.c:835 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:3090 tcp_check_urg net/ipv4/tcp_input.c:5550 [inline] tcp_urg+0x2b6/0xb40 net/ipv4/tcp_input.c:5591 tcp_rcv_established+0x9ec/0x22b0 net/ipv4/tcp_input.c:5925 tcp_v4_do_rcv+0x3a1/0x880 net/ipv4/tcp_ipv4.c:1713 tcp_v4_rcv+0x3aa1/0x4880 net/ipv4/tcp_ipv4.c:2106 ip_protocol_deliver_rcu+0x1ed/0x3b0 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip_local_deliver+0x316/0x490 net/ipv4/ip_input.c:252 __netif_receive_skb_one_core net/core/dev.c:5443 [inline] __netif_receive_skb+0x1d1/0x500 net/core/dev.c:5557 process_backlog+0x518/0x9a0 net/core/dev.c:6434 __napi_poll+0xba/0x4f0 net/core/dev.c:6993 napi_poll net/core/dev.c:7060 [inline] net_rx_action+0x61c/0xf30 net/core/dev.c:7147 __do_softirq+0x392/0x7a3 kernel/softirq.c:558 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:920 smpboot_thread_fn+0x533/0x9d0 kernel/smpboot.c:164 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316 f_modown+0x38/0x340 fs/fcntl.c:91 __f_setown fs/fcntl.c:110 [inline] f_setown+0x113/0x1a0 fs/fcntl.c:138 do_fcntl+0x1a8/0x1560 fs/fcntl.c:393 __do_sys_fcntl fs/fcntl.c:472 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:457 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock_irq include/linux/rwlock_api_smp.h:169 [inline] _raw_read_lock_irq+0xd6/0x120 kernel/locking/spinlock.c:244 f_getown_ex fs/fcntl.c:212 [inline] do_fcntl+0x162/0x1560 fs/fcntl.c:396 __do_sys_fcntl fs/fcntl.c:472 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:457 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x300 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1035 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x195/0x280 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x87c/0x11e0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x189/0x270 drivers/input/input.c:476 evdev_write+0x634/0x7a0 drivers/input/evdev.c:530 vfs_write+0x327/0xe90 fs/read_write.c:592 ksys_write+0x18f/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1504 kernel_wait+0xe4/0x230 kernel/exit.c:1694 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x853/0x1140 kernel/workqueue.c:2297 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 SOFTIRQ-ON-R at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1504 kernel_wait+0xe4/0x230 kernel/exit.c:1694 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x853/0x1140 kernel/workqueue.c:2297 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:316 copy_process+0x34b4/0x5c90 kernel/fork.c:2313 kernel_clone+0x230/0x7d0 kernel/fork.c:2584 kernel_thread+0x155/0x1d0 kernel/fork.c:2636 rest_init+0x21/0x2e0 init/main.c:699 start_kernel+0x4bf/0x56e init/main.c:1142 secondary_startup_64_no_verify+0xb1/0xbb INITIAL READ USE at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1504 kernel_wait+0xe4/0x230 kernel/exit.c:1694 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x853/0x1140 kernel/workqueue.c:2297 worker_thread+0xac1/0x1320 kernel/workqueue.c:2444 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xbe/0x300 fs/fcntl.c:810 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1035 lease_break_callback+0x22/0x30 fs/locks.c:585 __break_lease+0xe32/0x1980 fs/locks.c:1560 break_lease include/linux/fs.h:2633 [inline] do_dentry_open+0x722/0x1020 fs/open.c:813 do_open fs/namei.c:3428 [inline] path_openat+0x28b4/0x3670 fs/namei.c:3561 do_filp_open+0x277/0x4f0 fs/namei.c:3588 do_sys_openat2+0x13b/0x500 fs/open.c:1200 do_sys_open fs/open.c:1216 [inline] __do_sys_openat fs/open.c:1232 [inline] __se_sys_openat fs/open.c:1227 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1227 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae stack backtrace: CPU: 0 PID: 20093 Comm: syz-executor.1 Not tainted 5.15.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2565 [inline] check_irq_usage kernel/locking/lockdep.c:2804 [inline] check_prev_add kernel/locking/lockdep.c:3055 [inline] check_prevs_add kernel/locking/lockdep.c:3174 [inline] validate_chain+0x6f4c/0x8240 kernel/locking/lockdep.c:3789 __lock_acquire+0x1382/0x2b00 kernel/locking/lockdep.c:5015 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xbe/0x300 fs/fcntl.c:810 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1035 lease_break_callback+0x22/0x30 fs/locks.c:585 __break_lease+0xe32/0x1980 fs/locks.c:1560 break_lease include/linux/fs.h:2633 [inline] do_dentry_open+0x722/0x1020 fs/open.c:813 do_open fs/namei.c:3428 [inline] path_openat+0x28b4/0x3670 fs/namei.c:3561 do_filp_open+0x277/0x4f0 fs/namei.c:3588 do_sys_openat2+0x13b/0x500 fs/open.c:1200 do_sys_open fs/open.c:1216 [inline] __do_sys_openat fs/open.c:1232 [inline] __se_sys_openat fs/open.c:1227 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1227 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f5c3d61cae9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5c3ab92188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f5c3d72ff60 RCX: 00007f5c3d61cae9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: ffffffffffffff9c RBP: 00007f5c3d676f25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcc5ab7bef R14: 00007f5c3ab92300 R15: 0000000000022000