======================================================== WARNING: possible irq lock inversion dependency detected 5.18.0-syzkaller-00161-g1e57930e9f40 #0 Not tainted -------------------------------------------------------- syz-executor.0/23226 just changed the state of lock: ffff888023b4f910 (&group->lock){..-.}-{2:2}, at: snd_pcm_period_elapsed+0x2c/0x210 sound/core/pcm_lib.c:1848 but this lock took another, SOFTIRQ-READ-unsafe lock in the past: (tasklist_lock){.+.+}-{2:2} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &group->lock --> &timer->lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&group->lock); lock(&timer->lock); lock(&group->lock); *** DEADLOCK *** 1 lock held by syz-executor.0/23226: #0: ffff88807debcd88 (&u->iolock){+.+.}-{3:3}, at: __unix_dgram_recvmsg+0x24c/0x1200 net/unix/af_unix.c:2388 the shortest dependencies between 2nd lock and 1st lock: -> (tasklist_lock){.+.+}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1508 kernel_wait+0xe4/0x230 kernel/exit.c:1698 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 SOFTIRQ-ON-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1508 kernel_wait+0xe4/0x230 kernel/exit.c:1698 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:326 copy_process+0x234d/0x3f70 kernel/fork.c:2368 kernel_clone+0x22f/0x7a0 kernel/fork.c:2639 kernel_thread+0x167/0x1e0 kernel/fork.c:2691 rest_init+0x21/0x270 init/main.c:691 start_kernel+0x0/0x56e init/main.c:882 start_kernel+0x4bf/0x56e init/main.c:1140 secondary_startup_64_no_verify+0xc4/0xcb INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 do_wait+0x224/0x9d0 kernel/exit.c:1508 kernel_wait+0xe4/0x230 kernel/exit.c:1698 call_usermodehelper_exec_sync kernel/umh.c:139 [inline] call_usermodehelper_exec_work+0xb4/0x220 kernel/umh.c:166 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x32/0x40 kernel/locking/spinlock.c:228 send_sigio+0xbe/0x300 fs/fcntl.c:792 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 rcu_read_unlock include/linux/rcupdate.h:724 [inline] sk_wake_async+0x12e/0x200 include/net/sock.h:2459 sock_def_readable+0x152/0x200 net/core/sock.c:3164 unix_dgram_sendmsg+0x1553/0x1fc0 net/unix/af_unix.c:2029 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] ____sys_sendmsg+0x597/0x8e0 net/socket.c:2413 ___sys_sendmsg net/socket.c:2467 [inline] __sys_sendmmsg+0x3d7/0x770 net/socket.c:2553 __do_sys_sendmmsg net/socket.c:2582 [inline] __se_sys_sendmmsg net/socket.c:2579 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2579 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x300 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 sk_wake_async include/net/sock.h:2458 [inline] sctp_data_ready+0x261/0x3f0 net/sctp/socket.c:9251 sctp_ulpq_tail_event+0x826/0xb70 net/sctp/ulpqueue.c:257 do_ulpq_tail_event+0x15c/0x1c0 net/sctp/stream_interleave.c:1302 sctp_datamsg_destroy net/sctp/chunk.c:108 [inline] sctp_datamsg_put+0x429/0x580 net/sctp/chunk.c:128 sctp_chunk_free+0x46/0x60 net/sctp/sm_make_chunk.c:1515 __sctp_outq_teardown+0x7fc/0x9f0 net/sctp/outqueue.c:257 sctp_association_free+0x212/0x7b0 net/sctp/associola.c:342 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter+0x3dd6/0x5440 net/sctp/sm_sideeffect.c:1328 sctp_side_effects+0x6c/0x1f0 net/sctp/sm_sideeffect.c:1199 sctp_do_sm+0x22c/0x540 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x42a/0x680 net/sctp/associola.c:1054 sctp_rcv+0x111e/0x15b0 net/sctp/input.c:256 ip_protocol_deliver_rcu+0x391/0x750 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x25d/0x420 net/ipv4/ip_input.c:233 __netif_receive_skb_one_core net/core/dev.c:5405 [inline] __netif_receive_skb+0x1c5/0x500 net/core/dev.c:5519 process_backlog+0x4f8/0x8b0 net/core/dev.c:5847 __napi_poll+0xbe/0x4b0 net/core/dev.c:6413 napi_poll net/core/dev.c:6480 [inline] net_rx_action+0x61c/0xf30 net/core/dev.c:6567 __do_softirq+0x382/0x793 kernel/softirq.c:558 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:921 smpboot_thread_fn+0x533/0x9d0 kernel/smpboot.c:164 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:326 f_modown+0x38/0x340 fs/fcntl.c:91 fcntl_dirnotify+0x5b7/0x730 fs/notify/dnotify/dnotify.c:369 do_fcntl+0x5c7/0x13b0 fs/fcntl.c:406 __do_sys_fcntl fs/fcntl.c:454 [inline] __se_sys_fcntl+0xd5/0x1b0 fs/fcntl.c:439 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x300 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 sk_wake_async include/net/sock.h:2458 [inline] sctp_data_ready+0x261/0x3f0 net/sctp/socket.c:9251 sctp_ulpq_tail_event+0x826/0xb70 net/sctp/ulpqueue.c:257 do_ulpq_tail_event+0x15c/0x1c0 net/sctp/stream_interleave.c:1302 sctp_datamsg_destroy net/sctp/chunk.c:108 [inline] sctp_datamsg_put+0x429/0x580 net/sctp/chunk.c:128 sctp_chunk_free+0x46/0x60 net/sctp/sm_make_chunk.c:1515 __sctp_outq_teardown+0x7fc/0x9f0 net/sctp/outqueue.c:257 sctp_association_free+0x212/0x7b0 net/sctp/associola.c:342 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter+0x3dd6/0x5440 net/sctp/sm_sideeffect.c:1328 sctp_side_effects+0x6c/0x1f0 net/sctp/sm_sideeffect.c:1199 sctp_do_sm+0x22c/0x540 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x42a/0x680 net/sctp/associola.c:1054 sctp_backlog_rcv+0x16e/0x3c0 net/sctp/input.c:344 sk_backlog_rcv include/net/sock.h:1051 [inline] __release_sock+0x1d8/0x4c0 net/core/sock.c:2794 release_sock+0x5d/0x1c0 net/core/sock.c:3327 sctp_wait_for_connect+0x3f0/0x700 net/sctp/socket.c:9316 sctp_sendmsg_to_asoc+0xeda/0x13f0 net/sctp/socket.c:1881 sctp_sendmsg+0x180d/0x2550 net/sctp/socket.c:2027 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] __sys_sendto+0x42e/0x5b0 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2048 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] __alloc_file.__key+0x0/0x10 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 send_sigio+0x2f/0x300 fs/fcntl.c:778 kill_fasync_rcu fs/fcntl.c:1003 [inline] kill_fasync+0x1e4/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 sk_wake_async include/net/sock.h:2458 [inline] sctp_data_ready+0x261/0x3f0 net/sctp/socket.c:9251 sctp_ulpq_tail_event+0x826/0xb70 net/sctp/ulpqueue.c:257 do_ulpq_tail_event+0x15c/0x1c0 net/sctp/stream_interleave.c:1302 sctp_datamsg_destroy net/sctp/chunk.c:108 [inline] sctp_datamsg_put+0x429/0x580 net/sctp/chunk.c:128 sctp_chunk_free+0x46/0x60 net/sctp/sm_make_chunk.c:1515 __sctp_outq_teardown+0x7fc/0x9f0 net/sctp/outqueue.c:257 sctp_association_free+0x212/0x7b0 net/sctp/associola.c:342 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter+0x3dd6/0x5440 net/sctp/sm_sideeffect.c:1328 sctp_side_effects+0x6c/0x1f0 net/sctp/sm_sideeffect.c:1199 sctp_do_sm+0x22c/0x540 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x42a/0x680 net/sctp/associola.c:1054 sctp_backlog_rcv+0x16e/0x3c0 net/sctp/input.c:344 sk_backlog_rcv include/net/sock.h:1051 [inline] __release_sock+0x1d8/0x4c0 net/core/sock.c:2794 release_sock+0x5d/0x1c0 net/core/sock.c:3327 sctp_wait_for_connect+0x3f0/0x700 net/sctp/socket.c:9316 sctp_sendmsg_to_asoc+0xeda/0x13f0 net/sctp/socket.c:1881 sctp_sendmsg+0x180d/0x2550 net/sctp/socket.c:2027 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] __sys_sendto+0x42e/0x5b0 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2048 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&new->fa_lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 sk_wake_async include/net/sock.h:2458 [inline] sctp_data_ready+0x261/0x3f0 net/sctp/socket.c:9251 sctp_ulpq_tail_event+0x826/0xb70 net/sctp/ulpqueue.c:257 do_ulpq_tail_event+0x15c/0x1c0 net/sctp/stream_interleave.c:1302 sctp_datamsg_destroy net/sctp/chunk.c:108 [inline] sctp_datamsg_put+0x429/0x580 net/sctp/chunk.c:128 sctp_chunk_free+0x46/0x60 net/sctp/sm_make_chunk.c:1515 __sctp_outq_teardown+0x7fc/0x9f0 net/sctp/outqueue.c:257 sctp_association_free+0x212/0x7b0 net/sctp/associola.c:342 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter+0x3dd6/0x5440 net/sctp/sm_sideeffect.c:1328 sctp_side_effects+0x6c/0x1f0 net/sctp/sm_sideeffect.c:1199 sctp_do_sm+0x22c/0x540 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x42a/0x680 net/sctp/associola.c:1054 sctp_rcv+0x111e/0x15b0 net/sctp/input.c:256 ip_protocol_deliver_rcu+0x391/0x750 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x25d/0x420 net/ipv4/ip_input.c:233 __netif_receive_skb_one_core net/core/dev.c:5405 [inline] __netif_receive_skb+0x1c5/0x500 net/core/dev.c:5519 process_backlog+0x4f8/0x8b0 net/core/dev.c:5847 __napi_poll+0xbe/0x4b0 net/core/dev.c:6413 napi_poll net/core/dev.c:6480 [inline] net_rx_action+0x61c/0xf30 net/core/dev.c:6567 __do_softirq+0x382/0x793 kernel/softirq.c:558 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:921 smpboot_thread_fn+0x533/0x9d0 kernel/smpboot.c:164 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:326 fasync_remove_entry+0xff/0x1d0 fs/fcntl.c:873 sock_fasync+0x86/0xf0 net/socket.c:1343 __fput+0x6cd/0x820 fs/file_table.c:314 task_work_run+0x146/0x1c0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL READ USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1017 sock_wake_async+0x130/0x150 sk_wake_async include/net/sock.h:2458 [inline] sctp_data_ready+0x261/0x3f0 net/sctp/socket.c:9251 sctp_ulpq_tail_event+0x826/0xb70 net/sctp/ulpqueue.c:257 do_ulpq_tail_event+0x15c/0x1c0 net/sctp/stream_interleave.c:1302 sctp_datamsg_destroy net/sctp/chunk.c:108 [inline] sctp_datamsg_put+0x429/0x580 net/sctp/chunk.c:128 sctp_chunk_free+0x46/0x60 net/sctp/sm_make_chunk.c:1515 __sctp_outq_teardown+0x7fc/0x9f0 net/sctp/outqueue.c:257 sctp_association_free+0x212/0x7b0 net/sctp/associola.c:342 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter+0x3dd6/0x5440 net/sctp/sm_sideeffect.c:1328 sctp_side_effects+0x6c/0x1f0 net/sctp/sm_sideeffect.c:1199 sctp_do_sm+0x22c/0x540 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x42a/0x680 net/sctp/associola.c:1054 sctp_backlog_rcv+0x16e/0x3c0 net/sctp/input.c:344 sk_backlog_rcv include/net/sock.h:1051 [inline] __release_sock+0x1d8/0x4c0 net/core/sock.c:2794 release_sock+0x5d/0x1c0 net/core/sock.c:3327 sctp_wait_for_connect+0x3f0/0x700 net/sctp/socket.c:9316 sctp_sendmsg_to_asoc+0xeda/0x13f0 net/sctp/socket.c:1881 sctp_sendmsg+0x180d/0x2550 net/sctp/socket.c:2027 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] __sys_sendto+0x42e/0x5b0 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2048 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] fasync_insert_entry.__key+0x0/0x20 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xd9/0x120 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:996 [inline] kill_fasync+0x13b/0x430 fs/fcntl.c:1017 snd_timer_user_ccallback+0x370/0x540 sound/core/timer.c:1386 snd_timer_notify1+0x1ad/0x350 sound/core/timer.c:516 snd_timer_start1+0x53d/0x640 sound/core/timer.c:578 snd_timer_start sound/core/timer.c:696 [inline] snd_timer_user_start sound/core/timer.c:1984 [inline] __snd_timer_user_ioctl+0xae7/0x54c0 sound/core/timer.c:2107 snd_timer_user_ioctl+0x5d/0x80 sound/core/timer.c:2128 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&timer->lock){....}-{2:2} { INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:374 [inline] snd_pcm_detach_substream+0x153/0x290 sound/core/pcm.c:1001 snd_pcm_release+0xbd/0x160 sound/core/pcm_native.c:2893 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] snd_timer_new.__key+0x0/0x20 ... acquired at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_timer_notify+0x105/0x3e0 sound/core/timer.c:1086 snd_pcm_timer_notify sound/core/pcm_native.c:608 [inline] snd_pcm_post_stop sound/core/pcm_native.c:1512 [inline] snd_pcm_action sound/core/pcm_native.c:1364 [inline] snd_pcm_stop+0x3b8/0x4c0 sound/core/pcm_native.c:1535 snd_pcm_drop+0x431/0x580 sound/core/pcm_native.c:2218 snd_pcm_oss_sync+0x254/0xf00 sound/core/oss/pcm_oss.c:1746 snd_pcm_oss_release+0x119/0x270 sound/core/oss/pcm_oss.c:2590 __fput+0x3b9/0x820 fs/file_table.c:317 task_work_run+0x146/0x1c0 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xae -> (&group->lock){..-.}-{2:2} { IN-SOFTIRQ-W at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_pcm_period_elapsed+0x2c/0x210 sound/core/pcm_lib.c:1848 dummy_hrtimer_callback+0x87/0x190 sound/drivers/dummy.c:377 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x1a1/0x580 kernel/time/hrtimer.c:1766 __do_softirq+0x382/0x793 kernel/softirq.c:558 __irq_exit_rcu+0xec/0x170 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:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 finish_lock_switch+0x1c5/0x350 kernel/sched/core.c:4834 finish_task_switch+0x140/0x610 kernel/sched/core.c:4951 context_switch kernel/sched/core.c:5076 [inline] __schedule+0x95f/0xec0 kernel/sched/core.c:6388 preempt_schedule_common+0x93/0xe0 kernel/sched/core.c:6553 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6577 preempt_schedule_thunk+0x16/0x18 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x128/0x130 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline] __wake_up_common_lock kernel/sched/wait.c:139 [inline] __wake_up_sync_key+0x124/0x1c0 kernel/sched/wait.c:204 __unix_dgram_recvmsg+0x5f8/0x1200 net/unix/af_unix.c:2418 ____sys_recvmsg+0x285/0x530 ___sys_recvmsg net/socket.c:2674 [inline] do_recvmmsg+0xa2e/0x15a0 net/socket.c:2768 __sys_recvmmsg net/socket.c:2847 [inline] __do_sys_recvmmsg net/socket.c:2870 [inline] __se_sys_recvmmsg net/socket.c:2863 [inline] __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2863 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae INITIAL USE at: lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:374 [inline] snd_pcm_group_lock_irq sound/core/pcm_native.c:97 [inline] snd_pcm_stream_lock_irq sound/core/pcm_native.c:136 [inline] snd_pcm_prepare+0xbd/0x4d0 sound/core/pcm_native.c:1987 snd_pcm_common_ioctl+0x5cc/0x930 sound/core/pcm_native.c:3333 snd_pcm_ioctl+0x86/0xa0 sound/core/pcm_native.c:3402 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae } ... key at: [] snd_pcm_group_init.__key+0x0/0x20 ... acquired at: mark_lock+0x21c/0x350 kernel/locking/lockdep.c:4607 __lock_acquire+0xb81/0x1f80 kernel/locking/lockdep.c:4983 lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_pcm_period_elapsed+0x2c/0x210 sound/core/pcm_lib.c:1848 dummy_hrtimer_callback+0x87/0x190 sound/drivers/dummy.c:377 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x1a1/0x580 kernel/time/hrtimer.c:1766 __do_softirq+0x382/0x793 kernel/softirq.c:558 __irq_exit_rcu+0xec/0x170 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:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 finish_lock_switch+0x1c5/0x350 kernel/sched/core.c:4834 finish_task_switch+0x140/0x610 kernel/sched/core.c:4951 context_switch kernel/sched/core.c:5076 [inline] __schedule+0x95f/0xec0 kernel/sched/core.c:6388 preempt_schedule_common+0x93/0xe0 kernel/sched/core.c:6553 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6577 preempt_schedule_thunk+0x16/0x18 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x128/0x130 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline] __wake_up_common_lock kernel/sched/wait.c:139 [inline] __wake_up_sync_key+0x124/0x1c0 kernel/sched/wait.c:204 __unix_dgram_recvmsg+0x5f8/0x1200 net/unix/af_unix.c:2418 ____sys_recvmsg+0x285/0x530 ___sys_recvmsg net/socket.c:2674 [inline] do_recvmmsg+0xa2e/0x15a0 net/socket.c:2768 __sys_recvmmsg net/socket.c:2847 [inline] __do_sys_recvmmsg net/socket.c:2870 [inline] __se_sys_recvmmsg net/socket.c:2863 [inline] __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2863 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae stack backtrace: CPU: 1 PID: 23226 Comm: syz-executor.0 Not tainted 5.18.0-syzkaller-00161-g1e57930e9f40 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_irq_inversion_bug+0x58c/0x6f0 kernel/locking/lockdep.c:4014 mark_lock_irq+0x9d2/0xf00 kernel/locking/lockdep.c:4177 mark_lock+0x21c/0x350 kernel/locking/lockdep.c:4607 __lock_acquire+0xb81/0x1f80 kernel/locking/lockdep.c:4983 lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5641 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 snd_pcm_period_elapsed+0x2c/0x210 sound/core/pcm_lib.c:1848 dummy_hrtimer_callback+0x87/0x190 sound/drivers/dummy.c:377 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x1a1/0x580 kernel/time/hrtimer.c:1766 __do_softirq+0x382/0x793 kernel/softirq.c:558 __irq_exit_rcu+0xec/0x170 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:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 RIP: 0010:finish_lock_switch+0x1c5/0x350 kernel/sched/core.c:4834 Code: be ff ff ff ff e8 cb 85 bf 08 85 c0 74 37 4d 85 e4 75 58 e9 43 01 00 00 4c 89 ff e8 55 68 c8 08 e8 20 59 2f 00 fb 48 83 c4 10 <5b> 41 5c 41 5d 41 5e 41 5f 5d c3 0f 0b 4d 85 e4 0f 85 4a ff ff ff RSP: 0018:ffffc90015fef1c8 EFLAGS: 00000282 RAX: 2b8e156312794700 RBX: ffff8880b9b3a948 RCX: ffffffff81676888 RDX: dffffc0000000000 RSI: ffffffff8a8d0480 RDI: ffffffff8ae895e0 RBP: ffff8880b9b3a6c0 R08: dffffc0000000000 R09: fffffbfff1f6440e R10: fffffbfff1f6440e R11: 1ffffffff1f6440d R12: 0000000000000000 R13: ffff8880b9b3a958 R14: dffffc0000000000 R15: ffff8880b9a39c00 finish_task_switch+0x140/0x610 kernel/sched/core.c:4951 context_switch kernel/sched/core.c:5076 [inline] __schedule+0x95f/0xec0 kernel/sched/core.c:6388 preempt_schedule_common+0x93/0xe0 kernel/sched/core.c:6553 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6577 preempt_schedule_thunk+0x16/0x18 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0x128/0x130 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline] __wake_up_common_lock kernel/sched/wait.c:139 [inline] __wake_up_sync_key+0x124/0x1c0 kernel/sched/wait.c:204 __unix_dgram_recvmsg+0x5f8/0x1200 net/unix/af_unix.c:2418 ____sys_recvmsg+0x285/0x530 ___sys_recvmsg net/socket.c:2674 [inline] do_recvmmsg+0xa2e/0x15a0 net/socket.c:2768 __sys_recvmmsg net/socket.c:2847 [inline] __do_sys_recvmmsg net/socket.c:2870 [inline] __se_sys_recvmmsg net/socket.c:2863 [inline] __x64_sys_recvmmsg+0x195/0x240 net/socket.c:2863 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f0409e890e9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f040af1f168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f0409f9c030 RCX: 00007f0409e890e9 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007f0409ee308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd60f65f1f R14: 00007f040af1f300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: be ff ff ff ff mov $0xffffffff,%esi 5: e8 cb 85 bf 08 callq 0x8bf85d5 a: 85 c0 test %eax,%eax c: 74 37 je 0x45 e: 4d 85 e4 test %r12,%r12 11: 75 58 jne 0x6b 13: e9 43 01 00 00 jmpq 0x15b 18: 4c 89 ff mov %r15,%rdi 1b: e8 55 68 c8 08 callq 0x8c86875 20: e8 20 59 2f 00 callq 0x2f5945 25: fb sti 26: 48 83 c4 10 add $0x10,%rsp * 2a: 5b pop %rbx <-- trapping instruction 2b: 41 5c pop %r12 2d: 41 5d pop %r13 2f: 41 5e pop %r14 31: 41 5f pop %r15 33: 5d pop %rbp 34: c3 retq 35: 0f 0b ud2 37: 4d 85 e4 test %r12,%r12 3a: 0f 85 4a ff ff ff jne 0xffffff8a