===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.16.0-rc1-syzkaller-00101-g27605c8c0f69 #0 Not tainted ----------------------------------------------------- syz.3.2115/14336 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffffff8e00c098 (tasklist_lock){.+.+}-{3:3}, at: send_sigio+0xb8/0x3e0 fs/fcntl.c:921 and this task is already holding: ffff88806e970320 (&f_owner->lock){....}-{3:3}, at: send_sigio+0x31/0x3e0 fs/fcntl.c:907 which would create a new lock dependency: (&f_owner->lock){....}-{3:3} -> (tasklist_lock){.+.+}-{3:3} but this new dependency connects a SOFTIRQ-irq-safe lock: (&dev->event_lock#2){..-.}-{3:3} ... which became SOFTIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_inject_event+0x9f/0x390 drivers/input/input.c:418 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x217/0x290 drivers/leds/led-core.c:328 led_trigger_event drivers/leds/led-triggers.c:420 [inline] led_trigger_event+0xda/0x270 drivers/leds/led-triggers.c:408 kbd_propagate_led_state drivers/tty/vt/keyboard.c:1073 [inline] kbd_bh+0x21b/0x300 drivers/tty/vt/keyboard.c:1262 tasklet_action_common+0x281/0x400 kernel/softirq.c:829 handle_softirqs+0x219/0x8e0 kernel/softirq.c:579 do_softirq kernel/softirq.c:480 [inline] do_softirq+0xb2/0xf0 kernel/softirq.c:467 __local_bh_enable_ip+0x100/0x120 kernel/softirq.c:407 lock_sock include/net/sock.h:1667 [inline] tipc_connect+0x13b/0x690 net/tipc/socket.c:2582 __sys_connect_file+0x141/0x1a0 net/socket.c:2038 __sys_connect+0x13b/0x160 net/socket.c:2057 __do_sys_connect net/socket.c:2063 [inline] __se_sys_connect net/socket.c:2060 [inline] __ia32_sys_connect+0x71/0xb0 net/socket.c:2060 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{3:3} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 other info that might help us debug this: Chain exists of: &dev->event_lock#2 --> &f_owner->lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&f_owner->lock); lock(&dev->event_lock#2); *** DEADLOCK *** 5 locks held by syz.3.2115/14336: #0: ffff8880233a4428 (sb_writers#5){.+.+}-{0:0}, at: open_last_lookups fs/namei.c:3796 [inline] #0: ffff8880233a4428 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x1f0f/0x2cb0 fs/namei.c:4043 #1: ffff88805bd77858 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff88805bd77858 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: open_last_lookups fs/namei.c:3804 [inline] #1: ffff88805bd77858 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: path_openat+0x1534/0x2cb0 fs/namei.c:4043 #2: ffffffff9abec690 (&fsnotify_mark_srcu){.+.?}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #2: ffffffff9abec690 (&fsnotify_mark_srcu){.+.?}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #2: ffffffff9abec690 (&fsnotify_mark_srcu){.+.?}-{0:0}, at: fsnotify+0x5ed/0x1dc0 fs/notify/fsnotify.c:612 #3: ffff888023016038 (&mark->lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff888023016038 (&mark->lock){+.+.}-{3:3}, at: dnotify_handle_event+0x4b/0x2b0 fs/notify/dnotify/dnotify.c:105 #4: ffff88806e970320 (&f_owner->lock){....}-{3:3}, at: send_sigio+0x31/0x3e0 fs/fcntl.c:907 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){..-.}-{3:3} { IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_inject_event+0x9f/0x390 drivers/input/input.c:418 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x217/0x290 drivers/leds/led-core.c:328 led_trigger_event drivers/leds/led-triggers.c:420 [inline] led_trigger_event+0xda/0x270 drivers/leds/led-triggers.c:408 kbd_propagate_led_state drivers/tty/vt/keyboard.c:1073 [inline] kbd_bh+0x21b/0x300 drivers/tty/vt/keyboard.c:1262 tasklet_action_common+0x281/0x400 kernel/softirq.c:829 handle_softirqs+0x219/0x8e0 kernel/softirq.c:579 do_softirq kernel/softirq.c:480 [inline] do_softirq+0xb2/0xf0 kernel/softirq.c:467 __local_bh_enable_ip+0x100/0x120 kernel/softirq.c:407 lock_sock include/net/sock.h:1667 [inline] tipc_connect+0x13b/0x690 net/tipc/socket.c:2582 __sys_connect_file+0x141/0x1a0 net/socket.c:2038 __sys_connect+0x13b/0x160 net/socket.c:2057 __do_sys_connect net/socket.c:2063 [inline] __se_sys_connect net/socket.c:2060 [inline] __ia32_sys_connect+0x71/0xb0 net/socket.c:2060 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:585 [inline] input_inject_event+0x9f/0x390 drivers/input/input.c:418 __led_set_brightness drivers/leds/led-core.c:52 [inline] led_set_brightness_nopm drivers/leds/led-core.c:335 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:369 [inline] led_set_brightness+0x217/0x290 drivers/leds/led-core.c:328 kbd_led_trigger_activate+0xcb/0x110 drivers/tty/vt/keyboard.c:1029 led_trigger_set+0x59a/0xc50 drivers/leds/led-triggers.c:220 led_match_default_trigger drivers/leds/led-triggers.c:277 [inline] led_match_default_trigger drivers/leds/led-triggers.c:271 [inline] led_trigger_set_default drivers/leds/led-triggers.c:300 [inline] led_trigger_set_default+0x1e0/0x2e0 drivers/leds/led-triggers.c:284 led_classdev_register_ext+0x7b8/0xa10 drivers/leds/led-class.c:566 led_classdev_register include/linux/leds.h:274 [inline] input_leds_connect+0x552/0x8e0 drivers/input/input-leds.c:145 input_attach_handler.isra.0+0x184/0x260 drivers/input/input.c:993 input_register_device+0xa84/0x1130 drivers/input/input.c:2412 atkbd_connect+0x5da/0xa20 drivers/input/keyboard/atkbd.c:1340 serio_connect_driver drivers/input/serio/serio.c:43 [inline] serio_driver_probe+0x74/0xb0 drivers/input/serio/serio.c:747 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x241/0xa90 drivers/base/dd.c:657 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:799 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:829 __driver_attach+0x283/0x580 drivers/base/dd.c:1215 bus_for_each_dev+0x13e/0x1d0 drivers/base/bus.c:370 serio_attach_driver drivers/input/serio/serio.c:776 [inline] serio_handle_event+0x247/0xa50 drivers/input/serio/serio.c:213 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] __key.7+0x0/0x40 -> (&client->buffer_lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x6c7/0x890 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1cd/0x390 drivers/input/input.c:423 evdev_write+0x2e1/0x440 drivers/input/evdev.c:528 vfs_write+0x2a0/0x1150 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e } ... key at: [] __key.1+0x0/0x40 ... acquired at: __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:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x6c7/0x890 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1cd/0x390 drivers/input/input.c:423 evdev_write+0x2e1/0x440 drivers/input/evdev.c:528 vfs_write+0x2a0/0x1150 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e -> (&new->fa_lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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+0xb2/0x1e0 fs/fcntl.c:1001 fasync_helper+0xaf/0xd0 fs/fcntl.c:1104 fuse_dev_fasync+0x6f/0xa0 fs/fuse/dev.c:2526 __fput+0x96b/0xb70 fs/file_table.c:462 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] __do_fast_syscall_32+0x2ac/0x3a0 arch/x86/entry/syscall_32.c:309 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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:1124 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1141 fuse_abort_conn+0x9f0/0xd30 fs/fuse/dev.c:2462 fuse_conn_destroy+0x94/0x290 fs/fuse/inode.c:2049 fuse_sb_destroy fs/fuse/inode.c:2069 [inline] fuse_kill_sb_anon+0x263/0x350 fs/fuse/inode.c:2082 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1417 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] __do_fast_syscall_32+0x2ac/0x3a0 arch/x86/entry/syscall_32.c:309 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e } ... 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:1124 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x138/0x510 fs/fcntl.c:1141 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1bb/0x390 drivers/input/evdev.c:306 input_pass_values+0x6c7/0x890 drivers/input/input.c:127 input_event_dispose drivers/input/input.c:341 [inline] input_handle_event+0xf00/0x14d0 drivers/input/input.c:369 input_inject_event+0x1cd/0x390 drivers/input/input.c:423 evdev_write+0x2e1/0x440 drivers/input/evdev.c:528 vfs_write+0x2a0/0x1150 fs/read_write.c:684 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e -> (&f_owner->lock){....}-{3:3} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 __f_setown+0x61/0x3c0 fs/fcntl.c:136 fcntl_dirnotify+0x78f/0xb50 fs/notify/dnotify/dnotify.c:369 do_fcntl+0xe62/0x15a0 fs/fcntl.c:539 do_compat_fcntl64+0x367/0x710 fs/fcntl.c:789 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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+0x31/0x3e0 fs/fcntl.c:907 dnotify_handle_event+0x15e/0x2b0 fs/notify/dnotify/dnotify.c:113 fsnotify_handle_inode_event.isra.0+0x1e2/0x3f0 fs/notify/fsnotify.c:321 fsnotify_handle_event fs/notify/fsnotify.c:376 [inline] send_to_group fs/notify/fsnotify.c:424 [inline] fsnotify+0x13d6/0x1dc0 fs/notify/fsnotify.c:641 fsnotify_name include/linux/fsnotify.h:55 [inline] fsnotify_name include/linux/fsnotify.h:48 [inline] fsnotify_dirent include/linux/fsnotify.h:61 [inline] fsnotify_create include/linux/fsnotify.h:348 [inline] open_last_lookups fs/namei.c:3810 [inline] path_openat+0x1b50/0x2cb0 fs/namei.c:4043 do_filp_open+0x20b/0x470 fs/namei.c:4073 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_compat_sys_open fs/open.c:1505 [inline] __se_compat_sys_open fs/open.c:1503 [inline] __ia32_compat_sys_open+0x146/0x1e0 fs/open.c:1503 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e } ... key at: [] __key.1+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+0x31/0x3e0 fs/fcntl.c:907 kill_fasync_rcu fs/fcntl.c:1133 [inline] kill_fasync fs/fcntl.c:1148 [inline] kill_fasync+0x214/0x510 fs/fcntl.c:1141 sock_wake_async+0x132/0x160 net/socket.c:1445 sk_wake_async include/net/sock.h:2513 [inline] sk_wake_async include/net/sock.h:2509 [inline] unix_release_sock+0xb7d/0x12e0 net/unix/af_unix.c:704 unix_release+0x91/0xf0 net/unix/af_unix.c:1142 __sock_release+0xb0/0x270 net/socket.c:647 sock_close+0x1c/0x30 net/socket.c:1391 __fput+0x402/0xb70 fs/file_table.c:465 task_work_run+0x150/0x240 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x864/0x2bd0 kernel/exit.c:955 do_group_exit+0xd3/0x2a0 kernel/exit.c:1104 get_signal+0x2673/0x26d0 kernel/signal.c:3034 arch_do_signal_or_restart+0x8f/0x790 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop+0x84/0x110 kernel/entry/common.c:111 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] __do_fast_syscall_32+0x2ac/0x3a0 arch/x86/entry/syscall_32.c:309 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{3:3} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __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+0x4caf/0x76a0 kernel/fork.c:2315 kernel_clone+0xfc/0x960 kernel/fork.c:2599 user_mode_thread+0xc7/0x110 kernel/fork.c:2677 rest_init+0x23/0x2b0 init/main.c:709 start_kernel+0x3ee/0x4d0 init/main.c:1101 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:307 x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:288 common_startup_64+0x13e/0x148 INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 __do_wait+0x105/0x890 kernel/exit.c:1664 do_wait+0x21e/0x5a0 kernel/exit.c:1708 kernel_wait+0x9f/0x160 kernel/exit.c:1884 call_usermodehelper_exec_sync kernel/umh.c:136 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:163 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xb8/0x3e0 fs/fcntl.c:921 dnotify_handle_event+0x15e/0x2b0 fs/notify/dnotify/dnotify.c:113 fsnotify_handle_inode_event.isra.0+0x1e2/0x3f0 fs/notify/fsnotify.c:321 fsnotify_handle_event fs/notify/fsnotify.c:376 [inline] send_to_group fs/notify/fsnotify.c:424 [inline] fsnotify+0x13d6/0x1dc0 fs/notify/fsnotify.c:641 fsnotify_name include/linux/fsnotify.h:55 [inline] fsnotify_name include/linux/fsnotify.h:48 [inline] fsnotify_dirent include/linux/fsnotify.h:61 [inline] fsnotify_create include/linux/fsnotify.h:348 [inline] open_last_lookups fs/namei.c:3810 [inline] path_openat+0x1b50/0x2cb0 fs/namei.c:4043 do_filp_open+0x20b/0x470 fs/namei.c:4073 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_compat_sys_openat fs/open.c:1514 [inline] __se_compat_sys_openat fs/open.c:1512 [inline] __ia32_compat_sys_openat+0x16d/0x210 fs/open.c:1512 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e stack backtrace: CPU: 0 UID: 0 PID: 14336 Comm: syz.3.2115 Not tainted 6.16.0-rc1-syzkaller-00101-g27605c8c0f69 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2619 [inline] check_irq_usage+0x7dc/0x920 kernel/locking/lockdep.c:2860 check_prev_add kernel/locking/lockdep.c:3172 [inline] check_prevs_add kernel/locking/lockdep.c:3287 [inline] validate_chain kernel/locking/lockdep.c:3911 [inline] __lock_acquire+0x1285/0x1c90 kernel/locking/lockdep.c:5240 lock_acquire kernel/locking/lockdep.c:5871 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigio+0xb8/0x3e0 fs/fcntl.c:921 dnotify_handle_event+0x15e/0x2b0 fs/notify/dnotify/dnotify.c:113 fsnotify_handle_inode_event.isra.0+0x1e2/0x3f0 fs/notify/fsnotify.c:321 fsnotify_handle_event fs/notify/fsnotify.c:376 [inline] send_to_group fs/notify/fsnotify.c:424 [inline] fsnotify+0x13d6/0x1dc0 fs/notify/fsnotify.c:641 fsnotify_name include/linux/fsnotify.h:55 [inline] fsnotify_name include/linux/fsnotify.h:48 [inline] fsnotify_dirent include/linux/fsnotify.h:61 [inline] fsnotify_create include/linux/fsnotify.h:348 [inline] open_last_lookups fs/namei.c:3810 [inline] path_openat+0x1b50/0x2cb0 fs/namei.c:4043 do_filp_open+0x20b/0x470 fs/namei.c:4073 do_sys_openat2+0x11b/0x1d0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_compat_sys_openat fs/open.c:1514 [inline] __se_compat_sys_openat fs/open.c:1512 [inline] __ia32_compat_sys_openat+0x16d/0x210 fs/open.c:1512 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x3a0 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf703e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f502e55c EFLAGS: 00000296 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000080000940 RDX: 00000000000026e1 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 ret 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi