[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.513275] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.924321] random: sshd: uninitialized urandom read (32 bytes read) [ 25.273896] random: sshd: uninitialized urandom read (32 bytes read) [ 25.796281] random: sshd: uninitialized urandom read (32 bytes read) [ 25.978622] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.60' (ECDSA) to the list of known hosts. [ 31.633357] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.727538] 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.760900] ================================================================== [ 31.770798] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.777025] Read of size 8 at addr ffff8801ae930058 by task syz-executor062/4442 [ 31.784546] [ 31.786174] CPU: 0 PID: 4442 Comm: syz-executor062 Not tainted 4.18.0+ #208 [ 31.793264] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.802603] Call Trace: [ 31.805188] dump_stack+0x1c9/0x2b4 [ 31.808814] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.813999] ? printk+0xa7/0xcf [ 31.817278] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.822031] ? __schedule+0xf54/0x1df0 [ 31.825915] print_address_description+0x6c/0x20b [ 31.830752] ? __schedule+0xf54/0x1df0 [ 31.834637] kasan_report.cold.7+0x242/0x30d [ 31.839041] __asan_report_load8_noabort+0x14/0x20 [ 31.843967] __schedule+0xf54/0x1df0 [ 31.847678] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.852781] ? __sched_text_start+0x8/0x8 [ 31.856928] ? __call_srcu+0x7e7/0x1040 [ 31.860908] ? check_same_owner+0x340/0x340 [ 31.865225] ? mark_held_locks+0x160/0x160 [ 31.869456] ? find_held_lock+0x36/0x1c0 [ 31.873517] preempt_schedule_common+0x22/0x60 [ 31.878092] _cond_resched+0x1d/0x30 [ 31.881803] wait_for_completion+0xa5/0x8d0 [ 31.886123] ? wait_for_completion_interruptible+0x950/0x950 [ 31.891917] ? __lockdep_init_map+0x105/0x590 [ 31.896407] ? __init_waitqueue_head+0x9e/0x150 [ 31.901070] ? init_wait_entry+0x1c0/0x1c0 [ 31.905305] __synchronize_srcu+0x189/0x240 [ 31.909640] ? call_srcu+0x10/0x10 [ 31.913181] ? rcu_unexpedite_gp+0x20/0x20 [ 31.917419] synchronize_srcu+0x335/0x56f [ 31.921565] ? lock_downgrade+0x8f0/0x8f0 [ 31.925706] ? synchronize_srcu_expedited+0x20/0x20 [ 31.930722] ? kasan_check_read+0x11/0x20 [ 31.934869] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.939456] ? kasan_check_write+0x14/0x20 [ 31.943685] ? do_raw_spin_lock+0xc1/0x200 [ 31.947921] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.953633] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.959075] ? kvfree+0x61/0x70 [ 31.962356] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.967376] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.971430] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.975834] ? kvm_arch_sync_events+0x30/0x30 [ 31.980345] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.985880] ? mmu_notifier_unregister+0x474/0x600 [ 31.990800] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.995204] ? kfree+0x111/0x210 [ 31.998568] ? __mmu_notifier_register+0x30/0x30 [ 32.003333] ? __free_pages+0x10a/0x190 [ 32.007307] ? free_unref_page+0x930/0x930 [ 32.011562] kvm_put_kvm+0x73f/0x1060 [ 32.015366] ? kvm_write_guest_cached+0x40/0x40 [ 32.020053] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.024543] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.029035] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.033615] ? kasan_check_write+0x14/0x20 [ 32.037846] ? do_raw_spin_lock+0xc1/0x200 [ 32.042077] ? kvm_irqfd_release+0xdd/0x120 [ 32.046390] ? kvm_irqfd_release+0xdd/0x120 [ 32.050711] ? kvm_put_kvm+0x1060/0x1060 [ 32.054764] kvm_vm_release+0x42/0x50 [ 32.058561] __fput+0x36e/0x8c0 [ 32.061836] ? __alloc_file+0x400/0x400 [ 32.065806] ? check_same_owner+0x340/0x340 [ 32.070126] ? kasan_check_write+0x14/0x20 [ 32.074355] ? do_raw_spin_lock+0xc1/0x200 [ 32.078583] ____fput+0x15/0x20 [ 32.081855] task_work_run+0x1e8/0x2a0 [ 32.085740] ? task_work_cancel+0x240/0x240 [ 32.090063] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.095598] ? switch_task_namespaces+0xa2/0xd0 [ 32.100267] do_exit+0x1ae4/0x26e0 [ 32.103809] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.108480] ? sock_destroy_inode+0x51/0x60 [ 32.112795] ? sockfs_dname+0x90/0x90 [ 32.116595] ? destroy_inode+0x15e/0x200 [ 32.120651] ? __destroy_inode+0x7f0/0x7f0 [ 32.124883] ? kasan_check_write+0x14/0x20 [ 32.129112] ? do_raw_spin_lock+0xc1/0x200 [ 32.133353] ? evict+0x5d5/0x990 [ 32.136713] ? destroy_inode+0x200/0x200 [ 32.140770] ? lock_downgrade+0x8f0/0x8f0 [ 32.144916] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.150448] ? kasan_check_read+0x11/0x20 [ 32.154588] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.158994] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.163573] ? iput+0x5ff/0xa00 [ 32.166854] ? inode_add_lru+0x2a0/0x2a0 [ 32.170909] ? inet6_create+0xc03/0x1250 [ 32.174967] ? inet6_net_init+0x8e0/0x8e0 [ 32.179110] ? rcu_is_watching+0x8c/0x150 [ 32.183251] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.187918] ? __sock_release+0x1a0/0x250 [ 32.192061] ? __sock_create+0x126/0x940 [ 32.196139] ? kernel_sock_ip_overhead+0x570/0x570 [ 32.201063] ? fget_raw+0x20/0x20 [ 32.204509] ? putname+0xf2/0x130 [ 32.207978] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.212992] ? kmem_cache_free+0x246/0x280 [ 32.217221] ? putname+0xf7/0x130 [ 32.220671] do_group_exit+0x177/0x440 [ 32.224554] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.228872] ? __ia32_sys_exit+0x50/0x50 [ 32.232926] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.238025] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.243559] ? ksys_ioctl+0x81/0xd0 [ 32.247187] __x64_sys_exit_group+0x3e/0x50 [ 32.251509] do_syscall_64+0x1b9/0x820 [ 32.255394] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.260757] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.265681] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.270518] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.275532] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.280544] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.285558] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.290405] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.295587] RIP: 0033:0x43ecf8 [ 32.298776] Code: Bad RIP value. [ 32.302133] RSP: 002b:00007ffdd212ab68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.310353] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 32.317620] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.324883] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.332141] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.339404] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.346670] [ 32.348287] Allocated by task 4442: [ 32.351921] save_stack+0x43/0xd0 [ 32.355368] kasan_kmalloc+0xc4/0xe0 [ 32.359075] kasan_slab_alloc+0x12/0x20 [ 32.363041] kmem_cache_alloc+0x12e/0x710 [ 32.367182] vmx_create_vcpu+0xcf/0x2830 [ 32.371240] kvm_arch_vcpu_create+0xe5/0x220 [ 32.375647] kvm_vm_ioctl+0x488/0x1d80 [ 32.379530] do_vfs_ioctl+0x1de/0x1720 [ 32.383412] ksys_ioctl+0xa9/0xd0 [ 32.386859] __x64_sys_ioctl+0x73/0xb0 [ 32.390740] do_syscall_64+0x1b9/0x820 [ 32.394626] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.399802] [ 32.401422] Freed by task 4442: [ 32.404695] save_stack+0x43/0xd0 [ 32.408144] __kasan_slab_free+0x11a/0x170 [ 32.412372] kasan_slab_free+0xe/0x10 [ 32.416163] kmem_cache_free+0x86/0x280 [ 32.420129] vmx_free_vcpu+0x26b/0x300 [ 32.424012] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.428418] kvm_put_kvm+0x73f/0x1060 [ 32.432212] kvm_vm_release+0x42/0x50 [ 32.436005] __fput+0x36e/0x8c0 [ 32.439491] ____fput+0x15/0x20 [ 32.442766] task_work_run+0x1e8/0x2a0 [ 32.446644] do_exit+0x1ae4/0x26e0 [ 32.450179] do_group_exit+0x177/0x440 [ 32.454058] __x64_sys_exit_group+0x3e/0x50 [ 32.458395] do_syscall_64+0x1b9/0x820 [ 32.462281] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.467464] [ 32.469084] The buggy address belongs to the object at ffff8801ae930040 [ 32.469084] which belongs to the cache kvm_vcpu of size 23872 [ 32.481652] The buggy address is located 24 bytes inside of [ 32.481652] 23872-byte region [ffff8801ae930040, ffff8801ae935d80) [ 32.493608] The buggy address belongs to the page: [ 32.498528] page:ffffea0006ba4c00 count:1 mapcount:0 mapping:ffff8801d57e8780 index:0x0 compound_mapcount: 0 [ 32.508494] flags: 0x2fffc0000008100(slab|head) [ 32.513160] raw: 02fffc0000008100 ffff8801d57ea648 ffff8801d57ea648 ffff8801d57e8780 [ 32.521039] raw: 0000000000000000 ffff8801ae930040 0000000100000001 0000000000000000 [ 32.528903] page dumped because: kasan: bad access detected [ 32.534597] [ 32.536210] Memory state around the buggy address: [ 32.541130] ffff8801ae92ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.548481] ffff8801ae92ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.555831] >ffff8801ae930000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.563177] ^ [ 32.569399] ffff8801ae930080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.576752] ffff8801ae930100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.584095] ================================================================== [ 32.591445] Kernel panic - not syncing: panic_on_warn set ... [ 32.591445] [ 32.598805] CPU: 0 PID: 4442 Comm: syz-executor062 Tainted: G B 4.18.0+ #208 [ 32.607281] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.616631] Call Trace: [ 32.619220] dump_stack+0x1c9/0x2b4 [ 32.622849] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.628044] ? lock_downgrade+0x8f0/0x8f0 [ 32.632189] ? __schedule+0xf54/0x1df0 [ 32.636069] panic+0x238/0x4e7 [ 32.639257] ? add_taint.cold.5+0x16/0x16 [ 32.643406] ? print_shadow_for_address+0xba/0x116 [ 32.648341] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.652742] ? trace_hardirqs_off+0x77/0x2b0 [ 32.657145] ? __schedule+0xf54/0x1df0 [ 32.661028] kasan_end_report+0x47/0x4f [ 32.665000] kasan_report.cold.7+0x76/0x30d [ 32.669335] __asan_report_load8_noabort+0x14/0x20 [ 32.674263] __schedule+0xf54/0x1df0 [ 32.677970] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.683072] ? __sched_text_start+0x8/0x8 [ 32.687214] ? __call_srcu+0x7e7/0x1040 [ 32.691193] ? check_same_owner+0x340/0x340 [ 32.695506] ? mark_held_locks+0x160/0x160 [ 32.699734] ? find_held_lock+0x36/0x1c0 [ 32.703798] preempt_schedule_common+0x22/0x60 [ 32.708374] _cond_resched+0x1d/0x30 [ 32.712087] wait_for_completion+0xa5/0x8d0 [ 32.716414] ? wait_for_completion_interruptible+0x950/0x950 [ 32.722205] ? __lockdep_init_map+0x105/0x590 [ 32.726697] ? __init_waitqueue_head+0x9e/0x150 [ 32.731367] ? init_wait_entry+0x1c0/0x1c0 [ 32.735598] __synchronize_srcu+0x189/0x240 [ 32.739912] ? call_srcu+0x10/0x10 [ 32.743452] ? rcu_unexpedite_gp+0x20/0x20 [ 32.747691] synchronize_srcu+0x335/0x56f [ 32.751840] ? lock_downgrade+0x8f0/0x8f0 [ 32.755984] ? synchronize_srcu_expedited+0x20/0x20 [ 32.760995] ? kasan_check_read+0x11/0x20 [ 32.765145] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.769859] ? kasan_check_write+0x14/0x20 [ 32.774141] ? do_raw_spin_lock+0xc1/0x200 [ 32.778389] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.784109] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.789561] ? kvfree+0x61/0x70 [ 32.792849] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.797885] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.801975] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.806388] ? kvm_arch_sync_events+0x30/0x30 [ 32.810886] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.816427] ? mmu_notifier_unregister+0x474/0x600 [ 32.821351] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.825755] ? kfree+0x111/0x210 [ 32.829123] ? __mmu_notifier_register+0x30/0x30 [ 32.833906] ? __free_pages+0x10a/0x190 [ 32.837891] ? free_unref_page+0x930/0x930 [ 32.842134] kvm_put_kvm+0x73f/0x1060 [ 32.845943] ? kvm_write_guest_cached+0x40/0x40 [ 32.850619] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.855128] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.859620] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.864208] ? kasan_check_write+0x14/0x20 [ 32.868444] ? do_raw_spin_lock+0xc1/0x200 [ 32.872687] ? kvm_irqfd_release+0xdd/0x120 [ 32.877005] ? kvm_irqfd_release+0xdd/0x120 [ 32.881367] ? kvm_put_kvm+0x1060/0x1060 [ 32.885430] kvm_vm_release+0x42/0x50 [ 32.889234] __fput+0x36e/0x8c0 [ 32.892517] ? __alloc_file+0x400/0x400 [ 32.896494] ? check_same_owner+0x340/0x340 [ 32.900814] ? kasan_check_write+0x14/0x20 [ 32.905047] ? do_raw_spin_lock+0xc1/0x200 [ 32.909280] ____fput+0x15/0x20 [ 32.912557] task_work_run+0x1e8/0x2a0 [ 32.916443] ? task_work_cancel+0x240/0x240 [ 32.920768] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.926324] ? switch_task_namespaces+0xa2/0xd0 [ 32.931005] do_exit+0x1ae4/0x26e0 [ 32.934551] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.939222] ? sock_destroy_inode+0x51/0x60 [ 32.943543] ? sockfs_dname+0x90/0x90 [ 32.947353] ? destroy_inode+0x15e/0x200 [ 32.951409] ? __destroy_inode+0x7f0/0x7f0 [ 32.955644] ? kasan_check_write+0x14/0x20 [ 32.959884] ? do_raw_spin_lock+0xc1/0x200 [ 32.964119] ? evict+0x5d5/0x990 [ 32.967487] ? destroy_inode+0x200/0x200 [ 32.971548] ? lock_downgrade+0x8f0/0x8f0 [ 32.975698] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.981238] ? kasan_check_read+0x11/0x20 [ 32.985388] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.989797] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.994383] ? iput+0x5ff/0xa00 [ 32.997671] ? inode_add_lru+0x2a0/0x2a0 [ 33.001730] ? inet6_create+0xc03/0x1250 [ 33.005805] ? inet6_net_init+0x8e0/0x8e0 [ 33.009966] ? rcu_is_watching+0x8c/0x150 [ 33.014109] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.018784] ? __sock_release+0x1a0/0x250 [ 33.022932] ? __sock_create+0x126/0x940 [ 33.026995] ? kernel_sock_ip_overhead+0x570/0x570 [ 33.031951] ? fget_raw+0x20/0x20 [ 33.035429] ? putname+0xf2/0x130 [ 33.038882] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.043894] ? kmem_cache_free+0x246/0x280 [ 33.048148] ? putname+0xf7/0x130 [ 33.051605] do_group_exit+0x177/0x440 [ 33.055495] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.059819] ? __ia32_sys_exit+0x50/0x50 [ 33.063898] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.069021] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.074565] ? ksys_ioctl+0x81/0xd0 [ 33.078215] __x64_sys_exit_group+0x3e/0x50 [ 33.082542] do_syscall_64+0x1b9/0x820 [ 33.086433] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.091802] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.096754] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.101598] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.106623] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.113215] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.118242] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.123094] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.128287] RIP: 0033:0x43ecf8 [ 33.131488] Code: Bad RIP value. [ 33.134847] RSP: 002b:00007ffdd212ab68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.142560] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 33.149837] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.157119] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.164398] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.171676] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.178958] [ 33.178964] ====================================================== [ 33.178969] WARNING: possible circular locking dependency detected [ 33.178973] 4.18.0+ #208 Not tainted [ 33.178978] ------------------------------------------------------ [ 33.178983] syz-executor062/4442 is trying to acquire lock: [ 33.178987] 0000000081a3f2d9 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.179002] [ 33.179006] but task is already holding lock: [ 33.179009] 0000000025825494 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.179024] [ 33.179028] which lock already depends on the new lock. [ 33.179030] [ 33.179033] [ 33.179038] the existing dependency chain (in reverse order) is: [ 33.179040] [ 33.179042] -> #3 (report_lock){....}: [ 33.179057] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.179061] kasan_report+0x8e/0x110 [ 33.179066] __asan_report_load8_noabort+0x14/0x20 [ 33.179069] __schedule+0xf54/0x1df0 [ 33.179074] preempt_schedule_common+0x22/0x60 [ 33.179077] _cond_resched+0x1d/0x30 [ 33.179082] wait_for_completion+0xa5/0x8d0 [ 33.179086] __synchronize_srcu+0x189/0x240 [ 33.179090] synchronize_srcu+0x335/0x56f [ 33.179095] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.179099] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.179103] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.179107] kvm_put_kvm+0x73f/0x1060 [ 33.179111] kvm_vm_release+0x42/0x50 [ 33.179114] __fput+0x36e/0x8c0 [ 33.179118] ____fput+0x15/0x20 [ 33.179122] task_work_run+0x1e8/0x2a0 [ 33.179125] do_exit+0x1ae4/0x26e0 [ 33.179129] do_group_exit+0x177/0x440 [ 33.179133] __x64_sys_exit_group+0x3e/0x50 [ 33.179137] do_syscall_64+0x1b9/0x820 [ 33.179142] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.179144] [ 33.179147] -> #2 (&rq->lock){-.-.}: [ 33.179161] _raw_spin_lock+0x2a/0x40 [ 33.179165] task_fork_fair+0x93/0x680 [ 33.179169] sched_fork+0x44b/0xbd0 [ 33.179173] copy_process+0x235e/0x7ad0 [ 33.179177] _do_fork+0x1ca/0x1170 [ 33.179181] kernel_thread+0x34/0x40 [ 33.179184] rest_init+0x22/0xe4 [ 33.179188] start_kernel+0x913/0x94e [ 33.179193] x86_64_start_reservations+0x29/0x2b [ 33.179197] x86_64_start_kernel+0x76/0x79 [ 33.179201] secondary_startup_64+0xa4/0xb0 [ 33.179203] [ 33.179206] -> #1 (&p->pi_lock){-.-.}: [ 33.179220] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.179224] try_to_wake_up+0xd2/0x1250 [ 33.179228] wake_up_process+0x10/0x20 [ 33.179232] __up.isra.1+0x1c0/0x2a0 [ 33.179235] up+0x13c/0x1c0 [ 33.179239] __up_console_sem+0xbe/0x1b0 [ 33.179243] console_unlock+0x506/0x10d0 [ 33.179247] vprintk_emit+0x33a/0x910 [ 33.179251] vprintk_default+0x28/0x30 [ 33.179255] vprintk_func+0x7a/0x117 [ 33.179258] printk+0xa7/0xcf [ 33.179262] load_umh+0x51/0xbd [ 33.179266] do_one_initcall+0x127/0x838 [ 33.179270] kernel_init_freeable+0x4bb/0x5ae [ 33.179274] kernel_init+0x11/0x1b3 [ 33.179277] ret_from_fork+0x3a/0x50 [ 33.179280] [ 33.179282] -> #0 ((console_sem).lock){-...}: [ 33.179296] lock_acquire+0x1e4/0x4f0 [ 33.179301] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.179304] down_trylock+0x13/0x70 [ 33.179309] __down_trylock_console_sem+0xae/0x200 [ 33.179321] console_trylock+0x15/0xa0 [ 33.179325] vprintk_emit+0x31f/0x910 [ 33.179329] vprintk_default+0x28/0x30 [ 33.179332] vprintk_func+0x7a/0x117 [ 33.179336] printk+0xa7/0xcf [ 33.179340] kasan_report+0x9e/0x110 [ 33.179344] __asan_report_load8_noabort+0x14/0x20 [ 33.179348] __schedule+0xf54/0x1df0 [ 33.179353] preempt_schedule_common+0x22/0x60 [ 33.179356] _cond_resched+0x1d/0x30 [ 33.179361] wait_for_completion+0xa5/0x8d0 [ 33.179365] __synchronize_srcu+0x189/0x240 [ 33.179369] synchronize_srcu+0x335/0x56f [ 33.179374] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.179378] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.179382] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.179386] kvm_put_kvm+0x73f/0x1060 [ 33.179390] kvm_vm_release+0x42/0x50 [ 33.179394] __fput+0x36e/0x8c0 [ 33.179397] ____fput+0x15/0x20 [ 33.179401] task_work_run+0x1e8/0x2a0 [ 33.179405] do_exit+0x1ae4/0x26e0 [ 33.179409] do_group_exit+0x177/0x440 [ 33.179413] __x64_sys_exit_group+0x3e/0x50 [ 33.179417] do_syscall_64+0x1b9/0x820 [ 33.179422] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.179424] [ 33.179429] other info that might help us debug this: [ 33.179431] [ 33.179434] Chain exists of: [ 33.179436] (console_sem).lock --> &rq->lock --> report_lock [ 33.179455] [ 33.179459] Possible unsafe locking scenario: [ 33.179461] [ 33.179465] CPU0 CPU1 [ 33.179469] ---- ---- [ 33.179472] lock(report_lock); [ 33.179482] lock(&rq->lock); [ 33.179491] lock(report_lock); [ 33.179499] lock((console_sem).lock); [ 33.179507] [ 33.179510] *** DEADLOCK *** [ 33.179512] [ 33.179517] 2 locks held by syz-executor062/4442: [ 33.179519] #0: 00000000f895d9ea (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.179536] #1: 0000000025825494 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.179553] [ 33.179556] stack backtrace: [ 33.179562] CPU: 0 PID: 4442 Comm: syz-executor062 Not tainted 4.18.0+ #208 [ 33.179570] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.179573] Call Trace: [ 33.179577] dump_stack+0x1c9/0x2b4 [ 33.179581] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.179585] ? vprintk_func+0x100/0x117 [ 33.179590] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.179594] ? save_trace+0xe0/0x290 [ 33.179598] __lock_acquire+0x3449/0x5020 [ 33.179602] ? mark_held_locks+0x160/0x160 [ 33.179606] ? mark_held_locks+0x160/0x160 [ 33.179611] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.179615] ? is_bpf_text_address+0xd7/0x170 [ 33.179619] ? kernel_text_address+0x79/0xf0 [ 33.179623] ? __kernel_text_address+0xd/0x40 [ 33.179627] ? __save_stack_trace+0x8d/0xf0 [ 33.179632] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.179636] ? save_trace+0x290/0x290 [ 33.179640] ? save_stack_trace+0x1a/0x20 [ 33.179643] ? save_trace+0xe0/0x290 [ 33.179647] ? graph_lock+0x170/0x170 [ 33.179652] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.179662] lock_acquire+0x1e4/0x4f0 [ 33.179666] ? down_trylock+0x13/0x70 [ 33.179669] ? lock_release+0x9f0/0x9f0 [ 33.179674] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.179678] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.179682] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.179686] ? log_store+0x34f/0x4c0 [ 33.179690] ? vprintk_emit+0x31f/0x910 [ 33.179694] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.179698] ? down_trylock+0x13/0x70 [ 33.179702] down_trylock+0x13/0x70 [ 33.179706] __down_trylock_console_sem+0xae/0x200 [ 33.179710] console_trylock+0x15/0xa0 [ 33.179714] vprintk_emit+0x31f/0x910 [ 33.179718] ? wake_up_klogd+0x110/0x110 [ 33.179722] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.179726] ? kasan_check_read+0x11/0x20 [ 33.179730] ? rcu_is_watching+0x8c/0x150 [ 33.179734] ? rcu_pm_notify+0xc0/0xc0 [ 33.179738] ? lock_acquire+0x1e4/0x4f0 [ 33.179742] ? kasan_report+0x8e/0x110 [ 33.179746] ? __schedule+0xf54/0x1df0 [ 33.179750] vprintk_default+0x28/0x30 [ 33.179753] vprintk_func+0x7a/0x117 [ 33.179757] printk+0xa7/0xcf [ 33.179761] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.179765] ? kasan_check_write+0x14/0x20 [ 33.179769] ? do_raw_spin_lock+0xc1/0x200 [ 33.179773] ? do_raw_spin_lock+0xc1/0x200 [ 33.179777] kasan_report+0x9e/0x110 [ 33.179782] __asan_report_load8_noabort+0x14/0x20 [ 33.179785] __schedule+0xf54/0x1df0 [ 33.179790] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.179794] ? __sched_text_start+0x8/0x8 [ 33.179798] ? __call_srcu+0x7e7/0x1040 [ 33.179802] ? check_same_owner+0x340/0x340 [ 33.179806] ? mark_held_locks+0x160/0x160 [ 33.179810] ? find_held_lock+0x36/0x1c0 [ 33.179815] preempt_schedule_common+0x22/0x60 [ 33.179818] _cond_resched+0x1d/0x30 [ 33.179822] wait_for_completion+0xa5/0x8d0 [ 33.179827] ? wait_for_completion_interruptible+0x950/0x950 [ 33.179832] ? __lockdep_init_map+0x105/0x590 [ 33.179836] ? __init_waitqueue_head+0x9e/0x150 [ 33.179840] ? init_wait_entry+0x1c0/0x1c0 [ 33.179844] __synchronize_srcu+0x189/0x240 [ 33.179848] ? call_srcu+0x10/0x10 [ 33.179852] ? rcu_unexpedite_gp+0x20/0x20 [ 33.179856] synchronize_srcu+0x335/0x56f [ 33.179860] ? lock_downgrade+0x8f0/0x8f0 [ 33.179865] ? synchronize_srcu_expedited+0x20/0x20 [ 33.179869] ? kasan_check_read+0x11/0x20 [ 33.179873] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.179877] ? kasan_check_write+0x14/0x20 [ 33.179881] ? do_raw_spin_lock+0xc1/0x200 [ 33.179886] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.179891] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.179895] ? kvfree+0x61/0x70 [ 33.179899] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.179903] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.179908] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.179912] ? kvm_arch_sync_events+0x30/0x30 [ 33.179917] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.179922] ? mmu_notifier_unregister+0x474/0x600 [ 33.179926] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.179930] ? kfree+0x111/0x210 [ 33.179934] ? __mmu_notifier_register+0x30/0x30 [ 33.179938] ? __free_pages+0x10a/0x190 [ 33.179942] ? free_unref_page+0x930/0x930 [ 33.179946] kvm_put_kvm+0x73f/0x1060 [ 33.179951] ? kvm_write_guest_cached+0x40/0x40 [ 33.179955] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.179959] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.179963] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.179967] ? kasan_check_write+0x14/0x20 [ 33.179972] ? do_raw_spin_lock+0xc1/0x200 [ 33.179976] ? kvm_irqfd_release+0xdd/0x120 [ 33.179980] ? kvm_irqfd_release+0xdd/0x120 [ 33.179984] ? kvm_put_kvm+0x1060/0x1060 [ 33.179988] kvm_vm_release+0x42/0x50 [ 33.179991] __fput+0x36e/0x8c0 [ 33.179995] ? __alloc_file+0x400/0x400 [ 33.179999] ? check_same_owner+0x340/0x340 [ 33.180003] ? kasan_check_write+0x14/0x20 [ 33.180007] ? do_raw_spin_lock+0xc1/0x200 [ 33.180011] ____fput+0x15/0x20 [ 33.180015] task_work_run+0x1e8/0x2a0 [ 33.180019] ? task_work_cancel+0x240/0x240 [ 33.180024] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.180028] ? switch_task_namespaces+0xa2/0xd0 [ 33.180032] do_exit+0x1ae4/0x26e0 [ 33.180036] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.180040] ? sock_destroy_inode+0x51/0x60 [ 33.180044] ? sockfs_dname+0x90/0x90 [ 33.180048] ? destroy_inode+0x15e/0x200 [ 33.180052] ? __destroy_inode+0x7f0/0x7f0 [ 33.180056] ? kasan_check_write+0x14/0x20 [ 33.180060] ? do_raw_spin_lock+0xc1/0x200 [ 33.180064] ? evict+0x5d5/0x990 [ 33.180067] ? destroy_i [ 33.180075] Lost 44 message(s)! [ 34.260862] Shutting down cpus with NMI [ 35.321279] Dumping ftrace buffer: [ 35.324801] (ftrace buffer empty) [ 35.328486] Kernel Offset: disabled [ 35.332093] Rebooting in 86400 seconds..