=============================
WARNING: suspicious RCU usage
5.1.0-rc3-319004-g43151d6 #6 Not tainted
-----------------------------
include/linux/rcupdate.h:267 Illegal context switch in RCU read-side critical section!
other info that might help us debug this:
rcu_scheduler_active = 2, debug_locks = 1
2 locks held by udevd/903:
#0: 0000000010d5b399 (rcu_read_lock){....}, at: is_bpf_text_address+0x5/0x170 kernel/bpf/core.c:707
#1: 000000009cca7204 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline]
#1: 000000009cca7204 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xce/0x5f0 kernel/time/timer.c:1315
stack backtrace:
CPU: 0 PID: 903 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
rcu_preempt_sleep_check include/linux/rcupdate.h:267 [inline]
rcu_preempt_sleep_check include/linux/rcupdate.h:265 [inline]
___might_sleep+0x1b6/0x280 kernel/sched/core.c:6155
__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:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data+0x0/0x70 kernel/kcov.c:194
Code: 20 48 8b 88 b8 12 00 00 8b 80 b4 12 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 <65> 4c 8b 04 25 00 ee 01 00 65 8b 05 c0 22 90 7e a9 00 01 1f 00 75
RSP: 0018:ffff8880958c7a50 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff888095830000 RBX: 0000000000000000 RCX: ffffffff817f41ec
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 00007fe146b87da7 R08: ffff888095830000 R09: ffffed1015a05c28
R10: ffffed1015a05c27 R11: ffff8880ad02e13b R12: 0000000000000000
R13: 0000000000000000 R14: ffff888095830000 R15: ffff8880a0e30fff
rcu_read_unlock include/linux/rcupdate.h:645 [inline]
is_bpf_text_address+0xac/0x170 kernel/bpf/core.c:712
kernel_text_address+0xe7/0x110 kernel/extable.c:152
__kernel_text_address+0xe/0x30 kernel/extable.c:107
unwind_get_return_address arch/x86/kernel/unwind_orc.c:300 [inline]
unwind_get_return_address+0x5f/0xa0 arch/x86/kernel/unwind_orc.c:295
__save_stack_trace+0x8f/0x100 arch/x86/kernel/stacktrace.c:45
save_stack+0x32/0xa0 mm/kasan/common.c:75
set_track mm/kasan/common.c:87 [inline]
__kasan_kmalloc mm/kasan/common.c:497 [inline]
__kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:470
slab_post_alloc_hook mm/slab.h:437 [inline]
slab_alloc_node mm/slub.c:2756 [inline]
slab_alloc mm/slub.c:2764 [inline]
kmem_cache_alloc+0xcf/0x270 mm/slub.c:2769
getname_flags fs/namei.c:138 [inline]
getname_flags+0xd7/0x5b0 fs/namei.c:128
user_path_at_empty+0x2f/0x50 fs/namei.c:2606
user_path_at include/linux/namei.h:60 [inline]
do_fchownat+0xe6/0x1e0 fs/open.c:656
__do_sys_chown fs/open.c:682 [inline]
__se_sys_chown fs/open.c:680 [inline]
__x64_sys_chown+0x7c/0xc0 fs/open.c:680
do_syscall_64+0xcf/0x4f0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fe146b87da7
Code: 39 04 24 75 c7 48 8b 84 24 98 00 00 00 48 39 44 24 08 75 b8 48 89 df e8 c7 cc fa ff eb b7 90 90 90 90 90 b8 5c 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 61 40 2b 00 31 d2 48 29 c2 64
RSP: 002b:00007ffc7b24cf28 EFLAGS: 00000217 ORIG_RAX: 000000000000005c
RAX: ffffffffffffffda RBX: 00000000006261d0 RCX: 00007fe146b87da7
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006261d0
RBP: 0000000000626250 R08: 0000000000000000 R09: 0000000000000000
R10: 00007fe146bcadc0 R11: 0000000000000217 R12: 00000000000023b4
R13: 000000000020bdf2 R14: 0000000000000000 R15: 0000000000000000
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908
in_atomic(): 1, irqs_disabled(): 0, pid: 903, name: udevd
2 locks held by udevd/903:
#0: 0000000010d5b399 (rcu_read_lock){....}, at: is_bpf_text_address+0x5/0x170 kernel/bpf/core.c:707
#1: 000000009cca7204 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline]
#1: 000000009cca7204 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xce/0x5f0 kernel/time/timer.c:1315
CPU: 0 PID: 903 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:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data+0x0/0x70 kernel/kcov.c:194
Code: 20 48 8b 88 b8 12 00 00 8b 80 b4 12 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 <65> 4c 8b 04 25 00 ee 01 00 65 8b 05 c0 22 90 7e a9 00 01 1f 00 75
RSP: 0018:ffff8880958c7a50 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff888095830000 RBX: 0000000000000000 RCX: ffffffff817f41ec
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 00007fe146b87da7 R08: ffff888095830000 R09: ffffed1015a05c28
R10: ffffed1015a05c27 R11: ffff8880ad02e13b R12: 0000000000000000
R13: 0000000000000000 R14: ffff888095830000 R15: ffff8880a0e30fff
rcu_read_unlock include/linux/rcupdate.h:645 [inline]
is_bpf_text_address+0xac/0x170 kernel/bpf/core.c:712
kernel_text_address+0xe7/0x110 kernel/extable.c:152
__kernel_text_address+0xe/0x30 kernel/extable.c:107
unwind_get_return_address arch/x86/kernel/unwind_orc.c:300 [inline]
unwind_get_return_address+0x5f/0xa0 arch/x86/kernel/unwind_orc.c:295
__save_stack_trace+0x8f/0x100 arch/x86/kernel/stacktrace.c:45
save_stack+0x32/0xa0 mm/kasan/common.c:75
set_track mm/kasan/common.c:87 [inline]
__kasan_kmalloc mm/kasan/common.c:497 [inline]
__kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:470
slab_post_alloc_hook mm/slab.h:437 [inline]
slab_alloc_node mm/slub.c:2756 [inline]
slab_alloc mm/slub.c:2764 [inline]
kmem_cache_alloc+0xcf/0x270 mm/slub.c:2769
getname_flags fs/namei.c:138 [inline]
getname_flags+0xd7/0x5b0 fs/namei.c:128
user_path_at_empty+0x2f/0x50 fs/namei.c:2606
user_path_at include/linux/namei.h:60 [inline]
do_fchownat+0xe6/0x1e0 fs/open.c:656
__do_sys_chown fs/open.c:682 [inline]
__se_sys_chown fs/open.c:680 [inline]
__x64_sys_chown+0x7c/0xc0 fs/open.c:680
do_syscall_64+0xcf/0x4f0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fe146b87da7
Code: 39 04 24 75 c7 48 8b 84 24 98 00 00 00 48 39 44 24 08 75 b8 48 89 df e8 c7 cc fa ff eb b7 90 90 90 90 90 b8 5c 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 61 40 2b 00 31 d2 48 29 c2 64
RSP: 002b:00007ffc7b24cf28 EFLAGS: 00000217 ORIG_RAX: 000000000000005c
RAX: ffffffffffffffda RBX: 00000000006261d0 RCX: 00007fe146b87da7
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006261d0
RBP: 0000000000626250 R08: 0000000000000000 R09: 0000000000000000
R10: 00007fe146bcadc0 R11: 0000000000000217 R12: 00000000000023b4
R13: 000000000020bdf2 R14: 0000000000000000 R15: 0000000000000000
==================================================================
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/903
CPU: 0 PID: 903 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:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data+0x0/0x70 kernel/kcov.c:194
Code: 20 48 8b 88 b8 12 00 00 8b 80 b4 12 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 <65> 4c 8b 04 25 00 ee 01 00 65 8b 05 c0 22 90 7e a9 00 01 1f 00 75
RSP: 0018:ffff8880958c7a50 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff888095830000 RBX: 0000000000000000 RCX: ffffffff817f41ec
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 00007fe146b87da7 R08: ffff888095830000 R09: ffffed1015a05c28
R10: ffffed1015a05c27 R11: ffff8880ad02e13b R12: 0000000000000000
R13: 0000000000000000 R14: ffff888095830000 R15: ffff8880a0e30fff
rcu_read_unlock include/linux/rcupdate.h:645 [inline]
is_bpf_text_address+0xac/0x170 kernel/bpf/core.c:712
kernel_text_address+0xe7/0x110 kernel/extable.c:152
__kernel_text_address+0xe/0x30 kernel/extable.c:107
unwind_get_return_address arch/x86/kernel/unwind_orc.c:300 [inline]
unwind_get_return_address+0x5f/0xa0 arch/x86/kernel/unwind_orc.c:295
__save_stack_trace+0x8f/0x100 arch/x86/kernel/stacktrace.c:45
save_stack+0x32/0xa0 mm/kasan/common.c:75
set_track mm/kasan/common.c:87 [inline]
__kasan_kmalloc mm/kasan/common.c:497 [inline]
__kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:470
slab_post_alloc_hook mm/slab.h:437 [inline]
slab_alloc_node mm/slub.c:2756 [inline]
slab_alloc mm/slub.c:2764 [inline]
kmem_cache_alloc+0xcf/0x270 mm/slub.c:2769
getname_flags fs/namei.c:138 [inline]
getname_flags+0xd7/0x5b0 fs/namei.c:128
user_path_at_empty+0x2f/0x50 fs/namei.c:2606
user_path_at include/linux/namei.h:60 [inline]
do_fchownat+0xe6/0x1e0 fs/open.c:656
__do_sys_chown fs/open.c:682 [inline]
__se_sys_chown fs/open.c:680 [inline]
__x64_sys_chown+0x7c/0xc0 fs/open.c:680
do_syscall_64+0xcf/0x4f0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fe146b87da7
Code: 39 04 24 75 c7 48 8b 84 24 98 00 00 00 48 39 44 24 08 75 b8 48 89 df e8 c7 cc fa ff eb b7 90 90 90 90 90 b8 5c 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 61 40 2b 00 31 d2 48 29 c2 64
RSP: 002b:00007ffc7b24cf28 EFLAGS: 00000217 ORIG_RAX: 000000000000005c
RAX: ffffffffffffffda RBX: 00000000006261d0 RCX: 00007fe146b87da7
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000006261d0
RBP: 0000000000626250 R08: 0000000000000000 R09: 0000000000000000
R10: 00007fe146bcadc0 R11: 0000000000000217 R12: 00000000000023b4
R13: 000000000020bdf2 R14: 0000000000000000 R15: 0000000000000000
==================================================================