BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 in_atomic(): 1, irqs_disabled(): 0, pid: 5581, name: udevd 1 lock held by udevd/5581: #0: 000000009c087c58 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline] #0: 000000009c087c58 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xce/0x5f0 kernel/time/timer.c:1315 CPU: 1 PID: 5581 Comm: udevd 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:wait_for_unix_gc+0x8b/0x1d0 net/unix/garbage.c:201 Code: 00 00 00 48 89 84 24 98 00 00 00 31 c0 e8 2d fe 65 f4 48 c7 c0 00 cc 7f 97 48 89 c2 83 e0 07 48 c1 ea 03 83 c0 03 0f b6 14 1a <38> d0 7c 08 84 d2 0f 85 22 01 00 00 8b 1d 93 ff 73 0a bf 80 3e 00 RSP: 0018:ffff88808c4f7ac8 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffffff8c747870 RDX: 0000000000000004 RSI: ffffffff8d0bcc43 RDI: ffff88809b9bc8b0 RBP: 1ffff1101189ef59 R08: ffff8880a7b49880 R09: ffffed1012d7bad1 R10: ffffed1012d7bad0 R11: ffff888096bdd683 R12: ffff88809b9bc880 R13: ffff88809a87cda0 R14: ffff88808c4f7d98 R15: 0000000000000000 unix_dgram_sendmsg+0xfa/0x10d0 net/unix/af_unix.c:1591 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xda/0x130 net/socket.c:661 __sys_sendto+0x21f/0x330 net/socket.c:1932 __do_sys_sendto net/socket.c:1944 [inline] __se_sys_sendto net/socket.c:1940 [inline] __x64_sys_sendto+0xe2/0x1b0 net/socket.c:1940 do_syscall_64+0xcf/0x4f0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f06e2f89282 Code: 48 83 c8 ff eb ea 90 90 53 48 83 ec 20 8b 05 81 d3 2a 00 85 c0 75 21 45 31 c9 45 31 c0 4c 63 d1 48 63 ff b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 61 48 83 c4 20 5b c3 48 89 54 24 08 89 0c 24 RSP: 002b:00007ffed3ada950 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000627110 RCX: 00007f06e2f89282 RDX: 0000000000000008 RSI: 00007ffed3ada9a0 RDI: 0000000000000009 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000063f720 R14: 0000000000626250 R15: 000000000000000b ================================================================== 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 udevd/5581 CPU: 1 PID: 5581 Comm: udevd 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:wait_for_unix_gc+0x8b/0x1d0 net/unix/garbage.c:201 Code: 00 00 00 48 89 84 24 98 00 00 00 31 c0 e8 2d fe 65 f4 48 c7 c0 00 cc 7f 97 48 89 c2 83 e0 07 48 c1 ea 03 83 c0 03 0f b6 14 1a <38> d0 7c 08 84 d2 0f 85 22 01 00 00 8b 1d 93 ff 73 0a bf 80 3e 00 RSP: 0018:ffff88808c4f7ac8 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffffff8c747870 RDX: 0000000000000004 RSI: ffffffff8d0bcc43 RDI: ffff88809b9bc8b0 RBP: 1ffff1101189ef59 R08: ffff8880a7b49880 R09: ffffed1012d7bad1 R10: ffffed1012d7bad0 R11: ffff888096bdd683 R12: ffff88809b9bc880 R13: ffff88809a87cda0 R14: ffff88808c4f7d98 R15: 0000000000000000 unix_dgram_sendmsg+0xfa/0x10d0 net/unix/af_unix.c:1591 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xda/0x130 net/socket.c:661 __sys_sendto+0x21f/0x330 net/socket.c:1932 __do_sys_sendto net/socket.c:1944 [inline] __se_sys_sendto net/socket.c:1940 [inline] __x64_sys_sendto+0xe2/0x1b0 net/socket.c:1940 do_syscall_64+0xcf/0x4f0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f06e2f89282 Code: 48 83 c8 ff eb ea 90 90 53 48 83 ec 20 8b 05 81 d3 2a 00 85 c0 75 21 45 31 c9 45 31 c0 4c 63 d1 48 63 ff b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 61 48 83 c4 20 5b c3 48 89 54 24 08 89 0c 24 RSP: 002b:00007ffed3ada950 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000627110 RCX: 00007f06e2f89282 RDX: 0000000000000008 RSI: 00007ffed3ada9a0 RDI: 0000000000000009 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000063f720 R14: 0000000000626250 R15: 000000000000000b ==================================================================