===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected syzkaller #0 Tainted: G L ----------------------------------------------------- syz.0.4168/22599 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff8880571734b0 (&new->fa_lock){...-}-{3:3}, at: kill_fasync_rcu fs/fcntl.c:1135 [inline] ffff8880571734b0 (&new->fa_lock){...-}-{3:3}, at: kill_fasync fs/fcntl.c:1159 [inline] ffff8880571734b0 (&new->fa_lock){...-}-{3:3}, at: kill_fasync+0x138/0x510 fs/fcntl.c:1152 and this task is already holding: ffff888053ace468 (&tty->flow.lock){....}-{3:3}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] ffff888053ace468 (&tty->flow.lock){....}-{3:3}, at: start_tty+0x21/0x190 drivers/tty/tty_io.c:793 which would create a new lock dependency: (&tty->flow.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 kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] input_inject_event+0x9f/0x3b0 drivers/input/input.c:419 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x221/0x2a0 drivers/leds/led-core.c:328 led_trigger_event drivers/leds/led-triggers.c:420 [inline] led_trigger_event+0xda/0x270 drivers/leds/led-triggers.c:408 kbd_propagate_led_state drivers/tty/vt/keyboard.c:1065 [inline] kbd_bh+0x243/0x330 drivers/tty/vt/keyboard.c:1244 tasklet_action_common+0x2de/0x3d0 kernel/softirq.c:925 handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{3:3} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x13b/0x8b0 kernel/exit.c:1678 do_wait+0x1ec/0x5a0 kernel/exit.c:1722 kernel_wait+0xa1/0x160 kernel/exit.c:1898 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf6/0x180 kernel/umh.c:163 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 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 --> &tty->flow.lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&tty->flow.lock); lock(&dev->event_lock#2); *** DEADLOCK *** 6 locks held by syz.0.4168/22599: #0: ffff888053ace0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffff888053ace130 (&tty->atomic_write_lock){+.+.}-{4:4}, at: tty_write_lock drivers/tty/tty_io.c:942 [inline] #1: ffff888053ace130 (&tty->atomic_write_lock){+.+.}-{4:4}, at: tty_send_xchar+0x1ce/0x380 drivers/tty/tty_io.c:1148 #2: ffff888053ace2e8 (&tty->termios_rwsem){++++}-{4:4}, at: tty_send_xchar+0x1f7/0x380 drivers/tty/tty_io.c:1151 #3: ffff888053ace468 (&tty->flow.lock){....}-{3:3}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] #3: ffff888053ace468 (&tty->flow.lock){....}-{3:3}, at: start_tty+0x21/0x190 drivers/tty/tty_io.c:793 #4: ffff888053ace0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref+0x21/0x90 drivers/tty/tty_ldisc.c:263 #5: ffffffff8e7e76a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:312 [inline] #5: ffffffff8e7e76a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:850 [inline] #5: ffffffff8e7e76a0 (rcu_read_lock){....}-{1:3}, at: kill_fasync fs/fcntl.c:1158 [inline] #5: ffffffff8e7e76a0 (rcu_read_lock){....}-{1:3}, at: kill_fasync+0x62/0x510 fs/fcntl.c:1152 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){..-.}-{3:3} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] input_inject_event+0x9f/0x3b0 drivers/input/input.c:419 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x221/0x2a0 drivers/leds/led-core.c:328 led_trigger_event drivers/leds/led-triggers.c:420 [inline] led_trigger_event+0xda/0x270 drivers/leds/led-triggers.c:408 kbd_propagate_led_state drivers/tty/vt/keyboard.c:1065 [inline] kbd_bh+0x243/0x330 drivers/tty/vt/keyboard.c:1244 tasklet_action_common+0x2de/0x3d0 kernel/softirq.c:925 handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] input_inject_event+0x9f/0x3b0 drivers/input/input.c:419 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x221/0x2a0 drivers/leds/led-core.c:328 kbd_led_trigger_activate+0xcb/0x110 drivers/tty/vt/keyboard.c:1021 led_trigger_set+0x66b/0xbe0 drivers/leds/led-triggers.c:220 led_match_default_trigger drivers/leds/led-triggers.c:277 [inline] led_match_default_trigger drivers/leds/led-triggers.c:271 [inline] led_trigger_set_default drivers/leds/led-triggers.c:300 [inline] led_trigger_set_default+0x1e2/0x2f0 drivers/leds/led-triggers.c:284 led_classdev_register_ext+0x72b/0x990 drivers/leds/led-class.c:578 led_classdev_register include/linux/leds.h:274 [inline] input_leds_connect+0x5af/0x8b0 drivers/input/input-leds.c:145 input_attach_handler.isra.0+0x177/0x1e0 drivers/input/input.c:994 input_register_device.cold+0x139/0x375 drivers/input/input.c:2378 atkbd_connect+0x685/0xa00 drivers/input/keyboard/atkbd.c:1340 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x7f/0xd0 drivers/input/serio/serio.c:748 call_driver_probe drivers/base/dd.c:583 [inline] really_probe+0x241/0xa60 drivers/base/dd.c:661 __driver_probe_device+0x1de/0x400 drivers/base/dd.c:803 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:833 __driver_attach+0x217/0x5c0 drivers/base/dd.c:1227 bus_for_each_dev+0x13e/0x1d0 drivers/base/bus.c:383 serio_attach_driver drivers/input/serio/serio.c:777 [inline] serio_handle_event+0x281/0x9e0 drivers/input/serio/serio.c:214 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] __key.7+0x0/0x40 -> (kbd_event_lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] vt_reset_unicode+0x1e/0x170 drivers/tty/vt/keyboard.c:2126 reset_vc+0x77/0x280 drivers/tty/vt/vt_ioctl.c:966 vc_init+0x9e/0x490 drivers/tty/vt/vt.c:3721 con_init+0x448/0x5f0 drivers/tty/vt/vt.c:3787 console_init+0x423/0x620 kernel/printk/printk.c:4407 start_kernel+0x305/0x480 init/main.c:1147 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x12b/0x130 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x148 } ... key at: [] kbd_event_lock+0x18/0x60 keyboard.c:-1 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:341 [inline] class_spinlock_constructor include/linux/spinlock.h:586 [inline] kbd_event+0x89/0x1930 drivers/tty/vt/keyboard.c:1510 input_handle_events_default+0x119/0x1b0 drivers/input/input.c:2541 input_pass_values+0x753/0x880 drivers/input/input.c:128 input_event_dispose drivers/input/input.c:342 [inline] input_handle_event+0x7e4/0x1500 drivers/input/input.c:370 input_inject_event+0x1f1/0x3b0 drivers/input/input.c:424 evdev_write+0x3ef/0x610 drivers/input/evdev.c:528 vfs_write+0x2aa/0x1070 fs/read_write.c:686 ksys_write+0x1f8/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&tty->flow.lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] start_tty+0x21/0x190 drivers/tty/tty_io.c:793 n_tty_set_termios+0x57e/0xf20 drivers/tty/n_tty.c:1848 tty_set_termios+0x6bf/0x980 drivers/tty/tty_ioctl.c:348 set_termios+0x5c8/0x880 drivers/tty/tty_ioctl.c:516 tty_mode_ioctl+0x17e/0xd40 drivers/tty/tty_ioctl.c:803 n_tty_ioctl_helper+0x47/0x2b0 drivers/tty/tty_ioctl.c:982 n_tty_ioctl+0x53/0x370 drivers/tty/n_tty.c:2496 tty_ioctl+0x1204/0x1690 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.4+0x0/0x40 ... acquired at: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:618 [inline] stop_tty+0x21/0x130 drivers/tty/tty_io.c:765 fn_hold+0xb8/0xe0 drivers/tty/vt/keyboard.c:524 k_spec drivers/tty/vt/keyboard.c:662 [inline] k_spec+0x100/0x140 drivers/tty/vt/keyboard.c:651 kbd_keycode drivers/tty/vt/keyboard.c:1497 [inline] kbd_event+0xd15/0x1930 drivers/tty/vt/keyboard.c:1515 input_handle_events_default+0x119/0x1b0 drivers/input/input.c:2541 input_pass_values+0x753/0x880 drivers/input/input.c:128 input_event_dispose drivers/input/input.c:342 [inline] input_handle_event+0x7e4/0x1500 drivers/input/input.c:370 input_inject_event+0x1f1/0x3b0 drivers/input/input.c:424 evdev_write+0x3ef/0x610 drivers/input/evdev.c:528 vfs_write+0x2aa/0x1070 fs/read_write.c:686 ksys_write+0x1f8/0x250 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 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 kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x13b/0x8b0 kernel/exit.c:1678 do_wait+0x1ec/0x5a0 kernel/exit.c:1722 kernel_wait+0xa1/0x160 kernel/exit.c:1898 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf6/0x180 kernel/umh.c:163 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 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 kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x13b/0x8b0 kernel/exit.c:1678 do_wait+0x1ec/0x5a0 kernel/exit.c:1722 kernel_wait+0xa1/0x160 kernel/exit.c:1898 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf6/0x180 kernel/umh.c:163 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_write_lock_irq include/linux/rwlock_api_smp.h:211 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 copy_process+0x67f1/0x7a40 kernel/fork.c:2369 kernel_clone+0xfc/0x9a0 kernel/fork.c:2653 user_mode_thread+0xcc/0x110 kernel/fork.c:2729 rest_init+0x21/0x260 init/main.c:725 start_kernel+0x47f/0x480 init/main.c:1210 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x12b/0x130 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x148 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock include/linux/rwlock_api_smp.h:161 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x13b/0x8b0 kernel/exit.c:1678 do_wait+0x1ec/0x5a0 kernel/exit.c:1722 kernel_wait+0xa1/0x160 kernel/exit.c:1898 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf6/0x180 kernel/umh.c:163 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 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:161 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigurg+0xed/0xc80 fs/fcntl.c:978 sk_send_sigurg+0x76/0x370 net/core/sock.c:3669 queue_oob net/unix/af_unix.c:2352 [inline] unix_stream_sendmsg+0xbbf/0x1310 net/unix/af_unix.c:2486 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0x9e1/0xb70 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmmsg+0x205/0x430 net/socket.c:2735 __do_sys_sendmmsg net/socket.c:2762 [inline] __se_sys_sendmmsg net/socket.c:2759 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2759 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&f_owner->lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_write_lock_irq include/linux/rwlock_api_smp.h:211 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 __f_setown+0x65/0x390 fs/fcntl.c:136 f_setown_ex fs/fcntl.c:254 [inline] do_fcntl+0xc86/0x1670 fs/fcntl.c:520 __do_sys_fcntl fs/fcntl.c:602 [inline] __se_sys_fcntl fs/fcntl.c:587 [inline] __x64_sys_fcntl+0x163/0x200 fs/fcntl.c:587 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x5f/0xc80 fs/fcntl.c:962 sk_send_sigurg+0x76/0x370 net/core/sock.c:3669 queue_oob net/unix/af_unix.c:2352 [inline] unix_stream_sendmsg+0xbbf/0x1310 net/unix/af_unix.c:2486 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0x9e1/0xb70 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmmsg+0x205/0x430 net/socket.c:2735 __do_sys_sendmmsg net/socket.c:2762 [inline] __se_sys_sendmmsg net/socket.c:2759 [inline] __x64_sys_sendmmsg+0x9c/0x100 net/socket.c:2759 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.1+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigio+0x31/0x3e0 fs/fcntl.c:918 kill_fasync_rcu fs/fcntl.c:1144 [inline] kill_fasync fs/fcntl.c:1159 [inline] kill_fasync+0x214/0x510 fs/fcntl.c:1152 lease_break_callback+0x23/0x30 fs/locks.c:577 __break_lease+0x7f4/0x19b0 fs/locks.c:1657 break_deleg include/linux/filelock.h:504 [inline] try_break_deleg include/linux/filelock.h:523 [inline] notify_change+0xc2f/0x1330 fs/attr.c:550 chown_common+0x51e/0x6e0 fs/open.c:778 do_fchownat+0x18e/0x1f0 fs/open.c:806 __do_sys_fchownat fs/open.c:821 [inline] __se_sys_fchownat fs/open.c:818 [inline] __x64_sys_fchownat+0xbd/0x160 fs/open.c:818 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 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 kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x46/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync fs/fcntl.c:1159 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1152 sock_wake_async+0x132/0x160 net/socket.c:1509 sk_wake_async_rcu include/net/sock.h:2579 [inline] sk_wake_async_rcu include/net/sock.h:2576 [inline] sock_def_readable+0x53f/0x630 net/core/sock.c:3613 tcp_data_ready+0x114/0x5a0 net/ipv4/tcp_input.c:5624 tcp_data_queue+0x1aca/0x4fd0 net/ipv4/tcp_input.c:5714 tcp_rcv_established+0xb64/0x3980 net/ipv4/tcp_input.c:6708 tcp_v4_do_rcv+0xc87/0x10d0 net/ipv4/tcp_ipv4.c:1884 tcp_v4_rcv+0x2de5/0x4680 net/ipv4/tcp_ipv4.c:2319 ip_protocol_deliver_rcu+0xba/0x4d0 net/ipv4/ip_input.c:207 ip_local_deliver_finish+0x3f2/0x6e0 net/ipv4/ip_input.c:241 NF_HOOK include/linux/netfilter.h:318 [inline] NF_HOOK include/linux/netfilter.h:312 [inline] ip_local_deliver+0x19a/0x1f0 net/ipv4/ip_input.c:262 dst_input include/net/dst.h:480 [inline] ip_rcv_finish net/ipv4/ip_input.c:453 [inline] NF_HOOK include/linux/netfilter.h:318 [inline] NF_HOOK include/linux/netfilter.h:312 [inline] ip_rcv+0x33a/0x3c0 net/ipv4/ip_input.c:573 __netif_receive_skb_one_core+0x197/0x1e0 net/core/dev.c:6164 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6277 process_backlog+0x37a/0x1580 net/core/dev.c:6628 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7692 napi_poll net/core/dev.c:7755 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7912 handle_softirqs+0x1eb/0x9e0 kernel/softirq.c:622 do_softirq kernel/softirq.c:523 [inline] do_softirq+0xac/0xe0 kernel/softirq.c:510 __local_bh_enable_ip+0xf8/0x120 kernel/softirq.c:450 sk_stream_wait_memory+0x651/0x10c0 net/core/stream.c:149 tcp_sendmsg_locked+0x1558/0x45e0 net/ipv4/tcp.c:1418 tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1465 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:865 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] __sys_sendto+0x446/0x4b0 net/socket.c:2206 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2209 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_write_lock_irq include/linux/rwlock_api_smp.h:211 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 fasync_remove_entry+0xb2/0x1e0 fs/fcntl.c:1012 fasync_helper+0xaf/0xd0 fs/fcntl.c:1115 sock_fasync+0x92/0x140 net/socket.c:1480 __fput+0x94c/0xb40 fs/file_table.c:466 task_work_run+0x150/0x240 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+0x100/0x4a0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x67c/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync fs/fcntl.c:1159 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1152 sock_wake_async+0x132/0x160 net/socket.c:1509 sk_wake_async include/net/sock.h:2571 [inline] sk_wake_async include/net/sock.h:2567 [inline] mptcp_close_wake_up net/mptcp/protocol.c:424 [inline] mptcp_close_wake_up+0x2f0/0x600 net/mptcp/protocol.c:414 __mptcp_close_ssk+0xac9/0x1280 net/mptcp/protocol.c:2607 mptcp_destroy_common+0x646/0xad0 net/mptcp/protocol.c:3379 mptcp_disconnect+0x2af/0x960 net/mptcp/protocol.c:3414 inet_shutdown+0x26f/0x410 net/ipv4/af_inet.c:949 __sys_shutdown_sock net/socket.c:2432 [inline] __sys_shutdown_sock net/socket.c:2426 [inline] __sys_shutdown+0x116/0x1b0 net/socket.c:2448 __do_sys_shutdown net/socket.c:2453 [inline] __se_sys_shutdown net/socket.c:2451 [inline] __x64_sys_shutdown+0x53/0x80 net/socket.c:2451 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.0+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync fs/fcntl.c:1159 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1152 tty_wakeup+0xe8/0x120 drivers/tty/tty_io.c:515 __start_tty drivers/tty/tty_io.c:777 [inline] __start_tty drivers/tty/tty_io.c:770 [inline] start_tty+0x127/0x190 drivers/tty/tty_io.c:794 tty_send_xchar+0x2a5/0x380 drivers/tty/tty_io.c:1153 n_tty_ioctl_helper+0x1b9/0x2b0 drivers/tty/tty_ioctl.c:969 n_tty_ioctl+0x53/0x370 drivers/tty/n_tty.c:2496 tty_ioctl+0x1204/0x1690 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f stack backtrace: CPU: 0 UID: 0 PID: 22599 Comm: syz.0.4168 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2616 [inline] check_irq_usage+0x7aa/0x810 kernel/locking/lockdep.c:2857 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+0x14cf/0x2630 kernel/locking/lockdep.c:5237 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1cf/0x380 kernel/locking/lockdep.c:5825 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:172 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:1135 [inline] kill_fasync fs/fcntl.c:1159 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1152 tty_wakeup+0xe8/0x120 drivers/tty/tty_io.c:515 __start_tty drivers/tty/tty_io.c:777 [inline] __start_tty drivers/tty/tty_io.c:770 [inline] start_tty+0x127/0x190 drivers/tty/tty_io.c:794 tty_send_xchar+0x2a5/0x380 drivers/tty/tty_io.c:1153 n_tty_ioctl_helper+0x1b9/0x2b0 drivers/tty/tty_ioctl.c:969 n_tty_ioctl+0x53/0x370 drivers/tty/n_tty.c:2496 tty_ioctl+0x1204/0x1690 drivers/tty/tty_io.c:2801 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0f23d9c799 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:00007f0f24b84028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0f24016180 RCX: 00007f0f23d9c799 RDX: 0000000000000002 RSI: 000000000000540a RDI: 0000000000000003 RBP: 00007f0f23e32c99 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0f24016218 R14: 00007f0f24016180 R15: 00007ffe0f2caef8