===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.13.0-rc1-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.4/18861 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88801dfe1a38 (&f->f_owner.lock){.?.?}-{2:2}, at: send_sigio+0x2f/0x300 fs/fcntl.c:795 and this task is already holding: ffff8880228b9360 (&new->fa_lock){.-.-}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1012 [inline] ffff8880228b9360 (&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 HARDIRQ-irq-safe lock: (fasync_lock){+.+.}-{2:2} ... which became HARDIRQ-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 HARDIRQ-irq-unsafe lock: (&f->f_owner.lock){.?.?}-{2:2} ... which became HARDIRQ-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_sigio+0x2f/0x300 fs/fcntl.c:795 kill_fasync_rcu fs/fcntl.c:1019 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1033 perf_event_wakeup+0x284/0x2e0 kernel/events/core.c:6385 perf_pending_event+0x495/0x730 kernel/events/core.c:6475 irq_work_single kernel/irq_work.c:158 [inline] irq_work_run_list kernel/irq_work.c:180 [inline] irq_work_run+0x246/0x720 kernel/irq_work.c:189 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x8c/0xb0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:673 __up_write kernel/locking/rwsem.c:1311 [inline] up_write+0xb3/0x4d0 kernel/locking/rwsem.c:1459 inode_unlock include/linux/fs.h:779 [inline] perf_fasync+0x89/0xb0 kernel/events/core.c:6346 setfl fs/fcntl.c:74 [inline] do_fcntl+0x1055/0x1510 fs/fcntl.c:355 __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 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.4/18861: #0: ffff88802294e110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x234/0x780 drivers/input/evdev.c:513 #1: ffff88801d504230 (&dev->event_lock){-...}-{2:2}, at: input_inject_event+0xb3/0x280 drivers/input/input.c:471 #2: ffffffff8cf15c00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #3: ffffffff8cf15c00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #4: ffffffff8cf15c00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #5: ffff888084e52028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #5: ffff888084e52028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0xd9/0xaa0 drivers/input/evdev.c:261 #6: ffffffff8cf15c00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:266 #7: ffff8880228b9360 (&new->fa_lock){.-.-}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:1012 [inline] #7: ffff8880228b9360 (&new->fa_lock){.-.-}-{2:2}, at: kill_fasync+0x19b/0x440 fs/fcntl.c:1033 the dependencies between HARDIRQ-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} { IN-HARDIRQ-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 kill_fasync_rcu fs/fcntl.c:1012 [inline] kill_fasync+0x19b/0x440 fs/fcntl.c:1033 perf_event_wakeup+0x284/0x2e0 kernel/events/core.c:6385 perf_pending_event+0x495/0x730 kernel/events/core.c:6475 irq_work_single kernel/irq_work.c:158 [inline] irq_work_run_list kernel/irq_work.c:180 [inline] irq_work_run+0x246/0x720 kernel/irq_work.c:189 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x8c/0xb0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:673 __up_write kernel/locking/rwsem.c:1311 [inline] up_write+0xb3/0x4d0 kernel/locking/rwsem.c:1459 inode_unlock include/linux/fs.h:779 [inline] perf_fasync+0x89/0xb0 kernel/events/core.c:6346 setfl fs/fcntl.c:74 [inline] do_fcntl+0x1055/0x1510 fs/fcntl.c:355 __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 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 perf_event_wakeup+0x284/0x2e0 kernel/events/core.c:6385 perf_pending_event+0x495/0x730 kernel/events/core.c:6475 irq_work_single kernel/irq_work.c:158 [inline] irq_work_run_list kernel/irq_work.c:180 [inline] irq_work_run+0x246/0x720 kernel/irq_work.c:189 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x3e/0xb0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:673 ffs arch/x86/include/asm/bitops.h:297 [inline] __do_softirq+0x1e3/0x7a6 kernel/softirq.c:547 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 orc_find arch/x86/kernel/unwind_orc.c:163 [inline] unwind_next_frame+0x1e6/0x1f90 arch/x86/kernel/unwind_orc.c:443 arch_stack_walk+0xb2/0xe0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x104/0x1e0 kernel/stacktrace.c:121 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x3d/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:357 ____kasan_slab_free+0x109/0x150 mm/kasan/common.c:360 kasan_slab_free include/linux/kasan.h:212 [inline] slab_free_hook mm/slub.c:1581 [inline] slab_free_freelist_hook+0x1d8/0x290 mm/slub.c:1606 slab_free mm/slub.c:3166 [inline] kmem_cache_free+0x85/0x170 mm/slub.c:3182 merge_or_add_vmap_area mm/vmalloc.c:1061 [inline] merge_or_add_vmap_area_augment mm/vmalloc.c:1111 [inline] __purge_vmap_area_lazy+0x58f/0x18d0 mm/vmalloc.c:1645 _vm_unmap_aliases+0x484/0x510 mm/vmalloc.c:2055 change_page_attr_set_clr+0x2ae/0x680 arch/x86/mm/pat/set_memory.c:1740 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline] set_memory_ro+0xa4/0xe0 arch/x86/mm/pat/set_memory.c:1943 bpf_jit_binary_lock_ro include/linux/filter.h:852 [inline] bpf_int_jit_compile+0xb43f/0xba10 arch/x86/net/bpf_jit_comp.c:2329 bpf_prog_select_runtime+0x65d/0x970 kernel/bpf/core.c:1867 bpf_prog_load kernel/bpf/syscall.c:2220 [inline] __do_sys_bpf+0x1041e/0x11560 kernel/bpf/syscall.c:4410 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 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 perf_event_wakeup+0x284/0x2e0 kernel/events/core.c:6385 perf_pending_event+0x495/0x730 kernel/events/core.c:6475 irq_work_single kernel/irq_work.c:158 [inline] irq_work_run_list kernel/irq_work.c:180 [inline] irq_work_run+0x246/0x720 kernel/irq_work.c:189 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x8c/0xb0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:673 __up_write kernel/locking/rwsem.c:1311 [inline] up_write+0xb3/0x4d0 kernel/locking/rwsem.c:1459 inode_unlock include/linux/fs.h:779 [inline] perf_fasync+0x89/0xb0 kernel/events/core.c:6346 setfl fs/fcntl.c:74 [inline] do_fcntl+0x1055/0x1510 fs/fcntl.c:355 __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 } ... 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 HARDIRQ-irq-unsafe lock: -> (&f->f_owner.lock){.?.?}-{2:2} { IN-HARDIRQ-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_sigio+0x2f/0x300 fs/fcntl.c:795 kill_fasync_rcu fs/fcntl.c:1019 [inline] kill_fasync+0x243/0x440 fs/fcntl.c:1033 perf_event_wakeup+0x284/0x2e0 kernel/events/core.c:6385 perf_pending_event+0x495/0x730 kernel/events/core.c:6475 irq_work_single kernel/irq_work.c:158 [inline] irq_work_run_list kernel/irq_work.c:180 [inline] irq_work_run+0x246/0x720 kernel/irq_work.c:189 __sysvec_irq_work+0x62/0x70 arch/x86/kernel/irq_work.c:22 sysvec_irq_work+0x8c/0xb0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:673 __up_write kernel/locking/rwsem.c:1311 [inline] up_write+0xb3/0x4d0 kernel/locking/rwsem.c:1459 inode_unlock include/linux/fs.h:779 [inline] perf_fasync+0x89/0xb0 kernel/events/core.c:6346 setfl fs/fcntl.c:74 [inline] do_fcntl+0x1055/0x1510 fs/fcntl.c:355 __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 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 run_ksoftirqd+0xa2/0x100 kernel/softirq.c:921 smpboot_thread_fn+0x618/0xa50 kernel/smpboot.c:165 kthread+0x39a/0x3c0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 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_v6_do_rcv+0x4a9/0x12d0 net/ipv6/tcp_ipv6.c:1502 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: 18861 Comm: syz-executor.4 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:00007f16238f7188 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: 00007ffec466be2f R14: 00007f16238f7300 R15: 0000000000022000