BUG: sleeping function called from invalid context at net/core/sock.c:3829 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 10220, name: kworker/0:0H preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] preempt_schedule_thunk+0x16/0x40 arch/x86/entry/thunk.S:12 CPU: 0 UID: 0 PID: 10220 Comm: kworker/0:0H 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_highpri snd_vmidi_output_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 __might_resched.cold+0x1dc/0x222 kernel/sched/core.c:9234 lock_sock_nested+0x52/0xf0 net/core/sock.c:3829 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x168/0x280 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x4b1/0x1000 net/x25/x25_dev.c:138 __netif_receive_skb_one_core+0x1b2/0x1e0 net/core/dev.c:6264 netif_receive_skb_core+0x5a/0x1a0 net/core/dev.c:6289 lapbeth_napi_poll+0x42/0xc0 drivers/net/wan/lapbether.c:100 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7787 napi_poll net/core/dev.c:7850 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:8007 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x194/0x210 kernel/softirq.c:767 irq_exit_rcu+0x9/0x30 kernel/softirq.c:784 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__raw_spin_unlock_irq_enable include/linux/spinlock_api_smp.h:229 [inline] RIP: 0010:_raw_spin_unlock_irq_enable+0x4c/0x90 kernel/locking/spinlock.c:237 Code: 00 ff ff 65 48 0f c1 05 1a 36 c0 08 48 2d 00 00 01 00 a9 00 00 ff 00 75 11 65 f6 05 06 78 c0 08 02 75 22 9c 58 f6 c4 02 75 35 01 00 00 00 e8 ea f6 0d f6 65 48 83 3d e9 35 c0 08 00 74 15 5b RSP: 0000:ffffc90006df7b00 EFLAGS: 00000246 RAX: 0000000000000046 RBX: ffff88805a859520 RCX: ffffffff8212a99f RDX: 0000000000000000 RSI: ffffffff8c615100 RDI: ffffffff8bc73a4c RBP: ffff88805a859500 R08: 0000000000000000 R09: fffffbfff228701a R10: 0000000000000000 R11: 0000000000000000 R12: ffff888023bb1928 R13: 000000000000004a R14: ffff88805a859508 R15: 0000000000000001 spin_unlock_irq_enable include/linux/spinlock.h:419 [inline] class_spinlock_irqsave_destructor include/linux/spinlock.h:641 [inline] snd_midi_event_encode_byte sound/core/seq/seq_midi_event.c:183 [inline] snd_midi_event_encode_byte+0x5c7/0xd30 sound/core/seq/seq_midi_event.c:170 snd_vmidi_output_work+0x150/0x390 sound/core/seq/seq_virmidi.c:154 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3387 process_scheduled_works kernel/workqueue.c:3470 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3551 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 ---------------- Code disassembly (best guess): 0: 00 ff add %bh,%bh 2: ff 65 48 jmp *0x48(%rbp) 5: 0f c1 05 1a 36 c0 08 xadd %eax,0x8c0361a(%rip) # 0x8c03626 c: 48 2d 00 00 01 00 sub $0x10000,%rax 12: a9 00 00 ff 00 test $0xff0000,%eax 17: 75 11 jne 0x2a 19: 65 f6 05 06 78 c0 08 testb $0x2,%gs:0x8c07806(%rip) # 0x8c07827 20: 02 21: 75 22 jne 0x45 23: 9c pushf 24: 58 pop %rax 25: f6 c4 02 test $0x2,%ah 28: 75 35 jne 0x5f * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 ea f6 0d f6 call 0xf60df71e 34: 65 48 83 3d e9 35 c0 cmpq $0x0,%gs:0x8c035e9(%rip) # 0x8c03626 3b: 08 00 3d: 74 15 je 0x54 3f: 5b pop %rbx