[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.162129] random: sshd: uninitialized urandom read (32 bytes read) [ 32.398205] audit: type=1400 audit(1536247804.158:6): avc: denied { map } for pid=4815 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 32.448725] random: sshd: uninitialized urandom read (32 bytes read) [ 33.021216] sshd (4816) used greatest stack depth: 16872 bytes left [ 33.039913] random: sshd: uninitialized urandom read (32 bytes read) [ 33.242500] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.205' (ECDSA) to the list of known hosts. [ 38.784332] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 38.897066] audit: type=1400 audit(1536247810.657:7): avc: denied { map } for pid=4829 comm="syz-executor137" path="/root/syz-executor137472409" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 38.899886] L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/l1tf.html for details. [ 38.947129] ================================================================== [ 38.956101] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 38.962312] Read of size 8 at addr ffff8801c6990058 by task syz-executor137/4829 [ 38.969817] [ 38.971428] CPU: 0 PID: 4829 Comm: syz-executor137 Not tainted 4.19.0-rc2+ #3 [ 38.978682] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.988020] Call Trace: [ 38.990596] dump_stack+0x1c9/0x2b4 [ 38.994208] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.999379] ? printk+0xa7/0xcf [ 39.002639] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.007374] ? __schedule+0xf54/0x1df0 [ 39.011242] print_address_description+0x6c/0x20b [ 39.016062] ? __schedule+0xf54/0x1df0 [ 39.019931] kasan_report.cold.7+0x242/0x30d [ 39.024319] __asan_report_load8_noabort+0x14/0x20 [ 39.029226] __schedule+0xf54/0x1df0 [ 39.032919] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.038001] ? __sched_text_start+0x8/0x8 [ 39.042129] ? __call_srcu+0x7e7/0x1040 [ 39.046088] ? check_same_owner+0x340/0x340 [ 39.050405] ? mark_held_locks+0x160/0x160 [ 39.054645] ? find_held_lock+0x36/0x1c0 [ 39.058720] preempt_schedule_common+0x22/0x60 [ 39.063311] _cond_resched+0x1d/0x30 [ 39.067005] wait_for_completion+0xa5/0x8d0 [ 39.071310] ? wait_for_completion_interruptible+0x950/0x950 [ 39.077086] ? __lockdep_init_map+0x105/0x590 [ 39.081561] ? __init_waitqueue_head+0x9e/0x150 [ 39.086206] ? init_wait_entry+0x1c0/0x1c0 [ 39.090429] __synchronize_srcu+0x189/0x240 [ 39.094734] ? call_srcu+0x10/0x10 [ 39.098260] ? rcu_unexpedite_gp+0x20/0x20 [ 39.102512] synchronize_srcu+0x335/0x56f [ 39.106648] ? lock_downgrade+0x8f0/0x8f0 [ 39.110788] ? synchronize_srcu_expedited+0x20/0x20 [ 39.115788] ? kasan_check_read+0x11/0x20 [ 39.119918] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 39.124482] ? kasan_check_write+0x14/0x20 [ 39.128705] ? do_raw_spin_lock+0xc1/0x200 [ 39.132929] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.138630] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 39.144069] ? kvfree+0x61/0x70 [ 39.147334] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.152330] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.156370] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.160762] ? kvm_arch_sync_events+0x30/0x30 [ 39.165258] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.170809] ? mmu_notifier_unregister+0x474/0x600 [ 39.175718] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.180106] ? kfree+0x111/0x210 [ 39.183452] ? __mmu_notifier_register+0x30/0x30 [ 39.188205] ? __free_pages+0x10a/0x190 [ 39.192159] ? free_unref_page+0x930/0x930 [ 39.196384] kvm_put_kvm+0x73f/0x1060 [ 39.200169] ? kvm_write_guest_cached+0x40/0x40 [ 39.204939] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.209418] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.213901] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.218468] ? kasan_check_write+0x14/0x20 [ 39.222687] ? do_raw_spin_lock+0xc1/0x200 [ 39.226987] ? kvm_irqfd_release+0xdd/0x120 [ 39.231309] ? kvm_irqfd_release+0xdd/0x120 [ 39.235615] ? kvm_put_kvm+0x1060/0x1060 [ 39.239656] kvm_vm_release+0x42/0x50 [ 39.243445] __fput+0x38a/0xa40 [ 39.246705] ? __alloc_file+0x400/0x400 [ 39.250670] ? check_same_owner+0x340/0x340 [ 39.254975] ? kasan_check_write+0x14/0x20 [ 39.259188] ? do_raw_spin_lock+0xc1/0x200 [ 39.263402] ____fput+0x15/0x20 [ 39.266669] task_work_run+0x1e8/0x2a0 [ 39.270567] ? task_work_cancel+0x240/0x240 [ 39.274889] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.280408] ? switch_task_namespaces+0xa2/0xd0 [ 39.285056] do_exit+0x1ae4/0x26e0 [ 39.288590] ? mm_update_next_owner+0x9a0/0x9a0 [ 39.293250] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 39.297471] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.302470] ? kfree+0x1d7/0x210 [ 39.305820] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 39.310040] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.315735] ? avc_has_extended_perms+0xa97/0x15c0 [ 39.320644] ? kernel_text_address+0xbe/0xf0 [ 39.325041] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 39.330129] ? avc_ss_reset+0x190/0x190 [ 39.334093] ? save_stack+0xa9/0xd0 [ 39.337702] ? save_stack+0x43/0xd0 [ 39.341310] ? __kasan_slab_free+0x11a/0x170 [ 39.345703] ? kasan_slab_free+0xe/0x10 [ 39.349686] ? putname+0xf2/0x130 [ 39.353127] ? __x64_sys_openat+0x9d/0x100 [ 39.357376] ? do_syscall_64+0x1b9/0x820 [ 39.361432] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.366780] ? initcall_blacklisted+0x9a/0x1e0 [ 39.371371] ? rcu_note_context_switch+0x680/0x680 [ 39.376283] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.381978] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.387495] ? do_vfs_ioctl+0x201/0x1720 [ 39.391536] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.396707] ? ioctl_preallocate+0x300/0x300 [ 39.401098] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.406741] ? selinux_capable+0x40/0x40 [ 39.410796] ? path_pts+0x1bf/0x1f0 [ 39.414406] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.419403] ? kmem_cache_free+0x246/0x280 [ 39.423617] ? putname+0xf7/0x130 [ 39.427090] do_group_exit+0x177/0x440 [ 39.430959] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.435261] ? __ia32_sys_exit+0x50/0x50 [ 39.439302] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.444417] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.449937] ? ksys_ioctl+0x81/0xd0 [ 39.453545] __x64_sys_exit_group+0x3e/0x50 [ 39.457852] do_syscall_64+0x1b9/0x820 [ 39.461724] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.467071] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.472056] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.476890] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 39.481887] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.486884] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.491881] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.496725] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.501905] RIP: 0033:0x43ef08 [ 39.505089] Code: Bad RIP value. [ 39.508431] RSP: 002b:00007fff91427c88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.516124] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 39.523383] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 39.530638] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 39.537896] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 39.545142] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 39.552404] [ 39.554011] Allocated by task 4829: [ 39.557625] save_stack+0x43/0xd0 [ 39.561056] kasan_kmalloc+0xc4/0xe0 [ 39.564748] kasan_slab_alloc+0x12/0x20 [ 39.568718] kmem_cache_alloc+0x12e/0x710 [ 39.572846] vmx_create_vcpu+0xcf/0x2830 [ 39.576884] kvm_arch_vcpu_create+0xe5/0x220 [ 39.581288] kvm_vm_ioctl+0x488/0x1d80 [ 39.585153] do_vfs_ioctl+0x1de/0x1720 [ 39.589030] ksys_ioctl+0xa9/0xd0 [ 39.592476] __x64_sys_ioctl+0x73/0xb0 [ 39.596344] do_syscall_64+0x1b9/0x820 [ 39.600214] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.605378] [ 39.606986] Freed by task 4829: [ 39.610243] save_stack+0x43/0xd0 [ 39.613695] __kasan_slab_free+0x11a/0x170 [ 39.617915] kasan_slab_free+0xe/0x10 [ 39.621700] kmem_cache_free+0x86/0x280 [ 39.625651] vmx_free_vcpu+0x26b/0x300 [ 39.629554] kvm_arch_destroy_vm+0x365/0x7c0 [ 39.633942] kvm_put_kvm+0x73f/0x1060 [ 39.637730] kvm_vm_release+0x42/0x50 [ 39.641530] __fput+0x38a/0xa40 [ 39.644808] ____fput+0x15/0x20 [ 39.648070] task_work_run+0x1e8/0x2a0 [ 39.651953] do_exit+0x1ae4/0x26e0 [ 39.655469] do_group_exit+0x177/0x440 [ 39.659357] __x64_sys_exit_group+0x3e/0x50 [ 39.663689] do_syscall_64+0x1b9/0x820 [ 39.667558] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.672728] [ 39.674345] The buggy address belongs to the object at ffff8801c6990040 [ 39.674345] which belongs to the cache kvm_vcpu of size 23872 [ 39.686896] The buggy address is located 24 bytes inside of [ 39.686896] 23872-byte region [ffff8801c6990040, ffff8801c6995d80) [ 39.698831] The buggy address belongs to the page: [ 39.703741] page:ffffea00071a6400 count:1 mapcount:0 mapping:ffff8801d86dd040 index:0x0 compound_mapcount: 0 [ 39.713694] flags: 0x2fffc0000008100(slab|head) [ 39.718346] raw: 02fffc0000008100 ffff8801d4c0ef48 ffff8801d4c0ef48 ffff8801d86dd040 [ 39.726209] raw: 0000000000000000 ffff8801c6990040 0000000100000001 0000000000000000 [ 39.734067] page dumped because: kasan: bad access detected [ 39.739751] [ 39.741357] Memory state around the buggy address: [ 39.746265] ffff8801c698ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.753611] ffff8801c698ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.760952] >ffff8801c6990000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 39.768287] ^ [ 39.774647] ffff8801c6990080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.781994] ffff8801c6990100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.789342] ================================================================== [ 39.796686] Kernel panic - not syncing: panic_on_warn set ... [ 39.796686] [ 39.804040] CPU: 0 PID: 4829 Comm: syz-executor137 Tainted: G B 4.19.0-rc2+ #3 [ 39.812685] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.822024] Call Trace: [ 39.824603] dump_stack+0x1c9/0x2b4 [ 39.828223] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.833403] ? lock_downgrade+0x8f0/0x8f0 [ 39.837536] ? __schedule+0xf54/0x1df0 [ 39.841401] panic+0x238/0x4e7 [ 39.844571] ? add_taint.cold.5+0x16/0x16 [ 39.848702] ? print_shadow_for_address+0xba/0x116 [ 39.853610] ? trace_hardirqs_off+0xaf/0x2b0 [ 39.857994] ? trace_hardirqs_off+0x77/0x2b0 [ 39.862455] ? __schedule+0xf54/0x1df0 [ 39.866330] kasan_end_report+0x47/0x4f [ 39.870287] kasan_report.cold.7+0x76/0x30d [ 39.874590] __asan_report_load8_noabort+0x14/0x20 [ 39.879499] __schedule+0xf54/0x1df0 [ 39.883193] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.888278] ? __sched_text_start+0x8/0x8 [ 39.892407] ? __call_srcu+0x7e7/0x1040 [ 39.896423] ? check_same_owner+0x340/0x340 [ 39.900736] ? mark_held_locks+0x160/0x160 [ 39.904957] ? find_held_lock+0x36/0x1c0 [ 39.909049] preempt_schedule_common+0x22/0x60 [ 39.913622] _cond_resched+0x1d/0x30 [ 39.917319] wait_for_completion+0xa5/0x8d0 [ 39.921623] ? wait_for_completion_interruptible+0x950/0x950 [ 39.927407] ? __lockdep_init_map+0x105/0x590 [ 39.931889] ? __init_waitqueue_head+0x9e/0x150 [ 39.936537] ? init_wait_entry+0x1c0/0x1c0 [ 39.940825] __synchronize_srcu+0x189/0x240 [ 39.945151] ? call_srcu+0x10/0x10 [ 39.948770] ? rcu_unexpedite_gp+0x20/0x20 [ 39.953005] synchronize_srcu+0x335/0x56f [ 39.957148] ? lock_downgrade+0x8f0/0x8f0 [ 39.961275] ? synchronize_srcu_expedited+0x20/0x20 [ 39.966272] ? kasan_check_read+0x11/0x20 [ 39.970400] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 39.974962] ? kasan_check_write+0x14/0x20 [ 39.979173] ? do_raw_spin_lock+0xc1/0x200 [ 39.983392] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.989082] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 39.994516] ? kvfree+0x61/0x70 [ 39.997780] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.002779] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.006825] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.011215] ? kvm_arch_sync_events+0x30/0x30 [ 40.015694] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.021215] ? mmu_notifier_unregister+0x474/0x600 [ 40.026124] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.030514] ? kfree+0x111/0x210 [ 40.033864] ? __mmu_notifier_register+0x30/0x30 [ 40.038602] ? __free_pages+0x10a/0x190 [ 40.042558] ? free_unref_page+0x930/0x930 [ 40.046779] kvm_put_kvm+0x73f/0x1060 [ 40.050580] ? kvm_write_guest_cached+0x40/0x40 [ 40.055232] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.059718] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.064195] ? lockdep_hardirqs_on+0x421/0x5c0 [ 40.068765] ? kasan_check_write+0x14/0x20 [ 40.072985] ? do_raw_spin_lock+0xc1/0x200 [ 40.077223] ? kvm_irqfd_release+0xdd/0x120 [ 40.081520] ? kvm_irqfd_release+0xdd/0x120 [ 40.085823] ? kvm_put_kvm+0x1060/0x1060 [ 40.089863] kvm_vm_release+0x42/0x50 [ 40.093644] __fput+0x38a/0xa40 [ 40.097015] ? __alloc_file+0x400/0x400 [ 40.100983] ? check_same_owner+0x340/0x340 [ 40.105391] ? kasan_check_write+0x14/0x20 [ 40.109608] ? do_raw_spin_lock+0xc1/0x200 [ 40.113821] ____fput+0x15/0x20 [ 40.117080] task_work_run+0x1e8/0x2a0 [ 40.120947] ? task_work_cancel+0x240/0x240 [ 40.125252] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.130775] ? switch_task_namespaces+0xa2/0xd0 [ 40.135428] do_exit+0x1ae4/0x26e0 [ 40.138951] ? mm_update_next_owner+0x9a0/0x9a0 [ 40.143711] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 40.147944] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.152942] ? kfree+0x1d7/0x210 [ 40.156294] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 40.160514] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.166211] ? avc_has_extended_perms+0xa97/0x15c0 [ 40.171127] ? kernel_text_address+0xbe/0xf0 [ 40.175528] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 40.180656] ? avc_ss_reset+0x190/0x190 [ 40.184643] ? save_stack+0xa9/0xd0 [ 40.188256] ? save_stack+0x43/0xd0 [ 40.191860] ? __kasan_slab_free+0x11a/0x170 [ 40.196254] ? kasan_slab_free+0xe/0x10 [ 40.200213] ? putname+0xf2/0x130 [ 40.203648] ? __x64_sys_openat+0x9d/0x100 [ 40.207877] ? do_syscall_64+0x1b9/0x820 [ 40.211920] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.217269] ? initcall_blacklisted+0x9a/0x1e0 [ 40.221834] ? rcu_note_context_switch+0x680/0x680 [ 40.226747] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.232442] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.237961] ? do_vfs_ioctl+0x201/0x1720 [ 40.242009] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 40.247183] ? ioctl_preallocate+0x300/0x300 [ 40.251575] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.257093] ? selinux_capable+0x40/0x40 [ 40.261239] ? path_pts+0x1bf/0x1f0 [ 40.264860] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.269860] ? kmem_cache_free+0x246/0x280 [ 40.274076] ? putname+0xf7/0x130 [ 40.277524] do_group_exit+0x177/0x440 [ 40.281398] ? trace_hardirqs_on+0xbd/0x2c0 [ 40.285734] ? __ia32_sys_exit+0x50/0x50 [ 40.289899] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 40.294986] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.300506] ? ksys_ioctl+0x81/0xd0 [ 40.304119] __x64_sys_exit_group+0x3e/0x50 [ 40.308430] do_syscall_64+0x1b9/0x820 [ 40.312308] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.317675] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.322598] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.327425] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 40.332420] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.337418] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.342416] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.347243] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.352411] RIP: 0033:0x43ef08 [ 40.355591] Code: Bad RIP value. [ 40.358931] RSP: 002b:00007fff91427c88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.366618] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 40.373864] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.381111] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.388361] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 40.395610] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 40.402867] [ 40.402870] ====================================================== [ 40.402874] WARNING: possible circular locking dependency detected [ 40.402876] 4.19.0-rc2+ #3 Not tainted [ 40.402879] ------------------------------------------------------ [ 40.402882] syz-executor137/4829 is trying to acquire lock: [ 40.402884] 00000000ac35c583 ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 [ 40.402892] [ 40.402895] but task is already holding lock: [ 40.402896] 00000000ff763f45 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 40.402904] [ 40.402907] which lock already depends on the new lock. [ 40.402908] [ 40.402909] [ 40.402912] the existing dependency chain (in reverse order) is: [ 40.402913] [ 40.402915] -> #3 (report_lock){....}: [ 40.402923] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.402925] kasan_report+0x8e/0x110 [ 40.402927] __asan_report_load8_noabort+0x14/0x20 [ 40.402930] __schedule+0xf54/0x1df0 [ 40.402932] preempt_schedule_common+0x22/0x60 [ 40.402934] _cond_resched+0x1d/0x30 [ 40.402937] wait_for_completion+0xa5/0x8d0 [ 40.402939] __synchronize_srcu+0x189/0x240 [ 40.402941] synchronize_srcu+0x335/0x56f [ 40.402944] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.402947] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.402949] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.402951] kvm_put_kvm+0x73f/0x1060 [ 40.402954] kvm_vm_release+0x42/0x50 [ 40.402956] __fput+0x38a/0xa40 [ 40.402958] ____fput+0x15/0x20 [ 40.402960] task_work_run+0x1e8/0x2a0 [ 40.402962] do_exit+0x1ae4/0x26e0 [ 40.402964] do_group_exit+0x177/0x440 [ 40.402967] __x64_sys_exit_group+0x3e/0x50 [ 40.402969] do_syscall_64+0x1b9/0x820 [ 40.402972] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.402973] [ 40.402975] -> #2 (&rq->lock){-.-.}: [ 40.402982] _raw_spin_lock+0x2a/0x40 [ 40.402984] task_fork_fair+0x93/0x680 [ 40.402986] sched_fork+0x44b/0xbd0 [ 40.402989] copy_process+0x235e/0x7af0 [ 40.402991] _do_fork+0x1ca/0x1170 [ 40.402993] kernel_thread+0x34/0x40 [ 40.402995] rest_init+0x22/0xe4 [ 40.402997] start_kernel+0x913/0x94e [ 40.403000] x86_64_start_reservations+0x29/0x2b [ 40.403002] x86_64_start_kernel+0x76/0x79 [ 40.403004] secondary_startup_64+0xa4/0xb0 [ 40.403006] [ 40.403007] -> #1 (&p->pi_lock){-.-.}: [ 40.403015] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.403017] try_to_wake_up+0xd2/0x1250 [ 40.403019] wake_up_process+0x10/0x20 [ 40.403021] __up.isra.1+0x1c0/0x2a0 [ 40.403023] up+0x13c/0x1c0 [ 40.403025] __up_console_sem+0xbe/0x1b0 [ 40.403028] console_unlock+0x506/0x10d0 [ 40.403030] vprintk_emit+0x33a/0x910 [ 40.403032] vprintk_default+0x28/0x30 [ 40.403034] vprintk_func+0x7a/0x117 [ 40.403036] printk+0xa7/0xcf [ 40.403038] load_umh+0x51/0xbd [ 40.403040] do_one_initcall+0x127/0x838 [ 40.403043] kernel_init_freeable+0x4bb/0x5ae [ 40.403045] kernel_init+0x11/0x1b3 [ 40.403047] ret_from_fork+0x3a/0x50 [ 40.403048] [ 40.403049] -> #0 ((console_sem).lock){-.-.}: [ 40.403057] lock_acquire+0x1e4/0x4f0 [ 40.403060] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.403062] down_trylock+0x13/0x70 [ 40.403065] __down_trylock_console_sem+0xae/0x200 [ 40.403067] console_trylock+0x15/0xa0 [ 40.403069] vprintk_emit+0x31f/0x910 [ 40.403071] vprintk_default+0x28/0x30 [ 40.403073] vprintk_func+0x7a/0x117 [ 40.403075] printk+0xa7/0xcf [ 40.403078] kasan_report+0x9e/0x110 [ 40.403080] __asan_report_load8_noabort+0x14/0x20 [ 40.403082] __schedule+0xf54/0x1df0 [ 40.403085] preempt_schedule_common+0x22/0x60 [ 40.403087] _cond_resched+0x1d/0x30 [ 40.403089] wait_for_completion+0xa5/0x8d0 [ 40.403092] __synchronize_srcu+0x189/0x240 [ 40.403094] synchronize_srcu+0x335/0x56f [ 40.403097] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.403099] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.403102] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.403104] kvm_put_kvm+0x73f/0x1060 [ 40.403106] kvm_vm_release+0x42/0x50 [ 40.403108] __fput+0x38a/0xa40 [ 40.403110] ____fput+0x15/0x20 [ 40.403112] task_work_run+0x1e8/0x2a0 [ 40.403114] do_exit+0x1ae4/0x26e0 [ 40.403117] do_group_exit+0x177/0x440 [ 40.403119] __x64_sys_exit_group+0x3e/0x50 [ 40.403121] do_syscall_64+0x1b9/0x820 [ 40.403124] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.403125] [ 40.403128] other info that might help us debug this: [ 40.403129] [ 40.403131] Chain exists of: [ 40.403132] (console_sem).lock --> &rq->lock --> report_lock [ 40.403141] [ 40.403144] Possible unsafe locking scenario: [ 40.403145] [ 40.403147] CPU0 CPU1 [ 40.403149] ---- ---- [ 40.403151] lock(report_lock); [ 40.403156] lock(&rq->lock); [ 40.403161] lock(report_lock); [ 40.403165] lock((console_sem).lock); [ 40.403170] [ 40.403172] *** DEADLOCK *** [ 40.403173] [ 40.403175] 2 locks held by syz-executor137/4829: [ 40.403176] #0: 000000002313ce08 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 40.403186] #1: 00000000ff763f45 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 40.403195] [ 40.403196] stack backtrace: [ 40.403200] CPU: 0 PID: 4829 Comm: syz-executor137 Not tainted 4.19.0-rc2+ #3 [ 40.403205] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.403206] Call Trace: [ 40.403208] dump_stack+0x1c9/0x2b4 [ 40.403211] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.403213] ? vprintk_func+0x100/0x117 [ 40.403216] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 40.403218] ? save_trace+0xe0/0x290 [ 40.403221] __lock_acquire+0x3449/0x5020 [ 40.403223] ? mark_held_locks+0x160/0x160 [ 40.403225] ? mark_held_locks+0x160/0x160 [ 40.403228] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 40.403230] ? is_bpf_text_address+0xd7/0x170 [ 40.403232] ? kernel_text_address+0x79/0xf0 [ 40.403235] ? __kernel_text_address+0xd/0x40 [ 40.403237] ? __save_stack_trace+0x8d/0xf0 [ 40.403240] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 40.403242] ? save_trace+0x290/0x290 [ 40.403244] ? save_stack_trace+0x1a/0x20 [ 40.403246] ? save_trace+0xe0/0x290 [ 40.403248] ? graph_lock+0x170/0x170 [ 40.403251] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.403253] lock_acquire+0x1e4/0x4f0 [ 40.403255] ? down_trylock+0x13/0x70 [ 40.403258] ? lock_release+0x9f0/0x9f0 [ 40.403260] ? trace_hardirqs_off+0xb8/0x2b0 [ 40.403262] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.403265] ? trace_hardirqs_off+0xb8/0x2b0 [ 40.403267] ? log_store+0x34f/0x4c0 [ 40.403269] ? vprintk_emit+0x31f/0x910 [ 40.403271] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.403273] ? down_trylock+0x13/0x70 [ 40.403275] down_trylock+0x13/0x70 [ 40.403278] __down_trylock_console_sem+0xae/0x200 [ 40.403280] console_trylock+0x15/0xa0 [ 40.403282] vprintk_emit+0x31f/0x910 [ 40.403284] ? wake_up_klogd+0x110/0x110 [ 40.403287] ? run_rebalance_domains+0x4c0/0x4c0 [ 40.403289] ? kasan_check_read+0x11/0x20 [ 40.403291] ? rcu_is_watching+0x8c/0x150 [ 40.403294] ? rcu_pm_notify+0xc0/0xc0 [ 40.403296] ? lock_acquire+0x1e4/0x4f0 [ 40.403298] ? kasan_report+0x8e/0x110 [ 40.403300] ? __schedule+0xf54/0x1df0 [ 40.403302] vprintk_default+0x28/0x30 [ 40.403304] vprintk_func+0x7a/0x117 [ 40.403306] printk+0xa7/0xcf [ 40.403309] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 40.403312] ? kasan_check_write+0x14/0x20 [ 40.403315] ? do_raw_spin_lock+0xc1/0x200 [ 40.403317] ? do_raw_spin_lock+0xc1/0x200 [ 40.403319] kasan_report+0x9e/0x110 [ 40.403322] __asan_report_load8_noabort+0x14/0x20 [ 40.403324] __schedule+0xf54/0x1df0 [ 40.403327] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 40.403329] ? __sched_text_start+0x8/0x8 [ 40.403331] ? __call_srcu+0x7e7/0x1040 [ 40.403333] ? check_same_owner+0x340/0x340 [ 40.403336] ? mark_held_locks+0x160/0x160 [ 40.403338] ? find_held_lock+0x36/0x1c0 [ 40.403340] preempt_schedule_common+0x22/0x60 [ 40.403342] _cond_resched+0x1d/0x30 [ 40.403345] wait_for_completion+0xa5/0x8d0 [ 40.403348] ? wait_for_completion_interruptible+0x950/0x950 [ 40.403350] ? __lockdep_init_map+0x105/0x590 [ 40.403352] ? __init_waitqueue_head+0x9e/0x150 [ 40.403355] ? init_wait_entry+0x1c0/0x1c0 [ 40.403357] __synchronize_srcu+0x189/0x240 [ 40.403359] ? call_srcu+0x10/0x10 [ 40.403361] ? rcu_unexpedite_gp+0x20/0x20 [ 40.403364] synchronize_srcu+0x335/0x56f [ 40.403366] ? lock_downgrade+0x8f0/0x8f0 [ 40.403368] ? synchronize_srcu_expedited+0x20/0x20 [ 40.403371] ? kasan_check_read+0x11/0x20 [ 40.403373] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 40.403376] ? kasan_check_write+0x14/0x20 [ 40.403378] ? do_raw_spin_lock+0xc1/0x200 [ 40.403381] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.403384] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 40.403386] ? kvfree+0x61/0x70 [ 40.403389] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.403391] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.403393] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.403396] ? kvm_arch_sync_events+0x30/0x30 [ 40.403399] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.403401] ? mmu_notifier_unregister+0x474/0x600 [ 40.403404] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.403406] ? kfree+0x111/0x210 [ 40.403408] ? __mmu_notifier_register+0x30/0x30 [ 40.403410] ? __free_pages+0x10a/0x190 [ 40.403413] ? free_unref_page+0x930/0x930 [ 40.403415] kvm_put_kvm+0x73f/0x1060 [ 40.403417] ? kvm_write_guest_cached+0x40/0x40 [ 40.403420] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.403422] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.403424] ? lockdep_hardirqs_on+0x421/0x5c0 [ 40.403427] ? kasan_check_write+0x14/0x20 [ 40.403429] ? do_raw_spin_lock+0xc1/0x200 [ 40.403431] ? kvm_irqfd_release+0xdd/0x120 [ 40.403434] ? kvm_irqfd_release+0xdd/0x120 [ 40.403436] ? kvm_put_kvm+0x1060/0x1060 [ 40.403438] kvm_vm_release+0x42/0x50 [ 40.403440] __fput+0x38a/0xa40 [ 40.403442] ? __alloc_file+0x400/0x400 [ 40.403444] ? check_same_owner+0x340/0x340 [ 40.403447] ? kasan_check_write+0x14/0x20 [ 40.403449] ? do_raw_spin_lock+0xc1/0x200 [ 40.403451] ____fput+0x15/0x20 [ 40.403453] task_work_run+0x1e8/0x2a0 [ 40.403455] ? task_work_cancel+0x240/0x240 [ 40.403458] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.403461] ? switch_task_namespaces+0xa2/0xd0 [ 40.403463] do_exit+0x1ae4/0x26e0 [ 40.403465] ? mm_update_next_owner+0x9a0/0x9a0 [ 40.403467] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 40.403470] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.403472] ? kfree+0x1d7/0x210 [ 40.403474] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 40.403477] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.403479] ? avc_has_extended_perms+0xa97/0x15c0 [ 40.403481] [ 40.403485] Lost 48 message(s)! [ 41.507396] Shutting down cpus with NMI [ 42.567382] Dumping ftrace buffer: [ 42.570907] (ftrace buffer empty) [ 42.574601] Kernel Offset: disabled [ 42.578233] Rebooting in 86400 seconds..