[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.252941] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.891963] random: sshd: uninitialized urandom read (32 bytes read) [ 25.200103] random: sshd: uninitialized urandom read (32 bytes read) [ 25.774024] random: sshd: uninitialized urandom read (32 bytes read) [ 25.959291] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.193' (ECDSA) to the list of known hosts. [ 31.607927] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.713315] 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. [ 31.744128] ================================================================== [ 31.753924] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.760195] Read of size 8 at addr ffff8801bbbb0058 by task syz-executor262/4631 [ 31.767714] [ 31.769341] CPU: 0 PID: 4631 Comm: syz-executor262 Not tainted 4.19.0-rc2+ #224 [ 31.776777] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.786130] Call Trace: [ 31.788724] dump_stack+0x1c9/0x2b4 [ 31.792358] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.797546] ? printk+0xa7/0xcf [ 31.800836] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.805610] ? __schedule+0xf54/0x1df0 [ 31.809508] print_address_description+0x6c/0x20b [ 31.814359] ? __schedule+0xf54/0x1df0 [ 31.818267] kasan_report.cold.7+0x242/0x30d [ 31.822687] __asan_report_load8_noabort+0x14/0x20 [ 31.827623] __schedule+0xf54/0x1df0 [ 31.831341] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.836454] ? __sched_text_start+0x8/0x8 [ 31.840623] ? __call_srcu+0x7e7/0x1040 [ 31.844613] ? check_same_owner+0x340/0x340 [ 31.848928] ? mark_held_locks+0x160/0x160 [ 31.853161] ? find_held_lock+0x36/0x1c0 [ 31.857226] preempt_schedule_common+0x22/0x60 [ 31.861804] _cond_resched+0x1d/0x30 [ 31.865512] wait_for_completion+0xa5/0x8d0 [ 31.869834] ? wait_for_completion_interruptible+0x950/0x950 [ 31.875637] ? __lockdep_init_map+0x105/0x590 [ 31.880146] ? __init_waitqueue_head+0x9e/0x150 [ 31.884812] ? init_wait_entry+0x1c0/0x1c0 [ 31.889063] __synchronize_srcu+0x189/0x240 [ 31.893381] ? call_srcu+0x10/0x10 [ 31.896935] ? rcu_unexpedite_gp+0x20/0x20 [ 31.901197] synchronize_srcu+0x335/0x56f [ 31.905342] ? lock_downgrade+0x8f0/0x8f0 [ 31.909500] ? synchronize_srcu_expedited+0x20/0x20 [ 31.914517] ? kasan_check_read+0x11/0x20 [ 31.918666] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.923250] ? kasan_check_write+0x14/0x20 [ 31.927483] ? do_raw_spin_lock+0xc1/0x200 [ 31.931718] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.937427] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.942875] ? kvfree+0x61/0x70 [ 31.946152] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.951181] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.955237] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.959642] ? kvm_arch_sync_events+0x30/0x30 [ 31.964140] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.969676] ? mmu_notifier_unregister+0x474/0x600 [ 31.974598] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.979002] ? kfree+0x111/0x210 [ 31.982366] ? __mmu_notifier_register+0x30/0x30 [ 31.987122] ? __free_pages+0x10a/0x190 [ 31.991094] ? free_unref_page+0x930/0x930 [ 31.995334] kvm_put_kvm+0x73f/0x1060 [ 31.999137] ? kvm_write_guest_cached+0x40/0x40 [ 32.003803] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.008293] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.012787] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.017373] ? kasan_check_write+0x14/0x20 [ 32.021606] ? do_raw_spin_lock+0xc1/0x200 [ 32.025836] ? kvm_irqfd_release+0xdd/0x120 [ 32.030152] ? kvm_irqfd_release+0xdd/0x120 [ 32.034469] ? kvm_put_kvm+0x1060/0x1060 [ 32.038524] kvm_vm_release+0x42/0x50 [ 32.042319] __fput+0x38a/0xa40 [ 32.045603] ? __alloc_file+0x400/0x400 [ 32.049581] ? check_same_owner+0x340/0x340 [ 32.053902] ? kasan_check_write+0x14/0x20 [ 32.058132] ? do_raw_spin_lock+0xc1/0x200 [ 32.062363] ____fput+0x15/0x20 [ 32.065639] task_work_run+0x1e8/0x2a0 [ 32.069521] ? task_work_cancel+0x240/0x240 [ 32.073845] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.079382] ? switch_task_namespaces+0xa2/0xd0 [ 32.084049] do_exit+0x1ae4/0x26e0 [ 32.087599] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.092265] ? kvm_dev_ioctl+0x18a/0x1b10 [ 32.096414] ? kvm_debugfs_release+0x90/0x90 [ 32.100819] ? kasan_check_read+0x11/0x20 [ 32.104968] ? rcu_is_watching+0x8c/0x150 [ 32.109110] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.113775] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.118445] ? is_bpf_text_address+0xd7/0x170 [ 32.122937] ? kernel_text_address+0x79/0xf0 [ 32.127340] ? __kernel_text_address+0xd/0x40 [ 32.131834] ? unwind_get_return_address+0x61/0xa0 [ 32.136760] ? __save_stack_trace+0x8d/0xf0 [ 32.141084] ? save_stack+0xa9/0xd0 [ 32.144705] ? save_stack+0x43/0xd0 [ 32.148347] ? __kasan_slab_free+0x11a/0x170 [ 32.152747] ? kasan_slab_free+0xe/0x10 [ 32.156717] ? putname+0xf2/0x130 [ 32.160197] ? __x64_sys_openat+0x9d/0x100 [ 32.164433] ? do_syscall_64+0x1b9/0x820 [ 32.168496] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.173858] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.178260] ? kasan_check_read+0x11/0x20 [ 32.182402] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.186804] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.191211] ? kasan_check_write+0x14/0x20 [ 32.195446] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.200547] ? kvm_debugfs_release+0x90/0x90 [ 32.204971] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.210501] ? do_vfs_ioctl+0x201/0x1720 [ 32.214559] ? rcu_is_watching+0x8c/0x150 [ 32.218704] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.223028] ? ioctl_preallocate+0x300/0x300 [ 32.227436] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.233447] ? __fget_light+0x2f7/0x440 [ 32.237421] ? fget_raw+0x20/0x20 [ 32.240872] ? putname+0xf2/0x130 [ 32.244322] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.249334] ? kmem_cache_free+0x246/0x280 [ 32.253567] ? putname+0xf7/0x130 [ 32.257028] do_group_exit+0x177/0x440 [ 32.260910] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.265226] ? __ia32_sys_exit+0x50/0x50 [ 32.269293] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.274395] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.279943] ? ksys_ioctl+0x81/0xd0 [ 32.283582] __x64_sys_exit_group+0x3e/0x50 [ 32.287902] do_syscall_64+0x1b9/0x820 [ 32.291789] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.297150] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.302078] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.306917] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.311937] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.316959] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.321803] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.326987] RIP: 0033:0x43ee28 [ 32.330196] Code: Bad RIP value. [ 32.333561] RSP: 002b:00007ffd7d0dc208 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.341274] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee28 [ 32.348542] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.355814] RBP: 00000000004be6e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.363077] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.370341] R13: 00000000006d01a0 R14: 0000000000000000 R15: 0000000000000000 [ 32.377606] [ 32.379226] Allocated by task 4631: [ 32.382850] save_stack+0x43/0xd0 [ 32.386297] kasan_kmalloc+0xc4/0xe0 [ 32.390009] kasan_slab_alloc+0x12/0x20 [ 32.394001] kmem_cache_alloc+0x12e/0x710 [ 32.398148] vmx_create_vcpu+0xcf/0x2830 [ 32.402202] kvm_arch_vcpu_create+0xe5/0x220 [ 32.406606] kvm_vm_ioctl+0x488/0x1d80 [ 32.410489] do_vfs_ioctl+0x1de/0x1720 [ 32.414372] ksys_ioctl+0xa9/0xd0 [ 32.417819] __x64_sys_ioctl+0x73/0xb0 [ 32.421702] do_syscall_64+0x1b9/0x820 [ 32.425592] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.430769] [ 32.432392] Freed by task 4631: [ 32.435664] save_stack+0x43/0xd0 [ 32.439110] __kasan_slab_free+0x11a/0x170 [ 32.443338] kasan_slab_free+0xe/0x10 [ 32.447130] kmem_cache_free+0x86/0x280 [ 32.451102] vmx_free_vcpu+0x26b/0x300 [ 32.454981] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.459388] kvm_put_kvm+0x73f/0x1060 [ 32.463181] kvm_vm_release+0x42/0x50 [ 32.466977] __fput+0x38a/0xa40 [ 32.470251] ____fput+0x15/0x20 [ 32.473522] task_work_run+0x1e8/0x2a0 [ 32.477401] do_exit+0x1ae4/0x26e0 [ 32.480932] do_group_exit+0x177/0x440 [ 32.484817] __x64_sys_exit_group+0x3e/0x50 [ 32.489141] do_syscall_64+0x1b9/0x820 [ 32.493025] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.498200] [ 32.499820] The buggy address belongs to the object at ffff8801bbbb0040 [ 32.499820] which belongs to the cache kvm_vcpu of size 23872 [ 32.512405] The buggy address is located 24 bytes inside of [ 32.512405] 23872-byte region [ffff8801bbbb0040, ffff8801bbbb5d80) [ 32.524361] The buggy address belongs to the page: [ 32.529285] page:ffffea0006eeec00 count:1 mapcount:0 mapping:ffff8801d84d4180 index:0x0 compound_mapcount: 0 [ 32.539248] flags: 0x2fffc0000008100(slab|head) [ 32.543915] raw: 02fffc0000008100 ffff8801d5272e48 ffff8801d5272e48 ffff8801d84d4180 [ 32.551795] raw: 0000000000000000 ffff8801bbbb0040 0000000100000001 0000000000000000 [ 32.559660] page dumped because: kasan: bad access detected [ 32.565352] [ 32.566965] Memory state around the buggy address: [ 32.571884] ffff8801bbbaff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.579233] ffff8801bbbaff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.586614] >ffff8801bbbb0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.593971] ^ [ 32.600208] ffff8801bbbb0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.607578] ffff8801bbbb0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.614926] ================================================================== [ 32.622286] Kernel panic - not syncing: panic_on_warn set ... [ 32.622286] [ 32.629683] CPU: 0 PID: 4631 Comm: syz-executor262 Tainted: G B 4.19.0-rc2+ #224 [ 32.638522] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.647881] Call Trace: [ 32.650490] dump_stack+0x1c9/0x2b4 [ 32.654161] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.659371] ? lock_downgrade+0x8f0/0x8f0 [ 32.663538] ? __schedule+0xf54/0x1df0 [ 32.667436] panic+0x238/0x4e7 [ 32.670642] ? add_taint.cold.5+0x16/0x16 [ 32.674803] ? print_shadow_for_address+0xba/0x116 [ 32.679738] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.684143] ? trace_hardirqs_off+0x77/0x2b0 [ 32.688552] ? __schedule+0xf54/0x1df0 [ 32.692459] kasan_end_report+0x47/0x4f [ 32.696469] kasan_report.cold.7+0x76/0x30d [ 32.700800] __asan_report_load8_noabort+0x14/0x20 [ 32.705727] __schedule+0xf54/0x1df0 [ 32.709437] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.714539] ? __sched_text_start+0x8/0x8 [ 32.718688] ? __call_srcu+0x7e7/0x1040 [ 32.722669] ? check_same_owner+0x340/0x340 [ 32.726989] ? mark_held_locks+0x160/0x160 [ 32.731221] ? find_held_lock+0x36/0x1c0 [ 32.735285] preempt_schedule_common+0x22/0x60 [ 32.739866] _cond_resched+0x1d/0x30 [ 32.743585] wait_for_completion+0xa5/0x8d0 [ 32.747906] ? wait_for_completion_interruptible+0x950/0x950 [ 32.753703] ? __lockdep_init_map+0x105/0x590 [ 32.758198] ? __init_waitqueue_head+0x9e/0x150 [ 32.762865] ? init_wait_entry+0x1c0/0x1c0 [ 32.767106] __synchronize_srcu+0x189/0x240 [ 32.771437] ? call_srcu+0x10/0x10 [ 32.774975] ? rcu_unexpedite_gp+0x20/0x20 [ 32.779220] synchronize_srcu+0x335/0x56f [ 32.783375] ? lock_downgrade+0x8f0/0x8f0 [ 32.787518] ? synchronize_srcu_expedited+0x20/0x20 [ 32.792532] ? kasan_check_read+0x11/0x20 [ 32.796677] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.801253] ? kasan_check_write+0x14/0x20 [ 32.805485] ? do_raw_spin_lock+0xc1/0x200 [ 32.809718] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.815425] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.820873] ? kvfree+0x61/0x70 [ 32.824158] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.829170] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.833224] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.837640] ? kvm_arch_sync_events+0x30/0x30 [ 32.842139] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.847680] ? mmu_notifier_unregister+0x474/0x600 [ 32.852603] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.857005] ? kfree+0x111/0x210 [ 32.860370] ? __mmu_notifier_register+0x30/0x30 [ 32.865124] ? __free_pages+0x10a/0x190 [ 32.869098] ? free_unref_page+0x930/0x930 [ 32.873342] kvm_put_kvm+0x73f/0x1060 [ 32.877146] ? kvm_write_guest_cached+0x40/0x40 [ 32.881819] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.886312] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.890806] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.895390] ? kasan_check_write+0x14/0x20 [ 32.899635] ? do_raw_spin_lock+0xc1/0x200 [ 32.903874] ? kvm_irqfd_release+0xdd/0x120 [ 32.908205] ? kvm_irqfd_release+0xdd/0x120 [ 32.912530] ? kvm_put_kvm+0x1060/0x1060 [ 32.916591] kvm_vm_release+0x42/0x50 [ 32.920395] __fput+0x38a/0xa40 [ 32.923673] ? __alloc_file+0x400/0x400 [ 32.927653] ? check_same_owner+0x340/0x340 [ 32.931972] ? kasan_check_write+0x14/0x20 [ 32.936202] ? do_raw_spin_lock+0xc1/0x200 [ 32.940436] ____fput+0x15/0x20 [ 32.943717] task_work_run+0x1e8/0x2a0 [ 32.947602] ? task_work_cancel+0x240/0x240 [ 32.951930] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.957472] ? switch_task_namespaces+0xa2/0xd0 [ 32.962149] do_exit+0x1ae4/0x26e0 [ 32.965696] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.970368] ? kvm_dev_ioctl+0x18a/0x1b10 [ 32.974517] ? kvm_debugfs_release+0x90/0x90 [ 32.978919] ? kasan_check_read+0x11/0x20 [ 32.983063] ? rcu_is_watching+0x8c/0x150 [ 32.987211] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.991878] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.996553] ? is_bpf_text_address+0xd7/0x170 [ 33.001052] ? kernel_text_address+0x79/0xf0 [ 33.005460] ? __kernel_text_address+0xd/0x40 [ 33.009954] ? unwind_get_return_address+0x61/0xa0 [ 33.014894] ? __save_stack_trace+0x8d/0xf0 [ 33.019223] ? save_stack+0xa9/0xd0 [ 33.022846] ? save_stack+0x43/0xd0 [ 33.026468] ? __kasan_slab_free+0x11a/0x170 [ 33.030874] ? kasan_slab_free+0xe/0x10 [ 33.034844] ? putname+0xf2/0x130 [ 33.038297] ? __x64_sys_openat+0x9d/0x100 [ 33.042534] ? do_syscall_64+0x1b9/0x820 [ 33.046617] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.051980] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.056384] ? kasan_check_read+0x11/0x20 [ 33.060533] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.064964] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.069378] ? kasan_check_write+0x14/0x20 [ 33.073611] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.078720] ? kvm_debugfs_release+0x90/0x90 [ 33.083496] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.089077] ? do_vfs_ioctl+0x201/0x1720 [ 33.093140] ? rcu_is_watching+0x8c/0x150 [ 33.097286] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.101624] ? ioctl_preallocate+0x300/0x300 [ 33.106040] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.111592] ? __fget_light+0x2f7/0x440 [ 33.115569] ? fget_raw+0x20/0x20 [ 33.119051] ? putname+0xf2/0x130 [ 33.122539] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.127555] ? kmem_cache_free+0x246/0x280 [ 33.131792] ? putname+0xf7/0x130 [ 33.135245] do_group_exit+0x177/0x440 [ 33.139137] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.143463] ? __ia32_sys_exit+0x50/0x50 [ 33.147526] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.152627] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.158170] ? ksys_ioctl+0x81/0xd0 [ 33.161807] __x64_sys_exit_group+0x3e/0x50 [ 33.166129] do_syscall_64+0x1b9/0x820 [ 33.170022] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.175393] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.180328] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.185173] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.190213] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.195238] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.200097] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.205286] RIP: 0033:0x43ee28 [ 33.208476] Code: Bad RIP value. [ 33.211832] RSP: 002b:00007ffd7d0dc208 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.219547] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee28 [ 33.226822] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.234601] RBP: 00000000004be6e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.241872] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.249141] R13: 00000000006d01a0 R14: 0000000000000000 R15: 0000000000000000 [ 33.256426] [ 33.256431] ====================================================== [ 33.256437] WARNING: possible circular locking dependency detected [ 33.256440] 4.19.0-rc2+ #224 Not tainted [ 33.256445] ------------------------------------------------------ [ 33.256450] syz-executor262/4631 is trying to acquire lock: [ 33.256453] 00000000f4261c4a ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.256468] [ 33.256472] but task is already holding lock: [ 33.256475] 00000000a9e86cbb (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.256488] [ 33.256492] which lock already depends on the new lock. [ 33.256495] [ 33.256497] [ 33.256502] the existing dependency chain (in reverse order) is: [ 33.256504] [ 33.256506] -> #3 (report_lock){....}: [ 33.256520] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.256524] kasan_report+0x8e/0x110 [ 33.256528] __asan_report_load8_noabort+0x14/0x20 [ 33.256532] __schedule+0xf54/0x1df0 [ 33.256536] preempt_schedule_common+0x22/0x60 [ 33.256539] _cond_resched+0x1d/0x30 [ 33.256544] wait_for_completion+0xa5/0x8d0 [ 33.256548] __synchronize_srcu+0x189/0x240 [ 33.256551] synchronize_srcu+0x335/0x56f [ 33.256556] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.256560] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.256564] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.256568] kvm_put_kvm+0x73f/0x1060 [ 33.256578] kvm_vm_release+0x42/0x50 [ 33.256581] __fput+0x38a/0xa40 [ 33.256585] ____fput+0x15/0x20 [ 33.256588] task_work_run+0x1e8/0x2a0 [ 33.256592] do_exit+0x1ae4/0x26e0 [ 33.256596] do_group_exit+0x177/0x440 [ 33.256600] __x64_sys_exit_group+0x3e/0x50 [ 33.256604] do_syscall_64+0x1b9/0x820 [ 33.256608] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.256610] [ 33.256613] -> #2 (&rq->lock){-.-.}: [ 33.256626] _raw_spin_lock+0x2a/0x40 [ 33.256630] task_fork_fair+0x93/0x680 [ 33.256634] sched_fork+0x44b/0xbd0 [ 33.256637] copy_process+0x235e/0x7af0 [ 33.256641] _do_fork+0x1ca/0x1170 [ 33.256645] kernel_thread+0x34/0x40 [ 33.256648] rest_init+0x22/0xe4 [ 33.256652] start_kernel+0x913/0x94e [ 33.256656] x86_64_start_reservations+0x29/0x2b [ 33.256660] x86_64_start_kernel+0x76/0x79 [ 33.256664] secondary_startup_64+0xa4/0xb0 [ 33.256666] [ 33.256669] -> #1 (&p->pi_lock){-.-.}: [ 33.256683] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.256687] try_to_wake_up+0xd2/0x1250 [ 33.256690] wake_up_process+0x10/0x20 [ 33.256694] __up.isra.1+0x1c0/0x2a0 [ 33.256697] up+0x13c/0x1c0 [ 33.256701] __up_console_sem+0xbe/0x1b0 [ 33.256705] console_unlock+0x506/0x10d0 [ 33.256709] vprintk_emit+0x33a/0x910 [ 33.256713] vprintk_default+0x28/0x30 [ 33.256716] vprintk_func+0x7a/0x117 [ 33.256720] printk+0xa7/0xcf [ 33.256723] load_umh+0x51/0xbd [ 33.256727] do_one_initcall+0x127/0x838 [ 33.256731] kernel_init_freeable+0x4bb/0x5ae [ 33.256735] kernel_init+0x11/0x1b3 [ 33.256738] ret_from_fork+0x3a/0x50 [ 33.256740] [ 33.256743] -> #0 ((console_sem).lock){-...}: [ 33.256757] lock_acquire+0x1e4/0x4f0 [ 33.256761] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.256765] down_trylock+0x13/0x70 [ 33.256769] __down_trylock_console_sem+0xae/0x200 [ 33.256773] console_trylock+0x15/0xa0 [ 33.256776] vprintk_emit+0x31f/0x910 [ 33.256780] vprintk_default+0x28/0x30 [ 33.256784] vprintk_func+0x7a/0x117 [ 33.256787] printk+0xa7/0xcf [ 33.256791] kasan_report+0x9e/0x110 [ 33.256795] __asan_report_load8_noabort+0x14/0x20 [ 33.256799] __schedule+0xf54/0x1df0 [ 33.256803] preempt_schedule_common+0x22/0x60 [ 33.256807] _cond_resched+0x1d/0x30 [ 33.256811] wait_for_completion+0xa5/0x8d0 [ 33.256815] __synchronize_srcu+0x189/0x240 [ 33.256819] synchronize_srcu+0x335/0x56f [ 33.256824] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.256827] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.256831] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.256835] kvm_put_kvm+0x73f/0x1060 [ 33.256839] kvm_vm_release+0x42/0x50 [ 33.256842] __fput+0x38a/0xa40 [ 33.256846] ____fput+0x15/0x20 [ 33.256850] task_work_run+0x1e8/0x2a0 [ 33.256853] do_exit+0x1ae4/0x26e0 [ 33.256857] do_group_exit+0x177/0x440 [ 33.256861] __x64_sys_exit_group+0x3e/0x50 [ 33.256865] do_syscall_64+0x1b9/0x820 [ 33.256869] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.256871] [ 33.256876] other info that might help us debug this: [ 33.256878] [ 33.256881] Chain exists of: [ 33.256883] (console_sem).lock --> &rq->lock --> report_lock [ 33.256901] [ 33.256905] Possible unsafe locking scenario: [ 33.256907] [ 33.256911] CPU0 CPU1 [ 33.256915] ---- ---- [ 33.256917] lock(report_lock); [ 33.256926] lock(&rq->lock); [ 33.256935] lock(report_lock); [ 33.256943] lock((console_sem).lock); [ 33.256951] [ 33.256954] *** DEADLOCK *** [ 33.256956] [ 33.256960] 2 locks held by syz-executor262/4631: [ 33.256962] #0: 00000000beb5e340 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.256979] #1: 00000000a9e86cbb (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.256995] [ 33.256998] stack backtrace: [ 33.257004] CPU: 0 PID: 4631 Comm: syz-executor262 Not tainted 4.19.0-rc2+ #224 [ 33.257011] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.257014] Call Trace: [ 33.257018] dump_stack+0x1c9/0x2b4 [ 33.257022] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.257026] ? vprintk_func+0x100/0x117 [ 33.257030] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.257034] ? save_trace+0xe0/0x290 [ 33.257038] __lock_acquire+0x3449/0x5020 [ 33.257042] ? mark_held_locks+0x160/0x160 [ 33.257046] ? mark_held_locks+0x160/0x160 [ 33.257050] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.257054] ? is_bpf_text_address+0xd7/0x170 [ 33.257058] ? kernel_text_address+0x79/0xf0 [ 33.257062] ? __kernel_text_address+0xd/0x40 [ 33.257066] ? __save_stack_trace+0x8d/0xf0 [ 33.257070] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.257074] ? save_trace+0x290/0x290 [ 33.257079] ? save_stack_trace+0x1a/0x20 [ 33.257082] ? save_trace+0xe0/0x290 [ 33.257086] ? graph_lock+0x170/0x170 [ 33.257091] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.257094] lock_acquire+0x1e4/0x4f0 [ 33.257098] ? down_trylock+0x13/0x70 [ 33.257102] ? lock_release+0x9f0/0x9f0 [ 33.257106] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.257110] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.257114] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.257117] ? log_store+0x34f/0x4c0 [ 33.257125] ? vprintk_emit+0x31f/0x910 [ 33.257129] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.257132] ? down_trylock+0x13/0x70 [ 33.257136] down_trylock+0x13/0x70 [ 33.257146] __down_trylock_console_sem+0xae/0x200 [ 33.257150] console_trylock+0x15/0xa0 [ 33.257153] vprintk_emit+0x31f/0x910 [ 33.257157] ? wake_up_klogd+0x110/0x110 [ 33.257161] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.257165] ? kasan_check_read+0x11/0x20 [ 33.257169] ? rcu_is_watching+0x8c/0x150 [ 33.257173] ? rcu_pm_notify+0xc0/0xc0 [ 33.257177] ? lock_acquire+0x1e4/0x4f0 [ 33.257180] ? kasan_report+0x8e/0x110 [ 33.257184] ? __schedule+0xf54/0x1df0 [ 33.257188] vprintk_default+0x28/0x30 [ 33.257191] vprintk_func+0x7a/0x117 [ 33.257195] printk+0xa7/0xcf [ 33.257199] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.257203] ? kasan_check_write+0x14/0x20 [ 33.257210] ? do_raw_spin_lock+0xc1/0x200 [ 33.257214] ? do_raw_spin_lock+0xc1/0x200 [ 33.257217] kasan_report+0x9e/0x110 [ 33.257222] __asan_report_load8_noabort+0x14/0x20 [ 33.257225] __schedule+0xf54/0x1df0 [ 33.257230] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.257234] ? __sched_text_start+0x8/0x8 [ 33.257237] ? __call_srcu+0x7e7/0x1040 [ 33.257241] ? check_same_owner+0x340/0x340 [ 33.257245] ? mark_held_locks+0x160/0x160 [ 33.257249] ? find_held_lock+0x36/0x1c0 [ 33.257253] preempt_schedule_common+0x22/0x60 [ 33.257257] _cond_resched+0x1d/0x30 [ 33.257261] wait_for_completion+0xa5/0x8d0 [ 33.257266] ? wait_for_completion_interruptible+0x950/0x950 [ 33.257270] ? __lockdep_init_map+0x105/0x590 [ 33.257274] ? __init_waitqueue_head+0x9e/0x150 [ 33.257278] ? init_wait_entry+0x1c0/0x1c0 [ 33.257290] __synchronize_srcu+0x189/0x240 [ 33.257294] ? call_srcu+0x10/0x10 [ 33.257298] ? rcu_unexpedite_gp+0x20/0x20 [ 33.257301] synchronize_srcu+0x335/0x56f [ 33.257305] ? lock_downgrade+0x8f0/0x8f0 [ 33.257310] ? synchronize_srcu_expedited+0x20/0x20 [ 33.257317] ? kasan_check_read+0x11/0x20 [ 33.257321] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.257325] ? kasan_check_write+0x14/0x20 [ 33.257329] ? do_raw_spin_lock+0xc1/0x200 [ 33.257334] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.257338] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.257342] ? kvfree+0x61/0x70 [ 33.257346] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.257350] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.257354] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.257358] ? kvm_arch_sync_events+0x30/0x30 [ 33.257363] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.257367] ? mmu_notifier_unregister+0x474/0x600 [ 33.257371] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.257375] ? kfree+0x111/0x210 [ 33.257379] ? __mmu_notifier_register+0x30/0x30 [ 33.257382] ? __free_pages+0x10a/0x190 [ 33.257386] ? free_unref_page+0x930/0x930 [ 33.257390] kvm_put_kvm+0x73f/0x1060 [ 33.257394] ? kvm_write_guest_cached+0x40/0x40 [ 33.257398] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.257402] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.257406] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.257410] ? kasan_check_write+0x14/0x20 [ 33.257414] ? do_raw_spin_lock+0xc1/0x200 [ 33.257418] ? kvm_irqfd_release+0xdd/0x120 [ 33.257422] ? kvm_irqfd_release+0xdd/0x120 [ 33.257426] ? kvm_put_kvm+0x1060/0x1060 [ 33.257430] kvm_vm_release+0x42/0x50 [ 33.257433] __fput+0x38a/0xa40 [ 33.257437] ? __alloc_file+0x400/0x400 [ 33.257441] ? check_same_owner+0x340/0x340 [ 33.257445] ? kasan_check_write+0x14/0x20 [ 33.257448] ? do_raw_spin_lock+0xc1/0x200 [ 33.257452] ____fput+0x15/0x20 [ 33.257455] task_work_run+0x1e8/0x2a0 [ 33.257459] ? task_work_cancel+0x240/0x240 [ 33.257464] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.257468] ? switch_task_namespaces+0xa2/0xd0 [ 33.257472] do_exit+0x1ae4/0x26e0 [ 33.257476] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.257480] ? kvm_dev_ioctl+0x18a/0x1b10 [ 33.257484] ? kvm_debugfs_release+0x90/0x90 [ 33.257488] ? kasan_check_read+0x11/0x20 [ 33.257491] ? rcu_is_watching+0x8c/0x150 [ 33.257496] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.257500] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.257502] ? is_bpf_te [ 33.257511] Lost 55 message(s)! [ 34.337025] Shutting down cpus with NMI [ 35.396879] Dumping ftrace buffer: [ 35.400406] (ftrace buffer empty) [ 35.404097] Kernel Offset: disabled [ 35.407709] Rebooting in 86400 seconds..