===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 5.13.0-rc1-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.0/18389 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888088cbf038 (&f->f_owner.lock){.+.?}-{2:2}, at: send_sigio+0x2f/0x300 fs/fcntl.c:795 and this task is already holding: ffff88802e2b6018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1012 [inline] ffff88802e2b6018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x19b/0x440 fs/fcntl.c:1033 which would create a new lock dependency: (&new->fa_lock){....}-{2:2} -> (&f->f_owner.lock){.+.?}-{2:2} but this new dependency connects a SOFTIRQ-irq-safe lock: (fasync_lock){+.+.}-{2:2} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] fasync_remove_entry+0x37/0x1d0 fs/fcntl.c:885 __tty_fasync drivers/tty/tty_io.c:2245 [inline] tty_release+0x182/0xef0 drivers/tty/tty_io.c:1763 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x200 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 do_syscall_64+0x4b/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae to a SOFTIRQ-irq-unsafe lock: (&f->f_owner.lock){.+.?}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xbb/0x100 kernel/locking/spinlock.c:231 send_sigurg+0x25/0x370 fs/fcntl.c:834 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:2946 tcp_check_urg net/ipv4/tcp_input.c:5503 [inline] tcp_urg+0x2af/0xb00 net/ipv4/tcp_input.c:5544 tcp_rcv_established+0x9e5/0x2290 net/ipv4/tcp_input.c:5878 tcp_v6_do_rcv+0x4a9/0x12d0 net/ipv6/tcp_ipv6.c:1502 tcp_v6_rcv+0x3686/0x4400 net/ipv6/tcp_ipv6.c:1735 ip6_protocol_deliver_rcu+0x9b5/0x1320 net/ipv6/ip6_input.c:422 ip6_input_finish net/ipv6/ip6_input.c:463 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip6_input+0x10b/0x190 net/ipv6/ip6_input.c:472 __netif_receive_skb_one_core net/core/dev.c:5440 [inline] __netif_receive_skb+0x1d1/0x500 net/core/dev.c:5554 process_backlog+0x4d8/0x950 net/core/dev.c:6418 __napi_poll+0xba/0x4f0 net/core/dev.c:6966 napi_poll net/core/dev.c:7033 [inline] net_rx_action+0x62c/0xf30 net/core/dev.c:7120 __do_softirq+0x372/0x7a6 kernel/softirq.c:559 invoke_softirq kernel/softirq.c:433 [inline] __irq_exit_rcu+0x245/0x280 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:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] _raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:199 finish_task_switch+0x145/0x620 kernel/sched/core.c:4210 context_switch kernel/sched/core.c:4342 [inline] __schedule+0xba0/0x1120 kernel/sched/core.c:5147 preempt_schedule_irq+0xe3/0x190 kernel/sched/core.c:5535 irqentry_exit+0x56/0x90 kernel/entry/common.c:426 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 lock_acquire+0x1f6/0x720 kernel/locking/lockdep.c:5516 fs_reclaim_acquire+0x79/0xf0 mm/page_alloc.c:4394 might_alloc include/linux/sched/mm.h:198 [inline] slab_pre_alloc_hook mm/slab.h:497 [inline] slab_alloc_node mm/slub.c:2833 [inline] slab_alloc mm/slub.c:2920 [inline] kmem_cache_alloc_trace+0x39/0x340 mm/slub.c:2937 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:686 [inline] j1939_session_new+0x74/0x400 net/can/j1939/transport.c:1443 j1939_tp_send+0x2f5/0x840 net/can/j1939/transport.c:1939 j1939_sk_send_loop net/can/j1939/socket.c:1052 [inline] j1939_sk_sendmsg+0xc3d/0x13f0 net/can/j1939/socket.c:1175 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] kernel_sendmsg+0xf5/0x130 net/socket.c:694 sock_no_sendpage+0x150/0x1b0 net/core/sock.c:2854 kernel_sendpage+0x2ca/0x370 net/socket.c:3631 sock_sendpage+0x7e/0xb0 net/socket.c:947 pipe_to_sendpage+0x258/0x340 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x351/0x8b0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe6/0x1c0 fs/splice.c:936 splice_direct_to_actor+0x529/0xd00 fs/splice.c:891 do_splice_direct+0x282/0x3e0 fs/splice.c:979 do_sendfile+0x885/0x1200 fs/read_write.c:1260 __do_sys_sendfile64 fs/read_write.c:1325 [inline] __se_sys_sendfile64+0x145/0x1a0 fs/read_write.c:1311 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae other info that might help us debug this: Chain exists of: fasync_lock --> &new->fa_lock --> &f->f_owner.lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&f->f_owner.lock); local_irq_disable(); lock(fasync_lock); lock(&new->fa_lock); lock(fasync_lock); *** DEADLOCK *** 8 locks held by syz-executor.0/18389: #0: ffff88814723a110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x234/0x780 drivers/input/evdev.c:513 #1: ffff8881458e8230 (&dev->event_lock){-.-.}-{2:2}, at: input_inject_event+0xb3/0x280 drivers/input/input.c:471 #2: ffffffff8cf15c40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #3: ffffffff8cf15c40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #4: ffffffff8cf15c40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #5: ffff88802f2de028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff88802f2de028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 #6: ffffffff8cf15c40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #7: ffff88802e2b6018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1012 [inline] #7: ffff88802e2b6018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x19b/0x440 fs/fcntl.c:1033 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (fasync_lock){+.+.}-{2:2} { HARDIRQ-ON-W at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] fasync_remove_entry+0x37/0x1d0 fs/fcntl.c:885 __tty_fasync drivers/tty/tty_io.c:2245 [inline] tty_release+0x182/0xef0 drivers/tty/tty_io.c:1763 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x200 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 do_syscall_64+0x4b/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae SOFTIRQ-ON-W at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] fasync_remove_entry+0x37/0x1d0 fs/fcntl.c:885 __tty_fasync drivers/tty/tty_io.c:2245 [inline] tty_release+0x182/0xef0 drivers/tty/tty_io.c:1763 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x200 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 do_syscall_64+0x4b/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL USE at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] fasync_remove_entry+0x37/0x1d0 fs/fcntl.c:885 __tty_fasync drivers/tty/tty_io.c:2245 [inline] tty_release+0x182/0xef0 drivers/tty/tty_io.c:1763 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x200 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 do_syscall_64+0x4b/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] fasync_lock+0x18/0x80 ... acquired at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xae/0xf0 kernel/locking/spinlock.c:311 fasync_remove_entry+0xff/0x1d0 fs/fcntl.c:890 sock_fasync+0x86/0xf0 net/socket.c:1283 __fput+0x65b/0x7b0 fs/file_table.c:277 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x200 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 do_syscall_64+0x4b/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xae/0xf0 kernel/locking/spinlock.c:311 fasync_remove_entry+0xff/0x1d0 fs/fcntl.c:890 sock_fasync+0x86/0xf0 net/socket.c:1283 __fput+0x65b/0x7b0 fs/file_table.c:277 task_work_run+0x146/0x1c0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:174 [inline] exit_to_user_mode_prepare+0x10b/0x200 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 do_syscall_64+0x4b/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1012 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1033 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x1e8/0x280 drivers/input/input.c:476 evdev_write+0x5f0/0x780 drivers/input/evdev.c:530 vfs_write+0x289/0xc90 fs/read_write.c:603 ksys_write+0x171/0x2a0 fs/read_write.c:658 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] fasync_insert_entry.__key+0x0/0x40 ... acquired at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xbb/0x100 kernel/locking/spinlock.c:231 send_sigio+0x2f/0x300 fs/fcntl.c:795 kill_fasync_rcu fs/fcntl.c:1019 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1033 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x1e8/0x280 drivers/input/input.c:476 evdev_write+0x5f0/0x780 drivers/input/evdev.c:530 vfs_write+0x289/0xc90 fs/read_write.c:603 ksys_write+0x171/0x2a0 fs/read_write.c:658 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (&f->f_owner.lock){.+.?}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 f_getown_ex fs/fcntl.c:211 [inline] do_fcntl+0x150/0x1510 fs/fcntl.c:395 __do_sys_fcntl fs/fcntl.c:471 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:456 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae IN-SOFTIRQ-R at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xbb/0x100 kernel/locking/spinlock.c:231 send_sigurg+0x25/0x370 fs/fcntl.c:834 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:2946 tcp_check_urg net/ipv4/tcp_input.c:5503 [inline] tcp_urg+0x2af/0xb00 net/ipv4/tcp_input.c:5544 tcp_rcv_established+0x9e5/0x2290 net/ipv4/tcp_input.c:5878 tcp_v6_do_rcv+0x4a9/0x12d0 net/ipv6/tcp_ipv6.c:1502 tcp_v6_rcv+0x3686/0x4400 net/ipv6/tcp_ipv6.c:1735 ip6_protocol_deliver_rcu+0x9b5/0x1320 net/ipv6/ip6_input.c:422 ip6_input_finish net/ipv6/ip6_input.c:463 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip6_input+0x10b/0x190 net/ipv6/ip6_input.c:472 __netif_receive_skb_one_core net/core/dev.c:5440 [inline] __netif_receive_skb+0x1d1/0x500 net/core/dev.c:5554 process_backlog+0x4d8/0x950 net/core/dev.c:6418 __napi_poll+0xba/0x4f0 net/core/dev.c:6966 napi_poll net/core/dev.c:7033 [inline] net_rx_action+0x62c/0xf30 net/core/dev.c:7120 __do_softirq+0x372/0x7a6 kernel/softirq.c:559 invoke_softirq kernel/softirq.c:433 [inline] __irq_exit_rcu+0x245/0x280 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:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] _raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:199 finish_task_switch+0x145/0x620 kernel/sched/core.c:4210 context_switch kernel/sched/core.c:4342 [inline] __schedule+0xba0/0x1120 kernel/sched/core.c:5147 preempt_schedule_irq+0xe3/0x190 kernel/sched/core.c:5535 irqentry_exit+0x56/0x90 kernel/entry/common.c:426 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647 lock_acquire+0x1f6/0x720 kernel/locking/lockdep.c:5516 fs_reclaim_acquire+0x79/0xf0 mm/page_alloc.c:4394 might_alloc include/linux/sched/mm.h:198 [inline] slab_pre_alloc_hook mm/slab.h:497 [inline] slab_alloc_node mm/slub.c:2833 [inline] slab_alloc mm/slub.c:2920 [inline] kmem_cache_alloc_trace+0x39/0x340 mm/slub.c:2937 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:686 [inline] j1939_session_new+0x74/0x400 net/can/j1939/transport.c:1443 j1939_tp_send+0x2f5/0x840 net/can/j1939/transport.c:1939 j1939_sk_send_loop net/can/j1939/socket.c:1052 [inline] j1939_sk_sendmsg+0xc3d/0x13f0 net/can/j1939/socket.c:1175 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] kernel_sendmsg+0xf5/0x130 net/socket.c:694 sock_no_sendpage+0x150/0x1b0 net/core/sock.c:2854 kernel_sendpage+0x2ca/0x370 net/socket.c:3631 sock_sendpage+0x7e/0xb0 net/socket.c:947 pipe_to_sendpage+0x258/0x340 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x351/0x8b0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x172/0x200 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe6/0x1c0 fs/splice.c:936 splice_direct_to_actor+0x529/0xd00 fs/splice.c:891 do_splice_direct+0x282/0x3e0 fs/splice.c:979 do_sendfile+0x885/0x1200 fs/read_write.c:1260 __do_sys_sendfile64 fs/read_write.c:1325 [inline] __se_sys_sendfile64+0x145/0x1a0 fs/read_write.c:1311 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae SOFTIRQ-ON-R at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:223 f_getown_ex fs/fcntl.c:211 [inline] do_fcntl+0x150/0x1510 fs/fcntl.c:395 __do_sys_fcntl fs/fcntl.c:471 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:456 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL USE at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_write_lock_irq include/linux/rwlock_api_smp.h:196 [inline] _raw_write_lock_irq+0xae/0xf0 kernel/locking/spinlock.c:311 f_modown+0x38/0x340 fs/fcntl.c:91 __f_setown fs/fcntl.c:110 [inline] f_setown+0x113/0x1a0 fs/fcntl.c:138 do_fcntl+0x1ad/0x1510 fs/fcntl.c:392 __do_sys_fcntl fs/fcntl.c:471 [inline] __se_sys_fcntl+0xd8/0x1b0 fs/fcntl.c:456 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xbb/0x100 kernel/locking/spinlock.c:231 send_sigurg+0x25/0x370 fs/fcntl.c:834 sk_send_sigurg+0x6a/0xb0 net/core/sock.c:2946 tcp_check_urg net/ipv4/tcp_input.c:5503 [inline] tcp_urg+0x2af/0xb00 net/ipv4/tcp_input.c:5544 tcp_rcv_established+0x9e5/0x2290 net/ipv4/tcp_input.c:5878 tcp_v4_do_rcv+0x3a1/0x870 net/ipv4/tcp_ipv4.c:1694 sk_backlog_rcv include/net/sock.h:1020 [inline] __release_sock+0x1db/0x4d0 net/core/sock.c:2550 release_sock+0x5d/0x1c0 net/core/sock.c:3074 sk_stream_wait_memory+0x6f9/0xdf0 net/core/stream.c:145 tcp_sendmsg_locked+0xdc5/0x40a0 net/ipv4/tcp.c:1418 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1458 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] __sys_sendto+0x541/0x720 net/socket.c:1977 __do_sys_sendto net/socket.c:1989 [inline] __se_sys_sendto net/socket.c:1985 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:1985 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xbb/0x100 kernel/locking/spinlock.c:231 send_sigio+0x2f/0x300 fs/fcntl.c:795 kill_fasync_rcu fs/fcntl.c:1019 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1033 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x1e8/0x280 drivers/input/input.c:476 evdev_write+0x5f0/0x780 drivers/input/evdev.c:530 vfs_write+0x289/0xc90 fs/read_write.c:603 ksys_write+0x171/0x2a0 fs/read_write.c:658 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae stack backtrace: CPU: 0 PID: 18389 Comm: syz-executor.0 Not tainted 5.13.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x202/0x31e lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2462 [inline] check_irq_usage kernel/locking/lockdep.c:2691 [inline] check_prev_add kernel/locking/lockdep.c:2942 [inline] check_prevs_add+0x4ecf/0x5b60 kernel/locking/lockdep.c:3061 validate_chain kernel/locking/lockdep.c:3676 [inline] __lock_acquire+0x4307/0x6040 kernel/locking/lockdep.c:4902 lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5512 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:159 [inline] _raw_read_lock_irqsave+0xbb/0x100 kernel/locking/spinlock.c:231 send_sigio+0x2f/0x300 fs/fcntl.c:795 kill_fasync_rcu fs/fcntl.c:1019 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1033 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x58a/0xaa0 drivers/input/evdev.c:278 evdev_events+0x1c5/0x270 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:115 [inline] input_pass_values+0x89c/0x11d0 drivers/input/input.c:145 input_handle_event+0xb99/0x1550 drivers/input/input.c:404 input_inject_event+0x1e8/0x280 drivers/input/input.c:476 evdev_write+0x5f0/0x780 drivers/input/evdev.c:530 vfs_write+0x289/0xc90 fs/read_write.c:603 ksys_write+0x171/0x2a0 fs/read_write.c:658 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc808a21188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665d9 RDX: 0000000000035000 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffc647603ef R14: 00007fc808a21300 R15: 0000000000022000