[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.882324] random: sshd: uninitialized urandom read (32 bytes read) [ 33.212826] audit: type=1400 audit(1536292710.362:6): avc: denied { map } for pid=4826 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 [ 33.277910] random: sshd: uninitialized urandom read (32 bytes read) [ 33.841764] random: sshd: uninitialized urandom read (32 bytes read) [ 34.038167] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.42' (ECDSA) to the list of known hosts. [ 39.730280] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 39.838848] audit: type=1400 audit(1536292716.988:7): avc: denied { map } for pid=4840 comm="syz-executor391" path="/root/syz-executor391910891" 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 [ 39.842417] 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. [ 39.890791] ================================================================== [ 39.900616] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 39.906852] Read of size 8 at addr ffff8801cec48058 by task syz-executor391/4840 [ 39.914380] [ 39.916002] CPU: 0 PID: 4840 Comm: syz-executor391 Not tainted 4.19.0-rc2+ #4 [ 39.923262] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.932614] Call Trace: [ 39.935236] dump_stack+0x1c9/0x2b4 [ 39.938858] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.944042] ? printk+0xa7/0xcf [ 39.947321] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.952110] ? __schedule+0xf54/0x1df0 [ 39.956002] print_address_description+0x6c/0x20b [ 39.960846] ? __schedule+0xf54/0x1df0 [ 39.964734] kasan_report.cold.7+0x242/0x30d [ 39.969139] __asan_report_load8_noabort+0x14/0x20 [ 39.974088] __schedule+0xf54/0x1df0 [ 39.977797] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.982898] ? __sched_text_start+0x8/0x8 [ 39.987089] ? __call_srcu+0x7e7/0x1040 [ 39.991094] ? check_same_owner+0x340/0x340 [ 39.995413] ? mark_held_locks+0x160/0x160 [ 39.999657] ? find_held_lock+0x36/0x1c0 [ 40.003733] preempt_schedule_common+0x22/0x60 [ 40.008318] _cond_resched+0x1d/0x30 [ 40.012028] wait_for_completion+0xa5/0x8d0 [ 40.016351] ? wait_for_completion_interruptible+0x950/0x950 [ 40.022173] ? __lockdep_init_map+0x105/0x590 [ 40.026681] ? __init_waitqueue_head+0x9e/0x150 [ 40.031350] ? init_wait_entry+0x1c0/0x1c0 [ 40.035582] __synchronize_srcu+0x189/0x240 [ 40.039899] ? call_srcu+0x10/0x10 [ 40.043444] ? rcu_unexpedite_gp+0x20/0x20 [ 40.047717] synchronize_srcu+0x335/0x56f [ 40.051869] ? lock_downgrade+0x8f0/0x8f0 [ 40.056011] ? synchronize_srcu_expedited+0x20/0x20 [ 40.061024] ? kasan_check_read+0x11/0x20 [ 40.065172] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 40.069752] ? kasan_check_write+0x14/0x20 [ 40.074072] ? do_raw_spin_lock+0xc1/0x200 [ 40.078309] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.084032] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 40.089475] ? kvfree+0x61/0x70 [ 40.092751] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.097763] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.101820] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.106224] ? kvm_arch_sync_events+0x30/0x30 [ 40.110720] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.116253] ? mmu_notifier_unregister+0x474/0x600 [ 40.121175] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.125578] ? kfree+0x111/0x210 [ 40.128946] ? __mmu_notifier_register+0x30/0x30 [ 40.133706] ? __free_pages+0x10a/0x190 [ 40.137680] ? free_unref_page+0x930/0x930 [ 40.141927] kvm_put_kvm+0x73f/0x1060 [ 40.145728] ? kvm_write_guest_cached+0x40/0x40 [ 40.150396] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.154886] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.159375] ? lockdep_hardirqs_on+0x421/0x5c0 [ 40.163957] ? kasan_check_write+0x14/0x20 [ 40.168200] ? do_raw_spin_lock+0xc1/0x200 [ 40.172444] ? kvm_irqfd_release+0xdd/0x120 [ 40.176760] ? kvm_irqfd_release+0xdd/0x120 [ 40.181079] ? kvm_put_kvm+0x1060/0x1060 [ 40.185134] kvm_vm_release+0x42/0x50 [ 40.188929] __fput+0x38a/0xa40 [ 40.192215] ? __alloc_file+0x400/0x400 [ 40.196204] ? check_same_owner+0x340/0x340 [ 40.200532] ? kasan_check_write+0x14/0x20 [ 40.204764] ? do_raw_spin_lock+0xc1/0x200 [ 40.208994] ____fput+0x15/0x20 [ 40.212272] task_work_run+0x1e8/0x2a0 [ 40.216154] ? task_work_cancel+0x240/0x240 [ 40.220480] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.226013] ? switch_task_namespaces+0xa2/0xd0 [ 40.230680] do_exit+0x1ae4/0x26e0 [ 40.234223] ? mm_update_next_owner+0x9a0/0x9a0 [ 40.238891] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 40.243123] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.248143] ? kfree+0x1d7/0x210 [ 40.251508] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 40.255740] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.261463] ? avc_has_extended_perms+0xa97/0x15c0 [ 40.266387] ? kernel_text_address+0x9e/0xf0 [ 40.270797] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 40.275901] ? avc_ss_reset+0x190/0x190 [ 40.279876] ? save_stack+0xa9/0xd0 [ 40.283499] ? save_stack+0x43/0xd0 [ 40.287123] ? __kasan_slab_free+0x11a/0x170 [ 40.291528] ? kasan_slab_free+0xe/0x10 [ 40.295501] ? putname+0xf2/0x130 [ 40.298952] ? __x64_sys_openat+0x9d/0x100 [ 40.303183] ? do_syscall_64+0x1b9/0x820 [ 40.307242] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.312608] ? initcall_blacklisted+0x9a/0x1e0 [ 40.317185] ? rcu_note_context_switch+0x680/0x680 [ 40.322126] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.327842] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.333383] ? do_vfs_ioctl+0x201/0x1720 [ 40.337445] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 40.342643] ? ioctl_preallocate+0x300/0x300 [ 40.347048] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.352586] ? selinux_capable+0x40/0x40 [ 40.356646] ? path_pts+0x9e/0x1f0 [ 40.360187] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.365214] ? kmem_cache_free+0x246/0x280 [ 40.369453] ? putname+0xf7/0x130 [ 40.372919] do_group_exit+0x177/0x440 [ 40.376803] ? trace_hardirqs_on+0xbd/0x2c0 [ 40.381134] ? __ia32_sys_exit+0x50/0x50 [ 40.385194] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 40.390296] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.395827] ? ksys_ioctl+0x81/0xd0 [ 40.399453] __x64_sys_exit_group+0x3e/0x50 [ 40.403775] do_syscall_64+0x1b9/0x820 [ 40.407663] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.413025] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.417949] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.422792] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 40.427805] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.432818] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.437661] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.442849] RIP: 0033:0x43ef08 [ 40.446042] Code: Bad RIP value. [ 40.449426] RSP: 002b:00007ffc83884548 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.457129] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 40.464390] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.471654] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.478917] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 40.486176] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 40.493474] [ 40.495092] Allocated by task 4840: [ 40.498727] save_stack+0x43/0xd0 [ 40.502176] kasan_kmalloc+0xc4/0xe0 [ 40.505881] kasan_slab_alloc+0x12/0x20 [ 40.509847] kmem_cache_alloc+0x12e/0x710 [ 40.513986] vmx_create_vcpu+0xcf/0x2830 [ 40.518041] kvm_arch_vcpu_create+0xe5/0x220 [ 40.522447] kvm_vm_ioctl+0x488/0x1d80 [ 40.526328] do_vfs_ioctl+0x1de/0x1720 [ 40.530212] ksys_ioctl+0xa9/0xd0 [ 40.533658] __x64_sys_ioctl+0x73/0xb0 [ 40.537569] do_syscall_64+0x1b9/0x820 [ 40.541462] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.546637] [ 40.548251] Freed by task 4840: [ 40.551524] save_stack+0x43/0xd0 [ 40.554974] __kasan_slab_free+0x11a/0x170 [ 40.559199] kasan_slab_free+0xe/0x10 [ 40.562990] kmem_cache_free+0x86/0x280 [ 40.567448] vmx_free_vcpu+0x26b/0x300 [ 40.571327] kvm_arch_destroy_vm+0x365/0x7c0 [ 40.575727] kvm_put_kvm+0x73f/0x1060 [ 40.579522] kvm_vm_release+0x42/0x50 [ 40.583317] __fput+0x38a/0xa40 [ 40.586586] ____fput+0x15/0x20 [ 40.589861] task_work_run+0x1e8/0x2a0 [ 40.593745] do_exit+0x1ae4/0x26e0 [ 40.597275] do_group_exit+0x177/0x440 [ 40.601156] __x64_sys_exit_group+0x3e/0x50 [ 40.605475] do_syscall_64+0x1b9/0x820 [ 40.609354] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.614543] [ 40.616163] The buggy address belongs to the object at ffff8801cec48040 [ 40.616163] which belongs to the cache kvm_vcpu of size 23872 [ 40.628729] The buggy address is located 24 bytes inside of [ 40.628729] 23872-byte region [ffff8801cec48040, ffff8801cec4dd80) [ 40.640695] The buggy address belongs to the page: [ 40.645634] page:ffffea00073b1200 count:1 mapcount:0 mapping:ffff8801d5703a80 index:0x0 compound_mapcount: 0 [ 40.655620] flags: 0x2fffc0000008100(slab|head) [ 40.660287] raw: 02fffc0000008100 ffff8801d5700848 ffff8801d5700848 ffff8801d5703a80 [ 40.668161] raw: 0000000000000000 ffff8801cec48040 0000000100000001 0000000000000000 [ 40.676292] page dumped because: kasan: bad access detected [ 40.681999] [ 40.683610] Memory state around the buggy address: [ 40.688529] ffff8801cec47f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.695886] ffff8801cec47f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.703240] >ffff8801cec48000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 40.710586] ^ [ 40.716809] ffff8801cec48080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.724160] ffff8801cec48100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.731506] ================================================================== [ 40.738857] Kernel panic - not syncing: panic_on_warn set ... [ 40.738857] [ 40.746220] CPU: 0 PID: 4840 Comm: syz-executor391 Tainted: G B 4.19.0-rc2+ #4 [ 40.754870] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.764214] Call Trace: [ 40.766801] dump_stack+0x1c9/0x2b4 [ 40.770432] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.775617] ? lock_downgrade+0x8f0/0x8f0 [ 40.779764] ? __schedule+0xf54/0x1df0 [ 40.783661] panic+0x238/0x4e7 [ 40.786852] ? add_taint.cold.5+0x16/0x16 [ 40.790999] ? print_shadow_for_address+0xba/0x116 [ 40.795924] ? trace_hardirqs_off+0xaf/0x2c0 [ 40.800326] ? trace_hardirqs_off+0x77/0x2c0 [ 40.804732] ? __schedule+0xf54/0x1df0 [ 40.808612] kasan_end_report+0x47/0x4f [ 40.812592] kasan_report.cold.7+0x76/0x30d [ 40.816912] __asan_report_load8_noabort+0x14/0x20 [ 40.821834] __schedule+0xf54/0x1df0 [ 40.825545] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 40.830645] ? __sched_text_start+0x8/0x8 [ 40.834790] ? __call_srcu+0x7e7/0x1040 [ 40.838769] ? check_same_owner+0x340/0x340 [ 40.843116] ? mark_held_locks+0x160/0x160 [ 40.847367] ? find_held_lock+0x36/0x1c0 [ 40.851428] preempt_schedule_common+0x22/0x60 [ 40.856011] _cond_resched+0x1d/0x30 [ 40.859723] wait_for_completion+0xa5/0x8d0 [ 40.864046] ? wait_for_completion_interruptible+0x950/0x950 [ 40.869842] ? __lockdep_init_map+0x105/0x590 [ 40.874332] ? __init_waitqueue_head+0x9e/0x150 [ 40.878997] ? init_wait_entry+0x1c0/0x1c0 [ 40.883256] __synchronize_srcu+0x189/0x240 [ 40.887588] ? call_srcu+0x10/0x10 [ 40.891133] ? rcu_unexpedite_gp+0x20/0x20 [ 40.895394] synchronize_srcu+0x335/0x56f [ 40.899546] ? lock_downgrade+0x8f0/0x8f0 [ 40.903696] ? synchronize_srcu_expedited+0x20/0x20 [ 40.908715] ? kasan_check_read+0x11/0x20 [ 40.912862] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 40.917453] ? kasan_check_write+0x14/0x20 [ 40.921679] ? do_raw_spin_lock+0xc1/0x200 [ 40.925920] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.931622] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 40.937064] ? kvfree+0x61/0x70 [ 40.940338] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.945351] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.949404] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.953816] ? kvm_arch_sync_events+0x30/0x30 [ 40.958334] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.963880] ? mmu_notifier_unregister+0x474/0x600 [ 40.968804] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.973204] ? kfree+0x111/0x210 [ 40.976564] ? __mmu_notifier_register+0x30/0x30 [ 40.981315] ? __free_pages+0x10a/0x190 [ 40.985298] ? free_unref_page+0x930/0x930 [ 40.989555] kvm_put_kvm+0x73f/0x1060 [ 40.993359] ? kvm_write_guest_cached+0x40/0x40 [ 40.998036] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.002525] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.007013] ? lockdep_hardirqs_on+0x421/0x5c0 [ 41.011595] ? kasan_check_write+0x14/0x20 [ 41.015823] ? do_raw_spin_lock+0xc1/0x200 [ 41.020058] ? kvm_irqfd_release+0xdd/0x120 [ 41.024371] ? kvm_irqfd_release+0xdd/0x120 [ 41.028700] ? kvm_put_kvm+0x1060/0x1060 [ 41.032758] kvm_vm_release+0x42/0x50 [ 41.036556] __fput+0x38a/0xa40 [ 41.039833] ? __alloc_file+0x400/0x400 [ 41.043809] ? check_same_owner+0x340/0x340 [ 41.048147] ? kasan_check_write+0x14/0x20 [ 41.052378] ? do_raw_spin_lock+0xc1/0x200 [ 41.056618] ____fput+0x15/0x20 [ 41.059895] task_work_run+0x1e8/0x2a0 [ 41.063781] ? task_work_cancel+0x240/0x240 [ 41.068101] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 41.073640] ? switch_task_namespaces+0xa2/0xd0 [ 41.078307] do_exit+0x1ae4/0x26e0 [ 41.081847] ? mm_update_next_owner+0x9a0/0x9a0 [ 41.086515] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 41.090749] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.095761] ? kfree+0x1d7/0x210 [ 41.099152] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 41.103405] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 41.109149] ? avc_has_extended_perms+0xa97/0x15c0 [ 41.114100] ? kernel_text_address+0x9e/0xf0 [ 41.118510] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 41.123610] ? avc_ss_reset+0x190/0x190 [ 41.127594] ? save_stack+0xa9/0xd0 [ 41.131235] ? save_stack+0x43/0xd0 [ 41.134881] ? __kasan_slab_free+0x11a/0x170 [ 41.139286] ? kasan_slab_free+0xe/0x10 [ 41.143253] ? putname+0xf2/0x130 [ 41.146707] ? __x64_sys_openat+0x9d/0x100 [ 41.150939] ? do_syscall_64+0x1b9/0x820 [ 41.154995] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.160360] ? initcall_blacklisted+0x9a/0x1e0 [ 41.164944] ? rcu_note_context_switch+0x680/0x680 [ 41.169877] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 41.175585] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.181122] ? do_vfs_ioctl+0x201/0x1720 [ 41.185207] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 41.190393] ? ioctl_preallocate+0x300/0x300 [ 41.194812] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.200369] ? selinux_capable+0x40/0x40 [ 41.204440] ? path_pts+0x9e/0x1f0 [ 41.207976] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.212991] ? kmem_cache_free+0x246/0x280 [ 41.217223] ? putname+0xf7/0x130 [ 41.220673] do_group_exit+0x177/0x440 [ 41.224560] ? trace_hardirqs_on+0xbd/0x2c0 [ 41.228876] ? __ia32_sys_exit+0x50/0x50 [ 41.232933] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 41.238035] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.243567] ? ksys_ioctl+0x81/0xd0 [ 41.247190] __x64_sys_exit_group+0x3e/0x50 [ 41.251510] do_syscall_64+0x1b9/0x820 [ 41.255393] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.260772] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.265701] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.270537] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 41.275550] ? prepare_exit_to_usermode+0x291/0x3b0 [ 41.280580] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.285443] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.290638] RIP: 0033:0x43ef08 [ 41.293828] Code: Bad RIP value. [ 41.297185] RSP: 002b:00007ffc83884548 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 41.304887] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 41.312147] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 41.319414] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 41.326678] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 41.333945] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 41.341215] [ 41.341220] ====================================================== [ 41.341226] WARNING: possible circular locking dependency detected [ 41.341229] 4.19.0-rc2+ #4 Not tainted [ 41.341234] ------------------------------------------------------ [ 41.341239] syz-executor391/4840 is trying to acquire lock: [ 41.341242] 000000000f35fdf5 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 41.341257] [ 41.341261] but task is already holding lock: [ 41.341264] 00000000c91c498e (report_lock){....}, at: kasan_report+0x8e/0x110 [ 41.341278] [ 41.341282] which lock already depends on the new lock. [ 41.341284] [ 41.341287] [ 41.341292] the existing dependency chain (in reverse order) is: [ 41.341294] [ 41.341296] -> #3 (report_lock){....}: [ 41.341310] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.341314] kasan_report+0x8e/0x110 [ 41.341318] __asan_report_load8_noabort+0x14/0x20 [ 41.341322] __schedule+0xf54/0x1df0 [ 41.341326] preempt_schedule_common+0x22/0x60 [ 41.341330] _cond_resched+0x1d/0x30 [ 41.341334] wait_for_completion+0xa5/0x8d0 [ 41.341338] __synchronize_srcu+0x189/0x240 [ 41.341342] synchronize_srcu+0x335/0x56f [ 41.341347] kvm_page_track_unregister_notifier+0x17d/0x250 [ 41.341351] kvm_mmu_uninit_vm+0x1c/0x20 [ 41.341355] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 41.341358] kvm_put_kvm+0x73f/0x1060 [ 41.341362] kvm_vm_release+0x42/0x50 [ 41.341365] __fput+0x38a/0xa40 [ 41.341369] ____fput+0x15/0x20 [ 41.341373] task_work_run+0x1e8/0x2a0 [ 41.341376] do_exit+0x1ae4/0x26e0 [ 41.341380] do_group_exit+0x177/0x440 [ 41.341384] __x64_sys_exit_group+0x3e/0x50 [ 41.341388] do_syscall_64+0x1b9/0x820 [ 41.341392] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.341395] [ 41.341397] -> #2 (&rq->lock){-.-.}: [ 41.341419] _raw_spin_lock+0x2a/0x40 [ 41.341423] task_fork_fair+0x93/0x680 [ 41.341426] sched_fork+0x44b/0xbd0 [ 41.341430] copy_process+0x235e/0x7af0 [ 41.341434] _do_fork+0x1ca/0x1170 [ 41.341437] kernel_thread+0x34/0x40 [ 41.341441] rest_init+0x22/0xe4 [ 41.341445] start_kernel+0x913/0x94e [ 41.341449] x86_64_start_reservations+0x29/0x2b [ 41.341453] x86_64_start_kernel+0x76/0x79 [ 41.341457] secondary_startup_64+0xa4/0xb0 [ 41.341459] [ 41.341462] -> #1 (&p->pi_lock){-.-.}: [ 41.341476] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.341480] try_to_wake_up+0xd2/0x1250 [ 41.341484] wake_up_process+0x10/0x20 [ 41.341488] __up.isra.1+0x1c0/0x2a0 [ 41.341491] up+0x13c/0x1c0 [ 41.341495] __up_console_sem+0xbe/0x1b0 [ 41.341499] console_unlock+0x506/0x10e0 [ 41.341502] vprintk_emit+0x33a/0x910 [ 41.341506] vprintk_default+0x28/0x30 [ 41.341510] vprintk_func+0x7a/0x117 [ 41.341513] printk+0xa7/0xcf [ 41.341517] load_umh+0x51/0xbd [ 41.341521] do_one_initcall+0x127/0x838 [ 41.341525] kernel_init_freeable+0x4bb/0x5ae [ 41.341529] kernel_init+0x11/0x1b3 [ 41.341532] ret_from_fork+0x3a/0x50 [ 41.341535] [ 41.341537] -> #0 ((console_sem).lock){-...}: [ 41.341551] lock_acquire+0x1e4/0x4f0 [ 41.341555] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.341559] down_trylock+0x13/0x70 [ 41.341564] __down_trylock_console_sem+0xae/0x200 [ 41.341568] console_trylock+0x15/0xa0 [ 41.341571] vprintk_emit+0x31f/0x910 [ 41.341575] vprintk_default+0x28/0x30 [ 41.341579] vprintk_func+0x7a/0x117 [ 41.341582] printk+0xa7/0xcf [ 41.341586] kasan_report+0x9e/0x110 [ 41.341591] __asan_report_load8_noabort+0x14/0x20 [ 41.341594] __schedule+0xf54/0x1df0 [ 41.341599] preempt_schedule_common+0x22/0x60 [ 41.341602] _cond_resched+0x1d/0x30 [ 41.341606] wait_for_completion+0xa5/0x8d0 [ 41.341610] __synchronize_srcu+0x189/0x240 [ 41.341615] synchronize_srcu+0x335/0x56f [ 41.341619] kvm_page_track_unregister_notifier+0x17d/0x250 [ 41.341623] kvm_mmu_uninit_vm+0x1c/0x20 [ 41.341628] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 41.341631] kvm_put_kvm+0x73f/0x1060 [ 41.341635] kvm_vm_release+0x42/0x50 [ 41.341639] __fput+0x38a/0xa40 [ 41.341642] ____fput+0x15/0x20 [ 41.341646] task_work_run+0x1e8/0x2a0 [ 41.341650] do_exit+0x1ae4/0x26e0 [ 41.341653] do_group_exit+0x177/0x440 [ 41.341658] __x64_sys_exit_group+0x3e/0x50 [ 41.341662] do_syscall_64+0x1b9/0x820 [ 41.341666] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.341668] [ 41.341673] other info that might help us debug this: [ 41.341675] [ 41.341678] Chain exists of: [ 41.341680] (console_sem).lock --> &rq->lock --> report_lock [ 41.341703] [ 41.341707] Possible unsafe locking scenario: [ 41.341709] [ 41.341713] CPU0 CPU1 [ 41.341717] ---- ---- [ 41.341719] lock(report_lock); [ 41.341729] lock(&rq->lock); [ 41.341738] lock(report_lock); [ 41.341745] lock((console_sem).lock); [ 41.341753] [ 41.341756] *** DEADLOCK *** [ 41.341758] [ 41.341762] 2 locks held by syz-executor391/4840: [ 41.341765] #0: 00000000f120c797 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 41.341781] #1: 00000000c91c498e (report_lock){....}, at: kasan_report+0x8e/0x110 [ 41.341798] [ 41.341801] stack backtrace: [ 41.341806] CPU: 0 PID: 4840 Comm: syz-executor391 Not tainted 4.19.0-rc2+ #4 [ 41.341813] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.341816] Call Trace: [ 41.341820] dump_stack+0x1c9/0x2b4 [ 41.341824] ? dump_stack_print_info.cold.2+0x52/0x52 [ 41.341828] ? vprintk_func+0x100/0x117 [ 41.341833] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 41.341837] ? save_trace+0xe0/0x290 [ 41.341841] __lock_acquire+0x3449/0x5020 [ 41.341845] ? mark_held_locks+0x160/0x160 [ 41.341848] ? mark_held_locks+0x160/0x160 [ 41.341853] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 41.341857] ? is_bpf_text_address+0xd7/0x170 [ 41.341861] ? kernel_text_address+0x79/0xf0 [ 41.341865] ? __kernel_text_address+0xd/0x40 [ 41.341869] ? __save_stack_trace+0x8d/0xf0 [ 41.341874] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 41.341877] ? save_trace+0x290/0x290 [ 41.341881] ? save_stack_trace+0x1a/0x20 [ 41.341885] ? save_trace+0xe0/0x290 [ 41.341889] ? graph_lock+0x170/0x170 [ 41.341893] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 41.341897] lock_acquire+0x1e4/0x4f0 [ 41.341901] ? down_trylock+0x13/0x70 [ 41.341905] ? lock_release+0x9f0/0x9f0 [ 41.341909] ? trace_hardirqs_off+0xb8/0x2c0 [ 41.341913] ? trace_hardirqs_on+0x2c0/0x2c0 [ 41.341917] ? trace_hardirqs_off+0xb8/0x2c0 [ 41.341920] ? log_store+0x34f/0x4c0 [ 41.341924] ? vprintk_emit+0x31f/0x910 [ 41.341928] _raw_spin_lock_irqsave+0x96/0xc0 [ 41.341932] ? down_trylock+0x13/0x70 [ 41.341936] down_trylock+0x13/0x70 [ 41.341940] __down_trylock_console_sem+0xae/0x200 [ 41.341944] console_trylock+0x15/0xa0 [ 41.341948] vprintk_emit+0x31f/0x910 [ 41.341951] ? wake_up_klogd+0x110/0x110 [ 41.341956] ? run_rebalance_domains+0x4c0/0x4c0 [ 41.341960] ? kasan_check_read+0x11/0x20 [ 41.341964] ? rcu_is_watching+0x8c/0x150 [ 41.341967] ? rcu_pm_notify+0xc0/0xc0 [ 41.341971] ? lock_acquire+0x1e4/0x4f0 [ 41.341975] ? kasan_report+0x8e/0x110 [ 41.341979] ? __schedule+0xf54/0x1df0 [ 41.341982] vprintk_default+0x28/0x30 [ 41.341986] vprintk_func+0x7a/0x117 [ 41.341989] printk+0xa7/0xcf [ 41.341994] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.341997] ? kasan_check_write+0x14/0x20 [ 41.342001] ? do_raw_spin_lock+0xc1/0x200 [ 41.342005] ? do_raw_spin_lock+0xc1/0x200 [ 41.342009] kasan_report+0x9e/0x110 [ 41.342013] __asan_report_load8_noabort+0x14/0x20 [ 41.342017] __schedule+0xf54/0x1df0 [ 41.342022] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 41.342025] ? __sched_text_start+0x8/0x8 [ 41.342029] ? __call_srcu+0x7e7/0x1040 [ 41.342033] ? check_same_owner+0x340/0x340 [ 41.342037] ? mark_held_locks+0x160/0x160 [ 41.342041] ? find_held_lock+0x36/0x1c0 [ 41.342063] preempt_schedule_common+0x22/0x60 [ 41.342067] _cond_resched+0x1d/0x30 [ 41.342071] wait_for_completion+0xa5/0x8d0 [ 41.342075] ? wait_for_completion_interruptible+0x950/0x950 [ 41.342079] ? __lockdep_init_map+0x105/0x590 [ 41.342083] ? __init_waitqueue_head+0x9e/0x150 [ 41.342087] ? init_wait_entry+0x1c0/0x1c0 [ 41.342091] __synchronize_srcu+0x189/0x240 [ 41.342095] ? call_srcu+0x10/0x10 [ 41.342098] ? rcu_unexpedite_gp+0x20/0x20 [ 41.342102] synchronize_srcu+0x335/0x56f [ 41.342106] ? lock_downgrade+0x8f0/0x8f0 [ 41.342110] ? synchronize_srcu_expedited+0x20/0x20 [ 41.342114] ? kasan_check_read+0x11/0x20 [ 41.342118] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 41.342122] ? kasan_check_write+0x14/0x20 [ 41.342126] ? do_raw_spin_lock+0xc1/0x200 [ 41.342130] kvm_page_track_unregister_notifier+0x17d/0x250 [ 41.342135] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 41.342138] ? kvfree+0x61/0x70 [ 41.342142] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.342146] kvm_mmu_uninit_vm+0x1c/0x20 [ 41.342150] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 41.342154] ? kvm_arch_sync_events+0x30/0x30 [ 41.342159] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 41.342163] ? mmu_notifier_unregister+0x474/0x600 [ 41.342167] ? trace_hardirqs_on+0x2c0/0x2c0 [ 41.342171] ? kfree+0x111/0x210 [ 41.342175] ? __mmu_notifier_register+0x30/0x30 [ 41.342178] ? __free_pages+0x10a/0x190 [ 41.342182] ? free_unref_page+0x930/0x930 [ 41.342186] kvm_put_kvm+0x73f/0x1060 [ 41.342191] ? kvm_write_guest_cached+0x40/0x40 [ 41.342195] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.342199] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.342203] ? lockdep_hardirqs_on+0x421/0x5c0 [ 41.342207] ? kasan_check_write+0x14/0x20 [ 41.342210] ? do_raw_spin_lock+0xc1/0x200 [ 41.342214] ? kvm_irqfd_release+0xdd/0x120 [ 41.342218] ? kvm_irqfd_release+0xdd/0x120 [ 41.342222] ? kvm_put_kvm+0x1060/0x1060 [ 41.342225] kvm_vm_release+0x42/0x50 [ 41.342229] __fput+0x38a/0xa40 [ 41.342232] ? __alloc_file+0x400/0x400 [ 41.342236] ? check_same_owner+0x340/0x340 [ 41.342240] ? kasan_check_write+0x14/0x20 [ 41.342244] ? do_raw_spin_lock+0xc1/0x200 [ 41.342247] ____fput+0x15/0x20 [ 41.342250] task_work_run+0x1e8/0x2a0 [ 41.342254] ? task_work_cancel+0x240/0x240 [ 41.342259] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 41.342263] ? switch_task_namespaces+0xa2/0xd0 [ 41.342266] do_exit+0x1ae4/0x26e0 [ 41.342270] ? mm_update_next_owner+0x9a0/0x9a0 [ 41.342274] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 41.342278] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.342282] ? kfree+0x1d7/0x210 [ 41.342286] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 41.342290] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 41.342294] ? avc_has_extended_perms+0xa97/0x15c0 [ 41.342297] [ 41.342303] Lost 47 message(s)! [ 42.442044] Shutting down cpus with NMI [ 43.501107] Dumping ftrace buffer: [ 43.504654] (ftrace buffer empty) [ 43.508341] Kernel Offset: disabled [ 43.511947] Rebooting in 86400 seconds..