===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.11.0-rc6-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.4/19404 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888024dfe2b8 (&new->fa_lock){.?.?}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1004 [inline] ffff888024dfe2b8 (&new->fa_lock){.?.?}-{2:2}, at: kill_fasync+0x19b/0x440 fs/fcntl.c:1025 and this task is already holding: ffff8880715b6028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff8880715b6028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 which would create a new lock dependency: (&client->buffer_lock){....}-{2:2} -> (&new->fa_lock){.?.?}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&evdev->mutex){+.+.}-{3:3} ... which became HARDIRQ-irq-safe at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __mutex_lock_common+0x173/0x2f00 kernel/locking/mutex.c:956 __mutex_lock kernel/locking/mutex.c:1103 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:1118 evdev_mark_dead drivers/input/evdev.c:1314 [inline] evdev_cleanup+0x2c/0x170 drivers/input/evdev.c:1323 evdev_disconnect+0x50/0xa0 drivers/input/evdev.c:1407 __input_unregister_device+0x199/0x330 drivers/input/input.c:2189 input_unregister_device+0x9e/0xf0 drivers/input/input.c:2379 rc_free_rx_device drivers/media/rc/rc-main.c:1883 [inline] rc_unregister_device+0x159/0x380 drivers/media/rc/rc-main.c:2032 igorplugusb_disconnect+0x57/0xc0 drivers/media/rc/igorplugusb.c:232 usb_unbind_interface+0x1f2/0x860 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1156 [inline] device_release_driver_internal+0x51e/0x7b0 drivers/base/dd.c:1187 bus_remove_device+0x300/0x420 drivers/base/bus.c:533 device_del+0x5e1/0xa90 drivers/base/core.c:3288 usb_disable_device+0x407/0x800 drivers/usb/core/message.c:1413 usb_disconnect+0x33a/0x8a0 drivers/usb/core/hub.c:2218 hub_port_connect+0x214/0x25b0 drivers/usb/core/hub.c:5074 hub_port_connect_change+0x5c6/0xab0 drivers/usb/core/hub.c:5363 port_event+0xa6f/0x10b0 drivers/usb/core/hub.c:5509 hub_event+0x417/0xcb0 drivers/usb/core/hub.c:5591 process_one_work+0x789/0xfc0 kernel/workqueue.c:2275 process_scheduled_works kernel/workqueue.c:2337 [inline] worker_thread+0xe28/0x1300 kernel/workqueue.c:2423 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 to a HARDIRQ-irq-unsafe lock: (&new->fa_lock){.?.?}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 perf_event_wakeup+0x287/0x2e0 kernel/events/core.c:6277 perf_pending_event+0x1f2/0x390 kernel/events/core.c:6333 irq_work_single kernel/irq_work.c:153 [inline] irq_work_run_list kernel/irq_work.c:175 [inline] irq_work_run+0x1da/0x640 kernel/irq_work.c:184 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 asm_call_irq_on_stack+0xf/0x20 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline] run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline] sysvec_irq_work+0x9f/0xf0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:655 fasync_insert_entry+0x1d1/0x270 fs/fcntl.c:941 fasync_add_entry fs/fcntl.c:968 [inline] fasync_helper+0x4d/0xa0 fs/fcntl.c:986 perf_fasync+0x7f/0xb0 kernel/events/core.c:6237 setfl fs/fcntl.c:73 [inline] do_fcntl+0xd2c/0x11b0 fs/fcntl.c:347 __do_sys_fcntl fs/fcntl.c:463 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 other info that might help us debug this: Chain exists of: &evdev->mutex --> &client->buffer_lock --> &new->fa_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&new->fa_lock); local_irq_disable(); lock(&evdev->mutex); lock(&client->buffer_lock); lock(&evdev->mutex); *** DEADLOCK *** 7 locks held by syz-executor.4/19404: #0: ffff88801d47e110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x1cf/0x6a0 drivers/input/evdev.c:513 #1: ffff88801cf80230 (&dev->event_lock){-.-.}-{2:2}, at: input_inject_event+0xb3/0x280 drivers/input/input.c:471 #2: ffffffff8bd11740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:258 #3: ffffffff8bd11740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:258 #4: ffffffff8bd11740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:258 #5: ffff8880715b6028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff8880715b6028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 #6: ffffffff8bd11740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:258 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&evdev->mutex){+.+.}-{3:3} { HARDIRQ-ON-W at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __mutex_lock_common+0x173/0x2f00 kernel/locking/mutex.c:956 __mutex_lock kernel/locking/mutex.c:1103 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:1118 evdev_mark_dead drivers/input/evdev.c:1314 [inline] evdev_cleanup+0x2c/0x170 drivers/input/evdev.c:1323 evdev_disconnect+0x50/0xa0 drivers/input/evdev.c:1407 __input_unregister_device+0x199/0x330 drivers/input/input.c:2189 input_unregister_device+0x9e/0xf0 drivers/input/input.c:2379 rc_free_rx_device drivers/media/rc/rc-main.c:1883 [inline] rc_unregister_device+0x159/0x380 drivers/media/rc/rc-main.c:2032 igorplugusb_disconnect+0x57/0xc0 drivers/media/rc/igorplugusb.c:232 usb_unbind_interface+0x1f2/0x860 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1156 [inline] device_release_driver_internal+0x51e/0x7b0 drivers/base/dd.c:1187 bus_remove_device+0x300/0x420 drivers/base/bus.c:533 device_del+0x5e1/0xa90 drivers/base/core.c:3288 usb_disable_device+0x407/0x800 drivers/usb/core/message.c:1413 usb_disconnect+0x33a/0x8a0 drivers/usb/core/hub.c:2218 hub_port_connect+0x214/0x25b0 drivers/usb/core/hub.c:5074 hub_port_connect_change+0x5c6/0xab0 drivers/usb/core/hub.c:5363 port_event+0xa6f/0x10b0 drivers/usb/core/hub.c:5509 hub_event+0x417/0xcb0 drivers/usb/core/hub.c:5591 process_one_work+0x789/0xfc0 kernel/workqueue.c:2275 process_scheduled_works kernel/workqueue.c:2337 [inline] worker_thread+0xe28/0x1300 kernel/workqueue.c:2423 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 SOFTIRQ-ON-W at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __mutex_lock_common+0x173/0x2f00 kernel/locking/mutex.c:956 __mutex_lock kernel/locking/mutex.c:1103 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:1118 evdev_mark_dead drivers/input/evdev.c:1314 [inline] evdev_cleanup+0x2c/0x170 drivers/input/evdev.c:1323 evdev_disconnect+0x50/0xa0 drivers/input/evdev.c:1407 __input_unregister_device+0x199/0x330 drivers/input/input.c:2189 input_unregister_device+0x9e/0xf0 drivers/input/input.c:2379 rc_free_rx_device drivers/media/rc/rc-main.c:1883 [inline] rc_unregister_device+0x159/0x380 drivers/media/rc/rc-main.c:2032 igorplugusb_disconnect+0x57/0xc0 drivers/media/rc/igorplugusb.c:232 usb_unbind_interface+0x1f2/0x860 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1156 [inline] device_release_driver_internal+0x51e/0x7b0 drivers/base/dd.c:1187 bus_remove_device+0x300/0x420 drivers/base/bus.c:533 device_del+0x5e1/0xa90 drivers/base/core.c:3288 usb_disable_device+0x407/0x800 drivers/usb/core/message.c:1413 usb_disconnect+0x33a/0x8a0 drivers/usb/core/hub.c:2218 hub_port_connect+0x214/0x25b0 drivers/usb/core/hub.c:5074 hub_port_connect_change+0x5c6/0xab0 drivers/usb/core/hub.c:5363 port_event+0xa6f/0x10b0 drivers/usb/core/hub.c:5509 hub_event+0x417/0xcb0 drivers/usb/core/hub.c:5591 process_one_work+0x789/0xfc0 kernel/workqueue.c:2275 process_scheduled_works kernel/workqueue.c:2337 [inline] worker_thread+0xe28/0x1300 kernel/workqueue.c:2423 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 INITIAL USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __mutex_lock_common+0x173/0x2f00 kernel/locking/mutex.c:956 __mutex_lock kernel/locking/mutex.c:1103 [inline] mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:1118 evdev_mark_dead drivers/input/evdev.c:1314 [inline] evdev_cleanup+0x2c/0x170 drivers/input/evdev.c:1323 evdev_disconnect+0x50/0xa0 drivers/input/evdev.c:1407 __input_unregister_device+0x199/0x330 drivers/input/input.c:2189 input_unregister_device+0x9e/0xf0 drivers/input/input.c:2379 rc_free_rx_device drivers/media/rc/rc-main.c:1883 [inline] rc_unregister_device+0x159/0x380 drivers/media/rc/rc-main.c:2032 igorplugusb_disconnect+0x57/0xc0 drivers/media/rc/igorplugusb.c:232 usb_unbind_interface+0x1f2/0x860 drivers/usb/core/driver.c:458 __device_release_driver drivers/base/dd.c:1156 [inline] device_release_driver_internal+0x51e/0x7b0 drivers/base/dd.c:1187 bus_remove_device+0x300/0x420 drivers/base/bus.c:533 device_del+0x5e1/0xa90 drivers/base/core.c:3288 usb_disable_device+0x407/0x800 drivers/usb/core/message.c:1413 usb_disconnect+0x33a/0x8a0 drivers/usb/core/hub.c:2218 hub_port_connect+0x214/0x25b0 drivers/usb/core/hub.c:5074 hub_port_connect_change+0x5c6/0xab0 drivers/usb/core/hub.c:5363 port_event+0xa6f/0x10b0 drivers/usb/core/hub.c:5509 hub_event+0x417/0xcb0 drivers/usb/core/hub.c:5591 process_one_work+0x789/0xfc0 kernel/workqueue.c:2275 process_scheduled_works kernel/workqueue.c:2337 [inline] worker_thread+0xe28/0x1300 kernel/workqueue.c:2423 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 } ... key at: [] evdev_connect.__key.9+0x0/0x40 ... acquired at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x73/0xa0 kernel/locking/spinlock.c:159 evdev_set_clk_type drivers/input/evdev.c:201 [inline] evdev_do_ioctl drivers/input/evdev.c:1126 [inline] evdev_ioctl_handler+0x10ab/0x23e0 drivers/input/evdev.c:1272 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x73/0xa0 kernel/locking/spinlock.c:159 evdev_set_clk_type drivers/input/evdev.c:201 [inline] evdev_do_ioctl drivers/input/evdev.c:1126 [inline] evdev_ioctl_handler+0x10ab/0x23e0 drivers/input/evdev.c:1272 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] evdev_open.__key.23+0x0/0x40 ... acquired at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x1e8/0x280 drivers/input/input.c:476 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (&new->fa_lock){.?.?}-{2:2} { IN-HARDIRQ-R at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 perf_event_wakeup+0x287/0x2e0 kernel/events/core.c:6277 perf_pending_event+0x1f2/0x390 kernel/events/core.c:6333 irq_work_single kernel/irq_work.c:153 [inline] irq_work_run_list kernel/irq_work.c:175 [inline] irq_work_run+0x1da/0x640 kernel/irq_work.c:184 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 asm_call_irq_on_stack+0xf/0x20 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline] run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline] sysvec_irq_work+0x9f/0xf0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:655 fasync_insert_entry+0x1d1/0x270 fs/fcntl.c:941 fasync_add_entry fs/fcntl.c:968 [inline] fasync_helper+0x4d/0xa0 fs/fcntl.c:986 perf_fasync+0x7f/0xb0 kernel/events/core.c:6237 setfl fs/fcntl.c:73 [inline] do_fcntl+0xd2c/0x11b0 fs/fcntl.c:347 __do_sys_fcntl fs/fcntl.c:463 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:448 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 HARDIRQ-ON-R at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 sock_wake_async+0x133/0x150 net/socket.c:1310 sk_wake_async+0x17f/0x200 include/net/sock.h:2286 unix_release_sock+0x3e8/0x900 net/unix/af_unix.c:553 unix_release+0x4a/0x80 net/unix/af_unix.c:859 __sock_release net/socket.c:597 [inline] sock_close+0xd8/0x260 net/socket.c:1256 __fput+0x34d/0x7a0 fs/file_table.c:280 task_work_run+0x137/0x1c0 kernel/task_work.c:140 get_signal+0x1e47/0x1ef0 kernel/signal.c:2554 arch_do_signal_or_restart+0x3c/0x610 arch/x86/kernel/signal.c:811 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0xac/0x1e0 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x48/0x180 kernel/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x44/0xa9 IN-SOFTIRQ-R at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 perf_event_wakeup+0x287/0x2e0 kernel/events/core.c:6277 perf_pending_event+0x1f2/0x390 kernel/events/core.c:6333 irq_work_single kernel/irq_work.c:153 [inline] irq_work_run_list kernel/irq_work.c:175 [inline] irq_work_run+0x1da/0x640 kernel/irq_work.c:184 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline] sysvec_irq_work+0xdb/0xf0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:655 ffs arch/x86/include/asm/bitops.h:297 [inline] __do_softirq+0x193/0x714 kernel/softirq.c:331 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x9a/0xe0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu+0x1d8/0x200 kernel/softirq.c:420 irq_exit_rcu+0x5/0x20 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0xe0/0xf0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:629 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] console_unlock+0xa74/0xcf0 kernel/printk/printk.c:2578 vprintk_emit+0x15e/0x200 kernel/printk/printk.c:2092 printk+0x62/0x83 kernel/printk/printk.c:2140 xt_check_match+0x419/0xc60 net/netfilter/x_tables.c:469 check_match net/ipv6/netfilter/ip6_tables.c:489 [inline] find_check_match net/ipv6/netfilter/ip6_tables.c:506 [inline] find_check_entry net/ipv6/netfilter/ip6_tables.c:557 [inline] translate_table+0x14a6/0x2170 net/ipv6/netfilter/ip6_tables.c:734 do_replace net/ipv6/netfilter/ip6_tables.c:1152 [inline] do_ip6t_set_ctl+0x27d3/0x3730 net/ipv6/netfilter/ip6_tables.c:1636 nf_setsockopt+0x29f/0x2d0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x2672/0x5520 net/ipv6/ipv6_sockglue.c:1008 __sys_setsockopt+0x4b8/0x880 net/socket.c:2115 __do_sys_setsockopt net/socket.c:2126 [inline] __se_sys_setsockopt net/socket.c:2123 [inline] __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2123 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 SOFTIRQ-ON-R at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 sock_wake_async+0x133/0x150 net/socket.c:1310 sk_wake_async+0x17f/0x200 include/net/sock.h:2286 unix_release_sock+0x3e8/0x900 net/unix/af_unix.c:553 unix_release+0x4a/0x80 net/unix/af_unix.c:859 __sock_release net/socket.c:597 [inline] sock_close+0xd8/0x260 net/socket.c:1256 __fput+0x34d/0x7a0 fs/file_table.c:280 task_work_run+0x137/0x1c0 kernel/task_work.c:140 get_signal+0x1e47/0x1ef0 kernel/signal.c:2554 arch_do_signal_or_restart+0x3c/0x610 arch/x86/kernel/signal.c:811 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0xac/0x1e0 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x48/0x180 kernel/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x44/0xa9 INITIAL USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0x6f/0xa0 kernel/locking/spinlock.c:311 fasync_remove_entry+0xff/0x1d0 fs/fcntl.c:882 sock_fasync+0x86/0xf0 net/socket.c:1281 __fput+0x656/0x7a0 fs/file_table.c:277 task_work_run+0x137/0x1c0 kernel/task_work.c:140 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x1e0 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x48/0x180 kernel/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x44/0xa9 INITIAL READ USE at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 sock_wake_async+0x133/0x150 net/socket.c:1310 sk_wake_async+0x17f/0x200 include/net/sock.h:2286 unix_release_sock+0x3e8/0x900 net/unix/af_unix.c:553 unix_release+0x4a/0x80 net/unix/af_unix.c:859 __sock_release net/socket.c:597 [inline] sock_close+0xd8/0x260 net/socket.c:1256 __fput+0x34d/0x7a0 fs/file_table.c:280 task_work_run+0x137/0x1c0 kernel/task_work.c:140 get_signal+0x1e47/0x1ef0 kernel/signal.c:2554 arch_do_signal_or_restart+0x3c/0x610 arch/x86/kernel/signal.c:811 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0xac/0x1e0 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x48/0x180 kernel/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] fasync_insert_entry.__key+0x0/0x40 ... acquired at: lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x1e8/0x280 drivers/input/input.c:476 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 stack backtrace: CPU: 1 PID: 19404 Comm: syz-executor.4 Not tainted 5.11.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x137/0x1be lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2452 [inline] check_irq_usage kernel/locking/lockdep.c:2681 [inline] check_prev_add kernel/locking/lockdep.c:2872 [inline] check_prevs_add+0x460c/0x5280 kernel/locking/lockdep.c:2993 validate_chain kernel/locking/lockdep.c:3608 [inline] __lock_acquire+0x4227/0x5e90 kernel/locking/lockdep.c:4832 lock_acquire+0x114/0x5e0 kernel/locking/lockdep.c:5442 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1025 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x1e8/0x280 drivers/input/input.c:476 evdev_write+0x54d/0x6a0 drivers/input/evdev.c:530 vfs_write+0x220/0xab0 fs/read_write.c:603 ksys_write+0x11b/0x220 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007eff68ca0c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e219 RDX: 0000000000004098 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffdce96431f R14: 00007eff68ca19c0 R15: 000000000119bf8c