BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 in_atomic(): 1, irqs_disabled(): 0, pid: 4639, name: syz-executor.1 1 lock held by syz-executor.1/4639: #0: 00000000a33dc857 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline] #0: 00000000a33dc857 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xc9/0x5e0 kernel/time/timer.c:1315 CPU: 1 PID: 4639 Comm: syz-executor.1 Not tainted 5.1.0-rc3+ #8 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+0xca/0x13e lib/dump_stack.c:113 ___might_sleep.cold+0x10f/0x129 kernel/sched/core.c:6190 __mutex_lock_common kernel/locking/mutex.c:908 [inline] __mutex_lock+0xc8/0x12b0 kernel/locking/mutex.c:1072 line6_pcm_acquire+0x30/0x210 sound/usb/line6/pcm.c:311 call_timer_fn+0x15c/0x5e0 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+0x586/0x1400 kernel/time/timer.c:1694 __do_softirq+0x21f/0x8bc kernel/softirq.c:293 invoke_softirq kernel/softirq.c:374 [inline] irq_exit+0x17c/0x1a0 kernel/softirq.c:414 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0xf1/0x490 arch/x86/kernel/apic/apic.c:1062 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807 RIP: 0010:fsnotify+0x1e/0xb20 fs/notify/fsnotify.c:329 Code: ff e8 06 50 ec ff e9 98 fe ff ff 90 41 57 41 56 49 89 fe 41 55 41 54 55 53 48 bb 00 00 00 00 00 fc ff df 48 81 ec d0 00 00 00 <48> 8d 44 24 50 48 89 7c 24 20 48 c1 e8 03 89 74 24 1c 48 89 44 24 RSP: 0018:ffff8881b1dafd38 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: ffff8881cd8b9800 RBX: dffffc0000000000 RCX: 0000000000000001 RDX: ffff8881cc6b0f10 RSI: 0000000000000001 RDI: ffff8881c8830810 RBP: ffff8881cc6b0f00 R08: 0000000000000000 R09: 0000000000000000 R10: ffffed103b665737 R11: ffff8881db32b9bb R12: ffff8881c8830810 R13: ffff8881cc6b0f10 R14: ffff8881c8830810 R15: 0000000000000001 fsnotify_path include/linux/fsnotify.h:54 [inline] fsnotify_path include/linux/fsnotify.h:47 [inline] fsnotify_access include/linux/fsnotify.h:247 [inline] vfs_read+0x35e/0x3d0 fs/read_write.c:454 ksys_read+0xcc/0x1d0 fs/read_write.c:578 do_syscall_64+0xbd/0x500 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x412ae0 Code: 01 f0 ff ff 0f 83 70 1b 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d ad 37 64 00 00 75 14 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 44 1b 00 00 c3 48 83 ec 08 e8 6a fc ff ff RSP: 002b:00007ffeb0dce578 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000412ae0 RDX: 0000000000000038 RSI: 0000000000738020 RDI: 00000000000000f9 RBP: 00000000000004b4 R08: 0000000000006000 R09: 0000000000004000 R10: 00007ffeb0dcdf10 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeb0dce5b0 R14: 0000000000118401 R15: 00007ffeb0dce5c0 ================================================================== BUG: KASAN: null-ptr-deref in memset include/linux/string.h:337 [inline] BUG: KASAN: null-ptr-deref in submit_audio_out_urb+0x919/0x1780 sound/usb/line6/playback.c:246 Write of size 20 at addr 0000000000000010 by task syz-executor.1/4639 CPU: 1 PID: 4639 Comm: syz-executor.1 Tainted: G W 5.1.0-rc3+ #8 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+0xca/0x13e lib/dump_stack.c:113 kasan_report.cold+0x5/0x35 mm/kasan/report.c:321 memset+0x20/0x40 mm/kasan/common.c:115 memset include/linux/string.h:337 [inline] submit_audio_out_urb+0x919/0x1780 sound/usb/line6/playback.c:246 line6_submit_audio_out_all_urbs+0xc9/0x120 sound/usb/line6/playback.c:295 line6_stream_start+0x156/0x1f0 sound/usb/line6/pcm.c:199 line6_pcm_acquire+0x134/0x210 sound/usb/line6/pcm.c:322 call_timer_fn+0x15c/0x5e0 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+0x586/0x1400 kernel/time/timer.c:1694 __do_softirq+0x21f/0x8bc kernel/softirq.c:293 invoke_softirq kernel/softirq.c:374 [inline] irq_exit+0x17c/0x1a0 kernel/softirq.c:414 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0xf1/0x490 arch/x86/kernel/apic/apic.c:1062 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807 RIP: 0010:fsnotify+0x1e/0xb20 fs/notify/fsnotify.c:329 Code: ff e8 06 50 ec ff e9 98 fe ff ff 90 41 57 41 56 49 89 fe 41 55 41 54 55 53 48 bb 00 00 00 00 00 fc ff df 48 81 ec d0 00 00 00 <48> 8d 44 24 50 48 89 7c 24 20 48 c1 e8 03 89 74 24 1c 48 89 44 24 RSP: 0018:ffff8881b1dafd38 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: ffff8881cd8b9800 RBX: dffffc0000000000 RCX: 0000000000000001 RDX: ffff8881cc6b0f10 RSI: 0000000000000001 RDI: ffff8881c8830810 RBP: ffff8881cc6b0f00 R08: 0000000000000000 R09: 0000000000000000 R10: ffffed103b665737 R11: ffff8881db32b9bb R12: ffff8881c8830810 R13: ffff8881cc6b0f10 R14: ffff8881c8830810 R15: 0000000000000001 fsnotify_path include/linux/fsnotify.h:54 [inline] fsnotify_path include/linux/fsnotify.h:47 [inline] fsnotify_access include/linux/fsnotify.h:247 [inline] vfs_read+0x35e/0x3d0 fs/read_write.c:454 ksys_read+0xcc/0x1d0 fs/read_write.c:578 do_syscall_64+0xbd/0x500 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x412ae0 Code: 01 f0 ff ff 0f 83 70 1b 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d ad 37 64 00 00 75 14 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 44 1b 00 00 c3 48 83 ec 08 e8 6a fc ff ff RSP: 002b:00007ffeb0dce578 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000412ae0 RDX: 0000000000000038 RSI: 0000000000738020 RDI: 00000000000000f9 RBP: 00000000000004b4 R08: 0000000000006000 R09: 0000000000004000 R10: 00007ffeb0dcdf10 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeb0dce5b0 R14: 0000000000118401 R15: 00007ffeb0dce5c0 ==================================================================