BUG: sleeping function called from invalid context at kernel/locking/mutex.c:591
in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 0, name: swapper/1
preempt_count: 103, expected: 0
RCU nest depth: 0, expected: 0
2 locks held by swapper/1/0:
 #0: ffff888113f52850 (&gi->spinlock){..-.}-{3:3}, at: configfs_composite_setup+0x61/0x100
 #1: ffff888113f526e8 (&cdev->lock){..-.}-{3:3}, at: composite_setup+0x1d9a/0x3460
irq event stamp: 9923903
hardirqs last  enabled at (9923902): [<ffffffff8bb152c0>] _raw_spin_unlock_irqrestore+0x30/0x80
hardirqs last disabled at (9923903): [<ffffffff8bb1511a>] _raw_spin_lock_irqsave+0x1a/0x60
softirqs last  enabled at (9923862): [<ffffffff81878e1f>] __irq_exit_rcu+0x5f/0x150
softirqs last disabled at (9923899): [<ffffffff81878e1f>] __irq_exit_rcu+0x5f/0x150
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 __might_resched+0x378/0x4d0
 __mutex_lock+0x116/0x12d0
 ncm_set_alt+0x153/0xba0
 set_config+0x749/0x1160
 composite_setup+0x1da5/0x3460
 configfs_composite_setup+0xc7/0x100
 dummy_timer+0x2e72/0x4b60
 __hrtimer_run_queues+0x527/0xc90
 hrtimer_run_softirq+0x182/0x580
 handle_softirqs+0x225/0x870
 __irq_exit_rcu+0x5f/0x150
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:pv_native_safe_halt+0xf/0x20
Code: ae 6c 02 c3 cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 93 b6 1a 00 fb f4 <e9> 8c ec 02 00 cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90
RSP: 0018:ffffc90000197e20 EFLAGS: 00000206
RAX: 0000000000976d39 RBX: ffffffff819a063d RCX: 0000000080000001
RDX: 0000000000000001 RSI: ffffffff8def50a5 RDI: ffffffff8c28adc0
RBP: ffffc90000197f10 R08: ffff88823c63395b R09: 1ffff110478c672b
R10: dffffc0000000000 R11: ffffed10478c672c R12: ffffffff901188f0
R13: 1ffff1102c096000 R14: 0000000000000001 R15: 0000000000000001
 default_idle+0x9/0x20
 default_idle_call+0x72/0xb0
 do_idle+0x1bd/0x500
 cpu_startup_entry+0x43/0x60
 start_secondary+0x101/0x110
 common_startup_64+0x13e/0x147
 </TASK>

=============================
[ BUG: Invalid wait context ]
syzkaller #0 Tainted: G        W    L     
-----------------------------
swapper/1/0 is trying to lock:
ffff88816fcc2a18 (&opts->lock){+.+.}-{4:4}, at: ncm_set_alt+0x153/0xba0
other info that might help us debug this:
context-{3:3}
2 locks held by swapper/1/0:
 #0: ffff888113f52850 (&gi->spinlock){..-.}-{3:3}, at: configfs_composite_setup+0x61/0x100
 #1: ffff888113f526e8 (&cdev->lock){..-.}-{3:3}, at: composite_setup+0x1d9a/0x3460
stack backtrace:
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Tainted: G        W    L      syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 __lock_acquire+0xe39/0x2cd0
 lock_acquire+0xf0/0x2e0
 __mutex_lock+0x199/0x12d0
 ncm_set_alt+0x153/0xba0
 set_config+0x749/0x1160
 composite_setup+0x1da5/0x3460
 configfs_composite_setup+0xc7/0x100
 dummy_timer+0x2e72/0x4b60
 __hrtimer_run_queues+0x527/0xc90
 hrtimer_run_softirq+0x182/0x580
 handle_softirqs+0x225/0x870
 __irq_exit_rcu+0x5f/0x150
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:pv_native_safe_halt+0xf/0x20
Code: ae 6c 02 c3 cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 93 b6 1a 00 fb f4 <e9> 8c ec 02 00 cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90
RSP: 0018:ffffc90000197e20 EFLAGS: 00000206
RAX: 0000000000976d39 RBX: ffffffff819a063d RCX: 0000000080000001
RDX: 0000000000000001 RSI: ffffffff8def50a5 RDI: ffffffff8c28adc0
RBP: ffffc90000197f10 R08: ffff88823c63395b R09: 1ffff110478c672b
R10: dffffc0000000000 R11: ffffed10478c672c R12: ffffffff901188f0
R13: 1ffff1102c096000 R14: 0000000000000001 R15: 0000000000000001
 default_idle+0x9/0x20
 default_idle_call+0x72/0xb0
 do_idle+0x1bd/0x500
 cpu_startup_entry+0x43/0x60
 start_secondary+0x101/0x110
 common_startup_64+0x13e/0x147
 </TASK>
