===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.1.147-syzkaller #0 Not tainted ----------------------------------------------------- syz.5.1735/9710 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88801cb12018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:988 [inline] ffff88801cb12018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 and this task is already holding: ffff8880581c3028 (&client->buffer_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff8880581c3028 (&client->buffer_lock){..-.}-{2:2}, at: evdev_pass_values+0xcb/0xab0 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+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 evdev_events+0x1d4/0x320 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x907/0x1300 drivers/input/input.c:159 input_event_dispose+0x3e8/0x6c0 drivers/input/input.c:385 input_event+0x88/0xb0 drivers/input/input.c:431 hidinput_hid_event+0x12f5/0x1c80 drivers/hid/hid-input.c:1710 hid_process_event+0x4b7/0x620 drivers/hid/hid-core.c:1545 hid_process_report drivers/hid/hid-core.c:1693 [inline] hid_report_raw_event+0xf66/0x1760 drivers/hid/hid-core.c:2029 hid_input_report+0x420/0x4e0 drivers/hid/hid-core.c:2097 hid_irq_in+0x435/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1675 dummy_timer+0x888/0x31b0 drivers/usb/gadget/udc/dummy_hcd.c:1994 __run_hrtimer kernel/time/hrtimer.c:1752 [inline] __hrtimer_run_queues+0x554/0xd60 kernel/time/hrtimer.c:1816 hrtimer_run_softirq+0x183/0x2a0 kernel/time/hrtimer.c:1833 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xa5/0x100 kernel/locking/spinlock.c:194 __debug_check_no_obj_freed lib/debugobjects.c:988 [inline] debug_check_no_obj_freed+0x515/0x530 lib/debugobjects.c:1009 slab_free_hook mm/slub.c:1699 [inline] slab_free_freelist_hook+0xd2/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] kmem_cache_free+0xf7/0x290 mm/slub.c:3683 mas_destroy+0x24ac/0x2c60 lib/maple_tree.c:5865 mas_store_prealloc+0x31a/0x400 lib/maple_tree.c:5790 __vma_adjust+0xffb/0x1c50 mm/mmap.c:804 vma_merge+0x8fe/0x9c0 mm/mmap.c:-1 mprotect_fixup+0x418/0x7f0 mm/mprotect.c:605 do_mprotect_pkey+0x754/0xa40 mm/mprotect.c:792 __do_sys_mprotect mm/mprotect.c:819 [inline] __se_sys_mprotect mm/mprotect.c:816 [inline] __x64_sys_mprotect+0x7c/0x90 mm/mprotect.c:816 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xa8/0x160 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 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.5.1735/9710: #0: ffff888146bf4110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x177/0x470 drivers/input/evdev.c:513 #1: ffff88801cb20230 (&dev->event_lock#2){-.-.}-{2:2}, at: input_inject_event+0xa7/0x310 drivers/input/input.c:456 #2: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #2: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #2: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0xb8/0x310 drivers/input/input.c:458 #3: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #3: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #3: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: input_pass_values+0xa3/0x1300 drivers/input/input.c:151 #4: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #4: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #4: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x75/0x320 drivers/input/evdev.c:298 #5: ffff8880581c3028 (&client->buffer_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #5: ffff8880581c3028 (&client->buffer_lock){..-.}-{2:2}, at: evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 #6: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #6: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #6: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x4f/0x4b0 fs/fcntl.c:1008 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&client->buffer_lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 evdev_events+0x1d4/0x320 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x907/0x1300 drivers/input/input.c:159 input_event_dispose+0x3e8/0x6c0 drivers/input/input.c:385 input_event+0x88/0xb0 drivers/input/input.c:431 hidinput_hid_event+0x12f5/0x1c80 drivers/hid/hid-input.c:1710 hid_process_event+0x4b7/0x620 drivers/hid/hid-core.c:1545 hid_process_report drivers/hid/hid-core.c:1693 [inline] hid_report_raw_event+0xf66/0x1760 drivers/hid/hid-core.c:2029 hid_input_report+0x420/0x4e0 drivers/hid/hid-core.c:2097 hid_irq_in+0x435/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x35f/0x520 drivers/usb/core/hcd.c:1675 dummy_timer+0x888/0x31b0 drivers/usb/gadget/udc/dummy_hcd.c:1994 __run_hrtimer kernel/time/hrtimer.c:1752 [inline] __hrtimer_run_queues+0x554/0xd60 kernel/time/hrtimer.c:1816 hrtimer_run_softirq+0x183/0x2a0 kernel/time/hrtimer.c:1833 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xa5/0x100 kernel/locking/spinlock.c:194 __debug_check_no_obj_freed lib/debugobjects.c:988 [inline] debug_check_no_obj_freed+0x515/0x530 lib/debugobjects.c:1009 slab_free_hook mm/slub.c:1699 [inline] slab_free_freelist_hook+0xd2/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] kmem_cache_free+0xf7/0x290 mm/slub.c:3683 mas_destroy+0x24ac/0x2c60 lib/maple_tree.c:5865 mas_store_prealloc+0x31a/0x400 lib/maple_tree.c:5790 __vma_adjust+0xffb/0x1c50 mm/mmap.c:804 vma_merge+0x8fe/0x9c0 mm/mmap.c:-1 mprotect_fixup+0x418/0x7f0 mm/mprotect.c:605 do_mprotect_pkey+0x754/0xa40 mm/mprotect.c:792 __do_sys_mprotect mm/mprotect.c:819 [inline] __se_sys_mprotect mm/mprotect.c:816 [inline] __x64_sys_mprotect+0x7c/0x90 mm/mprotect.c:816 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 INITIAL USE at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0xcb/0xab0 drivers/input/evdev.c:261 evdev_events+0x1d4/0x320 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x907/0x1300 drivers/input/input.c:159 input_event_dispose+0x346/0x6c0 drivers/input/input.c:374 input_inject_event+0x1f5/0x310 drivers/input/input.c:461 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x2c4/0x960 fs/read_write.c:582 ksys_write+0x143/0x240 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 } ... key at: [] evdev_open.__key.29+0x0/0x20 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xa8/0x160 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 SOFTIRQ-ON-R at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xa8/0x160 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INITIAL USE at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:326 copy_process+0x2531/0x4020 kernel/fork.c:2476 kernel_clone+0x225/0x8b0 kernel/fork.c:2757 user_mode_thread+0xda/0x130 kernel/fork.c:2833 rest_init+0x23/0x300 init/main.c:698 start_kernel+0x0/0x539 init/main.c:893 start_kernel+0x490/0x539 init/main.c:1140 secondary_startup_64_no_verify+0xcf/0xdb INITIAL READ USE at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x2b6/0xb60 kernel/exit.c:1605 kernel_wait+0xa8/0x160 kernel/exit.c:1795 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xb5/0x220 kernel/umh.c:167 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xf5/0x360 fs/fcntl.c:784 dnotify_handle_event+0x14f/0x420 fs/notify/dnotify/dnotify.c:115 fsnotify_handle_inode_event fs/notify/fsnotify.c:275 [inline] fsnotify_handle_event fs/notify/fsnotify.c:330 [inline] send_to_group fs/notify/fsnotify.c:378 [inline] fsnotify+0x18ea/0x1cc0 fs/notify/fsnotify.c:584 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_move+0x122/0x4e0 include/linux/fsnotify.h:163 vfs_rename+0xd36/0x10d0 fs/namei.c:4900 do_renameat2+0x89d/0xc70 fs/namei.c:5027 __do_sys_renameat2 fs/namei.c:5060 [inline] __se_sys_renameat2 fs/namei.c:5057 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5057 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 send_sigurg+0x25/0x3c0 fs/fcntl.c:809 sk_send_sigurg+0x6b/0xc0 net/core/sock.c:3366 tcp_check_urg+0x200/0x750 net/ipv4/tcp_input.c:5715 tcp_urg+0x15d/0x3e0 net/ipv4/tcp_input.c:5756 tcp_rcv_established+0xde4/0x1d30 net/ipv4/tcp_input.c:6109 tcp_v4_do_rcv+0x48d/0xb00 net/ipv4/tcp_ipv4.c:1683 tcp_v4_rcv+0x2789/0x2e30 net/ipv4/tcp_ipv4.c:2114 ip_protocol_deliver_rcu+0x3ad/0x780 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2c7/0x510 net/ipv4/ip_input.c:233 NF_HOOK+0x2ff/0x390 include/linux/netfilter.h:302 NF_HOOK+0x2ff/0x390 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5569 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5683 process_backlog+0x37c/0x6e0 net/core/dev.c:6011 __napi_poll+0xc0/0x460 net/core/dev.c:6578 napi_poll net/core/dev.c:6645 [inline] net_rx_action+0x5b1/0xad0 net/core/dev.c:6759 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xa5/0x100 kernel/locking/spinlock.c:194 sync_rcu_exp_done_unlocked+0xdb/0x140 kernel/rcu/tree_exp.h:170 synchronize_rcu_expedited_wait_once kernel/rcu/tree_exp.h:580 [inline] synchronize_rcu_expedited_wait kernel/rcu/tree_exp.h:631 [inline] rcu_exp_wait_wake kernel/rcu/tree_exp.h:699 [inline] rcu_exp_sel_wait_wake+0x69f/0x1db0 kernel/rcu/tree_exp.h:733 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INITIAL USE at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:326 __f_setown+0x37/0x330 fs/fcntl.c:91 f_setown_ex fs/fcntl.c:194 [inline] do_fcntl+0xf29/0x11c0 fs/fcntl.c:375 __do_sys_fcntl fs/fcntl.c:446 [inline] __se_sys_fcntl+0xc9/0x190 fs/fcntl.c:431 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 INITIAL READ USE at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x360 fs/fcntl.c:770 kill_fasync_rcu fs/fcntl.c:995 [inline] kill_fasync+0x224/0x4b0 fs/fcntl.c:1009 wakeup_pipe_readers fs/splice.c:167 [inline] splice_pipe_to_pipe fs/splice.c:1587 [inline] do_splice+0x11fe/0x1630 fs/splice.c:1077 __do_splice fs/splice.c:1167 [inline] __do_sys_splice fs/splice.c:1374 [inline] __se_sys_splice+0x327/0x410 fs/splice.c:1356 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x360 fs/fcntl.c:770 kill_fasync_rcu fs/fcntl.c:995 [inline] kill_fasync+0x224/0x4b0 fs/fcntl.c:1009 wakeup_pipe_readers fs/splice.c:167 [inline] splice_pipe_to_pipe fs/splice.c:1587 [inline] do_splice+0x11fe/0x1630 fs/splice.c:1077 __do_splice fs/splice.c:1167 [inline] __do_sys_splice fs/splice.c:1374 [inline] __se_sys_splice+0x327/0x410 fs/splice.c:1356 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x9f/0xe0 kernel/locking/spinlock.c:326 fasync_remove_entry+0xf0/0x1c0 fs/fcntl.c:865 pipe_fasync+0xae/0x1e0 fs/pipe.c:751 __fput+0x7a7/0x920 fs/file_table.c:317 task_work_run+0x1ca/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 INITIAL READ USE at: lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:988 [inline] kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 wakeup_pipe_readers fs/splice.c:167 [inline] splice_pipe_to_pipe fs/splice.c:1587 [inline] do_splice+0x11fe/0x1630 fs/splice.c:1077 __do_splice fs/splice.c:1167 [inline] __do_sys_splice fs/splice.c:1374 [inline] __se_sys_splice+0x327/0x410 fs/splice.c:1356 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:988 [inline] kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x54b/0xab0 drivers/input/evdev.c:278 evdev_events+0x1d4/0x320 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x907/0x1300 drivers/input/input.c:159 input_event_dispose+0x346/0x6c0 drivers/input/input.c:374 input_inject_event+0x1f5/0x310 drivers/input/input.c:461 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x2c4/0x960 fs/read_write.c:582 ksys_write+0x143/0x240 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 stack backtrace: CPU: 0 PID: 9710 Comm: syz.5.1735 Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2604 [inline] check_irq_usage kernel/locking/lockdep.c:2843 [inline] check_prev_add kernel/locking/lockdep.c:3094 [inline] check_prevs_add kernel/locking/lockdep.c:3209 [inline] validate_chain kernel/locking/lockdep.c:3825 [inline] __lock_acquire+0x660b/0x7c50 kernel/locking/lockdep.c:5049 lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xac/0xf0 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:988 [inline] kill_fasync+0x18e/0x4b0 fs/fcntl.c:1009 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x54b/0xab0 drivers/input/evdev.c:278 evdev_events+0x1d4/0x320 drivers/input/evdev.c:306 input_to_handler drivers/input/input.c:127 [inline] input_pass_values+0x907/0x1300 drivers/input/input.c:159 input_event_dispose+0x346/0x6c0 drivers/input/input.c:374 input_inject_event+0x1f5/0x310 drivers/input/input.c:461 evdev_write+0x326/0x470 drivers/input/evdev.c:530 vfs_write+0x2c4/0x960 fs/read_write.c:582 ksys_write+0x143/0x240 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f3a2378e9a9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3a2464d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3a239b5fa0 RCX: 00007f3a2378e9a9 RDX: 0000000000001068 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007f3a23810d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3a239b5fa0 R15: 00007ffff0bdb788