===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.2.0-syzkaller-06695-gd8ca6dbb8de7 #0 Not tainted ----------------------------------------------------- syz-executor.4/29621 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff8880297f4750 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:997 [inline] ffff8880297f4750 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1018 [inline] ffff8880297f4750 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x139/0x4f0 fs/fcntl.c:1011 and this task is already holding: ffff88807d9e7028 (&client->buffer_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] ffff88807d9e7028 (&client->buffer_lock){..-.}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x960 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 kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] evdev_pass_values.part.0+0xf6/0x960 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3b4/0x430 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x760 drivers/input/input.c:160 input_pass_values drivers/input/input.c:149 [inline] input_event_dispose+0x537/0x730 drivers/input/input.c:386 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_event drivers/input/input.c:432 [inline] input_event+0x83/0xa0 drivers/input/input.c:424 hidinput_hid_event+0x955/0x2060 drivers/hid/hid-input.c:1693 hid_process_event+0x491/0x5c0 drivers/hid/hid-core.c:1530 hid_process_report drivers/hid/hid-core.c:1678 [inline] hid_report_raw_event+0x964/0x11c0 drivers/hid/hid-core.c:2001 hid_input_report+0x341/0x440 drivers/hid/hid-core.c:2075 hid_irq_in+0x357/0x840 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b6/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x384/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x13b6/0x3400 drivers/usb/gadget/udc/dummy_hcd.c:1988 call_timer_fn+0x1da/0x800 kernel/time/timer.c:1700 expire_timers+0x2c6/0x5e0 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 find_stack lib/stackdepot.c:304 [inline] __stack_depot_save+0x139/0x560 lib/stackdepot.c:452 kasan_save_stack+0x35/0x40 mm/kasan/common.c:46 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] ____kasan_kmalloc mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa5/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc_node+0x5d/0xd0 mm/slab_common.c:975 kmalloc_node include/linux/slab.h:610 [inline] kvmalloc_node+0xa2/0x1a0 mm/util.c:581 kvmalloc include/linux/slab.h:737 [inline] seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x7fb/0x12d0 fs/seq_file.c:210 kernfs_fop_read_iter+0x4ce/0x690 fs/kernfs/file.c:279 call_read_iter include/linux/fs.h:1843 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x681/0x930 fs/read_write.c:470 ksys_read+0x12b/0x250 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd90 kernel/exit.c:1602 kernel_wait+0xa0/0x150 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 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.4/29621: #0: ffff888147741110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x1d7/0x760 drivers/input/evdev.c:513 #1: ffff88801c529230 (&dev->event_lock#2){-.-.}-{2:2}, at: input_inject_event+0x9f/0x390 drivers/input/input.c:457 #2: ffffffff8c796a80 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:66 [inline] #2: ffffffff8c796a80 (rcu_read_lock){....}-{1:2}, at: is_event_supported drivers/input/input.c:63 [inline] #2: ffffffff8c796a80 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0x8b/0x390 drivers/input/input.c:456 #3: ffffffff8c796a80 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x0/0x760 drivers/input/input.c:903 #4: ffffffff8c796a80 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x5d/0x430 drivers/input/evdev.c:296 #5: ffff88807d9e7028 (&client->buffer_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #5: ffff88807d9e7028 (&client->buffer_lock){..-.}-{2:2}, at: evdev_pass_values.part.0+0xf6/0x960 drivers/input/evdev.c:261 #6: ffffffff8c796a80 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x45/0x4f0 fs/fcntl.c:1016 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&client->buffer_lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] evdev_pass_values.part.0+0xf6/0x960 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3b4/0x430 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x760 drivers/input/input.c:160 input_pass_values drivers/input/input.c:149 [inline] input_event_dispose+0x537/0x730 drivers/input/input.c:386 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_event drivers/input/input.c:432 [inline] input_event+0x83/0xa0 drivers/input/input.c:424 hidinput_hid_event+0x955/0x2060 drivers/hid/hid-input.c:1693 hid_process_event+0x491/0x5c0 drivers/hid/hid-core.c:1530 hid_process_report drivers/hid/hid-core.c:1678 [inline] hid_report_raw_event+0x964/0x11c0 drivers/hid/hid-core.c:2001 hid_input_report+0x341/0x440 drivers/hid/hid-core.c:2075 hid_irq_in+0x357/0x840 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b6/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x384/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x13b6/0x3400 drivers/usb/gadget/udc/dummy_hcd.c:1988 call_timer_fn+0x1da/0x800 kernel/time/timer.c:1700 expire_timers+0x2c6/0x5e0 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 find_stack lib/stackdepot.c:304 [inline] __stack_depot_save+0x139/0x560 lib/stackdepot.c:452 kasan_save_stack+0x35/0x40 mm/kasan/common.c:46 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] ____kasan_kmalloc mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa5/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc_node+0x5d/0xd0 mm/slab_common.c:975 kmalloc_node include/linux/slab.h:610 [inline] kvmalloc_node+0xa2/0x1a0 mm/util.c:581 kvmalloc include/linux/slab.h:737 [inline] seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x7fb/0x12d0 fs/seq_file.c:210 kernfs_fop_read_iter+0x4ce/0x690 fs/kernfs/file.c:279 call_read_iter include/linux/fs.h:1843 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x681/0x930 fs/read_write.c:470 ksys_read+0x12b/0x250 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] evdev_pass_values.part.0+0xf6/0x960 drivers/input/evdev.c:261 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3b4/0x430 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x760 drivers/input/input.c:160 input_pass_values drivers/input/input.c:149 [inline] input_event_dispose+0x537/0x730 drivers/input/input.c:386 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_event drivers/input/input.c:432 [inline] input_event+0x83/0xa0 drivers/input/input.c:424 hidinput_hid_event+0x955/0x2060 drivers/hid/hid-input.c:1693 hid_process_event+0x491/0x5c0 drivers/hid/hid-core.c:1530 hid_process_report drivers/hid/hid-core.c:1678 [inline] hid_report_raw_event+0x964/0x11c0 drivers/hid/hid-core.c:2001 hid_input_report+0x341/0x440 drivers/hid/hid-core.c:2075 hid_irq_in+0x357/0x840 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b6/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x384/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x13b6/0x3400 drivers/usb/gadget/udc/dummy_hcd.c:1988 call_timer_fn+0x1da/0x800 kernel/time/timer.c:1700 expire_timers+0x2c6/0x5e0 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 find_stack lib/stackdepot.c:304 [inline] __stack_depot_save+0x139/0x560 lib/stackdepot.c:452 kasan_save_stack+0x35/0x40 mm/kasan/common.c:46 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] ____kasan_kmalloc mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa5/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc_node+0x5d/0xd0 mm/slab_common.c:975 kmalloc_node include/linux/slab.h:610 [inline] kvmalloc_node+0xa2/0x1a0 mm/util.c:581 kvmalloc include/linux/slab.h:737 [inline] seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x7fb/0x12d0 fs/seq_file.c:210 kernfs_fop_read_iter+0x4ce/0x690 fs/kernfs/file.c:279 call_read_iter include/linux/fs.h:1843 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x681/0x930 fs/read_write.c:470 ksys_read+0x12b/0x250 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.3+0x0/0x40 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd90 kernel/exit.c:1602 kernel_wait+0xa0/0x150 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd90 kernel/exit.c:1602 kernel_wait+0xa0/0x150 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 copy_process+0x47e5/0x76c0 kernel/fork.c:2406 kernel_clone+0xeb/0xa10 kernel/fork.c:2687 user_mode_thread+0xb1/0xf0 kernel/fork.c:2763 rest_init+0x27/0x2b0 init/main.c:697 arch_call_rest_init+0x13/0x30 init/main.c:894 start_kernel+0x35a/0x4d0 init/main.c:1148 secondary_startup_64_no_verify+0xce/0xdb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd90 kernel/exit.c:1602 kernel_wait+0xa0/0x150 kernel/exit.c:1792 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xaf/0x3b0 fs/fcntl.c:793 dnotify_handle_event+0x14c/0x280 fs/notify/dnotify/dnotify.c:115 fsnotify_handle_inode_event.isra.0+0x22e/0x370 fs/notify/fsnotify.c:264 fsnotify_handle_event fs/notify/fsnotify.c:316 [inline] send_to_group fs/notify/fsnotify.c:364 [inline] fsnotify+0x11cc/0x16e0 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] iterate_dir+0x5e6/0x6f0 fs/readdir.c:69 __do_sys_getdents fs/readdir.c:286 [inline] __se_sys_getdents fs/readdir.c:271 [inline] __x64_sys_getdents+0x13e/0x2c0 fs/readdir.c:271 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x49/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xbd0 fs/fcntl.c:818 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3350 tcp_check_urg net/ipv4/tcp_input.c:5626 [inline] tcp_urg+0x38e/0xb40 net/ipv4/tcp_input.c:5667 tcp_rcv_established+0x897/0x22a0 net/ipv4/tcp_input.c:6014 tcp_v4_do_rcv+0x663/0x9d0 net/ipv4/tcp_ipv4.c:1721 tcp_v4_rcv+0x2eac/0x3280 net/ipv4/tcp_ipv4.c:2143 ip_protocol_deliver_rcu+0x9f/0x480 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2ec/0x520 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:302 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] ip_local_deliver+0x1ae/0x200 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:454 [inline] ip_rcv_finish+0x1cf/0x2f0 net/ipv4/ip_input.c:449 NF_HOOK include/linux/netfilter.h:302 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] ip_rcv+0xae/0xd0 net/ipv4/ip_input.c:569 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5477 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5591 process_backlog+0x279/0x850 net/core/dev.c:5919 __napi_poll+0xb8/0x870 net/core/dev.c:6480 napi_poll net/core/dev.c:6547 [inline] net_rx_action+0x9fd/0xdc0 net/core/dev.c:6657 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571 do_softirq.part.0+0xde/0x130 kernel/softirq.c:472 do_softirq kernel/softirq.c:464 [inline] __local_bh_enable_ip+0x106/0x130 kernel/softirq.c:396 sk_stream_wait_memory+0x72f/0xf30 net/core/stream.c:145 tcp_sendmsg_locked+0x944/0x2950 net/ipv4/tcp.c:1446 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1484 inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:825 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg+0xde/0x190 net/socket.c:745 __sys_sendto+0x23a/0x340 net/socket.c:2145 __do_sys_sendto net/socket.c:2157 [inline] __se_sys_sendto net/socket.c:2153 [inline] __x64_sys_sendto+0xe1/0x1b0 net/socket.c:2153 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 f_modown+0x2a/0x390 fs/fcntl.c:92 __f_setown fs/fcntl.c:111 [inline] f_setown+0xdb/0x270 fs/fcntl.c:139 do_fcntl+0x34e/0x1240 fs/fcntl.c:378 __do_sys_fcntl fs/fcntl.c:455 [inline] __se_sys_fcntl fs/fcntl.c:440 [inline] __x64_sys_fcntl+0x163/0x1d0 fs/fcntl.c:440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xbd0 fs/fcntl.c:818 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3350 tcp_check_urg net/ipv4/tcp_input.c:5626 [inline] tcp_urg+0x38e/0xb40 net/ipv4/tcp_input.c:5667 tcp_rcv_established+0x897/0x22a0 net/ipv4/tcp_input.c:6014 tcp_v4_do_rcv+0x663/0x9d0 net/ipv4/tcp_ipv4.c:1721 sk_backlog_rcv include/net/sock.h:1113 [inline] __release_sock+0x133/0x3b0 net/core/sock.c:2921 release_sock+0x58/0x1b0 net/core/sock.c:3488 sk_stream_wait_memory+0x72f/0xf30 net/core/stream.c:145 tcp_sendmsg_locked+0x944/0x2950 net/ipv4/tcp.c:1446 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1484 inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:825 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg+0xde/0x190 net/socket.c:745 __sys_sendto+0x23a/0x340 net/socket.c:2145 __do_sys_sendto net/socket.c:2157 [inline] __se_sys_sendto net/socket.c:2153 [inline] __x64_sys_sendto+0xe1/0x1b0 net/socket.c:2153 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.5+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 send_sigio+0x28/0x3b0 fs/fcntl.c:779 kill_fasync_rcu fs/fcntl.c:1004 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x1fb/0x4f0 fs/fcntl.c:1011 sock_wake_async+0xd6/0x160 net/socket.c:1447 sk_wake_async include/net/sock.h:2518 [inline] sk_wake_async+0x108/0x2f0 include/net/sock.h:2514 unix_release_sock+0xa65/0xf80 net/unix/af_unix.c:636 unix_release+0x88/0xe0 net/unix/af_unix.c:1042 __sock_release+0xcd/0x290 net/socket.c:651 sock_close+0x1c/0x20 net/socket.c:1393 __fput+0x27c/0xa90 fs/file_table.c:321 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xad3/0x2a40 kernel/exit.c:869 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019 get_signal+0x2315/0x25b0 kernel/signal.c:2859 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 fasync_remove_entry+0xba/0x1f0 fs/fcntl.c:874 fasync_helper+0xa2/0xb0 fs/fcntl.c:977 lease_modify fs/locks.c:1387 [inline] lease_modify+0x28e/0x3c0 fs/locks.c:1374 locks_remove_lease fs/locks.c:2601 [inline] locks_remove_file+0x2a0/0x5b0 fs/locks.c:2626 __fput+0x1b5/0xa90 fs/file_table.c:313 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:997 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x139/0x4f0 fs/fcntl.c:1011 sock_wake_async+0xd6/0x160 net/socket.c:1447 sk_wake_async include/net/sock.h:2518 [inline] sk_wake_async+0x108/0x2f0 include/net/sock.h:2514 unix_release_sock+0xa65/0xf80 net/unix/af_unix.c:636 unix_release+0x88/0xe0 net/unix/af_unix.c:1042 __sock_release+0xcd/0x290 net/socket.c:651 sock_close+0x1c/0x20 net/socket.c:1393 __fput+0x27c/0xa90 fs/file_table.c:321 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xad3/0x2a40 kernel/exit.c:869 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019 get_signal+0x2315/0x25b0 kernel/signal.c:2859 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.0+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:997 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x139/0x4f0 fs/fcntl.c:1011 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x667/0x960 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3b4/0x430 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x760 drivers/input/input.c:160 input_pass_values drivers/input/input.c:147 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:375 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_inject_event+0x1c7/0x390 drivers/input/input.c:462 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xe10 fs/read_write.c:582 ksys_write+0x1ec/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd stack backtrace: CPU: 1 PID: 29621 Comm: syz-executor.4 Not tainted 6.2.0-syzkaller-06695-gd8ca6dbb8de7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2612 [inline] check_irq_usage+0x114e/0x1a40 kernel/locking/lockdep.c:2851 check_prev_add kernel/locking/lockdep.c:3102 [inline] check_prevs_add kernel/locking/lockdep.c:3217 [inline] validate_chain kernel/locking/lockdep.c:3832 [inline] __lock_acquire+0x2edf/0x5d40 kernel/locking/lockdep.c:5056 lock_acquire kernel/locking/lockdep.c:5669 [inline] lock_acquire+0x1e3/0x670 kernel/locking/lockdep.c:5634 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x74/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:997 [inline] kill_fasync fs/fcntl.c:1018 [inline] kill_fasync+0x139/0x4f0 fs/fcntl.c:1011 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values.part.0+0x667/0x960 drivers/input/evdev.c:278 evdev_pass_values drivers/input/evdev.c:253 [inline] evdev_events+0x3b4/0x430 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:128 input_pass_values.part.0+0x230/0x760 drivers/input/input.c:160 input_pass_values drivers/input/input.c:147 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:375 input_handle_event+0x120/0xe70 drivers/input/input.c:403 input_inject_event+0x1c7/0x390 drivers/input/input.c:462 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xe10 fs/read_write.c:582 ksys_write+0x1ec/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1b0408c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1b02bfe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1b041abf80 RCX: 00007f1b0408c0f9 RDX: 0000000000000373 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00007f1b040e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1b042cfb1f R14: 00007f1b02bfe300 R15: 0000000000022000