[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.649135] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.788991] random: sshd: uninitialized urandom read (32 bytes read) [ 28.168870] random: sshd: uninitialized urandom read (32 bytes read) [ 28.752976] random: sshd: uninitialized urandom read (32 bytes read) [ 28.934012] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.193' (ECDSA) to the list of known hosts. [ 34.723456] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.822469] 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. [ 34.848784] ================================================================== [ 34.858599] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.864827] Read of size 8 at addr ffff8801d99a0058 by task syz-executor146/4723 [ 34.872348] [ 34.873988] CPU: 1 PID: 4723 Comm: syz-executor146 Not tainted 4.19.0-rc1+ #216 [ 34.881427] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.890793] Call Trace: [ 34.893391] dump_stack+0x1c9/0x2b4 [ 34.897021] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.902212] ? printk+0xa7/0xcf [ 34.905491] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.910251] ? __schedule+0xf54/0x1df0 [ 34.914159] print_address_description+0x6c/0x20b [ 34.919035] ? __schedule+0xf54/0x1df0 [ 34.922942] kasan_report.cold.7+0x242/0x30d [ 34.927351] __asan_report_load8_noabort+0x14/0x20 [ 34.932279] __schedule+0xf54/0x1df0 [ 34.935989] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.941117] ? __sched_text_start+0x8/0x8 [ 34.945285] ? __call_srcu+0x7e7/0x1040 [ 34.949266] ? check_same_owner+0x340/0x340 [ 34.953583] ? mark_held_locks+0x160/0x160 [ 34.957815] ? find_held_lock+0x36/0x1c0 [ 34.961882] preempt_schedule_common+0x22/0x60 [ 34.966463] _cond_resched+0x1d/0x30 [ 34.970183] wait_for_completion+0xa5/0x8d0 [ 34.974516] ? wait_for_completion_interruptible+0x950/0x950 [ 34.980312] ? __lockdep_init_map+0x105/0x590 [ 34.984808] ? __init_waitqueue_head+0x9e/0x150 [ 34.989477] ? init_wait_entry+0x1c0/0x1c0 [ 34.993720] __synchronize_srcu+0x189/0x240 [ 34.998037] ? call_srcu+0x10/0x10 [ 35.001576] ? rcu_unexpedite_gp+0x20/0x20 [ 35.005819] synchronize_srcu+0x335/0x56f [ 35.009988] ? lock_downgrade+0x8f0/0x8f0 [ 35.014135] ? synchronize_srcu_expedited+0x20/0x20 [ 35.019187] ? kasan_check_read+0x11/0x20 [ 35.023337] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.027929] ? kasan_check_write+0x14/0x20 [ 35.032175] ? do_raw_spin_lock+0xc1/0x200 [ 35.036420] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.042129] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.047601] ? kvfree+0x61/0x70 [ 35.050883] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.055900] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.059962] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.064373] ? kvm_arch_sync_events+0x30/0x30 [ 35.068892] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.074429] ? mmu_notifier_unregister+0x474/0x600 [ 35.079355] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.083761] ? kfree+0x111/0x210 [ 35.087149] ? __mmu_notifier_register+0x30/0x30 [ 35.091938] ? __free_pages+0x10a/0x190 [ 35.095928] ? free_unref_page+0x930/0x930 [ 35.100184] kvm_put_kvm+0x73f/0x1060 [ 35.103992] ? kvm_write_guest_cached+0x40/0x40 [ 35.108666] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.113181] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.117682] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.122267] ? kasan_check_write+0x14/0x20 [ 35.126500] ? do_raw_spin_lock+0xc1/0x200 [ 35.130735] ? kvm_irqfd_release+0xdd/0x120 [ 35.135252] ? kvm_irqfd_release+0xdd/0x120 [ 35.139573] ? kvm_put_kvm+0x1060/0x1060 [ 35.143634] kvm_vm_release+0x42/0x50 [ 35.147435] __fput+0x38a/0xa40 [ 35.150715] ? __alloc_file+0x400/0x400 [ 35.154702] ? check_same_owner+0x340/0x340 [ 35.159021] ? kasan_check_write+0x14/0x20 [ 35.163254] ? do_raw_spin_lock+0xc1/0x200 [ 35.167487] ____fput+0x15/0x20 [ 35.170794] task_work_run+0x1e8/0x2a0 [ 35.174683] ? task_work_cancel+0x240/0x240 [ 35.179023] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.184560] ? switch_task_namespaces+0xa2/0xd0 [ 35.189261] do_exit+0x1ae4/0x26e0 [ 35.192833] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.197518] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.201752] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.206786] ? kfree+0x1d7/0x210 [ 35.210152] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.214402] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.220113] ? is_bpf_text_address+0xd7/0x170 [ 35.224605] ? kernel_text_address+0x79/0xf0 [ 35.229025] ? __kernel_text_address+0xd/0x40 [ 35.233519] ? unwind_get_return_address+0x61/0xa0 [ 35.238449] ? __save_stack_trace+0x8d/0xf0 [ 35.243224] ? save_stack+0xa9/0xd0 [ 35.246864] ? save_stack+0x43/0xd0 [ 35.250485] ? __kasan_slab_free+0x11a/0x170 [ 35.254891] ? kasan_slab_free+0xe/0x10 [ 35.258864] ? putname+0xf2/0x130 [ 35.262319] ? __x64_sys_openat+0x9d/0x100 [ 35.266556] ? do_syscall_64+0x1b9/0x820 [ 35.270615] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.275980] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.280381] ? kasan_check_read+0x11/0x20 [ 35.284524] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.288925] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.293333] ? initcall_blacklisted+0x9a/0x1e0 [ 35.297912] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.303037] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.308761] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.314298] ? do_vfs_ioctl+0x201/0x1720 [ 35.318359] ? rcu_is_watching+0x8c/0x150 [ 35.322505] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.326827] ? ioctl_preallocate+0x300/0x300 [ 35.331249] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.336786] ? __fget_light+0x2f7/0x440 [ 35.340757] ? fget_raw+0x20/0x20 [ 35.344209] ? putname+0xf2/0x130 [ 35.347665] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.352701] ? kmem_cache_free+0x246/0x280 [ 35.356943] ? putname+0xf7/0x130 [ 35.360399] do_group_exit+0x177/0x440 [ 35.364286] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.368631] ? __ia32_sys_exit+0x50/0x50 [ 35.372692] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.377795] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.383419] ? ksys_ioctl+0x81/0xd0 [ 35.387048] __x64_sys_exit_group+0x3e/0x50 [ 35.391375] do_syscall_64+0x1b9/0x820 [ 35.395262] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.400625] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.405567] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.410406] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.415422] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.420438] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.425453] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.430300] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.435508] RIP: 0033:0x43ecf8 [ 35.438710] Code: Bad RIP value. [ 35.442077] RSP: 002b:00007ffd3c391af8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.449819] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 35.457079] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.464351] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.471614] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.478876] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.486141] [ 35.487777] Allocated by task 4723: [ 35.491402] save_stack+0x43/0xd0 [ 35.494862] kasan_kmalloc+0xc4/0xe0 [ 35.498571] kasan_slab_alloc+0x12/0x20 [ 35.502547] kmem_cache_alloc+0x12e/0x710 [ 35.506696] vmx_create_vcpu+0xcf/0x2830 [ 35.510753] kvm_arch_vcpu_create+0xe5/0x220 [ 35.515161] kvm_vm_ioctl+0x488/0x1d80 [ 35.519061] do_vfs_ioctl+0x1de/0x1720 [ 35.522945] ksys_ioctl+0xa9/0xd0 [ 35.526396] __x64_sys_ioctl+0x73/0xb0 [ 35.530281] do_syscall_64+0x1b9/0x820 [ 35.534172] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.539361] [ 35.540982] Freed by task 4723: [ 35.544258] save_stack+0x43/0xd0 [ 35.547715] __kasan_slab_free+0x11a/0x170 [ 35.551968] kasan_slab_free+0xe/0x10 [ 35.555761] kmem_cache_free+0x86/0x280 [ 35.559728] vmx_free_vcpu+0x26b/0x300 [ 35.563622] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.568026] kvm_put_kvm+0x73f/0x1060 [ 35.571844] kvm_vm_release+0x42/0x50 [ 35.575639] __fput+0x38a/0xa40 [ 35.578942] ____fput+0x15/0x20 [ 35.582237] task_work_run+0x1e8/0x2a0 [ 35.586117] do_exit+0x1ae4/0x26e0 [ 35.589650] do_group_exit+0x177/0x440 [ 35.593536] __x64_sys_exit_group+0x3e/0x50 [ 35.597853] do_syscall_64+0x1b9/0x820 [ 35.601732] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.606940] [ 35.608574] The buggy address belongs to the object at ffff8801d99a0040 [ 35.608574] which belongs to the cache kvm_vcpu of size 23872 [ 35.621139] The buggy address is located 24 bytes inside of [ 35.621139] 23872-byte region [ffff8801d99a0040, ffff8801d99a5d80) [ 35.633098] The buggy address belongs to the page: [ 35.638023] page:ffffea0007666800 count:1 mapcount:0 mapping:ffff8801d52bad80 index:0x0 compound_mapcount: 0 [ 35.647990] flags: 0x2fffc0000008100(slab|head) [ 35.652660] raw: 02fffc0000008100 ffff8801d52b0348 ffff8801d52b0348 ffff8801d52bad80 [ 35.660545] raw: 0000000000000000 ffff8801d99a0040 0000000100000001 0000000000000000 [ 35.668419] page dumped because: kasan: bad access detected [ 35.674115] [ 35.675730] Memory state around the buggy address: [ 35.680664] ffff8801d999ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.688020] ffff8801d999ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.695376] >ffff8801d99a0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.702724] ^ [ 35.708949] ffff8801d99a0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.716305] ffff8801d99a0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.723655] ================================================================== [ 35.731011] Kernel panic - not syncing: panic_on_warn set ... [ 35.731011] [ 35.738375] CPU: 1 PID: 4723 Comm: syz-executor146 Tainted: G B 4.19.0-rc1+ #216 [ 35.747203] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.756547] Call Trace: [ 35.759138] dump_stack+0x1c9/0x2b4 [ 35.762772] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.767960] ? lock_downgrade+0x8f0/0x8f0 [ 35.772107] ? __schedule+0xf54/0x1df0 [ 35.776004] panic+0x238/0x4e7 [ 35.779196] ? add_taint.cold.5+0x16/0x16 [ 35.783427] ? print_shadow_for_address+0xba/0x116 [ 35.788373] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.792776] ? trace_hardirqs_off+0x77/0x2b0 [ 35.797191] ? __schedule+0xf54/0x1df0 [ 35.801081] kasan_end_report+0x47/0x4f [ 35.805065] kasan_report.cold.7+0x76/0x30d [ 35.809387] __asan_report_load8_noabort+0x14/0x20 [ 35.814312] __schedule+0xf54/0x1df0 [ 35.818019] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.823119] ? __sched_text_start+0x8/0x8 [ 35.827283] ? __call_srcu+0x7e7/0x1040 [ 35.831276] ? check_same_owner+0x340/0x340 [ 35.835596] ? mark_held_locks+0x160/0x160 [ 35.839827] ? find_held_lock+0x36/0x1c0 [ 35.843910] preempt_schedule_common+0x22/0x60 [ 35.848492] _cond_resched+0x1d/0x30 [ 35.852244] wait_for_completion+0xa5/0x8d0 [ 35.856574] ? wait_for_completion_interruptible+0x950/0x950 [ 35.862367] ? __lockdep_init_map+0x105/0x590 [ 35.866863] ? __init_waitqueue_head+0x9e/0x150 [ 35.871528] ? init_wait_entry+0x1c0/0x1c0 [ 35.875768] __synchronize_srcu+0x189/0x240 [ 35.880084] ? call_srcu+0x10/0x10 [ 35.883635] ? rcu_unexpedite_gp+0x20/0x20 [ 35.887873] synchronize_srcu+0x335/0x56f [ 35.892050] ? lock_downgrade+0x8f0/0x8f0 [ 35.896196] ? synchronize_srcu_expedited+0x20/0x20 [ 35.901242] ? kasan_check_read+0x11/0x20 [ 35.905389] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.909980] ? kasan_check_write+0x14/0x20 [ 35.914211] ? do_raw_spin_lock+0xc1/0x200 [ 35.918452] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.924160] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.929618] ? kvfree+0x61/0x70 [ 35.932896] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.937912] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.941971] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.946378] ? kvm_arch_sync_events+0x30/0x30 [ 35.950877] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.956415] ? mmu_notifier_unregister+0x474/0x600 [ 35.961340] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.965757] ? kfree+0x111/0x210 [ 35.969124] ? __mmu_notifier_register+0x30/0x30 [ 35.973879] ? __free_pages+0x10a/0x190 [ 35.977853] ? free_unref_page+0x930/0x930 [ 35.982107] kvm_put_kvm+0x73f/0x1060 [ 35.985911] ? kvm_write_guest_cached+0x40/0x40 [ 35.990578] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.995093] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.999583] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.004190] ? kasan_check_write+0x14/0x20 [ 36.008425] ? do_raw_spin_lock+0xc1/0x200 [ 36.012660] ? kvm_irqfd_release+0xdd/0x120 [ 36.016978] ? kvm_irqfd_release+0xdd/0x120 [ 36.021322] ? kvm_put_kvm+0x1060/0x1060 [ 36.025402] kvm_vm_release+0x42/0x50 [ 36.029202] __fput+0x38a/0xa40 [ 36.032500] ? __alloc_file+0x400/0x400 [ 36.036477] ? check_same_owner+0x340/0x340 [ 36.040798] ? kasan_check_write+0x14/0x20 [ 36.045029] ? do_raw_spin_lock+0xc1/0x200 [ 36.049261] ____fput+0x15/0x20 [ 36.052539] task_work_run+0x1e8/0x2a0 [ 36.056424] ? task_work_cancel+0x240/0x240 [ 36.060749] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.066287] ? switch_task_namespaces+0xa2/0xd0 [ 36.070956] do_exit+0x1ae4/0x26e0 [ 36.074511] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.079198] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.083468] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.088482] ? kfree+0x1d7/0x210 [ 36.091872] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.096106] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.101842] ? is_bpf_text_address+0xd7/0x170 [ 36.106334] ? kernel_text_address+0x79/0xf0 [ 36.110742] ? __kernel_text_address+0xd/0x40 [ 36.115254] ? unwind_get_return_address+0x61/0xa0 [ 36.120204] ? __save_stack_trace+0x8d/0xf0 [ 36.124531] ? save_stack+0xa9/0xd0 [ 36.128154] ? save_stack+0x43/0xd0 [ 36.131786] ? __kasan_slab_free+0x11a/0x170 [ 36.136214] ? kasan_slab_free+0xe/0x10 [ 36.140198] ? putname+0xf2/0x130 [ 36.143649] ? __x64_sys_openat+0x9d/0x100 [ 36.147892] ? do_syscall_64+0x1b9/0x820 [ 36.151952] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.157315] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.161743] ? kasan_check_read+0x11/0x20 [ 36.165903] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.170314] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.174725] ? initcall_blacklisted+0x9a/0x1e0 [ 36.179311] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.184420] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.190135] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.195700] ? do_vfs_ioctl+0x201/0x1720 [ 36.199767] ? rcu_is_watching+0x8c/0x150 [ 36.203912] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.208254] ? ioctl_preallocate+0x300/0x300 [ 36.212695] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.218245] ? __fget_light+0x2f7/0x440 [ 36.222222] ? fget_raw+0x20/0x20 [ 36.225697] ? putname+0xf2/0x130 [ 36.229153] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.234184] ? kmem_cache_free+0x246/0x280 [ 36.238426] ? putname+0xf7/0x130 [ 36.242379] do_group_exit+0x177/0x440 [ 36.246266] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.250608] ? __ia32_sys_exit+0x50/0x50 [ 36.254669] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.259803] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.265336] ? ksys_ioctl+0x81/0xd0 [ 36.268962] __x64_sys_exit_group+0x3e/0x50 [ 36.273301] do_syscall_64+0x1b9/0x820 [ 36.277207] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.282570] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.287498] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.292339] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.297358] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.302377] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.307402] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.312254] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.317440] RIP: 0033:0x43ecf8 [ 36.320648] Code: Bad RIP value. [ 36.324013] RSP: 002b:00007ffd3c391af8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.331720] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 36.338983] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.346264] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.353596] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.360872] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.368146] [ 36.368152] ====================================================== [ 36.368158] WARNING: possible circular locking dependency detected [ 36.368161] 4.19.0-rc1+ #216 Not tainted [ 36.368177] ------------------------------------------------------ [ 36.368184] syz-executor146/4723 is trying to acquire lock: [ 36.368187] 0000000050651232 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.368202] [ 36.368206] but task is already holding lock: [ 36.368210] 00000000fc0571c3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.368224] [ 36.368229] which lock already depends on the new lock. [ 36.368231] [ 36.368234] [ 36.368238] the existing dependency chain (in reverse order) is: [ 36.368241] [ 36.368243] -> #3 (report_lock){....}: [ 36.368258] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.368262] kasan_report+0x8e/0x110 [ 36.368267] __asan_report_load8_noabort+0x14/0x20 [ 36.368270] __schedule+0xf54/0x1df0 [ 36.368275] preempt_schedule_common+0x22/0x60 [ 36.368279] _cond_resched+0x1d/0x30 [ 36.368283] wait_for_completion+0xa5/0x8d0 [ 36.368287] __synchronize_srcu+0x189/0x240 [ 36.368292] synchronize_srcu+0x335/0x56f [ 36.368296] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.368301] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.368305] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.368309] kvm_put_kvm+0x73f/0x1060 [ 36.368313] kvm_vm_release+0x42/0x50 [ 36.368316] __fput+0x38a/0xa40 [ 36.368320] ____fput+0x15/0x20 [ 36.368324] task_work_run+0x1e8/0x2a0 [ 36.368328] do_exit+0x1ae4/0x26e0 [ 36.368331] do_group_exit+0x177/0x440 [ 36.368336] __x64_sys_exit_group+0x3e/0x50 [ 36.368340] do_syscall_64+0x1b9/0x820 [ 36.368344] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.368347] [ 36.368349] -> #2 (&rq->lock){-.-.}: [ 36.368363] _raw_spin_lock+0x2a/0x40 [ 36.368367] task_fork_fair+0x93/0x680 [ 36.368371] sched_fork+0x44b/0xbd0 [ 36.368375] copy_process+0x235e/0x7ad0 [ 36.368378] _do_fork+0x1ca/0x1170 [ 36.368382] kernel_thread+0x34/0x40 [ 36.368386] rest_init+0x22/0xe4 [ 36.368390] start_kernel+0x913/0x94e [ 36.368394] x86_64_start_reservations+0x29/0x2b [ 36.368398] x86_64_start_kernel+0x76/0x79 [ 36.368402] secondary_startup_64+0xa4/0xb0 [ 36.368405] [ 36.368407] -> #1 (&p->pi_lock){-.-.}: [ 36.368421] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.368426] try_to_wake_up+0xd2/0x1250 [ 36.368430] wake_up_process+0x10/0x20 [ 36.368433] __up.isra.1+0x1c0/0x2a0 [ 36.368437] up+0x13c/0x1c0 [ 36.368441] __up_console_sem+0xbe/0x1b0 [ 36.368445] console_unlock+0x506/0x10d0 [ 36.368449] vprintk_emit+0x33a/0x910 [ 36.368452] vprintk_default+0x28/0x30 [ 36.368456] vprintk_func+0x7a/0x117 [ 36.368460] printk+0xa7/0xcf [ 36.368464] do_exit.cold.22+0x120/0x21f [ 36.368468] do_group_exit+0x177/0x440 [ 36.368472] __x64_sys_exit_group+0x3e/0x50 [ 36.368476] do_syscall_64+0x1b9/0x820 [ 36.368480] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.368483] [ 36.368485] -> #0 ((console_sem).lock){-...}: [ 36.368500] lock_acquire+0x1e4/0x4f0 [ 36.368504] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.368508] down_trylock+0x13/0x70 [ 36.368512] __down_trylock_console_sem+0xae/0x200 [ 36.368516] console_trylock+0x15/0xa0 [ 36.368520] vprintk_emit+0x31f/0x910 [ 36.368524] vprintk_default+0x28/0x30 [ 36.368528] vprintk_func+0x7a/0x117 [ 36.368532] printk+0xa7/0xcf [ 36.368535] kasan_report+0x9e/0x110 [ 36.368540] __asan_report_load8_noabort+0x14/0x20 [ 36.368544] __schedule+0xf54/0x1df0 [ 36.368548] preempt_schedule_common+0x22/0x60 [ 36.368552] _cond_resched+0x1d/0x30 [ 36.368556] wait_for_completion+0xa5/0x8d0 [ 36.368560] __synchronize_srcu+0x189/0x240 [ 36.368565] synchronize_srcu+0x335/0x56f [ 36.368570] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.368574] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.368578] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.368582] kvm_put_kvm+0x73f/0x1060 [ 36.368586] kvm_vm_release+0x42/0x50 [ 36.368589] __fput+0x38a/0xa40 [ 36.368593] ____fput+0x15/0x20 [ 36.368597] task_work_run+0x1e8/0x2a0 [ 36.368600] do_exit+0x1ae4/0x26e0 [ 36.368604] do_group_exit+0x177/0x440 [ 36.368608] __x64_sys_exit_group+0x3e/0x50 [ 36.368612] do_syscall_64+0x1b9/0x820 [ 36.368617] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.368619] [ 36.368624] other info that might help us debug this: [ 36.368626] [ 36.368629] Chain exists of: [ 36.368631] (console_sem).lock --> &rq->lock --> report_lock [ 36.368650] [ 36.368654] Possible unsafe locking scenario: [ 36.368656] [ 36.368660] CPU0 CPU1 [ 36.368664] ---- ---- [ 36.368667] lock(report_lock); [ 36.368676] lock(&rq->lock); [ 36.368692] lock(report_lock); [ 36.368700] lock((console_sem).lock); [ 36.368708] [ 36.368711] *** DEADLOCK *** [ 36.368713] [ 36.368718] 2 locks held by syz-executor146/4723: [ 36.368720] #0: 00000000ee6080ff (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.368737] #1: 00000000fc0571c3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.368754] [ 36.368757] stack backtrace: [ 36.368763] CPU: 1 PID: 4723 Comm: syz-executor146 Not tainted 4.19.0-rc1+ #216 [ 36.368770] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.368773] Call Trace: [ 36.368777] dump_stack+0x1c9/0x2b4 [ 36.368782] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.368786] ? vprintk_func+0x100/0x117 [ 36.368791] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.368794] ? save_trace+0xe0/0x290 [ 36.368798] __lock_acquire+0x3449/0x5020 [ 36.368803] ? mark_held_locks+0x160/0x160 [ 36.368807] ? mark_held_locks+0x160/0x160 [ 36.368811] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.368815] ? is_bpf_text_address+0xd7/0x170 [ 36.368819] ? kernel_text_address+0x79/0xf0 [ 36.368823] ? __kernel_text_address+0xd/0x40 [ 36.368828] ? __save_stack_trace+0x8d/0xf0 [ 36.368832] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.368836] ? save_trace+0x290/0x290 [ 36.368840] ? save_stack_trace+0x1a/0x20 [ 36.368844] ? save_trace+0xe0/0x290 [ 36.368847] ? graph_lock+0x170/0x170 [ 36.368852] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.368856] lock_acquire+0x1e4/0x4f0 [ 36.368860] ? down_trylock+0x13/0x70 [ 36.368864] ? lock_release+0x9f0/0x9f0 [ 36.368868] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.368872] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.368876] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.368880] ? log_store+0x34f/0x4c0 [ 36.368884] ? vprintk_emit+0x31f/0x910 [ 36.368888] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.368892] ? down_trylock+0x13/0x70 [ 36.368896] down_trylock+0x13/0x70 [ 36.368900] __down_trylock_console_sem+0xae/0x200 [ 36.368904] console_trylock+0x15/0xa0 [ 36.368908] vprintk_emit+0x31f/0x910 [ 36.368912] ? wake_up_klogd+0x110/0x110 [ 36.368916] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.368920] ? kasan_check_read+0x11/0x20 [ 36.368924] ? rcu_is_watching+0x8c/0x150 [ 36.368928] ? rcu_pm_notify+0xc0/0xc0 [ 36.368932] ? lock_acquire+0x1e4/0x4f0 [ 36.368936] ? kasan_report+0x8e/0x110 [ 36.368940] ? __schedule+0xf54/0x1df0 [ 36.368944] vprintk_default+0x28/0x30 [ 36.368947] vprintk_func+0x7a/0x117 [ 36.368951] printk+0xa7/0xcf [ 36.368955] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.368959] ? kasan_check_write+0x14/0x20 [ 36.368963] ? do_raw_spin_lock+0xc1/0x200 [ 36.368967] ? do_raw_spin_lock+0xc1/0x200 [ 36.368971] kasan_report+0x9e/0x110 [ 36.368976] __asan_report_load8_noabort+0x14/0x20 [ 36.368979] __schedule+0xf54/0x1df0 [ 36.368984] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.368988] ? __sched_text_start+0x8/0x8 [ 36.368992] ? __call_srcu+0x7e7/0x1040 [ 36.368996] ? check_same_owner+0x340/0x340 [ 36.369000] ? mark_held_locks+0x160/0x160 [ 36.369004] ? find_held_lock+0x36/0x1c0 [ 36.369008] preempt_schedule_common+0x22/0x60 [ 36.369012] _cond_resched+0x1d/0x30 [ 36.369016] wait_for_completion+0xa5/0x8d0 [ 36.369021] ? wait_for_completion_interruptible+0x950/0x950 [ 36.369025] ? __lockdep_init_map+0x105/0x590 [ 36.369030] ? __init_waitqueue_head+0x9e/0x150 [ 36.369034] ? init_wait_entry+0x1c0/0x1c0 [ 36.369038] __synchronize_srcu+0x189/0x240 [ 36.369042] ? call_srcu+0x10/0x10 [ 36.369046] ? rcu_unexpedite_gp+0x20/0x20 [ 36.369050] synchronize_srcu+0x335/0x56f [ 36.369054] ? lock_downgrade+0x8f0/0x8f0 [ 36.369059] ? synchronize_srcu_expedited+0x20/0x20 [ 36.369063] ? kasan_check_read+0x11/0x20 [ 36.369067] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.369072] ? kasan_check_write+0x14/0x20 [ 36.369076] ? do_raw_spin_lock+0xc1/0x200 [ 36.369081] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.369086] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.369089] ? kvfree+0x61/0x70 [ 36.369094] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.369098] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.369102] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.369106] ? kvm_arch_sync_events+0x30/0x30 [ 36.369111] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.369116] ? mmu_notifier_unregister+0x474/0x600 [ 36.369120] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.369123] ? kfree+0x111/0x210 [ 36.369128] ? __mmu_notifier_register+0x30/0x30 [ 36.369132] ? __free_pages+0x10a/0x190 [ 36.369136] ? free_unref_page+0x930/0x930 [ 36.369139] kvm_put_kvm+0x73f/0x1060 [ 36.369144] ? kvm_write_guest_cached+0x40/0x40 [ 36.369148] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.369152] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.369156] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.369160] ? kasan_check_write+0x14/0x20 [ 36.369172] ? do_raw_spin_lock+0xc1/0x200 [ 36.369188] ? kvm_irqfd_release+0xdd/0x120 [ 36.369193] ? kvm_irqfd_release+0xdd/0x120 [ 36.369197] ? kvm_put_kvm+0x1060/0x1060 [ 36.369201] kvm_vm_release+0x42/0x50 [ 36.369204] __fput+0x38a/0xa40 [ 36.369208] ? __alloc_file+0x400/0x400 [ 36.369212] ? check_same_owner+0x340/0x340 [ 36.369216] ? kasan_check_write+0x14/0x20 [ 36.369220] ? do_raw_spin_lock+0xc1/0x200 [ 36.369223] ____fput+0x15/0x20 [ 36.369227] task_work_run+0x1e8/0x2a0 [ 36.369231] ? task_work_cancel+0x240/0x240 [ 36.369235] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.369240] ? switch_task_namespaces+0xa2/0xd0 [ 36.369243] do_exit+0x1ae4/0x26e0 [ 36.369247] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.369251] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.369256] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.369259] ? kfree+0x1d7/0x210 [ 36.369263] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.369268] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.369270] ? is_bpf_tex [ 36.369277] Lost 56 message(s)! [ 37.470587] Shutting down cpus with NMI [ 38.528990] Dumping ftrace buffer: [ 38.532522] (ftrace buffer empty) [ 38.536214] Kernel Offset: disabled [ 38.539826] Rebooting in 86400 seconds..