[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 26.747846] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 27.644144] random: sshd: uninitialized urandom read (32 bytes read) [ 27.996148] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.594337] random: sshd: uninitialized urandom read (32 bytes read) [ 28.780531] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.52' (ECDSA) to the list of known hosts. [ 34.476978] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.582218] 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.608826] ================================================================== [ 34.618714] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.624950] Read of size 8 at addr ffff8801c7f78058 by task syz-executor056/4719 [ 34.632475] [ 34.634113] CPU: 1 PID: 4719 Comm: syz-executor056 Not tainted 4.19.0-rc1+ #216 [ 34.641558] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.650914] Call Trace: [ 34.653578] dump_stack+0x1c9/0x2b4 [ 34.657211] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.662403] ? printk+0xa7/0xcf [ 34.665681] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.670443] ? __schedule+0xf54/0x1df0 [ 34.674335] print_address_description+0x6c/0x20b [ 34.679185] ? __schedule+0xf54/0x1df0 [ 34.683078] kasan_report.cold.7+0x242/0x30d [ 34.687489] __asan_report_load8_noabort+0x14/0x20 [ 34.692416] __schedule+0xf54/0x1df0 [ 34.696132] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.701239] ? __sched_text_start+0x8/0x8 [ 34.705391] ? __call_srcu+0x7e7/0x1040 [ 34.709380] ? check_same_owner+0x340/0x340 [ 34.713704] ? mark_held_locks+0x160/0x160 [ 34.717938] ? find_held_lock+0x36/0x1c0 [ 34.722008] preempt_schedule_common+0x22/0x60 [ 34.726610] _cond_resched+0x1d/0x30 [ 34.730326] wait_for_completion+0xa5/0x8d0 [ 34.734647] ? wait_for_completion_interruptible+0x950/0x950 [ 34.740444] ? __lockdep_init_map+0x105/0x590 [ 34.744941] ? __init_waitqueue_head+0x9e/0x150 [ 34.749609] ? init_wait_entry+0x1c0/0x1c0 [ 34.753847] __synchronize_srcu+0x189/0x240 [ 34.758175] ? call_srcu+0x10/0x10 [ 34.761715] ? rcu_unexpedite_gp+0x20/0x20 [ 34.765964] synchronize_srcu+0x335/0x56f [ 34.770113] ? lock_downgrade+0x8f0/0x8f0 [ 34.774258] ? synchronize_srcu_expedited+0x20/0x20 [ 34.779274] ? kasan_check_read+0x11/0x20 [ 34.783422] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.788006] ? kasan_check_write+0x14/0x20 [ 34.792250] ? do_raw_spin_lock+0xc1/0x200 [ 34.796490] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.802202] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.807649] ? kvfree+0x61/0x70 [ 34.810940] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.815957] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.820030] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.824443] ? kvm_arch_sync_events+0x30/0x30 [ 34.828941] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.834481] ? mmu_notifier_unregister+0x474/0x600 [ 34.839409] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.843819] ? kfree+0x111/0x210 [ 34.847188] ? __mmu_notifier_register+0x30/0x30 [ 34.851945] ? __free_pages+0x10a/0x190 [ 34.855923] ? free_unref_page+0x930/0x930 [ 34.860168] kvm_put_kvm+0x73f/0x1060 [ 34.863973] ? kvm_write_guest_cached+0x40/0x40 [ 34.868647] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.873146] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.877637] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.882224] ? kasan_check_write+0x14/0x20 [ 34.886455] ? do_raw_spin_lock+0xc1/0x200 [ 34.890696] ? kvm_irqfd_release+0xdd/0x120 [ 34.895013] ? kvm_irqfd_release+0xdd/0x120 [ 34.899349] ? kvm_put_kvm+0x1060/0x1060 [ 34.903409] kvm_vm_release+0x42/0x50 [ 34.907207] __fput+0x38a/0xa40 [ 34.910485] ? __alloc_file+0x400/0x400 [ 34.914463] ? check_same_owner+0x340/0x340 [ 34.918786] ? kasan_check_write+0x14/0x20 [ 34.923031] ? do_raw_spin_lock+0xc1/0x200 [ 34.927267] ____fput+0x15/0x20 [ 34.930559] task_work_run+0x1e8/0x2a0 [ 34.934446] ? task_work_cancel+0x240/0x240 [ 34.938777] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.944315] ? switch_task_namespaces+0xa2/0xd0 [ 34.948985] do_exit+0x1ae4/0x26e0 [ 34.952552] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.957227] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.961466] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.966480] ? kfree+0x1d7/0x210 [ 34.969865] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.974105] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.979835] ? is_bpf_text_address+0xd7/0x170 [ 34.984332] ? kernel_text_address+0x79/0xf0 [ 34.988737] ? __kernel_text_address+0xd/0x40 [ 34.993236] ? unwind_get_return_address+0x61/0xa0 [ 34.998168] ? __save_stack_trace+0x8d/0xf0 [ 35.002493] ? save_stack+0xa9/0xd0 [ 35.006118] ? save_stack+0x43/0xd0 [ 35.009741] ? __kasan_slab_free+0x11a/0x170 [ 35.014148] ? kasan_slab_free+0xe/0x10 [ 35.018119] ? putname+0xf2/0x130 [ 35.022063] ? __x64_sys_openat+0x9d/0x100 [ 35.026308] ? do_syscall_64+0x1b9/0x820 [ 35.030368] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.035735] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.040141] ? kasan_check_read+0x11/0x20 [ 35.044287] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.048695] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.053102] ? initcall_blacklisted+0x9a/0x1e0 [ 35.057685] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.062790] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.068502] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.074044] ? do_vfs_ioctl+0x201/0x1720 [ 35.078108] ? rcu_is_watching+0x8c/0x150 [ 35.082255] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.086584] ? ioctl_preallocate+0x300/0x300 [ 35.091032] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.096574] ? __fget_light+0x2f7/0x440 [ 35.100552] ? fget_raw+0x20/0x20 [ 35.104001] ? putname+0xf2/0x130 [ 35.107468] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.112484] ? kmem_cache_free+0x246/0x280 [ 35.116716] ? putname+0xf7/0x130 [ 35.120177] do_group_exit+0x177/0x440 [ 35.124068] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.128558] ? __ia32_sys_exit+0x50/0x50 [ 35.132627] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.137739] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.143278] ? ksys_ioctl+0x81/0xd0 [ 35.146922] __x64_sys_exit_group+0x3e/0x50 [ 35.151343] do_syscall_64+0x1b9/0x820 [ 35.155230] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.160598] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.165531] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.170380] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.175408] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.180426] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.185449] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.190296] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.195485] RIP: 0033:0x43ecf8 [ 35.198678] Code: Bad RIP value. [ 35.202044] RSP: 002b:00007ffcf0ad7b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.209771] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 35.217046] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.224317] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.231584] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.239189] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.246459] [ 35.248081] Allocated by task 4719: [ 35.251710] save_stack+0x43/0xd0 [ 35.255159] kasan_kmalloc+0xc4/0xe0 [ 35.258872] kasan_slab_alloc+0x12/0x20 [ 35.262861] kmem_cache_alloc+0x12e/0x710 [ 35.267006] vmx_create_vcpu+0xcf/0x2830 [ 35.271074] kvm_arch_vcpu_create+0xe5/0x220 [ 35.275483] kvm_vm_ioctl+0x488/0x1d80 [ 35.279366] do_vfs_ioctl+0x1de/0x1720 [ 35.283248] ksys_ioctl+0xa9/0xd0 [ 35.286702] __x64_sys_ioctl+0x73/0xb0 [ 35.290589] do_syscall_64+0x1b9/0x820 [ 35.294475] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.299651] [ 35.301272] Freed by task 4719: [ 35.304557] save_stack+0x43/0xd0 [ 35.308008] __kasan_slab_free+0x11a/0x170 [ 35.312255] kasan_slab_free+0xe/0x10 [ 35.316059] kmem_cache_free+0x86/0x280 [ 35.320039] vmx_free_vcpu+0x26b/0x300 [ 35.323926] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.328331] kvm_put_kvm+0x73f/0x1060 [ 35.332134] kvm_vm_release+0x42/0x50 [ 35.336112] __fput+0x38a/0xa40 [ 35.339456] ____fput+0x15/0x20 [ 35.342731] task_work_run+0x1e8/0x2a0 [ 35.346613] do_exit+0x1ae4/0x26e0 [ 35.350147] do_group_exit+0x177/0x440 [ 35.354039] __x64_sys_exit_group+0x3e/0x50 [ 35.358360] do_syscall_64+0x1b9/0x820 [ 35.362251] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.367429] [ 35.369055] The buggy address belongs to the object at ffff8801c7f78040 [ 35.369055] which belongs to the cache kvm_vcpu of size 23872 [ 35.381633] The buggy address is located 24 bytes inside of [ 35.381633] 23872-byte region [ffff8801c7f78040, ffff8801c7f7dd80) [ 35.393591] The buggy address belongs to the page: [ 35.398526] page:ffffea00071fde00 count:1 mapcount:0 mapping:ffff8801d9ea3240 index:0x0 compound_mapcount: 0 [ 35.408502] flags: 0x2fffc0000008100(slab|head) [ 35.413175] raw: 02fffc0000008100 ffff8801d525ba48 ffff8801d525ba48 ffff8801d9ea3240 [ 35.421067] raw: 0000000000000000 ffff8801c7f78040 0000000100000001 0000000000000000 [ 35.428942] page dumped because: kasan: bad access detected [ 35.434643] [ 35.436260] Memory state around the buggy address: [ 35.441189] ffff8801c7f77f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.448552] ffff8801c7f77f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.455911] >ffff8801c7f78000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.463263] ^ [ 35.469493] ffff8801c7f78080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.476851] ffff8801c7f78100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.484204] ================================================================== [ 35.491564] Kernel panic - not syncing: panic_on_warn set ... [ 35.491564] [ 35.498944] CPU: 1 PID: 4719 Comm: syz-executor056 Tainted: G B 4.19.0-rc1+ #216 [ 35.507779] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.517133] Call Trace: [ 35.519732] dump_stack+0x1c9/0x2b4 [ 35.523368] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.528564] ? lock_downgrade+0x8f0/0x8f0 [ 35.532715] ? __schedule+0xf54/0x1df0 [ 35.536606] panic+0x238/0x4e7 [ 35.539799] ? add_taint.cold.5+0x16/0x16 [ 35.543951] ? print_shadow_for_address+0xba/0x116 [ 35.548879] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.553289] ? trace_hardirqs_off+0x77/0x2b0 [ 35.557699] ? __schedule+0xf54/0x1df0 [ 35.561593] kasan_end_report+0x47/0x4f [ 35.565573] kasan_report.cold.7+0x76/0x30d [ 35.569901] __asan_report_load8_noabort+0x14/0x20 [ 35.574831] __schedule+0xf54/0x1df0 [ 35.578542] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.583654] ? __sched_text_start+0x8/0x8 [ 35.587804] ? __call_srcu+0x7e7/0x1040 [ 35.591795] ? check_same_owner+0x340/0x340 [ 35.596113] ? mark_held_locks+0x160/0x160 [ 35.600348] ? find_held_lock+0x36/0x1c0 [ 35.604538] preempt_schedule_common+0x22/0x60 [ 35.609134] _cond_resched+0x1d/0x30 [ 35.612850] wait_for_completion+0xa5/0x8d0 [ 35.617175] ? wait_for_completion_interruptible+0x950/0x950 [ 35.622976] ? __lockdep_init_map+0x105/0x590 [ 35.627476] ? __init_waitqueue_head+0x9e/0x150 [ 35.632146] ? init_wait_entry+0x1c0/0x1c0 [ 35.636385] __synchronize_srcu+0x189/0x240 [ 35.640708] ? call_srcu+0x10/0x10 [ 35.644253] ? rcu_unexpedite_gp+0x20/0x20 [ 35.648492] synchronize_srcu+0x335/0x56f [ 35.652642] ? lock_downgrade+0x8f0/0x8f0 [ 35.656792] ? synchronize_srcu_expedited+0x20/0x20 [ 35.661811] ? kasan_check_read+0x11/0x20 [ 35.665961] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.670554] ? kasan_check_write+0x14/0x20 [ 35.674788] ? do_raw_spin_lock+0xc1/0x200 [ 35.679039] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.684758] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.690209] ? kvfree+0x61/0x70 [ 35.693495] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.698514] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.702582] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.706995] ? kvm_arch_sync_events+0x30/0x30 [ 35.711504] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.717053] ? mmu_notifier_unregister+0x474/0x600 [ 35.721983] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.726393] ? kfree+0x111/0x210 [ 35.729761] ? __mmu_notifier_register+0x30/0x30 [ 35.734521] ? __free_pages+0x10a/0x190 [ 35.738506] ? free_unref_page+0x930/0x930 [ 35.742748] kvm_put_kvm+0x73f/0x1060 [ 35.746561] ? kvm_write_guest_cached+0x40/0x40 [ 35.751233] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.755727] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.760220] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.764806] ? kasan_check_write+0x14/0x20 [ 35.769048] ? do_raw_spin_lock+0xc1/0x200 [ 35.773290] ? kvm_irqfd_release+0xdd/0x120 [ 35.777610] ? kvm_irqfd_release+0xdd/0x120 [ 35.781934] ? kvm_put_kvm+0x1060/0x1060 [ 35.785996] kvm_vm_release+0x42/0x50 [ 35.789808] __fput+0x38a/0xa40 [ 35.793091] ? __alloc_file+0x400/0x400 [ 35.797101] ? check_same_owner+0x340/0x340 [ 35.801440] ? kasan_check_write+0x14/0x20 [ 35.805679] ? do_raw_spin_lock+0xc1/0x200 [ 35.809912] ____fput+0x15/0x20 [ 35.813192] task_work_run+0x1e8/0x2a0 [ 35.817085] ? task_work_cancel+0x240/0x240 [ 35.821427] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.826965] ? switch_task_namespaces+0xa2/0xd0 [ 35.831636] do_exit+0x1ae4/0x26e0 [ 35.835183] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.839858] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.844094] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.849111] ? kfree+0x1d7/0x210 [ 35.852480] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.856714] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.862424] ? is_bpf_text_address+0xd7/0x170 [ 35.866920] ? kernel_text_address+0x79/0xf0 [ 35.871329] ? __kernel_text_address+0xd/0x40 [ 35.875827] ? unwind_get_return_address+0x61/0xa0 [ 35.880756] ? __save_stack_trace+0x8d/0xf0 [ 35.885086] ? save_stack+0xa9/0xd0 [ 35.888715] ? save_stack+0x43/0xd0 [ 35.892339] ? __kasan_slab_free+0x11a/0x170 [ 35.896761] ? kasan_slab_free+0xe/0x10 [ 35.900734] ? putname+0xf2/0x130 [ 35.904184] ? __x64_sys_openat+0x9d/0x100 [ 35.908422] ? do_syscall_64+0x1b9/0x820 [ 35.912481] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.918112] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.922520] ? kasan_check_read+0x11/0x20 [ 35.926669] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.931081] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.935498] ? initcall_blacklisted+0x9a/0x1e0 [ 35.940085] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.945194] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.950908] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.956451] ? do_vfs_ioctl+0x201/0x1720 [ 35.960513] ? rcu_is_watching+0x8c/0x150 [ 35.964659] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.968982] ? ioctl_preallocate+0x300/0x300 [ 35.973391] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.978929] ? __fget_light+0x2f7/0x440 [ 35.982903] ? fget_raw+0x20/0x20 [ 35.986353] ? putname+0xf2/0x130 [ 35.989807] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.994824] ? kmem_cache_free+0x246/0x280 [ 35.999066] ? putname+0xf7/0x130 [ 36.002522] do_group_exit+0x177/0x440 [ 36.006416] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.010738] ? __ia32_sys_exit+0x50/0x50 [ 36.014800] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.019903] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.025905] ? ksys_ioctl+0x81/0xd0 [ 36.029551] __x64_sys_exit_group+0x3e/0x50 [ 36.033876] do_syscall_64+0x1b9/0x820 [ 36.037766] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.043135] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.048065] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.052907] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.057925] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.062943] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.067961] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.072809] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.077995] RIP: 0033:0x43ecf8 [ 36.081198] Code: Bad RIP value. [ 36.084561] RSP: 002b:00007ffcf0ad7b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.092272] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 36.099539] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.106814] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.114082] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.121348] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.128622] [ 36.128627] ====================================================== [ 36.128633] WARNING: possible circular locking dependency detected [ 36.128636] 4.19.0-rc1+ #216 Not tainted [ 36.128642] ------------------------------------------------------ [ 36.128647] syz-executor056/4719 is trying to acquire lock: [ 36.128650] 000000008f331754 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.128665] [ 36.128670] but task is already holding lock: [ 36.128673] 00000000bc2242d1 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.128687] [ 36.128691] which lock already depends on the new lock. [ 36.128694] [ 36.128696] [ 36.128701] the existing dependency chain (in reverse order) is: [ 36.128704] [ 36.128706] -> #3 (report_lock){....}: [ 36.128720] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.128724] kasan_report+0x8e/0x110 [ 36.128729] __asan_report_load8_noabort+0x14/0x20 [ 36.128733] __schedule+0xf54/0x1df0 [ 36.128737] preempt_schedule_common+0x22/0x60 [ 36.128741] _cond_resched+0x1d/0x30 [ 36.128745] wait_for_completion+0xa5/0x8d0 [ 36.128749] __synchronize_srcu+0x189/0x240 [ 36.128753] synchronize_srcu+0x335/0x56f [ 36.128758] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.128762] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.128767] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.128770] kvm_put_kvm+0x73f/0x1060 [ 36.128774] kvm_vm_release+0x42/0x50 [ 36.128778] __fput+0x38a/0xa40 [ 36.128782] ____fput+0x15/0x20 [ 36.128785] task_work_run+0x1e8/0x2a0 [ 36.128789] do_exit+0x1ae4/0x26e0 [ 36.128793] do_group_exit+0x177/0x440 [ 36.128797] __x64_sys_exit_group+0x3e/0x50 [ 36.128801] do_syscall_64+0x1b9/0x820 [ 36.128806] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.128808] [ 36.128811] -> #2 (&rq->lock){-.-.}: [ 36.128825] _raw_spin_lock+0x2a/0x40 [ 36.128829] task_fork_fair+0x93/0x680 [ 36.128832] sched_fork+0x44b/0xbd0 [ 36.128836] copy_process+0x235e/0x7ad0 [ 36.128840] _do_fork+0x1ca/0x1170 [ 36.128844] kernel_thread+0x34/0x40 [ 36.128848] rest_init+0x22/0xe4 [ 36.128851] start_kernel+0x913/0x94e [ 36.128856] x86_64_start_reservations+0x29/0x2b [ 36.128860] x86_64_start_kernel+0x76/0x79 [ 36.128864] secondary_startup_64+0xa4/0xb0 [ 36.128866] [ 36.128869] -> #1 (&p->pi_lock){-.-.}: [ 36.128883] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.128887] try_to_wake_up+0xd2/0x1250 [ 36.128891] wake_up_process+0x10/0x20 [ 36.128895] __up.isra.1+0x1c0/0x2a0 [ 36.128899] up+0x13c/0x1c0 [ 36.128903] __up_console_sem+0xbe/0x1b0 [ 36.128907] console_unlock+0x506/0x10d0 [ 36.128910] vprintk_emit+0x33a/0x910 [ 36.128914] vprintk_default+0x28/0x30 [ 36.128918] vprintk_func+0x7a/0x117 [ 36.128922] printk+0xa7/0xcf [ 36.128925] load_umh+0x51/0xbd [ 36.128929] do_one_initcall+0x127/0x838 [ 36.128934] kernel_init_freeable+0x4bb/0x5ae [ 36.128937] kernel_init+0x11/0x1b3 [ 36.128941] ret_from_fork+0x3a/0x50 [ 36.128943] [ 36.128946] -> #0 ((console_sem).lock){-...}: [ 36.128960] lock_acquire+0x1e4/0x4f0 [ 36.128965] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.128968] down_trylock+0x13/0x70 [ 36.128973] __down_trylock_console_sem+0xae/0x200 [ 36.128977] console_trylock+0x15/0xa0 [ 36.128981] vprintk_emit+0x31f/0x910 [ 36.128984] vprintk_default+0x28/0x30 [ 36.128988] vprintk_func+0x7a/0x117 [ 36.128992] printk+0xa7/0xcf [ 36.128996] kasan_report+0x9e/0x110 [ 36.129000] __asan_report_load8_noabort+0x14/0x20 [ 36.129004] __schedule+0xf54/0x1df0 [ 36.129008] preempt_schedule_common+0x22/0x60 [ 36.129012] _cond_resched+0x1d/0x30 [ 36.129027] wait_for_completion+0xa5/0x8d0 [ 36.129031] __synchronize_srcu+0x189/0x240 [ 36.129035] synchronize_srcu+0x335/0x56f [ 36.129040] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.129044] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.129049] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.129053] kvm_put_kvm+0x73f/0x1060 [ 36.129057] kvm_vm_release+0x42/0x50 [ 36.129061] __fput+0x38a/0xa40 [ 36.129064] ____fput+0x15/0x20 [ 36.129068] task_work_run+0x1e8/0x2a0 [ 36.129072] do_exit+0x1ae4/0x26e0 [ 36.129076] do_group_exit+0x177/0x440 [ 36.129080] __x64_sys_exit_group+0x3e/0x50 [ 36.129084] do_syscall_64+0x1b9/0x820 [ 36.129089] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.129091] [ 36.129096] other info that might help us debug this: [ 36.129098] [ 36.129101] Chain exists of: [ 36.129103] (console_sem).lock --> &rq->lock --> report_lock [ 36.129122] [ 36.129126] Possible unsafe locking scenario: [ 36.129128] [ 36.129132] CPU0 CPU1 [ 36.129136] ---- ---- [ 36.129139] lock(report_lock); [ 36.129148] lock(&rq->lock); [ 36.129158] lock(report_lock); [ 36.129166] lock((console_sem).lock); [ 36.129174] [ 36.129178] *** DEADLOCK *** [ 36.129180] [ 36.129184] 2 locks held by syz-executor056/4719: [ 36.129186] #0: 00000000a4a1b232 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.129204] #1: 00000000bc2242d1 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.129221] [ 36.129224] stack backtrace: [ 36.129230] CPU: 1 PID: 4719 Comm: syz-executor056 Not tainted 4.19.0-rc1+ #216 [ 36.129237] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.129240] Call Trace: [ 36.129244] dump_stack+0x1c9/0x2b4 [ 36.129249] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.129253] ? vprintk_func+0x100/0x117 [ 36.129257] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.129261] ? save_trace+0xe0/0x290 [ 36.129265] __lock_acquire+0x3449/0x5020 [ 36.129269] ? mark_held_locks+0x160/0x160 [ 36.129274] ? mark_held_locks+0x160/0x160 [ 36.129278] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.129282] ? is_bpf_text_address+0xd7/0x170 [ 36.129286] ? kernel_text_address+0x79/0xf0 [ 36.129290] ? __kernel_text_address+0xd/0x40 [ 36.129295] ? __save_stack_trace+0x8d/0xf0 [ 36.129299] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.129303] ? save_trace+0x290/0x290 [ 36.129307] ? save_stack_trace+0x1a/0x20 [ 36.129311] ? save_trace+0xe0/0x290 [ 36.129314] ? graph_lock+0x170/0x170 [ 36.129319] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.129323] lock_acquire+0x1e4/0x4f0 [ 36.129327] ? down_trylock+0x13/0x70 [ 36.129331] ? lock_release+0x9f0/0x9f0 [ 36.129335] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.129339] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.129344] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.129347] ? log_store+0x34f/0x4c0 [ 36.129351] ? vprintk_emit+0x31f/0x910 [ 36.129355] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.129359] ? down_trylock+0x13/0x70 [ 36.129363] down_trylock+0x13/0x70 [ 36.129367] __down_trylock_console_sem+0xae/0x200 [ 36.129371] console_trylock+0x15/0xa0 [ 36.129375] vprintk_emit+0x31f/0x910 [ 36.129379] ? wake_up_klogd+0x110/0x110 [ 36.129383] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.129387] ? kasan_check_read+0x11/0x20 [ 36.129392] ? rcu_is_watching+0x8c/0x150 [ 36.129395] ? rcu_pm_notify+0xc0/0xc0 [ 36.129399] ? lock_acquire+0x1e4/0x4f0 [ 36.129403] ? kasan_report+0x8e/0x110 [ 36.129407] ? __schedule+0xf54/0x1df0 [ 36.129411] vprintk_default+0x28/0x30 [ 36.129415] vprintk_func+0x7a/0x117 [ 36.129418] printk+0xa7/0xcf [ 36.129422] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.129427] ? kasan_check_write+0x14/0x20 [ 36.129431] ? do_raw_spin_lock+0xc1/0x200 [ 36.129435] ? do_raw_spin_lock+0xc1/0x200 [ 36.129438] kasan_report+0x9e/0x110 [ 36.129443] __asan_report_load8_noabort+0x14/0x20 [ 36.129447] __schedule+0xf54/0x1df0 [ 36.129451] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.129455] ? __sched_text_start+0x8/0x8 [ 36.129459] ? __call_srcu+0x7e7/0x1040 [ 36.129463] ? check_same_owner+0x340/0x340 [ 36.129467] ? mark_held_locks+0x160/0x160 [ 36.129471] ? find_held_lock+0x36/0x1c0 [ 36.129476] preempt_schedule_common+0x22/0x60 [ 36.129479] _cond_resched+0x1d/0x30 [ 36.129483] wait_for_completion+0xa5/0x8d0 [ 36.129488] ? wait_for_completion_interruptible+0x950/0x950 [ 36.129493] ? __lockdep_init_map+0x105/0x590 [ 36.129497] ? __init_waitqueue_head+0x9e/0x150 [ 36.129501] ? init_wait_entry+0x1c0/0x1c0 [ 36.129505] __synchronize_srcu+0x189/0x240 [ 36.129509] ? call_srcu+0x10/0x10 [ 36.129513] ? rcu_unexpedite_gp+0x20/0x20 [ 36.129517] synchronize_srcu+0x335/0x56f [ 36.129521] ? lock_downgrade+0x8f0/0x8f0 [ 36.129526] ? synchronize_srcu_expedited+0x20/0x20 [ 36.129530] ? kasan_check_read+0x11/0x20 [ 36.129534] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.129538] ? kasan_check_write+0x14/0x20 [ 36.129542] ? do_raw_spin_lock+0xc1/0x200 [ 36.129553] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.129558] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.129561] ? kvfree+0x61/0x70 [ 36.129566] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.129570] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.129574] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.129578] ? kvm_arch_sync_events+0x30/0x30 [ 36.129583] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.129588] ? mmu_notifier_unregister+0x474/0x600 [ 36.129592] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.129595] ? kfree+0x111/0x210 [ 36.129600] ? __mmu_notifier_register+0x30/0x30 [ 36.129604] ? __free_pages+0x10a/0x190 [ 36.129608] ? free_unref_page+0x930/0x930 [ 36.129612] kvm_put_kvm+0x73f/0x1060 [ 36.129616] ? kvm_write_guest_cached+0x40/0x40 [ 36.129620] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.129624] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.129629] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.129633] ? kasan_check_write+0x14/0x20 [ 36.129637] ? do_raw_spin_lock+0xc1/0x200 [ 36.129641] ? kvm_irqfd_release+0xdd/0x120 [ 36.129645] ? kvm_irqfd_release+0xdd/0x120 [ 36.129649] ? kvm_put_kvm+0x1060/0x1060 [ 36.129653] kvm_vm_release+0x42/0x50 [ 36.129657] __fput+0x38a/0xa40 [ 36.129660] ? __alloc_file+0x400/0x400 [ 36.129665] ? check_same_owner+0x340/0x340 [ 36.129669] ? kasan_check_write+0x14/0x20 [ 36.129673] ? do_raw_spin_lock+0xc1/0x200 [ 36.129676] ____fput+0x15/0x20 [ 36.129680] task_work_run+0x1e8/0x2a0 [ 36.129684] ? task_work_cancel+0x240/0x240 [ 36.129689] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.129693] ? switch_task_namespaces+0xa2/0xd0 [ 36.129697] do_exit+0x1ae4/0x26e0 [ 36.129701] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.129705] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.129710] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.129713] ? kfree+0x1d7/0x210 [ 36.129718] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.129722] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.129727] ? is_bpf_text_address+0xd7/0x170 [ 36.129729] ? [ 36.129737] Lost 55 message(s)! [ 37.200303] Shutting down cpus with NMI [ 38.261975] Dumping ftrace buffer: [ 38.265503] (ftrace buffer empty) [ 38.269193] Kernel Offset: disabled [ 38.272804] Rebooting in 86400 seconds..