BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908
in_atomic(): 1, irqs_disabled(): 0, pid: 8368, name: syz-fuzzer
1 lock held by syz-fuzzer/8368:
#0: 00000000f62fb375 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline]
#0: 00000000f62fb375 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xce/0x5f0 kernel/time/timer.c:1315
CPU: 0 PID: 8368 Comm: syz-fuzzer Not tainted 5.1.0-rc3-319004-g43151d6 #6
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0xe8/0x16e lib/dump_stack.c:113
___might_sleep.cold+0x11c/0x136 kernel/sched/core.c:6190
__mutex_lock_common kernel/locking/mutex.c:908 [inline]
__mutex_lock+0xcd/0x12b0 kernel/locking/mutex.c:1072
line6_pcm_acquire+0x35/0x210 sound/usb/line6/pcm.c:311
call_timer_fn+0x161/0x5f0 kernel/time/timer.c:1325
expire_timers kernel/time/timer.c:1362 [inline]
__run_timers kernel/time/timer.c:1681 [inline]
__run_timers kernel/time/timer.c:1649 [inline]
run_timer_softirq+0x58b/0x1400 kernel/time/timer.c:1694
__do_softirq+0x22a/0x8cd kernel/softirq.c:293
invoke_softirq kernel/softirq.c:374 [inline]
irq_exit+0x187/0x1b0 kernel/softirq.c:414
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0xfe/0x4a0 arch/x86/kernel/apic/apic.c:1062
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807
RIP: 0033:0x41d568
Code: 89 5c 24 20 48 89 4c 24 28 48 8b 8c 24 b0 00 00 00 48 89 4c 24 30 48 89 54 24 38 e8 92 01 00 00 eb 8e 48 8b 84 24 b0 00 00 00 <48> 8b 48 10 4c 01 d1 48 89 48 10 48 8b 48 18 48 01 f9 48 89 48 18
RSP: 002b:000000c42021de80 EFLAGS: 00000212 ORIG_RAX: ffffffffffffff13
RAX: 000000c42002b770 RBX: 000000c41ffb3680 RCX: 0000000000000002
RDX: 000000c425000000 RSI: 000000c420992fe0 RDI: 0000000000000010
RBP: 000000c42021df18 R08: 0000000000000002 R09: 0000000000000004
R10: 0000000000000020 R11: 000000c420998990 R12: 0000000000000000
R13: 0000000000000020 R14: 0000000000000013 R15: 0000000000000100
==================================================================
BUG: KASAN: null-ptr-deref in memset include/linux/string.h:337 [inline]
BUG: KASAN: null-ptr-deref in submit_audio_out_urb+0x91e/0x1780 sound/usb/line6/playback.c:246
Write of size 20 at addr 0000000000000010 by task syz-fuzzer/8368
CPU: 0 PID: 8368 Comm: syz-fuzzer Tainted: G W 5.1.0-rc3-319004-g43151d6 #6
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0xe8/0x16e lib/dump_stack.c:113
kasan_report.cold+0x5/0x3c mm/kasan/report.c:321
memset+0x20/0x40 mm/kasan/common.c:115
memset include/linux/string.h:337 [inline]
submit_audio_out_urb+0x91e/0x1780 sound/usb/line6/playback.c:246
line6_submit_audio_out_all_urbs+0xce/0x120 sound/usb/line6/playback.c:295
line6_stream_start+0x15b/0x1f0 sound/usb/line6/pcm.c:199
line6_pcm_acquire+0x139/0x210 sound/usb/line6/pcm.c:322
call_timer_fn+0x161/0x5f0 kernel/time/timer.c:1325
expire_timers kernel/time/timer.c:1362 [inline]
__run_timers kernel/time/timer.c:1681 [inline]
__run_timers kernel/time/timer.c:1649 [inline]
run_timer_softirq+0x58b/0x1400 kernel/time/timer.c:1694
__do_softirq+0x22a/0x8cd kernel/softirq.c:293
invoke_softirq kernel/softirq.c:374 [inline]
irq_exit+0x187/0x1b0 kernel/softirq.c:414
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0xfe/0x4a0 arch/x86/kernel/apic/apic.c:1062
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807
RIP: 0033:0x41d568
Code: 89 5c 24 20 48 89 4c 24 28 48 8b 8c 24 b0 00 00 00 48 89 4c 24 30 48 89 54 24 38 e8 92 01 00 00 eb 8e 48 8b 84 24 b0 00 00 00 <48> 8b 48 10 4c 01 d1 48 89 48 10 48 8b 48 18 48 01 f9 48 89 48 18
RSP: 002b:000000c42021de80 EFLAGS: 00000212 ORIG_RAX: ffffffffffffff13
RAX: 000000c42002b770 RBX: 000000c41ffb3680 RCX: 0000000000000002
RDX: 000000c425000000 RSI: 000000c420992fe0 RDI: 0000000000000010
RBP: 000000c42021df18 R08: 0000000000000002 R09: 0000000000000004
R10: 0000000000000020 R11: 000000c420998990 R12: 0000000000000000
R13: 0000000000000020 R14: 0000000000000013 R15: 0000000000000100
==================================================================