=============================
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
3 locks held by syz-executor.4/15916:
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: spin_lock include/linux/spinlock.h:329 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pte_range mm/memory.c:1052 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pmd_range mm/memory.c:1193 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pud_range mm/memory.c:1222 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_p4d_range mm/memory.c:1243 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: unmap_page_range+0x90e/0x1e70 mm/memory.c:1264
#1: 00000000eafb162c (rcu_read_lock){....}, at: lock_page_memcg+0x5/0x240 mm/memcontrol.c:1882
#2: 000000001bfc11b3 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline]
#2: 000000001bfc11b3 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xce/0x5f0 kernel/time/timer.c:1315
stack backtrace:
CPU: 1 PID: 15916 Comm: syz-executor.4 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline]
RIP: 0010:lock_acquire+0x15c/0x2f0 kernel/locking/lockdep.c:4214
Code: 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 7e 01 00 00 c7 83 3c 08 00 00 00 00 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffff88809c0ff658 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff88809243c980 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88809243d1e8 RDI: 0000000000000246
RBP: ffffffff917d62e0 R08: 0000000013f6dd1a R09: 0000000000000028
R10: ffff88809243d1e8 R11: ffff88809243c980 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: dead000000000100
rcu_lock_acquire include/linux/rcupdate.h:210 [inline]
rcu_read_lock include/linux/rcupdate.h:595 [inline]
lock_page_memcg+0x3d/0x240 mm/memcontrol.c:1897
page_remove_file_rmap mm/rmap.c:1217 [inline]
page_remove_rmap+0x441/0xd00 mm/rmap.c:1302
zap_pte_range mm/memory.c:1091 [inline]
zap_pmd_range mm/memory.c:1193 [inline]
zap_pud_range mm/memory.c:1222 [inline]
zap_p4d_range mm/memory.c:1243 [inline]
unmap_page_range+0xc8e/0x1e70 mm/memory.c:1264
unmap_single_vma+0x19b/0x310 mm/memory.c:1309
unmap_vmas+0x10b/0x250 mm/memory.c:1340
exit_mmap+0x285/0x4d0 mm/mmap.c:3138
__mmput kernel/fork.c:1046 [inline]
mmput+0x158/0x4a0 kernel/fork.c:1067
exit_mm kernel/exit.c:546 [inline]
do_exit+0x7f0/0x2e10 kernel/exit.c:863
do_group_exit+0x12a/0x350 kernel/exit.c:980
get_signal+0x3a3/0x1cb0 kernel/signal.c:2577
do_signal+0x86/0x1750 arch/x86/kernel/signal.c:816
exit_to_usermode_loop+0x1fc/0x270 arch/x86/entry/common.c:162
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x40c/0x4f0 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x486591
Code: Bad RIP value.
RSP: 002b:00007fff0f4d78e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000023
RAX: fffffffffffffdfc RBX: 00000000000f8d71 RCX: 0000000000486591
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff0f4d78f0
RBP: 0000000000000001 R08: ffffffffffffffff R09: ffffffffffffffff
R10: 00007fff0f4d79e0 R11: 0000000000000293 R12: 000000000073bf00
R13: 000000000073c900 R14: 00000000000f8d3a R15: 000000000073bfac
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908
in_atomic(): 1, irqs_disabled(): 0, pid: 15916, name: syz-executor.4
3 locks held by syz-executor.4/15916:
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: spin_lock include/linux/spinlock.h:329 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pte_range mm/memory.c:1052 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pmd_range mm/memory.c:1193 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pud_range mm/memory.c:1222 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_p4d_range mm/memory.c:1243 [inline]
#0: 00000000c2bc2268 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: unmap_page_range+0x90e/0x1e70 mm/memory.c:1264
#1: 00000000eafb162c (rcu_read_lock){....}, at: lock_page_memcg+0x5/0x240 mm/memcontrol.c:1882
#2: 000000001bfc11b3 ((&toneport->timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:170 [inline]
#2: 000000001bfc11b3 ((&toneport->timer)){+.-.}, at: call_timer_fn+0xce/0x5f0 kernel/time/timer.c:1315
CPU: 1 PID: 15916 Comm: syz-executor.4 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline]
RIP: 0010:lock_acquire+0x15c/0x2f0 kernel/locking/lockdep.c:4214
Code: 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 7e 01 00 00 c7 83 3c 08 00 00 00 00 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffff88809c0ff658 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff88809243c980 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88809243d1e8 RDI: 0000000000000246
RBP: ffffffff917d62e0 R08: 0000000013f6dd1a R09: 0000000000000028
R10: ffff88809243d1e8 R11: ffff88809243c980 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: dead000000000100
rcu_lock_acquire include/linux/rcupdate.h:210 [inline]
rcu_read_lock include/linux/rcupdate.h:595 [inline]
lock_page_memcg+0x3d/0x240 mm/memcontrol.c:1897
page_remove_file_rmap mm/rmap.c:1217 [inline]
page_remove_rmap+0x441/0xd00 mm/rmap.c:1302
zap_pte_range mm/memory.c:1091 [inline]
zap_pmd_range mm/memory.c:1193 [inline]
zap_pud_range mm/memory.c:1222 [inline]
zap_p4d_range mm/memory.c:1243 [inline]
unmap_page_range+0xc8e/0x1e70 mm/memory.c:1264
unmap_single_vma+0x19b/0x310 mm/memory.c:1309
unmap_vmas+0x10b/0x250 mm/memory.c:1340
exit_mmap+0x285/0x4d0 mm/mmap.c:3138
__mmput kernel/fork.c:1046 [inline]
mmput+0x158/0x4a0 kernel/fork.c:1067
exit_mm kernel/exit.c:546 [inline]
do_exit+0x7f0/0x2e10 kernel/exit.c:863
do_group_exit+0x12a/0x350 kernel/exit.c:980
get_signal+0x3a3/0x1cb0 kernel/signal.c:2577
do_signal+0x86/0x1750 arch/x86/kernel/signal.c:816
exit_to_usermode_loop+0x1fc/0x270 arch/x86/entry/common.c:162
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x40c/0x4f0 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x486591
Code: Bad RIP value.
RSP: 002b:00007fff0f4d78e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000023
RAX: fffffffffffffdfc RBX: 00000000000f8d71 RCX: 0000000000486591
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff0f4d78f0
RBP: 0000000000000001 R08: ffffffffffffffff R09: ffffffffffffffff
R10: 00007fff0f4d79e0 R11: 0000000000000293 R12: 000000000073bf00
R13: 000000000073c900 R14: 00000000000f8d3a R15: 000000000073bfac
==================================================================
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.4/15916
CPU: 1 PID: 15916 Comm: syz-executor.4 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline]
RIP: 0010:lock_acquire+0x15c/0x2f0 kernel/locking/lockdep.c:4214
Code: 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 7e 01 00 00 c7 83 3c 08 00 00 00 00 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffff88809c0ff658 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: ffff88809243c980 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff88809243d1e8 RDI: 0000000000000246
RBP: ffffffff917d62e0 R08: 0000000013f6dd1a R09: 0000000000000028
R10: ffff88809243d1e8 R11: ffff88809243c980 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: dead000000000100
rcu_lock_acquire include/linux/rcupdate.h:210 [inline]
rcu_read_lock include/linux/rcupdate.h:595 [inline]
lock_page_memcg+0x3d/0x240 mm/memcontrol.c:1897
page_remove_file_rmap mm/rmap.c:1217 [inline]
page_remove_rmap+0x441/0xd00 mm/rmap.c:1302
zap_pte_range mm/memory.c:1091 [inline]
zap_pmd_range mm/memory.c:1193 [inline]
zap_pud_range mm/memory.c:1222 [inline]
zap_p4d_range mm/memory.c:1243 [inline]
unmap_page_range+0xc8e/0x1e70 mm/memory.c:1264
unmap_single_vma+0x19b/0x310 mm/memory.c:1309
unmap_vmas+0x10b/0x250 mm/memory.c:1340
exit_mmap+0x285/0x4d0 mm/mmap.c:3138
__mmput kernel/fork.c:1046 [inline]
mmput+0x158/0x4a0 kernel/fork.c:1067
exit_mm kernel/exit.c:546 [inline]
do_exit+0x7f0/0x2e10 kernel/exit.c:863
do_group_exit+0x12a/0x350 kernel/exit.c:980
get_signal+0x3a3/0x1cb0 kernel/signal.c:2577
do_signal+0x86/0x1750 arch/x86/kernel/signal.c:816
exit_to_usermode_loop+0x1fc/0x270 arch/x86/entry/common.c:162
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x40c/0x4f0 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x486591
Code: Bad RIP value.
RSP: 002b:00007fff0f4d78e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000023
RAX: fffffffffffffdfc RBX: 00000000000f8d71 RCX: 0000000000486591
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff0f4d78f0
RBP: 0000000000000001 R08: ffffffffffffffff R09: ffffffffffffffff
R10: 00007fff0f4d79e0 R11: 0000000000000293 R12: 000000000073bf00
R13: 000000000073c900 R14: 00000000000f8d3a R15: 000000000073bfac
==================================================================