===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.1.0-rc8-syzkaller-00003-gbce9332220bd #0 Not tainted ----------------------------------------------------- syz-executor.5/1705 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8c20a098 (tasklist_lock){.+.+}-{2:2}, at: send_sigio+0xaf/0x390 fs/fcntl.c:792 and this task is already holding: ffff88806fe6d1f0 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x28/0x390 fs/fcntl.c:778 which would create a new lock dependency: (&f->f_owner.lock){...-}-{2:2} -> (tasklist_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:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:127 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:159 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x537/0x730 drivers/input/input.c:385 input_handle_event+0x120/0xe70 drivers/input/input.c:402 input_event drivers/input/input.c:431 [inline] input_event+0x83/0xa0 drivers/input/input.c:423 hidinput_hid_event+0xa2a/0x1fe0 drivers/hid/hid-input.c:1638 hid_process_event+0x491/0x570 drivers/hid/hid-core.c:1527 hid_process_report drivers/hid/hid-core.c:1675 [inline] hid_report_raw_event+0x9fa/0x1270 drivers/hid/hid-core.c:1998 hid_input_report+0x363/0x4d0 drivers/hid/hid-core.c:2066 hid_irq_in+0x50f/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x384/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x1203/0x32d0 drivers/usb/gadget/udc/dummy_hcd.c:1988 call_timer_fn+0x1da/0x7c0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x6a2/0xaf0 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb7/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 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 crng_make_state+0x37a/0x7a0 drivers/char/random.c:351 _get_random_bytes.part.0+0x95/0x1a0 drivers/char/random.c:363 _get_random_bytes drivers/char/random.c:359 [inline] get_random_bytes+0x31/0x40 drivers/char/random.c:395 nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:779 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:808 [inline] nsim_dev_trap_report_work+0x75b/0xc80 drivers/net/netdevsim/dev.c:853 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{2:2} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1533 kernel_wait+0xa0/0x150 kernel/exit.c:1723 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 other info that might help us debug this: Chain exists of: &client->buffer_lock --> &f->f_owner.lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&client->buffer_lock); lock(&f->f_owner.lock); lock(&client->buffer_lock); *** DEADLOCK *** 5 locks held by syz-executor.5/1705: #0: ffff88814b64c460 (sb_writers#5){.+.+}-{0:0}, at: filename_create+0xf1/0x4a0 fs/namei.c:3800 #1: ffff8880707c48c0 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff8880707c48c0 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x1aa/0x4a0 fs/namei.c:3807 #2: ffffffff91a32de8 (&fsnotify_mark_srcu){....}-{0:0}, at: fsnotify+0x2f8/0x1690 fs/notify/fsnotify.c:544 #3: ffff888070a9cbf0 (&mark->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline] #3: ffff888070a9cbf0 (&mark->lock){+.+.}-{2:2}, at: dnotify_handle_event+0x4b/0x280 fs/notify/dnotify/dnotify.c:107 #4: ffff88806fe6d1f0 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x28/0x390 fs/fcntl.c:778 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:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:127 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:159 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x537/0x730 drivers/input/input.c:385 input_handle_event+0x120/0xe70 drivers/input/input.c:402 input_event drivers/input/input.c:431 [inline] input_event+0x83/0xa0 drivers/input/input.c:423 hidinput_hid_event+0xa2a/0x1fe0 drivers/hid/hid-input.c:1638 hid_process_event+0x491/0x570 drivers/hid/hid-core.c:1527 hid_process_report drivers/hid/hid-core.c:1675 [inline] hid_report_raw_event+0x9fa/0x1270 drivers/hid/hid-core.c:1998 hid_input_report+0x363/0x4d0 drivers/hid/hid-core.c:2066 hid_irq_in+0x50f/0x690 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1671 usb_hcd_giveback_urb+0x384/0x430 drivers/usb/core/hcd.c:1754 dummy_timer+0x1203/0x32d0 drivers/usb/gadget/udc/dummy_hcd.c:1988 call_timer_fn+0x1da/0x7c0 kernel/time/timer.c:1474 expire_timers kernel/time/timer.c:1519 [inline] __run_timers.part.0+0x6a2/0xaf0 kernel/time/timer.c:1790 __run_timers kernel/time/timer.c:1768 [inline] run_timer_softirq+0xb7/0x1d0 kernel/time/timer.c:1803 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 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 crng_make_state+0x37a/0x7a0 drivers/char/random.c:351 _get_random_bytes.part.0+0x95/0x1a0 drivers/char/random.c:363 _get_random_bytes drivers/char/random.c:359 [inline] get_random_bytes+0x31/0x40 drivers/char/random.c:395 nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:779 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:808 [inline] nsim_dev_trap_report_work+0x75b/0xc80 drivers/net/netdevsim/dev.c:853 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:127 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:159 input_pass_values drivers/input/input.c:146 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:374 input_handle_event+0x120/0xe70 drivers/input/input.c:402 input_inject_event+0x1c8/0x330 drivers/input/input.c:461 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xdd0 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 } ... key at: [] __key.3+0x0/0x40 -> (&new->fa_lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x49/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x13a/0x480 fs/fcntl.c:1010 sock_wake_async+0xd6/0x160 net/socket.c:1419 sk_wake_async include/net/sock.h:2524 [inline] sk_wake_async+0x108/0x290 include/net/sock.h:2520 tcp_rcv_state_process+0x2f4b/0x49a0 net/ipv4/tcp_input.c:6559 tcp_v4_do_rcv+0x33d/0x9b0 net/ipv4/tcp_ipv4.c:1693 tcp_v4_rcv+0x36ad/0x3980 net/ipv4/tcp_ipv4.c:2091 ip_protocol_deliver_rcu+0x9f/0x7c0 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2ec/0x4c0 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:455 [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:5489 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5603 process_backlog+0x3e4/0x810 net/core/dev.c:5931 __napi_poll+0xb8/0x770 net/core/dev.c:6498 napi_poll net/core/dev.c:6565 [inline] net_rx_action+0xa00/0xde0 net/core/dev.c:6676 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 run_ksoftirqd kernel/softirq.c:934 [inline] run_ksoftirqd+0x31/0x60 kernel/softirq.c:926 smpboot_thread_fn+0x659/0xa20 kernel/smpboot.c:164 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:873 fasync_helper+0xa2/0xb0 fs/fcntl.c:976 lease_modify fs/locks.c:1386 [inline] lease_modify+0x28e/0x380 fs/locks.c:1373 locks_remove_lease fs/locks.c:2623 [inline] locks_remove_file+0x2a0/0x570 fs/locks.c:2648 __fput+0x1b5/0xa90 fs/file_table.c:312 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:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:996 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x13a/0x480 fs/fcntl.c:1010 lease_break_callback+0x23/0x30 fs/locks.c:521 __break_lease+0x3e2/0x1590 fs/locks.c:1521 break_lease include/linux/fs.h:2648 [inline] break_lease include/linux/fs.h:2638 [inline] do_dentry_open+0x65e/0x13f0 fs/open.c:873 do_open fs/namei.c:3557 [inline] path_openat+0x1bf6/0x2860 fs/namei.c:3714 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x11d/0x1c0 fs/open.c:1330 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.0+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 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x13a/0x480 fs/fcntl.c:1010 __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+0x35d/0x3e0 drivers/input/evdev.c:306 input_to_handler+0x2a0/0x4c0 drivers/input/input.c:127 input_pass_values.part.0+0x230/0x710 drivers/input/input.c:159 input_pass_values drivers/input/input.c:146 [inline] input_event_dispose+0x5cf/0x730 drivers/input/input.c:374 input_handle_event+0x120/0xe70 drivers/input/input.c:402 input_inject_event+0x1c8/0x330 drivers/input/input.c:461 evdev_write+0x434/0x760 drivers/input/evdev.c:530 vfs_write+0x2db/0xdd0 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 -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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/0xaf0 fs/fcntl.c:817 sk_send_sigurg+0x7a/0x320 net/core/sock.c:3333 tcp_check_urg net/ipv4/tcp_input.c:5614 [inline] tcp_urg+0x38e/0xb40 net/ipv4/tcp_input.c:5655 tcp_rcv_established+0x897/0x2230 net/ipv4/tcp_input.c:6002 tcp_v4_do_rcv+0x670/0x9b0 net/ipv4/tcp_ipv4.c:1670 tcp_v4_rcv+0x36ad/0x3980 net/ipv4/tcp_ipv4.c:2091 ip_protocol_deliver_rcu+0x9f/0x7c0 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2ec/0x4c0 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:455 [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:5489 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5603 process_backlog+0x3e4/0x810 net/core/dev.c:5931 __napi_poll+0xb8/0x770 net/core/dev.c:6498 napi_poll net/core/dev.c:6565 [inline] net_rx_action+0xa00/0xde0 net/core/dev.c:6676 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 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 security_inode_free+0x29/0xc0 security/security.c:1047 __destroy_inode+0x200/0x700 fs/inode.c:284 destroy_inode+0x91/0x1b0 fs/inode.c:307 iput_final fs/inode.c:1747 [inline] iput.part.0+0x59b/0x880 fs/inode.c:1773 iput+0x5c/0x80 fs/inode.c:1763 dentry_unlink_inode+0x2b1/0x460 fs/dcache.c:401 __dentry_kill+0x3c0/0x640 fs/dcache.c:607 dentry_kill fs/dcache.c:733 [inline] dput+0x80a/0xdb0 fs/dcache.c:913 __fput+0x3cc/0xa90 fs/file_table.c:328 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 USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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:91 generic_add_lease fs/locks.c:1806 [inline] generic_setlease+0x127b/0x18e0 fs/locks.c:1885 vfs_setlease+0x101/0x130 fs/locks.c:1975 do_fcntl_add_lease fs/locks.c:1996 [inline] fcntl_setlease+0x138/0x2c0 fs/locks.c:2018 do_fcntl+0xd30/0x11c0 fs/fcntl.c:403 __do_sys_fcntl fs/fcntl.c:454 [inline] __se_sys_fcntl fs/fcntl.c:439 [inline] __x64_sys_fcntl+0x163/0x1d0 fs/fcntl.c:439 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:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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/0x390 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x1fc/0x480 fs/fcntl.c:1010 lease_break_callback+0x23/0x30 fs/locks.c:521 __break_lease+0x3e2/0x1590 fs/locks.c:1521 break_lease include/linux/fs.h:2648 [inline] break_lease include/linux/fs.h:2638 [inline] do_dentry_open+0x65e/0x13f0 fs/open.c:873 do_open fs/namei.c:3557 [inline] path_openat+0x1bf6/0x2860 fs/namei.c:3714 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x11d/0x1c0 fs/open.c:1330 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/0x390 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync fs/fcntl.c:1017 [inline] kill_fasync+0x1fc/0x480 fs/fcntl.c:1010 lease_break_callback+0x23/0x30 fs/locks.c:521 __break_lease+0x3e2/0x1590 fs/locks.c:1521 break_lease include/linux/fs.h:2648 [inline] break_lease include/linux/fs.h:2638 [inline] do_dentry_open+0x65e/0x13f0 fs/open.c:873 do_open fs/namei.c:3557 [inline] path_openat+0x1bf6/0x2860 fs/namei.c:3714 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x11d/0x1c0 fs/open.c:1330 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 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:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1533 kernel_wait+0xa0/0x150 kernel/exit.c:1723 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1533 kernel_wait+0xa0/0x150 kernel/exit.c:1723 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __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+0x43c5/0x7190 kernel/fork.c:2387 kernel_clone+0xeb/0x980 kernel/fork.c:2671 user_mode_thread+0xb1/0xf0 kernel/fork.c:2747 rest_init+0x27/0x270 init/main.c:694 arch_call_rest_init+0x13/0x1c init/main.c:890 start_kernel+0x477/0x498 init/main.c:1145 secondary_startup_64_no_verify+0xce/0xdb INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2b7/0xd70 kernel/exit.c:1533 kernel_wait+0xa0/0x150 kernel/exit.c:1723 call_usermodehelper_exec_sync kernel/umh.c:140 [inline] call_usermodehelper_exec_work+0xf9/0x180 kernel/umh.c:167 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xaf/0x390 fs/fcntl.c:792 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+0x115b/0x1690 fs/notify/fsnotify.c:570 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_name include/linux/fsnotify.h:29 [inline] fsnotify_dirent include/linux/fsnotify.h:42 [inline] fsnotify_create include/linux/fsnotify.h:207 [inline] vfs_symlink fs/namei.c:4403 [inline] vfs_symlink+0x494/0x5c0 fs/namei.c:4386 do_symlinkat+0x265/0x2e0 fs/namei.c:4430 __do_sys_symlinkat fs/namei.c:4447 [inline] __se_sys_symlinkat fs/namei.c:4444 [inline] __x64_sys_symlinkat+0x97/0xc0 fs/namei.c:4444 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: 1705 Comm: syz-executor.5 Not tainted 6.1.0-rc8-syzkaller-00003-gbce9332220bd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2611 [inline] check_irq_usage.cold+0x4e4/0x761 kernel/locking/lockdep.c:2850 check_prev_add kernel/locking/lockdep.c:3101 [inline] check_prevs_add kernel/locking/lockdep.c:3216 [inline] validate_chain kernel/locking/lockdep.c:3831 [inline] __lock_acquire+0x2a5b/0x56d0 kernel/locking/lockdep.c:5055 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xaf/0x390 fs/fcntl.c:792 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+0x115b/0x1690 fs/notify/fsnotify.c:570 fsnotify_name include/linux/fsnotify.h:36 [inline] fsnotify_name include/linux/fsnotify.h:29 [inline] fsnotify_dirent include/linux/fsnotify.h:42 [inline] fsnotify_create include/linux/fsnotify.h:207 [inline] vfs_symlink fs/namei.c:4403 [inline] vfs_symlink+0x494/0x5c0 fs/namei.c:4386 do_symlinkat+0x265/0x2e0 fs/namei.c:4430 __do_sys_symlinkat fs/namei.c:4447 [inline] __se_sys_symlinkat fs/namei.c:4444 [inline] __x64_sys_symlinkat+0x97/0xc0 fs/namei.c:4444 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:0x7f7e3968c0d9 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:00007f7e381dd168 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 00007f7e397ac050 RCX: 00007f7e3968c0d9 RDX: 0000000020000180 RSI: 0000000000000003 RDI: 0000000020000040 RBP: 00007f7e396e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffb8e7f47f R14: 00007f7e381dd300 R15: 0000000000022000