BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908
in_atomic(): 1, irqs_disabled(): 0, pid: 8259, name: udevd
2 locks held by udevd/8259:
#0: 000000006643242a (&sig->cred_guard_mutex){+.+.}, at: prepare_bprm_creds fs/exec.c:1407 [inline]
#0: 000000006643242a (&sig->cred_guard_mutex){+.+.}, at: __do_execve_file.isra.0+0x376/0x2320 fs/exec.c:1750
#1: 00000000c17361eb ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline]
#1: 00000000c17361eb ((&toneport->timer)){+.-.}, at: call_timer_fn+0xc9/0x5e0 kernel/time/timer.c:1315
CPU: 1 PID: 8259 Comm: udevd 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:quarantine_put+0xb5/0x150 mm/kasan/quarantine.c:211
Code: e8 10 82 df ff 48 8b 44 24 18 65 48 33 04 25 28 00 00 00 0f 85 9d 00 00 00 48 83 c4 20 5b 5d 41 5c c3 e8 2e 80 df ff 41 54 9d d9 48 89 e6 e8 d1 fe ff ff 48 c7 c7 20 35 d8 86 e8 e5 80 06 04
RSP: 0018:ffff8881d02178b0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff8881c4bf9b60 RCX: 1ffff11039daf10b
RDX: 0000000000000000 RSI: ffff8881ced78838 RDI: ffff8881ced78834
RBP: ffff8881dacd1200 R08: ffff8881ced78000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000246
R13: ffff8881dacd1200 R14: 0000000000000246 R15: 0000000000000001
__kasan_slab_free+0x145/0x180 mm/kasan/common.c:460
slab_free_hook mm/slub.c:1429 [inline]
slab_free_freelist_hook mm/slub.c:1456 [inline]
slab_free mm/slub.c:3003 [inline]
kmem_cache_free+0xa8/0x2b0 mm/slub.c:3019
anon_vma_chain_free mm/rmap.c:134 [inline]
unlink_anon_vmas+0x467/0x830 mm/rmap.c:419
free_pgtables+0x1ab/0x2f0 mm/memory.c:394
exit_mmap+0x28f/0x4d0 mm/mmap.c:3139
__mmput kernel/fork.c:1046 [inline]
mmput+0xce/0x3d0 kernel/fork.c:1067
exec_mmap fs/exec.c:1046 [inline]
flush_old_exec+0x891/0x1c40 fs/exec.c:1279
load_elf_binary+0x93c/0x4ea0 fs/binfmt_elf.c:864
search_binary_handler fs/exec.c:1656 [inline]
search_binary_handler+0x17d/0x580 fs/exec.c:1634
exec_binprm fs/exec.c:1698 [inline]
__do_execve_file.isra.0+0x136f/0x2320 fs/exec.c:1818
do_execveat_common fs/exec.c:1865 [inline]
do_execve fs/exec.c:1882 [inline]
__do_sys_execve fs/exec.c:1958 [inline]
__se_sys_execve fs/exec.c:1953 [inline]
__x64_sys_execve+0x8a/0xb0 fs/exec.c:1953
do_syscall_64+0xbd/0x500 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f445a2a3207
Code: Bad RIP value.
RSP: 002b:00007fff58a0f228 EFLAGS: 00000206 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f445a2a3207
RDX: 0000000000b62420 RSI: 00007fff58a0f320 RDI: 00007fff58a10330
RBP: 0000000000625500 R08: 00000000000011e2 R09: 00000000000011e2
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000b62420
R13: 00000000ffffffff R14: 0000000000b49250 R15: 0000000000000005
==================================================================
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 udevd/8259
CPU: 1 PID: 8259 Comm: udevd 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:quarantine_put+0xb5/0x150 mm/kasan/quarantine.c:211
Code: e8 10 82 df ff 48 8b 44 24 18 65 48 33 04 25 28 00 00 00 0f 85 9d 00 00 00 48 83 c4 20 5b 5d 41 5c c3 e8 2e 80 df ff 41 54 9d d9 48 89 e6 e8 d1 fe ff ff 48 c7 c7 20 35 d8 86 e8 e5 80 06 04
RSP: 0018:ffff8881d02178b0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff8881c4bf9b60 RCX: 1ffff11039daf10b
RDX: 0000000000000000 RSI: ffff8881ced78838 RDI: ffff8881ced78834
RBP: ffff8881dacd1200 R08: ffff8881ced78000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000246
R13: ffff8881dacd1200 R14: 0000000000000246 R15: 0000000000000001
__kasan_slab_free+0x145/0x180 mm/kasan/common.c:460
slab_free_hook mm/slub.c:1429 [inline]
slab_free_freelist_hook mm/slub.c:1456 [inline]
slab_free mm/slub.c:3003 [inline]
kmem_cache_free+0xa8/0x2b0 mm/slub.c:3019
anon_vma_chain_free mm/rmap.c:134 [inline]
unlink_anon_vmas+0x467/0x830 mm/rmap.c:419
free_pgtables+0x1ab/0x2f0 mm/memory.c:394
exit_mmap+0x28f/0x4d0 mm/mmap.c:3139
__mmput kernel/fork.c:1046 [inline]
mmput+0xce/0x3d0 kernel/fork.c:1067
exec_mmap fs/exec.c:1046 [inline]
flush_old_exec+0x891/0x1c40 fs/exec.c:1279
load_elf_binary+0x93c/0x4ea0 fs/binfmt_elf.c:864
search_binary_handler fs/exec.c:1656 [inline]
search_binary_handler+0x17d/0x580 fs/exec.c:1634
exec_binprm fs/exec.c:1698 [inline]
__do_execve_file.isra.0+0x136f/0x2320 fs/exec.c:1818
do_execveat_common fs/exec.c:1865 [inline]
do_execve fs/exec.c:1882 [inline]
__do_sys_execve fs/exec.c:1958 [inline]
__se_sys_execve fs/exec.c:1953 [inline]
__x64_sys_execve+0x8a/0xb0 fs/exec.c:1953
do_syscall_64+0xbd/0x500 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f445a2a3207
Code: Bad RIP value.
RSP: 002b:00007fff58a0f228 EFLAGS: 00000206 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f445a2a3207
RDX: 0000000000b62420 RSI: 00007fff58a0f320 RDI: 00007fff58a10330
RBP: 0000000000625500 R08: 00000000000011e2 R09: 00000000000011e2
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000b62420
R13: 00000000ffffffff R14: 0000000000b49250 R15: 0000000000000005
==================================================================