============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G L -------------------------------------------- kworker/2:1/60 is trying to acquire lock: ffff88801d3f9928 (&grp->list_lock){.+.+}-{3:3}, at: __deliver_to_subscribers sound/core/seq/seq_clientmgr.c:723 [inline] ffff88801d3f9928 (&grp->list_lock){.+.+}-{3:3}, at: deliver_to_subscribers sound/core/seq/seq_clientmgr.c:763 [inline] ffff88801d3f9928 (&grp->list_lock){.+.+}-{3:3}, at: snd_seq_deliver_event+0x230/0x860 sound/core/seq/seq_clientmgr.c:813 but task is already holding lock: ffff888059e00128 (&grp->list_lock){.+.+}-{3:3}, at: __deliver_to_subscribers sound/core/seq/seq_clientmgr.c:723 [inline] ffff888059e00128 (&grp->list_lock){.+.+}-{3:3}, at: deliver_to_subscribers sound/core/seq/seq_clientmgr.c:763 [inline] ffff888059e00128 (&grp->list_lock){.+.+}-{3:3}, at: snd_seq_deliver_event+0x230/0x860 sound/core/seq/seq_clientmgr.c:813 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&grp->list_lock); lock(&grp->list_lock); *** DEADLOCK *** May be due to missing lock nesting notation locks held by kworker/2:1/60: 3, last CPU#2: #0: ffff88801c0aa940 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x12b1/0x1940 kernel/workqueue.c:3297 #1: ffffc90000ce7d08 ((work_completion)(&runtime->event_work)){+.+.}-{0:0}, at: process_one_work+0x988/0x1940 kernel/workqueue.c:3298 #2: ffff888059e00128 (&grp->list_lock){.+.+}-{3:3}, at: __deliver_to_subscribers sound/core/seq/seq_clientmgr.c:723 [inline] #2: ffff888059e00128 (&grp->list_lock){.+.+}-{3:3}, at: deliver_to_subscribers sound/core/seq/seq_clientmgr.c:763 [inline] #2: ffff888059e00128 (&grp->list_lock){.+.+}-{3:3}, at: snd_seq_deliver_event+0x230/0x860 sound/core/seq/seq_clientmgr.c:813 stack backtrace: CPU: 2 UID: 0 PID: 60 Comm: kworker/2:1 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: events snd_rawmidi_input_event_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_deadlock_bug.cold+0xbd/0xca kernel/locking/lockdep.c:3057 check_deadlock kernel/locking/lockdep.c:3109 [inline] validate_chain kernel/locking/lockdep.c:3911 [inline] __lock_acquire+0x1343/0x1ec0 kernel/locking/lockdep.c:5253 lock_acquire kernel/locking/lockdep.c:5886 [inline] lock_acquire+0x1b9/0x370 kernel/locking/lockdep.c:5843 __raw_read_lock include/linux/rwlock_api_smp.h:163 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:263 __deliver_to_subscribers sound/core/seq/seq_clientmgr.c:723 [inline] deliver_to_subscribers sound/core/seq/seq_clientmgr.c:763 [inline] snd_seq_deliver_event+0x230/0x860 sound/core/seq/seq_clientmgr.c:813 snd_seq_kernel_client_dispatch+0x16f/0x1b0 sound/core/seq/seq_clientmgr.c:2439 queue_broadcast_event.isra.0+0x143/0x1b0 sound/core/seq/seq_queue.c:585 snd_seq_queue_process_event sound/core/seq/seq_queue.c:634 [inline] snd_seq_control_queue+0x6e9/0xb40 sound/core/seq/seq_queue.c:659 __snd_seq_deliver_single_event sound/core/seq/seq_clientmgr.c:626 [inline] __snd_seq_deliver_single_event+0x127/0x1c0 sound/core/seq/seq_clientmgr.c:613 _snd_seq_deliver_single_event sound/core/seq/seq_clientmgr.c:672 [inline] snd_seq_deliver_single_event+0x31f/0x8c0 sound/core/seq/seq_clientmgr.c:687 snd_seq_deliver_event+0x44b/0x860 sound/core/seq/seq_clientmgr.c:815 snd_seq_kernel_client_dispatch+0x16f/0x1b0 sound/core/seq/seq_clientmgr.c:2439 send_timer_event.isra.0+0x130/0x190 sound/core/seq/oss/seq_oss_timer.c:140 snd_seq_oss_timer_start+0x1db/0x320 sound/core/seq/oss/seq_oss_timer.c:161 send_midi_event sound/core/seq/oss/seq_oss_midi.c:576 [inline] snd_seq_oss_midi_input+0x467/0xa30 sound/core/seq/oss/seq_oss_midi.c:501 snd_seq_oss_event_input+0x194/0x250 sound/core/seq/oss/seq_oss_event.c:429 __snd_seq_deliver_single_event sound/core/seq/seq_clientmgr.c:626 [inline] __snd_seq_deliver_single_event+0x127/0x1c0 sound/core/seq/seq_clientmgr.c:613 _snd_seq_deliver_single_event sound/core/seq/seq_clientmgr.c:672 [inline] snd_seq_deliver_single_event+0x31f/0x8c0 sound/core/seq/seq_clientmgr.c:687 __deliver_to_subscribers sound/core/seq/seq_clientmgr.c:735 [inline] deliver_to_subscribers sound/core/seq/seq_clientmgr.c:763 [inline] snd_seq_deliver_event+0x2c1/0x860 sound/core/seq/seq_clientmgr.c:813 snd_seq_kernel_client_dispatch+0x16f/0x1b0 sound/core/seq/seq_clientmgr.c:2439 snd_midi_input_event+0x32f/0x470 sound/core/seq/seq_midi.c:93 snd_rawmidi_input_event_work+0x61/0x80 sound/core/rawmidi.c:127 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322 process_scheduled_works kernel/workqueue.c:3405 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 usb 11-1: USB disconnect, device number 11 ti_usb_3410_5052_2 ttyUSB0: TI USB 5052 2 port adapter converter now disconnected from ttyUSB0 ti_usb_3410_5052_2 ttyUSB1: TI USB 5052 2 port adapter converter now disconnected from ttyUSB1 ti_usb_3410_5052 11-1:2.0: device disconnected