[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.504604] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.010486] random: sshd: uninitialized urandom read (32 bytes read) [ 26.309131] random: sshd: uninitialized urandom read (32 bytes read) [ 26.863713] random: sshd: uninitialized urandom read (32 bytes read) [ 40.297134] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.52' (ECDSA) to the list of known hosts. [ 45.957751] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 46.055810] 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. [ 46.081172] ================================================================== [ 46.090960] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 46.097185] Read of size 8 at addr ffff8801d9050058 by task syz-executor533/4706 [ 46.104703] [ 46.106330] CPU: 0 PID: 4706 Comm: syz-executor533 Not tainted 4.19.0-rc1+ #216 [ 46.113766] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.123113] Call Trace: [ 46.125711] dump_stack+0x1c9/0x2b4 [ 46.129345] ? dump_stack_print_info.cold.2+0x52/0x52 [ 46.134532] ? printk+0xa7/0xcf [ 46.137858] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 46.142629] ? __schedule+0xf54/0x1df0 [ 46.146514] print_address_description+0x6c/0x20b [ 46.151357] ? __schedule+0xf54/0x1df0 [ 46.155251] kasan_report.cold.7+0x242/0x30d [ 46.159675] __asan_report_load8_noabort+0x14/0x20 [ 46.164609] __schedule+0xf54/0x1df0 [ 46.168321] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 46.173426] ? __sched_text_start+0x8/0x8 [ 46.177576] ? __call_srcu+0x7e7/0x1040 [ 46.181555] ? check_same_owner+0x340/0x340 [ 46.185874] ? mark_held_locks+0x160/0x160 [ 46.190105] ? find_held_lock+0x36/0x1c0 [ 46.194174] preempt_schedule_common+0x22/0x60 [ 46.198769] _cond_resched+0x1d/0x30 [ 46.202482] wait_for_completion+0xa5/0x8d0 [ 46.206808] ? wait_for_completion_interruptible+0x950/0x950 [ 46.212620] ? __lockdep_init_map+0x105/0x590 [ 46.217113] ? __init_waitqueue_head+0x9e/0x150 [ 46.221793] ? init_wait_entry+0x1c0/0x1c0 [ 46.226029] __synchronize_srcu+0x189/0x240 [ 46.230351] ? call_srcu+0x10/0x10 [ 46.233887] ? rcu_unexpedite_gp+0x20/0x20 [ 46.238126] synchronize_srcu+0x335/0x56f [ 46.242269] ? lock_downgrade+0x8f0/0x8f0 [ 46.246415] ? synchronize_srcu_expedited+0x20/0x20 [ 46.251433] ? kasan_check_read+0x11/0x20 [ 46.255578] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 46.260155] ? kasan_check_write+0x14/0x20 [ 46.264386] ? do_raw_spin_lock+0xc1/0x200 [ 46.268621] kvm_page_track_unregister_notifier+0x17d/0x250 [ 46.274326] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 46.279775] ? kvfree+0x61/0x70 [ 46.283053] ? rcu_read_lock_sched_held+0x108/0x120 [ 46.288066] kvm_mmu_uninit_vm+0x1c/0x20 [ 46.292123] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 46.296526] ? kvm_arch_sync_events+0x30/0x30 [ 46.301021] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 46.306556] ? mmu_notifier_unregister+0x474/0x600 [ 46.311477] ? trace_hardirqs_on+0x2c0/0x2c0 [ 46.315879] ? kfree+0x111/0x210 [ 46.319241] ? __mmu_notifier_register+0x30/0x30 [ 46.323997] ? __free_pages+0x10a/0x190 [ 46.327969] ? free_unref_page+0x930/0x930 [ 46.332213] kvm_put_kvm+0x73f/0x1060 [ 46.336014] ? kvm_write_guest_cached+0x40/0x40 [ 46.340681] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.345175] ? _raw_spin_unlock_irq+0x27/0x70 [ 46.349670] ? lockdep_hardirqs_on+0x421/0x5c0 [ 46.354265] ? kasan_check_write+0x14/0x20 [ 46.358496] ? do_raw_spin_lock+0xc1/0x200 [ 46.362727] ? kvm_irqfd_release+0xdd/0x120 [ 46.367047] ? kvm_irqfd_release+0xdd/0x120 [ 46.371365] ? kvm_put_kvm+0x1060/0x1060 [ 46.375425] kvm_vm_release+0x42/0x50 [ 46.379224] __fput+0x38a/0xa40 [ 46.382501] ? __alloc_file+0x400/0x400 [ 46.386478] ? check_same_owner+0x340/0x340 [ 46.390797] ? kasan_check_write+0x14/0x20 [ 46.395027] ? do_raw_spin_lock+0xc1/0x200 [ 46.399256] ____fput+0x15/0x20 [ 46.402532] task_work_run+0x1e8/0x2a0 [ 46.406416] ? task_work_cancel+0x240/0x240 [ 46.410747] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 46.416285] ? switch_task_namespaces+0xa2/0xd0 [ 46.420951] do_exit+0x1ae4/0x26e0 [ 46.424493] ? mm_update_next_owner+0x9a0/0x9a0 [ 46.429162] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 46.433391] ? rcu_read_lock_sched_held+0x108/0x120 [ 46.438400] ? kfree+0x1d7/0x210 [ 46.441771] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 46.446006] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 46.451711] ? is_bpf_text_address+0xd7/0x170 [ 46.456221] ? kernel_text_address+0x79/0xf0 [ 46.460625] ? __kernel_text_address+0xd/0x40 [ 46.465126] ? unwind_get_return_address+0x61/0xa0 [ 46.470064] ? __save_stack_trace+0x8d/0xf0 [ 46.474388] ? save_stack+0xa9/0xd0 [ 46.478013] ? save_stack+0x43/0xd0 [ 46.481633] ? __kasan_slab_free+0x11a/0x170 [ 46.486033] ? kasan_slab_free+0xe/0x10 [ 46.490001] ? putname+0xf2/0x130 [ 46.493450] ? __x64_sys_openat+0x9d/0x100 [ 46.497682] ? do_syscall_64+0x1b9/0x820 [ 46.501751] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.507111] ? trace_hardirqs_off+0xb8/0x2b0 [ 46.511524] ? kasan_check_read+0x11/0x20 [ 46.515669] ? do_raw_spin_unlock+0xa7/0x2f0 [ 46.520069] ? trace_hardirqs_on+0x2c0/0x2c0 [ 46.524473] ? initcall_blacklisted+0x9a/0x1e0 [ 46.529053] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 46.534154] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 46.539861] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.545393] ? do_vfs_ioctl+0x201/0x1720 [ 46.549451] ? rcu_is_watching+0x8c/0x150 [ 46.553593] ? trace_hardirqs_on+0xbd/0x2c0 [ 46.557914] ? ioctl_preallocate+0x300/0x300 [ 46.562316] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.567848] ? __fget_light+0x2f7/0x440 [ 46.571818] ? fget_raw+0x20/0x20 [ 46.575265] ? putname+0xf2/0x130 [ 46.578719] ? rcu_read_lock_sched_held+0x108/0x120 [ 46.583736] ? kmem_cache_free+0x246/0x280 [ 46.587976] ? putname+0xf7/0x130 [ 46.591429] do_group_exit+0x177/0x440 [ 46.595317] ? trace_hardirqs_on+0xbd/0x2c0 [ 46.599632] ? __ia32_sys_exit+0x50/0x50 [ 46.603692] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 46.608794] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.614325] ? ksys_ioctl+0x81/0xd0 [ 46.617950] __x64_sys_exit_group+0x3e/0x50 [ 46.622268] do_syscall_64+0x1b9/0x820 [ 46.626151] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 46.631510] ? syscall_return_slowpath+0x5e0/0x5e0 [ 46.636434] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.641269] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 46.646286] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 46.651298] ? prepare_exit_to_usermode+0x291/0x3b0 [ 46.656314] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.661158] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.666343] RIP: 0033:0x43ecc8 [ 46.669535] Code: Bad RIP value. [ 46.672892] RSP: 002b:00007ffc12881a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 46.680612] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 46.687877] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 46.695136] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 46.702395] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 46.709662] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 46.716927] [ 46.718543] Allocated by task 4706: [ 46.722184] save_stack+0x43/0xd0 [ 46.725646] kasan_kmalloc+0xc4/0xe0 [ 46.729354] kasan_slab_alloc+0x12/0x20 [ 46.733326] kmem_cache_alloc+0x12e/0x710 [ 46.737469] vmx_create_vcpu+0xcf/0x2830 [ 46.741522] kvm_arch_vcpu_create+0xe5/0x220 [ 46.745925] kvm_vm_ioctl+0x488/0x1d80 [ 46.749811] do_vfs_ioctl+0x1de/0x1720 [ 46.753691] ksys_ioctl+0xa9/0xd0 [ 46.757140] __x64_sys_ioctl+0x73/0xb0 [ 46.761024] do_syscall_64+0x1b9/0x820 [ 46.764907] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.770088] [ 46.771708] Freed by task 4706: [ 46.775007] save_stack+0x43/0xd0 [ 46.778455] __kasan_slab_free+0x11a/0x170 [ 46.782682] kasan_slab_free+0xe/0x10 [ 46.786477] kmem_cache_free+0x86/0x280 [ 46.790451] vmx_free_vcpu+0x26b/0x300 [ 46.794339] kvm_arch_destroy_vm+0x365/0x7c0 [ 46.798832] kvm_put_kvm+0x73f/0x1060 [ 46.802632] kvm_vm_release+0x42/0x50 [ 46.806428] __fput+0x38a/0xa40 [ 46.809702] ____fput+0x15/0x20 [ 46.812986] task_work_run+0x1e8/0x2a0 [ 46.816962] do_exit+0x1ae4/0x26e0 [ 46.820582] do_group_exit+0x177/0x440 [ 46.824550] __x64_sys_exit_group+0x3e/0x50 [ 46.828868] do_syscall_64+0x1b9/0x820 [ 46.832762] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.837940] [ 46.839652] The buggy address belongs to the object at ffff8801d9050040 [ 46.839652] which belongs to the cache kvm_vcpu of size 23872 [ 46.852221] The buggy address is located 24 bytes inside of [ 46.852221] 23872-byte region [ffff8801d9050040, ffff8801d9055d80) [ 46.864261] The buggy address belongs to the page: [ 46.869193] page:ffffea0007641400 count:1 mapcount:0 mapping:ffff8801d518a9c0 index:0x0 compound_mapcount: 0 [ 46.879165] flags: 0x2fffc0000008100(slab|head) [ 46.883929] raw: 02fffc0000008100 ffff8801d5191748 ffff8801d5191748 ffff8801d518a9c0 [ 46.891812] raw: 0000000000000000 ffff8801d9050040 0000000100000001 0000000000000000 [ 46.900207] page dumped because: kasan: bad access detected [ 46.905909] [ 46.907528] Memory state around the buggy address: [ 46.912540] ffff8801d904ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.920586] ffff8801d904ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.927940] >ffff8801d9050000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 46.935287] ^ [ 46.941511] ffff8801d9050080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.948880] ffff8801d9050100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.956229] ================================================================== [ 46.963581] Kernel panic - not syncing: panic_on_warn set ... [ 46.963581] [ 46.970955] CPU: 0 PID: 4706 Comm: syz-executor533 Tainted: G B 4.19.0-rc1+ #216 [ 46.979794] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.989147] Call Trace: [ 46.991791] dump_stack+0x1c9/0x2b4 [ 46.995420] ? dump_stack_print_info.cold.2+0x52/0x52 [ 47.000632] ? lock_downgrade+0x8f0/0x8f0 [ 47.004797] ? __schedule+0xf54/0x1df0 [ 47.008685] panic+0x238/0x4e7 [ 47.011887] ? add_taint.cold.5+0x16/0x16 [ 47.016057] ? print_shadow_for_address+0xba/0x116 [ 47.020982] ? trace_hardirqs_off+0xaf/0x2b0 [ 47.025396] ? trace_hardirqs_off+0x77/0x2b0 [ 47.029804] ? __schedule+0xf54/0x1df0 [ 47.033692] kasan_end_report+0x47/0x4f [ 47.037668] kasan_report.cold.7+0x76/0x30d [ 47.042013] __asan_report_load8_noabort+0x14/0x20 [ 47.046967] __schedule+0xf54/0x1df0 [ 47.050677] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 47.055779] ? __sched_text_start+0x8/0x8 [ 47.059934] ? __call_srcu+0x7e7/0x1040 [ 47.064021] ? check_same_owner+0x340/0x340 [ 47.068342] ? mark_held_locks+0x160/0x160 [ 47.072573] ? find_held_lock+0x36/0x1c0 [ 47.076632] preempt_schedule_common+0x22/0x60 [ 47.081221] _cond_resched+0x1d/0x30 [ 47.084932] wait_for_completion+0xa5/0x8d0 [ 47.089254] ? wait_for_completion_interruptible+0x950/0x950 [ 47.095048] ? __lockdep_init_map+0x105/0x590 [ 47.099545] ? __init_waitqueue_head+0x9e/0x150 [ 47.104218] ? init_wait_entry+0x1c0/0x1c0 [ 47.108456] __synchronize_srcu+0x189/0x240 [ 47.112771] ? call_srcu+0x10/0x10 [ 47.116312] ? rcu_unexpedite_gp+0x20/0x20 [ 47.120551] synchronize_srcu+0x335/0x56f [ 47.124692] ? lock_downgrade+0x8f0/0x8f0 [ 47.128838] ? synchronize_srcu_expedited+0x20/0x20 [ 47.133854] ? kasan_check_read+0x11/0x20 [ 47.138004] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 47.142587] ? kasan_check_write+0x14/0x20 [ 47.146818] ? do_raw_spin_lock+0xc1/0x200 [ 47.151056] kvm_page_track_unregister_notifier+0x17d/0x250 [ 47.156769] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 47.162219] ? kvfree+0x61/0x70 [ 47.165499] ? rcu_read_lock_sched_held+0x108/0x120 [ 47.170516] kvm_mmu_uninit_vm+0x1c/0x20 [ 47.174578] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 47.178990] ? kvm_arch_sync_events+0x30/0x30 [ 47.183584] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 47.189134] ? mmu_notifier_unregister+0x474/0x600 [ 47.194156] ? trace_hardirqs_on+0x2c0/0x2c0 [ 47.198569] ? kfree+0x111/0x210 [ 47.202025] ? __mmu_notifier_register+0x30/0x30 [ 47.206790] ? __free_pages+0x10a/0x190 [ 47.210768] ? free_unref_page+0x930/0x930 [ 47.215016] kvm_put_kvm+0x73f/0x1060 [ 47.218826] ? kvm_write_guest_cached+0x40/0x40 [ 47.223504] ? _raw_spin_unlock_irq+0x27/0x70 [ 47.228017] ? _raw_spin_unlock_irq+0x27/0x70 [ 47.232515] ? lockdep_hardirqs_on+0x421/0x5c0 [ 47.237099] ? kasan_check_write+0x14/0x20 [ 47.241354] ? do_raw_spin_lock+0xc1/0x200 [ 47.245597] ? kvm_irqfd_release+0xdd/0x120 [ 47.249914] ? kvm_irqfd_release+0xdd/0x120 [ 47.254238] ? kvm_put_kvm+0x1060/0x1060 [ 47.258318] kvm_vm_release+0x42/0x50 [ 47.262121] __fput+0x38a/0xa40 [ 47.265399] ? __alloc_file+0x400/0x400 [ 47.269377] ? check_same_owner+0x340/0x340 [ 47.273695] ? kasan_check_write+0x14/0x20 [ 47.277935] ? do_raw_spin_lock+0xc1/0x200 [ 47.282166] ____fput+0x15/0x20 [ 47.285441] task_work_run+0x1e8/0x2a0 [ 47.289392] ? task_work_cancel+0x240/0x240 [ 47.293717] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 47.299258] ? switch_task_namespaces+0xa2/0xd0 [ 47.303930] do_exit+0x1ae4/0x26e0 [ 47.307559] ? mm_update_next_owner+0x9a0/0x9a0 [ 47.312234] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 47.316470] ? rcu_read_lock_sched_held+0x108/0x120 [ 47.321482] ? kfree+0x1d7/0x210 [ 47.324847] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 47.329082] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 47.334793] ? is_bpf_text_address+0xd7/0x170 [ 47.339286] ? kernel_text_address+0x79/0xf0 [ 47.343796] ? __kernel_text_address+0xd/0x40 [ 47.348290] ? unwind_get_return_address+0x61/0xa0 [ 47.353217] ? __save_stack_trace+0x8d/0xf0 [ 47.357546] ? save_stack+0xa9/0xd0 [ 47.361169] ? save_stack+0x43/0xd0 [ 47.364793] ? __kasan_slab_free+0x11a/0x170 [ 47.369198] ? kasan_slab_free+0xe/0x10 [ 47.373169] ? putname+0xf2/0x130 [ 47.376639] ? __x64_sys_openat+0x9d/0x100 [ 47.380870] ? do_syscall_64+0x1b9/0x820 [ 47.384930] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.390303] ? trace_hardirqs_off+0xb8/0x2b0 [ 47.394707] ? kasan_check_read+0x11/0x20 [ 47.399034] ? do_raw_spin_unlock+0xa7/0x2f0 [ 47.403443] ? trace_hardirqs_on+0x2c0/0x2c0 [ 47.407893] ? initcall_blacklisted+0x9a/0x1e0 [ 47.412472] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 47.417579] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 47.423294] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.428834] ? do_vfs_ioctl+0x201/0x1720 [ 47.432918] ? rcu_is_watching+0x8c/0x150 [ 47.437061] ? trace_hardirqs_on+0xbd/0x2c0 [ 47.441474] ? ioctl_preallocate+0x300/0x300 [ 47.445970] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.451523] ? __fget_light+0x2f7/0x440 [ 47.455504] ? fget_raw+0x20/0x20 [ 47.458976] ? putname+0xf2/0x130 [ 47.462433] ? rcu_read_lock_sched_held+0x108/0x120 [ 47.467476] ? kmem_cache_free+0x246/0x280 [ 47.471720] ? putname+0xf7/0x130 [ 47.475181] do_group_exit+0x177/0x440 [ 47.479074] ? trace_hardirqs_on+0xbd/0x2c0 [ 47.483400] ? __ia32_sys_exit+0x50/0x50 [ 47.487479] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 47.492588] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.498228] ? ksys_ioctl+0x81/0xd0 [ 47.501864] __x64_sys_exit_group+0x3e/0x50 [ 47.506184] do_syscall_64+0x1b9/0x820 [ 47.510085] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 47.515541] ? syscall_return_slowpath+0x5e0/0x5e0 [ 47.520481] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.525342] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 47.530379] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 47.535576] ? prepare_exit_to_usermode+0x291/0x3b0 [ 47.540678] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.545525] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.550720] RIP: 0033:0x43ecc8 [ 47.553920] Code: Bad RIP value. [ 47.557393] RSP: 002b:00007ffc12881a88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 47.565111] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 47.572473] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 47.579736] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 47.587092] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 47.594353] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 47.601625] [ 47.601630] ====================================================== [ 47.601636] WARNING: possible circular locking dependency detected [ 47.601639] 4.19.0-rc1+ #216 Not tainted [ 47.601645] ------------------------------------------------------ [ 47.601649] syz-executor533/4706 is trying to acquire lock: [ 47.601653] 0000000056bdc9ca ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 47.601667] [ 47.601671] but task is already holding lock: [ 47.601674] 0000000032df5bfe (report_lock){....}, at: kasan_report+0x8e/0x110 [ 47.601688] [ 47.601693] which lock already depends on the new lock. [ 47.601695] [ 47.601697] [ 47.601702] the existing dependency chain (in reverse order) is: [ 47.601704] [ 47.601707] -> #3 (report_lock){....}: [ 47.601721] _raw_spin_lock_irqsave+0x96/0xc0 [ 47.601724] kasan_report+0x8e/0x110 [ 47.601729] __asan_report_load8_noabort+0x14/0x20 [ 47.601733] __schedule+0xf54/0x1df0 [ 47.601737] preempt_schedule_common+0x22/0x60 [ 47.601749] _cond_resched+0x1d/0x30 [ 47.601753] wait_for_completion+0xa5/0x8d0 [ 47.601757] __synchronize_srcu+0x189/0x240 [ 47.601761] synchronize_srcu+0x335/0x56f [ 47.601766] kvm_page_track_unregister_notifier+0x17d/0x250 [ 47.601770] kvm_mmu_uninit_vm+0x1c/0x20 [ 47.601774] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 47.601778] kvm_put_kvm+0x73f/0x1060 [ 47.601781] kvm_vm_release+0x42/0x50 [ 47.601785] __fput+0x38a/0xa40 [ 47.601788] ____fput+0x15/0x20 [ 47.601792] task_work_run+0x1e8/0x2a0 [ 47.601796] do_exit+0x1ae4/0x26e0 [ 47.601800] do_group_exit+0x177/0x440 [ 47.601804] __x64_sys_exit_group+0x3e/0x50 [ 47.601807] do_syscall_64+0x1b9/0x820 [ 47.601812] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.601814] [ 47.601816] -> #2 (&rq->lock){-.-.}: [ 47.601830] _raw_spin_lock+0x2a/0x40 [ 47.601834] task_fork_fair+0x93/0x680 [ 47.601838] sched_fork+0x44b/0xbd0 [ 47.601842] copy_process+0x235e/0x7ad0 [ 47.601845] _do_fork+0x1ca/0x1170 [ 47.601849] kernel_thread+0x34/0x40 [ 47.601852] rest_init+0x22/0xe4 [ 47.601856] start_kernel+0x913/0x94e [ 47.601860] x86_64_start_reservations+0x29/0x2b [ 47.601864] x86_64_start_kernel+0x76/0x79 [ 47.601868] secondary_startup_64+0xa4/0xb0 [ 47.601871] [ 47.601873] -> #1 (&p->pi_lock){-.-.}: [ 47.601887] _raw_spin_lock_irqsave+0x96/0xc0 [ 47.601891] try_to_wake_up+0xd2/0x1250 [ 47.601895] wake_up_process+0x10/0x20 [ 47.601898] __up.isra.1+0x1c0/0x2a0 [ 47.601902] up+0x13c/0x1c0 [ 47.601905] __up_console_sem+0xbe/0x1b0 [ 47.601909] console_unlock+0x506/0x10d0 [ 47.601913] vprintk_emit+0x33a/0x910 [ 47.601917] vprintk_default+0x28/0x30 [ 47.601920] vprintk_func+0x7a/0x117 [ 47.601924] printk+0xa7/0xcf [ 47.601928] do_exit.cold.22+0x120/0x21f [ 47.601932] do_group_exit+0x177/0x440 [ 47.601936] __x64_sys_exit_group+0x3e/0x50 [ 47.601939] do_syscall_64+0x1b9/0x820 [ 47.601944] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.601946] [ 47.601948] -> #0 ((console_sem).lock){-...}: [ 47.601962] lock_acquire+0x1e4/0x4f0 [ 47.601966] _raw_spin_lock_irqsave+0x96/0xc0 [ 47.601969] down_trylock+0x13/0x70 [ 47.601974] __down_trylock_console_sem+0xae/0x200 [ 47.601977] console_trylock+0x15/0xa0 [ 47.601981] vprintk_emit+0x31f/0x910 [ 47.601985] vprintk_default+0x28/0x30 [ 47.601988] vprintk_func+0x7a/0x117 [ 47.601992] printk+0xa7/0xcf [ 47.601995] kasan_report+0x9e/0x110 [ 47.601999] __asan_report_load8_noabort+0x14/0x20 [ 47.602003] __schedule+0xf54/0x1df0 [ 47.602007] preempt_schedule_common+0x22/0x60 [ 47.602011] _cond_resched+0x1d/0x30 [ 47.602015] wait_for_completion+0xa5/0x8d0 [ 47.602019] __synchronize_srcu+0x189/0x240 [ 47.602023] synchronize_srcu+0x335/0x56f [ 47.602028] kvm_page_track_unregister_notifier+0x17d/0x250 [ 47.602032] kvm_mmu_uninit_vm+0x1c/0x20 [ 47.602037] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 47.602040] kvm_put_kvm+0x73f/0x1060 [ 47.602044] kvm_vm_release+0x42/0x50 [ 47.602047] __fput+0x38a/0xa40 [ 47.602051] ____fput+0x15/0x20 [ 47.602055] task_work_run+0x1e8/0x2a0 [ 47.602058] do_exit+0x1ae4/0x26e0 [ 47.602062] do_group_exit+0x177/0x440 [ 47.602066] __x64_sys_exit_group+0x3e/0x50 [ 47.602070] do_syscall_64+0x1b9/0x820 [ 47.602075] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.602077] [ 47.602081] other info that might help us debug this: [ 47.602084] [ 47.602087] Chain exists of: [ 47.602089] (console_sem).lock --> &rq->lock --> report_lock [ 47.602107] [ 47.602110] Possible unsafe locking scenario: [ 47.602113] [ 47.602117] CPU0 CPU1 [ 47.602121] ---- ---- [ 47.602123] lock(report_lock); [ 47.602132] lock(&rq->lock); [ 47.602141] lock(report_lock); [ 47.602149] lock((console_sem).lock); [ 47.602157] [ 47.602160] *** DEADLOCK *** [ 47.602162] [ 47.602166] 2 locks held by syz-executor533/4706: [ 47.602169] #0: 00000000fefa6dee (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 47.602185] #1: 0000000032df5bfe (report_lock){....}, at: kasan_report+0x8e/0x110 [ 47.602202] [ 47.602205] stack backtrace: [ 47.602211] CPU: 0 PID: 4706 Comm: syz-executor533 Not tainted 4.19.0-rc1+ #216 [ 47.602217] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.602220] Call Trace: [ 47.602224] dump_stack+0x1c9/0x2b4 [ 47.602228] ? dump_stack_print_info.cold.2+0x52/0x52 [ 47.602232] ? vprintk_func+0x100/0x117 [ 47.602237] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 47.602241] ? save_trace+0xe0/0x290 [ 47.602244] __lock_acquire+0x3449/0x5020 [ 47.602248] ? mark_held_locks+0x160/0x160 [ 47.602252] ? mark_held_locks+0x160/0x160 [ 47.602256] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 47.602260] ? is_bpf_text_address+0xd7/0x170 [ 47.602264] ? kernel_text_address+0x79/0xf0 [ 47.602269] ? __kernel_text_address+0xd/0x40 [ 47.602272] ? __save_stack_trace+0x8d/0xf0 [ 47.602277] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 47.602280] ? save_trace+0x290/0x290 [ 47.602284] ? save_stack_trace+0x1a/0x20 [ 47.602288] ? save_trace+0xe0/0x290 [ 47.602292] ? graph_lock+0x170/0x170 [ 47.602296] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 47.602300] lock_acquire+0x1e4/0x4f0 [ 47.602304] ? down_trylock+0x13/0x70 [ 47.602307] ? lock_release+0x9f0/0x9f0 [ 47.602311] ? trace_hardirqs_off+0xb8/0x2b0 [ 47.602315] ? trace_hardirqs_on+0x2c0/0x2c0 [ 47.602319] ? trace_hardirqs_off+0xb8/0x2b0 [ 47.602323] ? log_store+0x34f/0x4c0 [ 47.602327] ? vprintk_emit+0x31f/0x910 [ 47.602331] _raw_spin_lock_irqsave+0x96/0xc0 [ 47.602335] ? down_trylock+0x13/0x70 [ 47.602338] down_trylock+0x13/0x70 [ 47.602342] __down_trylock_console_sem+0xae/0x200 [ 47.602346] console_trylock+0x15/0xa0 [ 47.602350] vprintk_emit+0x31f/0x910 [ 47.602353] ? wake_up_klogd+0x110/0x110 [ 47.602358] ? run_rebalance_domains+0x4c0/0x4c0 [ 47.602362] ? kasan_check_read+0x11/0x20 [ 47.602366] ? rcu_is_watching+0x8c/0x150 [ 47.602369] ? rcu_pm_notify+0xc0/0xc0 [ 47.602373] ? lock_acquire+0x1e4/0x4f0 [ 47.602377] ? kasan_report+0x8e/0x110 [ 47.602381] ? __schedule+0xf54/0x1df0 [ 47.602384] vprintk_default+0x28/0x30 [ 47.602388] vprintk_func+0x7a/0x117 [ 47.602391] printk+0xa7/0xcf [ 47.602395] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 47.602399] ? kasan_check_write+0x14/0x20 [ 47.602403] ? do_raw_spin_lock+0xc1/0x200 [ 47.602407] ? do_raw_spin_lock+0xc1/0x200 [ 47.602410] kasan_report+0x9e/0x110 [ 47.602415] __asan_report_load8_noabort+0x14/0x20 [ 47.602418] __schedule+0xf54/0x1df0 [ 47.602423] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 47.602427] ? __sched_text_start+0x8/0x8 [ 47.602430] ? __call_srcu+0x7e7/0x1040 [ 47.602434] ? check_same_owner+0x340/0x340 [ 47.602438] ? mark_held_locks+0x160/0x160 [ 47.602442] ? find_held_lock+0x36/0x1c0 [ 47.602446] preempt_schedule_common+0x22/0x60 [ 47.602450] _cond_resched+0x1d/0x30 [ 47.602454] wait_for_completion+0xa5/0x8d0 [ 47.602458] ? wait_for_completion_interruptible+0x950/0x950 [ 47.602463] ? __lockdep_init_map+0x105/0x590 [ 47.602467] ? __init_waitqueue_head+0x9e/0x150 [ 47.602471] ? init_wait_entry+0x1c0/0x1c0 [ 47.602475] __synchronize_srcu+0x189/0x240 [ 47.602478] ? call_srcu+0x10/0x10 [ 47.602482] ? rcu_unexpedite_gp+0x20/0x20 [ 47.602486] synchronize_srcu+0x335/0x56f [ 47.602490] ? lock_downgrade+0x8f0/0x8f0 [ 47.602494] ? synchronize_srcu_expedited+0x20/0x20 [ 47.602498] ? kasan_check_read+0x11/0x20 [ 47.602502] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 47.602506] ? kasan_check_write+0x14/0x20 [ 47.602510] ? do_raw_spin_lock+0xc1/0x200 [ 47.602515] kvm_page_track_unregister_notifier+0x17d/0x250 [ 47.602520] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 47.602523] ? kvfree+0x61/0x70 [ 47.602528] ? rcu_read_lock_sched_held+0x108/0x120 [ 47.602537] kvm_mmu_uninit_vm+0x1c/0x20 [ 47.602542] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 47.602546] ? kvm_arch_sync_events+0x30/0x30 [ 47.602550] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 47.602555] ? mmu_notifier_unregister+0x474/0x600 [ 47.602559] ? trace_hardirqs_on+0x2c0/0x2c0 [ 47.602562] ? kfree+0x111/0x210 [ 47.602567] ? __mmu_notifier_register+0x30/0x30 [ 47.602570] ? __free_pages+0x10a/0x190 [ 47.602574] ? free_unref_page+0x930/0x930 [ 47.602578] kvm_put_kvm+0x73f/0x1060 [ 47.602582] ? kvm_write_guest_cached+0x40/0x40 [ 47.602586] ? _raw_spin_unlock_irq+0x27/0x70 [ 47.602590] ? _raw_spin_unlock_irq+0x27/0x70 [ 47.602595] ? lockdep_hardirqs_on+0x421/0x5c0 [ 47.602599] ? kasan_check_write+0x14/0x20 [ 47.602603] ? do_raw_spin_lock+0xc1/0x200 [ 47.602606] ? kvm_irqfd_release+0xdd/0x120 [ 47.602611] ? kvm_irqfd_release+0xdd/0x120 [ 47.602614] ? kvm_put_kvm+0x1060/0x1060 [ 47.602618] kvm_vm_release+0x42/0x50 [ 47.602621] __fput+0x38a/0xa40 [ 47.602625] ? __alloc_file+0x400/0x400 [ 47.602629] ? check_same_owner+0x340/0x340 [ 47.602633] ? kasan_check_write+0x14/0x20 [ 47.602637] ? do_raw_spin_lock+0xc1/0x200 [ 47.602640] ____fput+0x15/0x20 [ 47.602644] task_work_run+0x1e8/0x2a0 [ 47.602648] ? task_work_cancel+0x240/0x240 [ 47.602653] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 47.602657] ? switch_task_namespaces+0xa2/0xd0 [ 47.602660] do_exit+0x1ae4/0x26e0 [ 47.602664] ? mm_update_next_owner+0x9a0/0x9a0 [ 47.602668] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 47.602673] ? rcu_read_lock_sched_held+0x108/0x120 [ 47.602676] ? kfree+0x1d7/0x210 [ 47.602680] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 47.602685] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 47.602688] ? is_bpf_tex [ 47.602695] Lost 56 message(s)! [ 48.660554] Shutting down cpus with NMI [ 49.718585] Dumping ftrace buffer: [ 49.722127] (ftrace buffer empty) [ 49.725833] Kernel Offset: disabled [ 49.729443] Rebooting in 86400 seconds..