BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908
in_atomic(): 1, irqs_disabled(): 0, pid: 5589, name: syz-executor.1
1 lock held by syz-executor.1/5589:
#0: 000000002a2f07f7 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline]
#0: 000000002a2f07f7 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xce/0x5f0 kernel/time/timer.c:1315
CPU: 1 PID: 5589 Comm: syz-executor.1 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: 0010:__preempt_count_sub arch/x86/include/asm/preempt.h:84 [inline]
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x30/0x40 kernel/locking/spinlock.c:192
Code: 48 8b 54 24 08 be 01 00 00 00 48 89 fd 48 8d 7f 18 e8 74 70 52 f3 48 89 ef e8 0c 51 53 f3 e8 a7 44 73 f3 fb 66 0f 1f 44 00 00 <65> ff 0d e9 65 fc 71 5d c3 0f 1f 80 00 00 00 00 0f 1f 44 00 00 55
RSP: 0018:ffff88807ee9fb48 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff8880a4548000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000006 RDI: ffff8880a454883c
RBP: ffff8880ad12d2c0 R08: ffff8880a4548000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ad12d2c0
R13: ffff8880910f1880 R14: 0000000000000000 R15: 0000000000000001
finish_lock_switch kernel/sched/core.c:2627 [inline]
finish_task_switch+0x121/0x6b0 kernel/sched/core.c:2727
context_switch kernel/sched/core.c:2880 [inline]
__schedule+0x700/0x1d00 kernel/sched/core.c:3518
schedule+0x8f/0x180 kernel/sched/core.c:3562
freezable_schedule include/linux/freezer.h:172 [inline]
do_nanosleep+0x206/0x6a0 kernel/time/hrtimer.c:1679
hrtimer_nanosleep+0x25d/0x510 kernel/time/hrtimer.c:1733
__do_sys_nanosleep kernel/time/hrtimer.c:1767 [inline]
__se_sys_nanosleep kernel/time/hrtimer.c:1754 [inline]
__x64_sys_nanosleep+0x1a2/0x220 kernel/time/hrtimer.c:1754
do_syscall_64+0xcf/0x4f0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x486570
Code: 00 00 48 c7 c0 d4 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb be 66 0f 1f 44 00 00 83 3d e1 01 5d 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 b4 e0 f8 ff c3 48 83 ec 08 e8 ea 53 fd ff
RSP: 002b:00007ffc4ab19848 EFLAGS: 00000246 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 000000000001567a RCX: 0000000000486570
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffc4ab19850
RBP: 0000000000000012 R08: 0000000000000001 R09: 0000000000a57940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc4ab198a0 R14: 000000000001567a R15: 00007ffc4ab198b0
==================================================================
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-executor.1/5589
CPU: 1 PID: 5589 Comm: syz-executor.1 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: 0010:__preempt_count_sub arch/x86/include/asm/preempt.h:84 [inline]
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x30/0x40 kernel/locking/spinlock.c:192
Code: 48 8b 54 24 08 be 01 00 00 00 48 89 fd 48 8d 7f 18 e8 74 70 52 f3 48 89 ef e8 0c 51 53 f3 e8 a7 44 73 f3 fb 66 0f 1f 44 00 00 <65> ff 0d e9 65 fc 71 5d c3 0f 1f 80 00 00 00 00 0f 1f 44 00 00 55
RSP: 0018:ffff88807ee9fb48 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff8880a4548000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000006 RDI: ffff8880a454883c
RBP: ffff8880ad12d2c0 R08: ffff8880a4548000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ad12d2c0
R13: ffff8880910f1880 R14: 0000000000000000 R15: 0000000000000001
finish_lock_switch kernel/sched/core.c:2627 [inline]
finish_task_switch+0x121/0x6b0 kernel/sched/core.c:2727
context_switch kernel/sched/core.c:2880 [inline]
__schedule+0x700/0x1d00 kernel/sched/core.c:3518
schedule+0x8f/0x180 kernel/sched/core.c:3562
freezable_schedule include/linux/freezer.h:172 [inline]
do_nanosleep+0x206/0x6a0 kernel/time/hrtimer.c:1679
hrtimer_nanosleep+0x25d/0x510 kernel/time/hrtimer.c:1733
__do_sys_nanosleep kernel/time/hrtimer.c:1767 [inline]
__se_sys_nanosleep kernel/time/hrtimer.c:1754 [inline]
__x64_sys_nanosleep+0x1a2/0x220 kernel/time/hrtimer.c:1754
do_syscall_64+0xcf/0x4f0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x486570
Code: 00 00 48 c7 c0 d4 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb be 66 0f 1f 44 00 00 83 3d e1 01 5d 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 b4 e0 f8 ff c3 48 83 ec 08 e8 ea 53 fd ff
RSP: 002b:00007ffc4ab19848 EFLAGS: 00000246 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 000000000001567a RCX: 0000000000486570
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffc4ab19850
RBP: 0000000000000012 R08: 0000000000000001 R09: 0000000000a57940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc4ab198a0 R14: 000000000001567a R15: 00007ffc4ab198b0
==================================================================