===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected syzkaller #0 Tainted: G L ----------------------------------------------------- syz.1.4110/23338 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888057bc3168 (&new->fa_lock){...-}-{3:3}, at: kill_fasync_rcu fs/fcntl.c:1135 [inline] ffff888057bc3168 (&new->fa_lock){...-}-{3:3}, at: kill_fasync+0x199/0x4d0 fs/fcntl.c:1159 and this task is already holding: ffff88801dea8028 (&client->buffer_lock){....}-{3:3}, at: spin_lock include/linux/spinlock.h:342 [inline] ffff88801dea8028 (&client->buffer_lock){....}-{3:3}, at: evdev_pass_values+0xcb/0xc00 drivers/input/evdev.c:261 which would create a new lock dependency: (&client->buffer_lock){....}-{3:3} -> (&new->fa_lock){...-}-{3:3} but this new dependency connects a SOFTIRQ-irq-safe lock: (&dev->event_lock#2){..-.}-{3:3} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166 class_spinlock_irqsave_constructor include/linux/spinlock.h:620 [inline] input_inject_event+0xa4/0x330 drivers/input/input.c:419 led_trigger_event+0x138/0x210 drivers/leds/led-triggers.c:420 kbd_propagate_led_state drivers/tty/vt/keyboard.c:1118 [inline] kbd_bh+0x1c6/0x2e0 drivers/tty/vt/keyboard.c:1297 tasklet_action_common+0x2da/0x4a0 kernel/softirq.c:938 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:188 [inline] _raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:206 spin_unlock_irq include/linux/spinlock.h:402 [inline] n_tty_ioctl_helper+0x38a/0x4d0 drivers/tty/tty_ioctl.c:-1 tty_ioctl+0x9bd/0xdd0 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{3:3} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:163 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:232 __do_wait+0xd9/0x720 kernel/exit.c:1679 do_wait+0x1e7/0x510 kernel/exit.c:1723 kernel_wait+0xd6/0x1c0 kernel/exit.c:1899 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 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 *** 7 locks held by syz.1.4110/23338: #0: ffff88802cbad110 (&evdev->mutex){+.+.}-{4:4}, at: evdev_write+0x1ae/0x4c0 drivers/input/evdev.c:511 #1: ffff888020742230 (&dev->event_lock#2){..-.}-{3:3}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:620 [inline] #1: ffff888020742230 (&dev->event_lock#2){..-.}-{3:3}, at: input_inject_event+0xa4/0x330 drivers/input/input.c:419 #2: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #2: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #2: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1181 [inline] #2: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: input_inject_event+0xb5/0x330 drivers/input/input.c:420 #3: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #3: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #3: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1181 [inline] #3: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: input_pass_values+0x8d/0x890 drivers/input/input.c:119 #4: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #4: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #4: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: evdev_events+0x79/0x340 drivers/input/evdev.c:298 #5: ffff88801dea8028 (&client->buffer_lock){....}-{3:3}, at: spin_lock include/linux/spinlock.h:342 [inline] #5: ffff88801dea8028 (&client->buffer_lock){....}-{3:3}, at: evdev_pass_values+0xcb/0xc00 drivers/input/evdev.c:261 #6: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #6: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #6: ffffffff8e95c780 (rcu_read_lock){....}-{1:3}, at: kill_fasync+0x53/0x4d0 fs/fcntl.c:1158 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){..-.}-{3:3} { IN-SOFTIRQ-W at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166 class_spinlock_irqsave_constructor include/linux/spinlock.h:620 [inline] input_inject_event+0xa4/0x330 drivers/input/input.c:419 led_trigger_event+0x138/0x210 drivers/leds/led-triggers.c:420 kbd_propagate_led_state drivers/tty/vt/keyboard.c:1118 [inline] kbd_bh+0x1c6/0x2e0 drivers/tty/vt/keyboard.c:1297 tasklet_action_common+0x2da/0x4a0 kernel/softirq.c:938 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:188 [inline] _raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:206 spin_unlock_irq include/linux/spinlock.h:402 [inline] n_tty_ioctl_helper+0x38a/0x4d0 drivers/tty/tty_ioctl.c:-1 tty_ioctl+0x9bd/0xdd0 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166 class_spinlock_irqsave_constructor include/linux/spinlock.h:620 [inline] input_inject_event+0xa4/0x330 drivers/input/input.c:419 kbd_led_trigger_activate+0xbc/0x100 drivers/tty/vt/keyboard.c:1074 led_trigger_set+0x525/0x940 drivers/leds/led-triggers.c:220 led_match_default_trigger drivers/leds/led-triggers.c:277 [inline] led_trigger_set_default+0x263/0x2a0 drivers/leds/led-triggers.c:300 led_classdev_register_ext+0x761/0x9a0 drivers/leds/led-class.c:581 led_classdev_register include/linux/leds.h:274 [inline] input_leds_connect+0x4de/0x750 drivers/input/input-leds.c:145 input_attach_handler drivers/input/input.c:1011 [inline] input_register_device+0xd12/0x1150 drivers/input/input.c:2395 atkbd_connect+0x6fa/0x9f0 drivers/input/keyboard/atkbd.c:1323 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x82/0xb0 drivers/input/serio/serio.c:748 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:709 __driver_probe_device+0x1f5/0x380 drivers/base/dd.c:871 driver_probe_device+0x4f/0x240 drivers/base/dd.c:901 __driver_attach+0x342/0x620 drivers/base/dd.c:1295 bus_for_each_dev+0x23b/0x2c0 drivers/base/bus.c:383 serio_attach_driver drivers/input/serio/serio.c:777 [inline] serio_handle_event+0x1af/0xfc0 drivers/input/serio/serio.c:214 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] input_allocate_device.__key.7+0x0/0x20 -> (&client->buffer_lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166 evdev_set_clk_type drivers/input/evdev.c:201 [inline] evdev_do_ioctl drivers/input/evdev.c:1124 [inline] evdev_ioctl_handler+0x1086/0x1f60 drivers/input/evdev.c:1270 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] evdev_open.__key.27+0x0/0x20 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:158 spin_lock include/linux/spinlock.h:342 [inline] evdev_pass_values+0xcb/0xc00 drivers/input/evdev.c:261 evdev_events+0x1e6/0x340 drivers/input/evdev.c:306 input_pass_values+0x288/0x890 drivers/input/input.c:128 input_event_dispose+0x330/0x6b0 drivers/input/input.c:342 input_inject_event+0x1dd/0x330 drivers/input/input.c:424 evdev_write+0x325/0x4c0 drivers/input/evdev.c:528 vfs_write+0x296/0xba0 fs/read_write.c:686 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{3:3} { HARDIRQ-ON-R at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:163 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:232 __do_wait+0xd9/0x720 kernel/exit.c:1679 do_wait+0x1e7/0x510 kernel/exit.c:1723 kernel_wait+0xd6/0x1c0 kernel/exit.c:1899 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 SOFTIRQ-ON-R at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:163 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:232 __do_wait+0xd9/0x720 kernel/exit.c:1679 do_wait+0x1e7/0x510 kernel/exit.c:1723 kernel_wait+0xd6/0x1c0 kernel/exit.c:1899 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_write_lock_irq include/linux/rwlock_api_smp.h:213 [inline] _raw_write_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:330 copy_process+0x29eb/0x4380 kernel/fork.c:2411 kernel_clone+0x2d7/0x940 kernel/fork.c:2722 user_mode_thread+0x110/0x180 kernel/fork.c:2798 rest_init+0x23/0x300 init/main.c:727 start_kernel+0x38a/0x3e0 init/main.c:1220 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x137/0x1b0 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x147 INITIAL READ USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock include/linux/rwlock_api_smp.h:163 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:232 __do_wait+0xd9/0x720 kernel/exit.c:1679 do_wait+0x1e7/0x510 kernel/exit.c:1723 kernel_wait+0xd6/0x1c0 kernel/exit.c:1899 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xbe/0x230 kernel/umh.c:163 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:163 [inline] _raw_read_lock+0x36/0x50 kernel/locking/spinlock.c:232 send_sigurg+0x12b/0x420 fs/fcntl.c:978 sk_send_sigurg+0x6c/0x2e0 net/core/sock.c:3681 queue_oob+0x42c/0x4f0 net/unix/af_unix.c:2368 unix_stream_sendmsg+0xc30/0xde0 net/unix/af_unix.c:2502 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] ____sys_sendmsg+0x9b9/0xa20 net/socket.c:2699 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2753 __sys_sendmsg net/socket.c:2785 [inline] __do_sys_sendmsg net/socket.c:2790 [inline] __se_sys_sendmsg net/socket.c:2788 [inline] __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2788 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&f_owner->lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_write_lock_irq include/linux/rwlock_api_smp.h:213 [inline] _raw_write_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:330 __f_setown+0x5f/0x380 fs/fcntl.c:136 tun_chr_fasync+0x127/0x1a0 drivers/net/tun.c:3390 ioctl_fioasync fs/ioctl.c:378 [inline] do_vfs_ioctl+0x1120/0x1540 fs/ioctl.c:511 __do_sys_ioctl fs/ioctl.c:595 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:240 send_sigio+0x38/0x370 fs/fcntl.c:918 kill_fasync_rcu fs/fcntl.c:1144 [inline] kill_fasync+0x24d/0x4d0 fs/fcntl.c:1159 tun_net_xmit+0x104e/0x1600 drivers/net/tun.c:1076 __netdev_start_xmit include/linux/netdevice.h:5368 [inline] netdev_start_xmit include/linux/netdevice.h:5377 [inline] xmit_one net/core/dev.c:3888 [inline] dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:3904 sch_direct_xmit+0x257/0x4c0 net/sched/sch_generic.c:372 qdisc_restart net/sched/sch_generic.c:437 [inline] __qdisc_run+0xb11/0x1620 net/sched/sch_generic.c:445 qdisc_run include/net/pkt_sched.h:120 [inline] __dev_xmit_skb net/core/dev.c:4292 [inline] __dev_queue_xmit+0x1c00/0x37f0 net/core/dev.c:4831 packet_snd net/packet/af_packet.c:3082 [inline] packet_sendmsg+0x3d95/0x5040 net/packet/af_packet.c:3114 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] __sys_sendto+0x672/0x710 net/socket.c:2266 __do_sys_sendto net/socket.c:2273 [inline] __se_sys_sendto net/socket.c:2269 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2269 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] file_f_owner_allocate.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:240 send_sigio+0x38/0x370 fs/fcntl.c:918 kill_fasync_rcu fs/fcntl.c:1144 [inline] kill_fasync+0x24d/0x4d0 fs/fcntl.c:1159 tun_net_xmit+0x104e/0x1600 drivers/net/tun.c:1076 __netdev_start_xmit include/linux/netdevice.h:5368 [inline] netdev_start_xmit include/linux/netdevice.h:5377 [inline] xmit_one net/core/dev.c:3888 [inline] dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:3904 sch_direct_xmit+0x257/0x4c0 net/sched/sch_generic.c:372 qdisc_restart net/sched/sch_generic.c:437 [inline] __qdisc_run+0xb11/0x1620 net/sched/sch_generic.c:445 qdisc_run include/net/pkt_sched.h:120 [inline] __dev_xmit_skb net/core/dev.c:4292 [inline] __dev_queue_xmit+0x1c00/0x37f0 net/core/dev.c:4831 packet_snd net/packet/af_packet.c:3082 [inline] packet_sendmsg+0x3d95/0x5040 net/packet/af_packet.c:3114 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] __sys_sendto+0x672/0x710 net/socket.c:2266 __do_sys_sendto net/socket.c:2273 [inline] __se_sys_sendto net/socket.c:2269 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2269 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&new->fa_lock){...-}-{3:3} { IN-SOFTIRQ-R at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:240 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync+0x199/0x4d0 fs/fcntl.c:1159 sock_wake_async+0x132/0x150 net/socket.c:-1 sk_wake_async+0x189/0x280 include/net/sock.h:2586 tcp_data_queue+0xdb0/0x5fa0 net/ipv4/tcp_input.c:5641 tcp_rcv_established+0xd7f/0x2830 net/ipv4/tcp_input.c:6656 tcp_v4_do_rcv+0x727/0x13b0 net/ipv4/tcp_ipv4.c:1851 tcp_v4_rcv+0x27d2/0x3160 net/ipv4/tcp_ipv4.c:2246 ip_protocol_deliver_rcu+0x21d/0x440 net/ipv4/ip_input.c:207 ip_local_deliver_finish+0x3bb/0x6f0 net/ipv4/ip_input.c:241 NF_HOOK+0x336/0x3c0 include/linux/netfilter.h:318 NF_HOOK+0x336/0x3c0 include/linux/netfilter.h:318 __netif_receive_skb_one_core net/core/dev.c:6202 [inline] __netif_receive_skb net/core/dev.c:6315 [inline] process_backlog+0xa34/0x1860 net/core/dev.c:6666 __napi_poll+0xaa/0x330 net/core/dev.c:7733 napi_poll net/core/dev.c:7796 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7953 handle_softirqs+0x225/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:912 [inline] __dev_queue_xmit+0x1ed7/0x37f0 net/core/dev.c:4905 dev_queue_xmit include/linux/netdevice.h:3418 [inline] neigh_hh_output include/net/neighbour.h:544 [inline] neigh_output include/net/neighbour.h:558 [inline] ip_finish_output2+0xbda/0x10b0 net/ipv4/ip_output.c:237 NF_HOOK_COND include/linux/netfilter.h:307 [inline] ip_output+0x29f/0x450 net/ipv4/ip_output.c:438 __ip_queue_xmit+0x10df/0x1b10 net/ipv4/ip_output.c:534 __tcp_transmit_skb+0x2d18/0x47c0 net/ipv4/tcp_output.c:1716 tcp_transmit_skb net/ipv4/tcp_output.c:1733 [inline] tcp_write_xmit+0x1bed/0x63f0 net/ipv4/tcp_output.c:3061 __tcp_push_pending_frames+0x96/0x380 net/ipv4/tcp_output.c:3244 __tcp_close+0x593/0xec0 net/ipv4/tcp.c:3222 tcp_close+0x28/0x110 net/ipv4/tcp.c:3313 inet_release+0x143/0x190 net/ipv4/af_inet.c:442 __sock_release net/socket.c:722 [inline] sock_release+0x85/0x150 net/socket.c:750 rds_tcp_accept_one+0x62c/0xd40 net/rds/tcp_listen.c:341 rds_tcp_accept_worker+0x1d/0x70 net/rds/tcp.c:533 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3397 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3478 kthread+0x389/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_write_lock_irq include/linux/rwlock_api_smp.h:213 [inline] _raw_write_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:330 fasync_remove_entry+0xf1/0x1c0 fs/fcntl.c:1012 tun_chr_fasync+0x87/0x1a0 drivers/net/tun.c:3386 __fput+0x88d/0xa50 fs/file_table.c:507 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0x193/0x6b0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x353/0x580 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:240 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync+0x199/0x4d0 fs/fcntl.c:1159 tun_net_xmit+0x104e/0x1600 drivers/net/tun.c:1076 __netdev_start_xmit include/linux/netdevice.h:5368 [inline] netdev_start_xmit include/linux/netdevice.h:5377 [inline] xmit_one net/core/dev.c:3888 [inline] dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:3904 sch_direct_xmit+0x257/0x4c0 net/sched/sch_generic.c:372 qdisc_restart net/sched/sch_generic.c:437 [inline] __qdisc_run+0xb11/0x1620 net/sched/sch_generic.c:445 qdisc_run include/net/pkt_sched.h:120 [inline] __dev_xmit_skb net/core/dev.c:4292 [inline] __dev_queue_xmit+0x1c00/0x37f0 net/core/dev.c:4831 packet_snd net/packet/af_packet.c:3082 [inline] packet_sendmsg+0x3d95/0x5040 net/packet/af_packet.c:3114 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg net/socket.c:802 [inline] __sys_sendto+0x672/0x710 net/socket.c:2266 __do_sys_sendto net/socket.c:2273 [inline] __se_sys_sendto net/socket.c:2269 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2269 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:240 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync+0x199/0x4d0 fs/fcntl.c:1159 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x552/0xc00 drivers/input/evdev.c:278 evdev_events+0x1e6/0x340 drivers/input/evdev.c:306 input_pass_values+0x288/0x890 drivers/input/input.c:128 input_event_dispose+0x330/0x6b0 drivers/input/input.c:342 input_inject_event+0x1dd/0x330 drivers/input/input.c:424 evdev_write+0x325/0x4c0 drivers/input/evdev.c:528 vfs_write+0x296/0xba0 fs/read_write.c:686 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f stack backtrace: CPU: 1 UID: 0 PID: 23338 Comm: syz.1.4110 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2616 [inline] check_irq_usage kernel/locking/lockdep.c:2857 [inline] check_prev_add kernel/locking/lockdep.c:3169 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x2a37/0x2cd0 kernel/locking/lockdep.c:5237 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:174 [inline] _raw_read_lock_irqsave+0x48/0x60 kernel/locking/spinlock.c:240 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync+0x199/0x4d0 fs/fcntl.c:1159 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x552/0xc00 drivers/input/evdev.c:278 evdev_events+0x1e6/0x340 drivers/input/evdev.c:306 input_pass_values+0x288/0x890 drivers/input/input.c:128 input_event_dispose+0x330/0x6b0 drivers/input/input.c:342 input_inject_event+0x1dd/0x330 drivers/input/input.c:424 evdev_write+0x325/0x4c0 drivers/input/evdev.c:528 vfs_write+0x296/0xba0 fs/read_write.c:686 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff0c119ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff0c212f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007ff0c1415fa0 RCX: 00007ff0c119ce59 RDX: 0000000000000037 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007ff0c1232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff0c1416038 R14: 00007ff0c1415fa0 R15: 00007ff0c153fa48