[....] Starting OpenBSD Secure Shell server: sshd[ 22.995219] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.540202] random: sshd: uninitialized urandom read (32 bytes read) [ 24.783201] random: sshd: uninitialized urandom read (32 bytes read) [ 25.314539] random: sshd: uninitialized urandom read (32 bytes read) [ 25.469466] sshd (4441) used greatest stack depth: 17064 bytes left [ 28.673557] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.202' (ECDSA) to the list of known hosts. [ 34.219970] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.313172] 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.338077] ================================================================== [ 34.347996] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.354219] Read of size 8 at addr ffff8801ac950058 by task syz-executor398/4452 [ 34.361734] [ 34.363359] CPU: 1 PID: 4452 Comm: syz-executor398 Not tainted 4.19.0-rc1+ #211 [ 34.370793] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.380146] Call Trace: [ 34.382732] dump_stack+0x1c9/0x2b4 [ 34.386443] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.391629] ? printk+0xa7/0xcf [ 34.394903] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.399655] ? __schedule+0xf54/0x1df0 [ 34.403538] print_address_description+0x6c/0x20b [ 34.408376] ? __schedule+0xf54/0x1df0 [ 34.412260] kasan_report.cold.7+0x242/0x30d [ 34.416666] __asan_report_load8_noabort+0x14/0x20 [ 34.421589] __schedule+0xf54/0x1df0 [ 34.425301] ? __sched_text_start+0x8/0x8 [ 34.429447] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.434547] ? __call_srcu+0x7e7/0x1040 [ 34.438528] ? check_same_owner+0x340/0x340 [ 34.442842] ? mark_held_locks+0x160/0x160 [ 34.447073] ? find_held_lock+0x36/0x1c0 [ 34.451135] preempt_schedule_common+0x22/0x60 [ 34.455711] _cond_resched+0x1d/0x30 [ 34.459417] wait_for_completion+0xa5/0x8d0 [ 34.463738] ? wait_for_completion_interruptible+0x950/0x950 [ 34.469529] ? __lockdep_init_map+0x105/0x590 [ 34.474023] ? __init_waitqueue_head+0x9e/0x150 [ 34.478685] ? init_wait_entry+0x1c0/0x1c0 [ 34.482920] __synchronize_srcu+0x189/0x240 [ 34.487255] ? call_srcu+0x10/0x10 [ 34.490794] ? rcu_unexpedite_gp+0x20/0x20 [ 34.495040] synchronize_srcu+0x335/0x56f [ 34.499181] ? lock_downgrade+0x8f0/0x8f0 [ 34.503323] ? synchronize_srcu_expedited+0x20/0x20 [ 34.508336] ? kasan_check_read+0x11/0x20 [ 34.512483] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.517060] ? kasan_check_write+0x14/0x20 [ 34.521289] ? do_raw_spin_lock+0xc1/0x200 [ 34.525523] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.531230] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.536674] ? kvfree+0x61/0x70 [ 34.539959] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.544975] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.549030] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.553433] ? kvm_arch_sync_events+0x30/0x30 [ 34.557929] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.563472] ? mmu_notifier_unregister+0x474/0x600 [ 34.568396] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.572801] ? kfree+0x111/0x210 [ 34.576171] ? __mmu_notifier_register+0x30/0x30 [ 34.580925] ? __free_pages+0x10a/0x190 [ 34.584904] ? free_unref_page+0x930/0x930 [ 34.589144] kvm_put_kvm+0x73f/0x1060 [ 34.592951] ? kvm_write_guest_cached+0x40/0x40 [ 34.597625] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.602113] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.606604] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.611189] ? kasan_check_write+0x14/0x20 [ 34.615419] ? do_raw_spin_lock+0xc1/0x200 [ 34.619652] ? kvm_irqfd_release+0xdd/0x120 [ 34.623973] ? kvm_irqfd_release+0xdd/0x120 [ 34.628293] ? kvm_put_kvm+0x1060/0x1060 [ 34.632353] kvm_vm_release+0x42/0x50 [ 34.636149] __fput+0x36e/0x8c0 [ 34.639427] ? __alloc_file+0x400/0x400 [ 34.643401] ? check_same_owner+0x340/0x340 [ 34.647720] ? kasan_check_write+0x14/0x20 [ 34.651953] ? do_raw_spin_lock+0xc1/0x200 [ 34.656181] ____fput+0x15/0x20 [ 34.659456] task_work_run+0x1e8/0x2a0 [ 34.663337] ? task_work_cancel+0x240/0x240 [ 34.667655] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.673190] ? switch_task_namespaces+0xa2/0xd0 [ 34.677857] do_exit+0x1ae4/0x26e0 [ 34.681395] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.686062] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.690293] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.695301] ? kfree+0x1d7/0x210 [ 34.698663] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.702895] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.708603] ? is_bpf_text_address+0xd7/0x170 [ 34.713092] ? kernel_text_address+0x79/0xf0 [ 34.717494] ? __kernel_text_address+0xd/0x40 [ 34.721985] ? unwind_get_return_address+0x61/0xa0 [ 34.726911] ? __save_stack_trace+0x8d/0xf0 [ 34.731235] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.735987] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.740562] ? retint_kernel+0x10/0x10 [ 34.744443] ? trace_hardirqs_on_caller+0xc0/0x2b0 [ 34.749369] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.754117] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 34.759559] ? save_stack+0x43/0xd0 [ 34.763180] ? __kasan_slab_free+0x11a/0x170 [ 34.767581] ? kasan_slab_free+0xe/0x10 [ 34.771566] ? putname+0xf2/0x130 [ 34.775015] ? __x64_sys_openat+0x9d/0x100 [ 34.779250] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.784005] ? retint_kernel+0x10/0x10 [ 34.787887] ? initcall_blacklisted+0x9a/0x1e0 [ 34.792471] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.798182] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.803715] ? do_vfs_ioctl+0x201/0x1720 [ 34.807769] ? rcu_is_watching+0x8c/0x150 [ 34.811913] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.816238] ? ioctl_preallocate+0x300/0x300 [ 34.820642] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.826178] ? __fget_light+0x2f7/0x440 [ 34.830146] ? fget_raw+0x20/0x20 [ 34.833592] ? putname+0xf2/0x130 [ 34.837044] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.842053] ? kmem_cache_free+0x246/0x280 [ 34.846280] ? putname+0xf7/0x130 [ 34.849731] do_group_exit+0x177/0x440 [ 34.853611] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.857928] ? __ia32_sys_exit+0x50/0x50 [ 34.861989] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.867086] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.872606] ? ksys_ioctl+0x81/0xd0 [ 34.876215] __x64_sys_exit_group+0x3e/0x50 [ 34.880518] do_syscall_64+0x1b9/0x820 [ 34.884388] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.889747] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.894677] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.899522] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.905000] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.910012] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.915030] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.919876] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.925059] RIP: 0033:0x43ecf8 [ 34.928251] Code: Bad RIP value. [ 34.931606] RSP: 002b:00007ffc15a44148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.939309] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 34.946574] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.953836] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.961099] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.968358] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.975626] [ 34.977279] Allocated by task 4452: [ 34.980901] save_stack+0x43/0xd0 [ 34.984348] kasan_kmalloc+0xc4/0xe0 [ 34.988054] kasan_slab_alloc+0x12/0x20 [ 34.992019] kmem_cache_alloc+0x12e/0x710 [ 34.996158] vmx_create_vcpu+0xcf/0x2830 [ 35.000212] kvm_arch_vcpu_create+0xe5/0x220 [ 35.004614] kvm_vm_ioctl+0x488/0x1d80 [ 35.008497] do_vfs_ioctl+0x1de/0x1720 [ 35.012375] ksys_ioctl+0xa9/0xd0 [ 35.015832] __x64_sys_ioctl+0x73/0xb0 [ 35.019713] do_syscall_64+0x1b9/0x820 [ 35.023601] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.028775] [ 35.030394] Freed by task 4452: [ 35.033672] save_stack+0x43/0xd0 [ 35.037118] __kasan_slab_free+0x11a/0x170 [ 35.041342] kasan_slab_free+0xe/0x10 [ 35.045133] kmem_cache_free+0x86/0x280 [ 35.049099] vmx_free_vcpu+0x26b/0x300 [ 35.053030] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.057436] kvm_put_kvm+0x73f/0x1060 [ 35.061234] kvm_vm_release+0x42/0x50 [ 35.065028] __fput+0x36e/0x8c0 [ 35.068300] ____fput+0x15/0x20 [ 35.071569] task_work_run+0x1e8/0x2a0 [ 35.075448] do_exit+0x1ae4/0x26e0 [ 35.078987] do_group_exit+0x177/0x440 [ 35.082867] __x64_sys_exit_group+0x3e/0x50 [ 35.087182] do_syscall_64+0x1b9/0x820 [ 35.091068] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.096241] [ 35.097863] The buggy address belongs to the object at ffff8801ac950040 [ 35.097863] which belongs to the cache kvm_vcpu of size 23872 [ 35.110431] The buggy address is located 24 bytes inside of [ 35.110431] 23872-byte region [ffff8801ac950040, ffff8801ac955d80) [ 35.122381] The buggy address belongs to the page: [ 35.127304] page:ffffea0006b25400 count:1 mapcount:0 mapping:ffff8801d5736900 index:0x0 compound_mapcount: 0 [ 35.137270] flags: 0x2fffc0000008100(slab|head) [ 35.141937] raw: 02fffc0000008100 ffff8801d5732248 ffff8801d5732248 ffff8801d5736900 [ 35.149824] raw: 0000000000000000 ffff8801ac950040 0000000100000001 0000000000000000 [ 35.157693] page dumped because: kasan: bad access detected [ 35.163387] [ 35.165009] Memory state around the buggy address: [ 35.169930] ffff8801ac94ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.177280] ffff8801ac94ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.184630] >ffff8801ac950000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.191976] ^ [ 35.198200] ffff8801ac950080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.205548] ffff8801ac950100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.212896] ================================================================== [ 35.220245] Kernel panic - not syncing: panic_on_warn set ... [ 35.220245] [ 35.227607] CPU: 1 PID: 4452 Comm: syz-executor398 Tainted: G B 4.19.0-rc1+ #211 [ 35.236440] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.245784] Call Trace: [ 35.248388] dump_stack+0x1c9/0x2b4 [ 35.252018] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.257205] ? lock_downgrade+0x8f0/0x8f0 [ 35.261351] ? __schedule+0xf54/0x1df0 [ 35.265232] panic+0x238/0x4e7 [ 35.268426] ? add_taint.cold.5+0x16/0x16 [ 35.272576] ? print_shadow_for_address+0xba/0x116 [ 35.277501] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.281903] ? trace_hardirqs_off+0x77/0x2b0 [ 35.286309] ? __schedule+0xf54/0x1df0 [ 35.290192] kasan_end_report+0x47/0x4f [ 35.294161] kasan_report.cold.7+0x76/0x30d [ 35.298480] __asan_report_load8_noabort+0x14/0x20 [ 35.303406] __schedule+0xf54/0x1df0 [ 35.307128] ? __sched_text_start+0x8/0x8 [ 35.311274] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.316374] ? __call_srcu+0x7e7/0x1040 [ 35.320350] ? check_same_owner+0x340/0x340 [ 35.324662] ? mark_held_locks+0x160/0x160 [ 35.328894] ? find_held_lock+0x36/0x1c0 [ 35.332952] preempt_schedule_common+0x22/0x60 [ 35.337531] _cond_resched+0x1d/0x30 [ 35.341242] wait_for_completion+0xa5/0x8d0 [ 35.345559] ? wait_for_completion_interruptible+0x950/0x950 [ 35.351350] ? __lockdep_init_map+0x105/0x590 [ 35.355850] ? __init_waitqueue_head+0x9e/0x150 [ 35.360513] ? init_wait_entry+0x1c0/0x1c0 [ 35.364748] __synchronize_srcu+0x189/0x240 [ 35.369061] ? call_srcu+0x10/0x10 [ 35.372625] ? rcu_unexpedite_gp+0x20/0x20 [ 35.376863] synchronize_srcu+0x335/0x56f [ 35.381006] ? lock_downgrade+0x8f0/0x8f0 [ 35.385149] ? synchronize_srcu_expedited+0x20/0x20 [ 35.390163] ? kasan_check_read+0x11/0x20 [ 35.394309] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.398889] ? kasan_check_write+0x14/0x20 [ 35.403119] ? do_raw_spin_lock+0xc1/0x200 [ 35.407353] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.413060] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.418503] ? kvfree+0x61/0x70 [ 35.421778] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.426788] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.430854] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.435258] ? kvm_arch_sync_events+0x30/0x30 [ 35.439756] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.445290] ? mmu_notifier_unregister+0x474/0x600 [ 35.450215] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.454618] ? kfree+0x111/0x210 [ 35.457982] ? __mmu_notifier_register+0x30/0x30 [ 35.462733] ? __free_pages+0x10a/0x190 [ 35.466704] ? free_unref_page+0x930/0x930 [ 35.470946] kvm_put_kvm+0x73f/0x1060 [ 35.474751] ? kvm_write_guest_cached+0x40/0x40 [ 35.479428] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.483921] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.488411] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.492999] ? kasan_check_write+0x14/0x20 [ 35.497230] ? do_raw_spin_lock+0xc1/0x200 [ 35.501463] ? kvm_irqfd_release+0xdd/0x120 [ 35.505778] ? kvm_irqfd_release+0xdd/0x120 [ 35.510095] ? kvm_put_kvm+0x1060/0x1060 [ 35.514150] kvm_vm_release+0x42/0x50 [ 35.517946] __fput+0x36e/0x8c0 [ 35.521224] ? __alloc_file+0x400/0x400 [ 35.525193] ? check_same_owner+0x340/0x340 [ 35.529515] ? kasan_check_write+0x14/0x20 [ 35.533742] ? do_raw_spin_lock+0xc1/0x200 [ 35.537969] ____fput+0x15/0x20 [ 35.541246] task_work_run+0x1e8/0x2a0 [ 35.545129] ? task_work_cancel+0x240/0x240 [ 35.549451] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.554998] ? switch_task_namespaces+0xa2/0xd0 [ 35.559666] do_exit+0x1ae4/0x26e0 [ 35.563203] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.567872] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.572106] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.577115] ? kfree+0x1d7/0x210 [ 35.580477] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.584711] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.590426] ? is_bpf_text_address+0xd7/0x170 [ 35.594914] ? kernel_text_address+0x79/0xf0 [ 35.599318] ? __kernel_text_address+0xd/0x40 [ 35.603819] ? unwind_get_return_address+0x61/0xa0 [ 35.608749] ? __save_stack_trace+0x8d/0xf0 [ 35.613068] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.617826] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.622403] ? retint_kernel+0x10/0x10 [ 35.626286] ? trace_hardirqs_on_caller+0xc0/0x2b0 [ 35.631212] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.635962] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 35.641409] ? save_stack+0x43/0xd0 [ 35.645037] ? __kasan_slab_free+0x11a/0x170 [ 35.649441] ? kasan_slab_free+0xe/0x10 [ 35.653407] ? putname+0xf2/0x130 [ 35.656864] ? __x64_sys_openat+0x9d/0x100 [ 35.661096] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.665851] ? retint_kernel+0x10/0x10 [ 35.669732] ? initcall_blacklisted+0x9a/0x1e0 [ 35.674316] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.680026] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.685561] ? do_vfs_ioctl+0x201/0x1720 [ 35.689618] ? rcu_is_watching+0x8c/0x150 [ 35.693760] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.698082] ? ioctl_preallocate+0x300/0x300 [ 35.702491] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.708022] ? __fget_light+0x2f7/0x440 [ 35.711990] ? fget_raw+0x20/0x20 [ 35.715443] ? putname+0xf2/0x130 [ 35.718893] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.723906] ? kmem_cache_free+0x246/0x280 [ 35.728136] ? putname+0xf7/0x130 [ 35.731590] do_group_exit+0x177/0x440 [ 35.735471] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.739785] ? __ia32_sys_exit+0x50/0x50 [ 35.743852] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.748952] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.754486] ? ksys_ioctl+0x81/0xd0 [ 35.758111] __x64_sys_exit_group+0x3e/0x50 [ 35.762435] do_syscall_64+0x1b9/0x820 [ 35.766324] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.771683] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.776843] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.781684] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.786697] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.791710] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.796722] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.801564] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.806744] RIP: 0033:0x43ecf8 [ 35.809935] Code: Bad RIP value. [ 35.813293] RSP: 002b:00007ffc15a44148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.820993] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 35.828257] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.835516] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.842778] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.850041] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.857313] [ 35.857319] ====================================================== [ 35.857324] WARNING: possible circular locking dependency detected [ 35.857328] 4.19.0-rc1+ #211 Not tainted [ 35.857334] ------------------------------------------------------ [ 35.857338] syz-executor398/4452 is trying to acquire lock: [ 35.857342] 000000006da80e7e ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.857357] [ 35.857361] but task is already holding lock: [ 35.857364] 00000000c16f8e12 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.857378] [ 35.857383] which lock already depends on the new lock. [ 35.857385] [ 35.857387] [ 35.857392] the existing dependency chain (in reverse order) is: [ 35.857395] [ 35.857397] -> #3 (report_lock){....}: [ 35.857416] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.857420] kasan_report+0x8e/0x110 [ 35.857425] __asan_report_load8_noabort+0x14/0x20 [ 35.857429] __schedule+0xf54/0x1df0 [ 35.857433] preempt_schedule_common+0x22/0x60 [ 35.857437] _cond_resched+0x1d/0x30 [ 35.857441] wait_for_completion+0xa5/0x8d0 [ 35.857445] __synchronize_srcu+0x189/0x240 [ 35.857449] synchronize_srcu+0x335/0x56f [ 35.857454] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.857458] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.857463] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.857466] kvm_put_kvm+0x73f/0x1060 [ 35.857470] kvm_vm_release+0x42/0x50 [ 35.857474] __fput+0x36e/0x8c0 [ 35.857477] ____fput+0x15/0x20 [ 35.857481] task_work_run+0x1e8/0x2a0 [ 35.857485] do_exit+0x1ae4/0x26e0 [ 35.857489] do_group_exit+0x177/0x440 [ 35.857493] __x64_sys_exit_group+0x3e/0x50 [ 35.857497] do_syscall_64+0x1b9/0x820 [ 35.857502] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.857504] [ 35.857506] -> #2 (&rq->lock){-.-.}: [ 35.857520] _raw_spin_lock+0x2a/0x40 [ 35.857524] task_fork_fair+0x93/0x680 [ 35.857528] sched_fork+0x44b/0xbd0 [ 35.857532] copy_process+0x235e/0x7ad0 [ 35.857535] _do_fork+0x1ca/0x1170 [ 35.857539] kernel_thread+0x34/0x40 [ 35.857543] rest_init+0x22/0xe4 [ 35.857547] start_kernel+0x913/0x94e [ 35.857551] x86_64_start_reservations+0x29/0x2b [ 35.857555] x86_64_start_kernel+0x76/0x79 [ 35.857559] secondary_startup_64+0xa4/0xb0 [ 35.857562] [ 35.857564] -> #1 (&p->pi_lock){-.-.}: [ 35.857578] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.857582] try_to_wake_up+0xd2/0x1250 [ 35.857586] wake_up_process+0x10/0x20 [ 35.857590] __up.isra.1+0x1c0/0x2a0 [ 35.857593] up+0x13c/0x1c0 [ 35.857597] __up_console_sem+0xbe/0x1b0 [ 35.857601] console_unlock+0x506/0x10d0 [ 35.857605] con_install+0x34e/0x420 [ 35.857609] tty_init_dev+0xfd/0x460 [ 35.857612] tty_open+0x692/0xb30 [ 35.857616] chrdev_open+0x25a/0x770 [ 35.857620] do_dentry_open+0x49c/0x1140 [ 35.857624] vfs_open+0xa0/0xd0 [ 35.857628] path_openat+0x12fb/0x5300 [ 35.857631] do_filp_open+0x255/0x380 [ 35.857635] do_sys_open+0x584/0x720 [ 35.857639] __x64_sys_open+0x7e/0xc0 [ 35.857643] do_syscall_64+0x1b9/0x820 [ 35.857648] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.857650] [ 35.857652] -> #0 ((console_sem).lock){-...}: [ 35.857667] lock_acquire+0x1e4/0x4f0 [ 35.857671] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.857675] down_trylock+0x13/0x70 [ 35.857679] __down_trylock_console_sem+0xae/0x200 [ 35.857683] console_trylock+0x15/0xa0 [ 35.857687] vprintk_emit+0x31f/0x910 [ 35.857691] vprintk_default+0x28/0x30 [ 35.857695] vprintk_func+0x7a/0x117 [ 35.857698] printk+0xa7/0xcf [ 35.857702] kasan_report+0x9e/0x110 [ 35.857707] __asan_report_load8_noabort+0x14/0x20 [ 35.857711] __schedule+0xf54/0x1df0 [ 35.857715] preempt_schedule_common+0x22/0x60 [ 35.857719] _cond_resched+0x1d/0x30 [ 35.857723] wait_for_completion+0xa5/0x8d0 [ 35.857727] __synchronize_srcu+0x189/0x240 [ 35.857731] synchronize_srcu+0x335/0x56f [ 35.857736] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.857741] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.857745] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.857749] kvm_put_kvm+0x73f/0x1060 [ 35.857753] kvm_vm_release+0x42/0x50 [ 35.857756] __fput+0x36e/0x8c0 [ 35.857760] ____fput+0x15/0x20 [ 35.857764] task_work_run+0x1e8/0x2a0 [ 35.857767] do_exit+0x1ae4/0x26e0 [ 35.857771] do_group_exit+0x177/0x440 [ 35.857775] __x64_sys_exit_group+0x3e/0x50 [ 35.857779] do_syscall_64+0x1b9/0x820 [ 35.857784] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.857786] [ 35.857791] other info that might help us debug this: [ 35.857793] [ 35.857796] Chain exists of: [ 35.857798] (console_sem).lock --> &rq->lock --> report_lock [ 35.857824] [ 35.857828] Possible unsafe locking scenario: [ 35.857830] [ 35.857834] CPU0 CPU1 [ 35.857838] ---- ---- [ 35.857840] lock(report_lock); [ 35.857850] lock(&rq->lock); [ 35.857859] lock(report_lock); [ 35.857867] lock((console_sem).lock); [ 35.857875] [ 35.857878] *** DEADLOCK *** [ 35.857880] [ 35.857885] 2 locks held by syz-executor398/4452: [ 35.857887] #0: 0000000019f56651 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.857904] #1: 00000000c16f8e12 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.857921] [ 35.857924] stack backtrace: [ 35.857930] CPU: 1 PID: 4452 Comm: syz-executor398 Not tainted 4.19.0-rc1+ #211 [ 35.857938] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.857941] Call Trace: [ 35.857944] dump_stack+0x1c9/0x2b4 [ 35.857949] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.857953] ? vprintk_func+0x100/0x117 [ 35.857958] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.857962] ? save_trace+0xe0/0x290 [ 35.857966] __lock_acquire+0x3449/0x5020 [ 35.857970] ? mark_held_locks+0x160/0x160 [ 35.857974] ? mark_held_locks+0x160/0x160 [ 35.857978] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.857982] ? is_bpf_text_address+0xd7/0x170 [ 35.857987] ? kernel_text_address+0x79/0xf0 [ 35.857991] ? __kernel_text_address+0xd/0x40 [ 35.857995] ? __save_stack_trace+0x8d/0xf0 [ 35.857999] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.858003] ? save_trace+0x290/0x290 [ 35.858007] ? save_stack_trace+0x1a/0x20 [ 35.858011] ? save_trace+0xe0/0x290 [ 35.858015] ? graph_lock+0x170/0x170 [ 35.858020] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.858023] lock_acquire+0x1e4/0x4f0 [ 35.858027] ? down_trylock+0x13/0x70 [ 35.858031] ? lock_release+0x9f0/0x9f0 [ 35.858035] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.858039] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.858044] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.858047] ? log_store+0x34f/0x4c0 [ 35.858051] ? vprintk_emit+0x31f/0x910 [ 35.858055] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.858059] ? down_trylock+0x13/0x70 [ 35.858063] down_trylock+0x13/0x70 [ 35.858067] __down_trylock_console_sem+0xae/0x200 [ 35.858071] console_trylock+0x15/0xa0 [ 35.858075] vprintk_emit+0x31f/0x910 [ 35.858079] ? wake_up_klogd+0x110/0x110 [ 35.858083] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.858087] ? kasan_check_read+0x11/0x20 [ 35.858091] ? rcu_is_watching+0x8c/0x150 [ 35.858095] ? rcu_pm_notify+0xc0/0xc0 [ 35.858099] ? lock_acquire+0x1e4/0x4f0 [ 35.858103] ? kasan_report+0x8e/0x110 [ 35.858107] ? __schedule+0xf54/0x1df0 [ 35.858111] vprintk_default+0x28/0x30 [ 35.858114] vprintk_func+0x7a/0x117 [ 35.858118] printk+0xa7/0xcf [ 35.858122] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.858126] ? kasan_check_write+0x14/0x20 [ 35.858130] ? do_raw_spin_lock+0xc1/0x200 [ 35.858134] ? do_raw_spin_lock+0xc1/0x200 [ 35.858138] kasan_report+0x9e/0x110 [ 35.858142] __asan_report_load8_noabort+0x14/0x20 [ 35.858146] __schedule+0xf54/0x1df0 [ 35.858150] ? __sched_text_start+0x8/0x8 [ 35.858155] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.858159] ? __call_srcu+0x7e7/0x1040 [ 35.858163] ? check_same_owner+0x340/0x340 [ 35.858167] ? mark_held_locks+0x160/0x160 [ 35.858171] ? find_held_lock+0x36/0x1c0 [ 35.858175] preempt_schedule_common+0x22/0x60 [ 35.858179] _cond_resched+0x1d/0x30 [ 35.858183] wait_for_completion+0xa5/0x8d0 [ 35.858188] ? wait_for_completion_interruptible+0x950/0x950 [ 35.858192] ? __lockdep_init_map+0x105/0x590 [ 35.858196] ? __init_waitqueue_head+0x9e/0x150 [ 35.858201] ? init_wait_entry+0x1c0/0x1c0 [ 35.858205] __synchronize_srcu+0x189/0x240 [ 35.858208] ? call_srcu+0x10/0x10 [ 35.858212] ? rcu_unexpedite_gp+0x20/0x20 [ 35.858216] synchronize_srcu+0x335/0x56f [ 35.858220] ? lock_downgrade+0x8f0/0x8f0 [ 35.858225] ? synchronize_srcu_expedited+0x20/0x20 [ 35.858229] ? kasan_check_read+0x11/0x20 [ 35.858233] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.858237] ? kasan_check_write+0x14/0x20 [ 35.858241] ? do_raw_spin_lock+0xc1/0x200 [ 35.858246] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.858251] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.858255] ? kvfree+0x61/0x70 [ 35.858259] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.858263] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.858267] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.858272] ? kvm_arch_sync_events+0x30/0x30 [ 35.858276] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.858281] ? mmu_notifier_unregister+0x474/0x600 [ 35.858285] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.858289] ? kfree+0x111/0x210 [ 35.858293] ? __mmu_notifier_register+0x30/0x30 [ 35.858297] ? __free_pages+0x10a/0x190 [ 35.858301] ? free_unref_page+0x930/0x930 [ 35.858305] kvm_put_kvm+0x73f/0x1060 [ 35.858309] ? kvm_write_guest_cached+0x40/0x40 [ 35.858313] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.858317] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.858322] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.858326] ? kasan_check_write+0x14/0x20 [ 35.858330] ? do_raw_spin_lock+0xc1/0x200 [ 35.858334] ? kvm_irqfd_release+0xdd/0x120 [ 35.858338] ? kvm_irqfd_release+0xdd/0x120 [ 35.858342] ? kvm_put_kvm+0x1060/0x1060 [ 35.858346] kvm_vm_release+0x42/0x50 [ 35.858349] __fput+0x36e/0x8c0 [ 35.858353] ? __alloc_file+0x400/0x400 [ 35.858357] ? check_same_owner+0x340/0x340 [ 35.858361] ? kasan_check_write+0x14/0x20 [ 35.858365] ? do_raw_spin_lock+0xc1/0x200 [ 35.858369] ____fput+0x15/0x20 [ 35.858373] task_work_run+0x1e8/0x2a0 [ 35.858377] ? task_work_cancel+0x240/0x240 [ 35.858381] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.858386] ? switch_task_namespaces+0xa2/0xd0 [ 35.858389] do_exit+0x1ae4/0x26e0 [ 35.858394] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.858398] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.858402] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.858406] ? kfree+0x1d7/0x210 [ 35.858409] ? kvm_vcpu_ [ 35.858421] Lost 58 message(s)! [ 36.924839] Shutting down cpus with NMI [ 37.984956] Dumping ftrace buffer: [ 37.988482] (ftrace buffer empty) [ 37.992169] Kernel Offset: disabled [ 37.995775] Rebooting in 86400 seconds..