===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.15.154-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.0/9351 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888063203de0 (&new->fa_lock){...-}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1014 [inline] ffff888063203de0 (&new->fa_lock){...-}-{2:2}, at: kill_fasync+0x16a/0x490 fs/fcntl.c:1035 and this task is already holding: ffff888044e2e028 (&client->buffer_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] ffff888044e2e028 (&client->buffer_lock){..-.}-{2:2}, at: evdev_pass_values+0xe7/0xb60 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 SOFTIRQ-irq-safe lock: (&client->buffer_lock){..-.}-{2:2} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0xe7/0xb60 drivers/input/evdev.c:261 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xd3d/0x1600 drivers/input/input.c:426 input_event+0x9d/0xd0 drivers/input/input.c:457 hidinput_hid_event+0x1137/0x18e0 drivers/hid/hid-input.c:1467 hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1539 hid_input_field drivers/hid/hid-core.c:1583 [inline] hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1807 hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1874 hid_irq_in+0x45c/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1674 dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 console_unlock+0xe53/0x12b0 kernel/printk/printk.c:2749 vprintk_emit+0xbf/0x150 kernel/printk/printk.c:2274 _printk+0xd1/0x120 kernel/printk/printk.c:2299 vlan_device_event+0x1cb4/0x1dd0 net/8021q/vlan.c:384 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 __dev_notify_flags+0x304/0x610 dev_change_flags+0xe7/0x190 net/core/dev.c:8889 do_setlink+0xcd1/0x3ae0 net/core/rtnetlink.c:2741 __rtnl_newlink net/core/rtnetlink.c:3429 [inline] rtnl_newlink+0x17a4/0x2070 net/core/rtnetlink.c:3549 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5629 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x564/0x720 net/socket.c:2058 __do_sys_sendto net/socket.c:2070 [inline] __se_sys_sendto net/socket.c:2066 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2066 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 other info that might help us debug this: Chain exists of: &client->buffer_lock --> &new->fa_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&client->buffer_lock); lock(&new->fa_lock); lock(&client->buffer_lock); *** DEADLOCK *** 7 locks held by syz-executor.0/9351: #0: ffff88801f39e110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x26d/0x7c0 drivers/input/evdev.c:513 #1: ffff888146ed0230 (&dev->event_lock#2){-.-.}-{2:2}, at: input_inject_event+0xc0/0x300 drivers/input/input.c:482 #2: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #3: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #4: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 #5: ffff888044e2e028 (&client->buffer_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #5: ffff888044e2e028 (&client->buffer_lock){..-.}-{2:2}, at: evdev_pass_values+0xe7/0xb60 drivers/input/evdev.c:261 #6: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&client->buffer_lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0xe7/0xb60 drivers/input/evdev.c:261 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xd3d/0x1600 drivers/input/input.c:426 input_event+0x9d/0xd0 drivers/input/input.c:457 hidinput_hid_event+0x1137/0x18e0 drivers/hid/hid-input.c:1467 hid_process_event+0x433/0x580 drivers/hid/hid-core.c:1539 hid_input_field drivers/hid/hid-core.c:1583 [inline] hid_report_raw_event+0xe9e/0x1640 drivers/hid/hid-core.c:1807 hid_input_report+0x419/0x4d0 drivers/hid/hid-core.c:1874 hid_irq_in+0x45c/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1674 dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 console_unlock+0xe53/0x12b0 kernel/printk/printk.c:2749 vprintk_emit+0xbf/0x150 kernel/printk/printk.c:2274 _printk+0xd1/0x120 kernel/printk/printk.c:2299 vlan_device_event+0x1cb4/0x1dd0 net/8021q/vlan.c:384 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 __dev_notify_flags+0x304/0x610 dev_change_flags+0xe7/0x190 net/core/dev.c:8889 do_setlink+0xcd1/0x3ae0 net/core/rtnetlink.c:2741 __rtnl_newlink net/core/rtnetlink.c:3429 [inline] rtnl_newlink+0x17a4/0x2070 net/core/rtnetlink.c:3549 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5629 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x564/0x720 net/socket.c:2058 __do_sys_sendto net/socket.c:2070 [inline] __se_sys_sendto net/socket.c:2066 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2066 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0xe7/0xb60 drivers/input/evdev.c:261 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xc9b/0x1600 drivers/input/input.c:415 input_inject_event+0x1fc/0x300 drivers/input/input.c:487 evdev_write+0x668/0x7c0 drivers/input/evdev.c:530 vfs_write+0x30c/0xe50 fs/read_write.c:592 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] evdev_open.__key.23+0x0/0x20 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 SOFTIRQ-ON-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0x22be/0x3ef0 kernel/fork.c:2337 kernel_clone+0x210/0x960 kernel/fork.c:2604 kernel_thread+0x168/0x1e0 kernel/fork.c:2656 rest_init+0x21/0x330 init/main.c:704 start_kernel+0x48c/0x540 init/main.c:1138 secondary_startup_64_no_verify+0xb1/0xbb INITIAL READ USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2a7/0xaf0 kernel/exit.c:1576 kernel_wait+0xe5/0x230 kernel/exit.c:1766 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:166 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xd2/0x330 fs/fcntl.c:810 dnotify_handle_event+0x138/0x440 fs/notify/dnotify/dnotify.c:97 fsnotify_handle_inode_event fs/notify/fsnotify.c:264 [inline] fsnotify_handle_event fs/notify/fsnotify.c:316 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x1cee/0x2450 fs/notify/fsnotify.c:570 fsnotify_parent include/linux/fsnotify.h:80 [inline] fsnotify_file include/linux/fsnotify.h:99 [inline] fsnotify_access include/linux/fsnotify.h:309 [inline] do_iter_read+0x5e7/0x760 fs/read_write.c:795 vfs_readv fs/read_write.c:910 [inline] do_preadv+0x211/0x350 fs/read_write.c:1002 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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/0x330 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x20c/0x490 fs/fcntl.c:1035 sock_wake_async+0x145/0x170 sk_wake_async+0x15d/0x250 include/net/sock.h:2459 tcp_data_queue+0x828/0x6f20 net/ipv4/tcp_input.c:5068 tcp_rcv_established+0xe3e/0x1e20 net/ipv4/tcp_input.c:5987 tcp_v4_do_rcv+0x423/0x960 net/ipv4/tcp_ipv4.c:1727 tcp_v4_rcv+0x2740/0x2d80 net/ipv4/tcp_ipv4.c:2130 ip_protocol_deliver_rcu+0x381/0x730 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x1db/0x320 net/ipv4/ip_input.c:231 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5485 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5599 process_backlog+0x363/0x7f0 net/core/dev.c:6476 __napi_poll+0xc7/0x440 net/core/dev.c:7035 napi_poll net/core/dev.c:7102 [inline] net_rx_action+0x617/0xda0 net/core/dev.c:7192 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 do_softirq+0x162/0x240 kernel/softirq.c:459 __local_bh_enable_ip+0x1b1/0x1f0 kernel/softirq.c:383 rcu_read_unlock_bh include/linux/rcupdate.h:809 [inline] ip_finish_output2+0xdf1/0x11a0 net/ipv4/ip_output.c:229 dst_output include/net/dst.h:443 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x1296/0x1ce0 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x1f39/0x3810 net/ipv4/tcp_output.c:1402 tcp_transmit_skb net/ipv4/tcp_output.c:1420 [inline] tcp_write_xmit+0x19e5/0x65f0 net/ipv4/tcp_output.c:2705 __tcp_push_pending_frames net/ipv4/tcp_output.c:2890 [inline] tcp_send_fin+0x80d/0xf80 net/ipv4/tcp_output.c:3456 __tcp_close+0xb4d/0xec0 net/ipv4/tcp.c:2827 tcp_close+0x24/0x110 net/ipv4/tcp.c:2917 inet_release+0x174/0x1f0 net/ipv4/af_inet.c:434 __sock_release net/socket.c:649 [inline] sock_release+0x7a/0x140 net/socket.c:677 rds_tcp_accept_one+0x17f/0xbb0 net/rds/tcp_listen.c:226 rds_tcp_accept_worker+0x3b/0xa0 net/rds/tcp.c:515 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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 fcntl_dirnotify+0x688/0x890 fs/notify/dnotify/dnotify.c:351 do_fcntl+0x605/0x1600 fs/fcntl.c:422 __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+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 INITIAL READ USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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/0x330 fs/fcntl.c:796 dnotify_handle_event+0x138/0x440 fs/notify/dnotify/dnotify.c:97 fsnotify_handle_inode_event fs/notify/fsnotify.c:264 [inline] fsnotify_handle_event fs/notify/fsnotify.c:316 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x1cee/0x2450 fs/notify/fsnotify.c:570 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_dirent include/linux/fsnotify.h:42 [inline] fsnotify_create include/linux/fsnotify.h:207 [inline] open_last_lookups fs/namei.c:3534 [inline] path_openat+0x14ef/0x2f20 fs/namei.c:3739 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x500 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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/0x330 fs/fcntl.c:796 kill_fasync_rcu fs/fcntl.c:1021 [inline] kill_fasync+0x20c/0x490 fs/fcntl.c:1035 sock_wake_async+0x145/0x170 sk_wake_async+0x15d/0x250 include/net/sock.h:2459 unix_release_sock+0x535/0xaa0 net/unix/af_unix.c:571 unix_release+0x88/0xc0 net/unix/af_unix.c:950 __sock_release net/socket.c:649 [inline] sock_close+0xcd/0x230 net/socket.c:1336 __fput+0x3bf/0x890 fs/file_table.c:280 task_work_run+0x129/0x1a0 kernel/task_work.c:164 get_signal+0x143a/0x14e0 kernel/signal.c:2661 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> (&new->fa_lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0x16a/0x490 fs/fcntl.c:1035 sock_wake_async+0x145/0x170 sk_wake_async+0x15d/0x250 include/net/sock.h:2459 tcp_data_queue+0x828/0x6f20 net/ipv4/tcp_input.c:5068 tcp_rcv_established+0xe3e/0x1e20 net/ipv4/tcp_input.c:5987 tcp_v4_do_rcv+0x423/0x960 net/ipv4/tcp_ipv4.c:1727 tcp_v4_rcv+0x2740/0x2d80 net/ipv4/tcp_ipv4.c:2130 ip_protocol_deliver_rcu+0x381/0x730 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x1db/0x320 net/ipv4/ip_input.c:231 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5485 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5599 process_backlog+0x363/0x7f0 net/core/dev.c:6476 __napi_poll+0xc7/0x440 net/core/dev.c:7035 napi_poll net/core/dev.c:7102 [inline] net_rx_action+0x617/0xda0 net/core/dev.c:7192 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 do_softirq+0x162/0x240 kernel/softirq.c:459 __local_bh_enable_ip+0x1b1/0x1f0 kernel/softirq.c:383 rcu_read_unlock_bh include/linux/rcupdate.h:809 [inline] ip_finish_output2+0xdf1/0x11a0 net/ipv4/ip_output.c:229 dst_output include/net/dst.h:443 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x1296/0x1ce0 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x1f39/0x3810 net/ipv4/tcp_output.c:1402 tcp_transmit_skb net/ipv4/tcp_output.c:1420 [inline] tcp_write_xmit+0x19e5/0x65f0 net/ipv4/tcp_output.c:2705 __tcp_push_pending_frames net/ipv4/tcp_output.c:2890 [inline] tcp_send_fin+0x80d/0xf80 net/ipv4/tcp_output.c:3456 __tcp_close+0xb4d/0xec0 net/ipv4/tcp.c:2827 tcp_close+0x24/0x110 net/ipv4/tcp.c:2917 inet_release+0x174/0x1f0 net/ipv4/af_inet.c:434 __sock_release net/socket.c:649 [inline] sock_release+0x7a/0x140 net/socket.c:677 rds_tcp_accept_one+0x17f/0xbb0 net/rds/tcp_listen.c:226 rds_tcp_accept_worker+0x3b/0xa0 net/rds/tcp.c:515 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 INITIAL USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0xfb/0x1d0 fs/fcntl.c:891 __fput+0x715/0x890 fs/file_table.c:277 task_work_run+0x129/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 INITIAL READ USE at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0x16a/0x490 fs/fcntl.c:1035 sock_wake_async+0x145/0x170 sk_wake_async+0x15d/0x250 include/net/sock.h:2459 unix_release_sock+0x535/0xaa0 net/unix/af_unix.c:571 unix_release+0x88/0xc0 net/unix/af_unix.c:950 __sock_release net/socket.c:649 [inline] sock_close+0xcd/0x230 net/socket.c:1336 __fput+0x3bf/0x890 fs/file_table.c:280 task_work_run+0x129/0x1a0 kernel/task_work.c:164 get_signal+0x143a/0x14e0 kernel/signal.c:2661 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0x16a/0x490 fs/fcntl.c:1035 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x5ad/0xb60 drivers/input/evdev.c:278 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xc9b/0x1600 drivers/input/input.c:415 input_inject_event+0x1fc/0x300 drivers/input/input.c:487 evdev_write+0x668/0x7c0 drivers/input/evdev.c:530 vfs_write+0x30c/0xe50 fs/read_write.c:592 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 stack backtrace: CPU: 1 PID: 9351 Comm: syz-executor.0 Not tainted 5.15.154-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2567 [inline] check_irq_usage kernel/locking/lockdep.c:2806 [inline] check_prev_add kernel/locking/lockdep.c:3057 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain+0x4d01/0x5930 kernel/locking/lockdep.c:3788 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __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+0x16a/0x490 fs/fcntl.c:1035 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x5ad/0xb60 drivers/input/evdev.c:278 evdev_events+0x198/0x2c0 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:126 [inline] input_pass_values+0x873/0x1200 drivers/input/input.c:156 input_handle_event+0xc9b/0x1600 drivers/input/input.c:415 input_inject_event+0x1fc/0x300 drivers/input/input.c:487 evdev_write+0x668/0x7c0 drivers/input/evdev.c:530 vfs_write+0x30c/0xe50 fs/read_write.c:592 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fd8fe4d2e69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd8fca450c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd8fe600f80 RCX: 00007fd8fe4d2e69 RDX: 0000000000002250 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007fd8fe51f47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd8fe600f80 R15: 00007ffefdcff168