============================================= [ INFO: possible recursive locking detected ] 4.9.60-gdfe0a9b #81 Not tainted --------------------------------------------- syzkaller633487/3245 is trying to acquire lock: (&grp->list_mutex){++++.+}, at: [] deliver_to_subscribers sound/core/seq/seq_clientmgr.c:666 [inline] (&grp->list_mutex){++++.+}, at: [] snd_seq_deliver_event+0x4cf/0x740 sound/core/seq/seq_clientmgr.c:807 but task is already holding lock: (&grp->list_mutex){++++.+}, at: [] deliver_to_subscribers sound/core/seq/seq_clientmgr.c:666 [inline] (&grp->list_mutex){++++.+}, at: [] snd_seq_deliver_event+0x4cf/0x740 sound/core/seq/seq_clientmgr.c:807 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&grp->list_mutex); lock(&grp->list_mutex); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by syzkaller633487/3245: #0: (register_mutex#4){+.+.+.}, at: [] odev_release+0x4a/0x70 sound/core/seq/oss/seq_oss.c:152 #1: (&grp->list_mutex){++++.+}, at: [] deliver_to_subscribers sound/core/seq/seq_clientmgr.c:666 [inline] #1: (&grp->list_mutex){++++.+}, at: [] snd_seq_deliver_event+0x4cf/0x740 sound/core/seq/seq_clientmgr.c:807 stack backtrace: CPU: 0 PID: 3245 Comm: syzkaller633487 Not tainted 4.9.60-gdfe0a9b #81 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c772f100 ffffffff81d91389 ffffffff8537b4d0 ffffffff8537b4d0 dffffc0000000000 f75f28fb6e9d5274 0000000000000000 ffff8801c772f2c8 ffffffff8123c925 ffff8801c7720000 ffff8801c7720928 00000000000003c7 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_deadlock_bug kernel/locking/lockdep.c:1727 [inline] [] check_deadlock kernel/locking/lockdep.c:1771 [inline] [] validate_chain kernel/locking/lockdep.c:2249 [inline] [] __lock_acquire+0xe35/0x3640 kernel/locking/lockdep.c:3345 [] lock_acquire+0x12e/0x410 kernel/locking/lockdep.c:3756 [] down_read+0x44/0xb0 kernel/locking/rwsem.c:22 [] deliver_to_subscribers sound/core/seq/seq_clientmgr.c:666 [inline] [] snd_seq_deliver_event+0x4cf/0x740 sound/core/seq/seq_clientmgr.c:807 [] snd_seq_kernel_client_dispatch+0x11e/0x150 sound/core/seq/seq_clientmgr.c:2318 [] dummy_input+0x235/0x320 sound/core/seq/seq_dummy.c:104 [] snd_seq_deliver_single_event.constprop.11+0x310/0x7c0 sound/core/seq/seq_clientmgr.c:621 [] deliver_to_subscribers sound/core/seq/seq_clientmgr.c:676 [inline] [] snd_seq_deliver_event+0x316/0x740 sound/core/seq/seq_clientmgr.c:807 [] snd_seq_kernel_client_dispatch+0x11e/0x150 sound/core/seq/seq_clientmgr.c:2318 [] dummy_input+0x235/0x320 sound/core/seq/seq_dummy.c:104 [] snd_seq_deliver_single_event.constprop.11+0x310/0x7c0 sound/core/seq/seq_clientmgr.c:621 [] snd_seq_deliver_event+0x12d/0x740 sound/core/seq/seq_clientmgr.c:818 [] snd_seq_kernel_client_dispatch+0x11e/0x150 sound/core/seq/seq_clientmgr.c:2318 [] snd_seq_oss_dispatch sound/core/seq/oss/seq_oss_device.h:150 [inline] [] snd_seq_oss_midi_reset+0x390/0x570 sound/core/seq/oss/seq_oss_midi.c:481 [] snd_seq_oss_synth_reset+0x3c0/0x8b0 sound/core/seq/oss/seq_oss_synth.c:416 [] snd_seq_oss_reset+0x6c/0x260 sound/core/seq/oss/seq_oss_init.c:448 [] snd_seq_oss_release+0x71/0x130 sound/core/seq/oss/seq_oss_init.c:425 [] odev_release+0x52/0x70 sound/core/seq/oss/seq_oss.c:153 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x7e7/0x2a40 kernel/exit.c:833 [] ? _