[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.797545] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.571946] random: sshd: uninitialized urandom read (32 bytes read) [ 28.958064] random: sshd: uninitialized urandom read (32 bytes read) [ 29.529433] random: sshd: uninitialized urandom read (32 bytes read) [ 29.704346] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.48' (ECDSA) to the list of known hosts. [ 35.384542] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.480409] 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. [ 35.513892] ================================================================== [ 35.522683] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 35.528901] Read of size 8 at addr ffff8801aeeb8058 by task syz-executor749/4452 [ 35.536428] [ 35.538043] CPU: 1 PID: 4452 Comm: syz-executor749 Not tainted 4.18.0+ #206 [ 35.545122] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.554470] Call Trace: [ 35.557064] dump_stack+0x1c9/0x2b4 [ 35.560678] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.565851] ? printk+0xa7/0xcf [ 35.569120] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.573865] ? __schedule+0xf54/0x1df0 [ 35.577749] print_address_description+0x6c/0x20b [ 35.582580] ? __schedule+0xf54/0x1df0 [ 35.586460] kasan_report.cold.7+0x242/0x30d [ 35.590853] __asan_report_load8_noabort+0x14/0x20 [ 35.595769] __schedule+0xf54/0x1df0 [ 35.599468] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.604552] ? __sched_text_start+0x8/0x8 [ 35.608684] ? __call_srcu+0x7e7/0x1040 [ 35.612645] ? check_same_owner+0x340/0x340 [ 35.616949] ? mark_held_locks+0x160/0x160 [ 35.621166] ? find_held_lock+0x36/0x1c0 [ 35.625213] preempt_schedule_common+0x22/0x60 [ 35.629777] _cond_resched+0x1d/0x30 [ 35.633571] wait_for_completion+0xa5/0x8d0 [ 35.638001] ? wait_for_completion_interruptible+0x950/0x950 [ 35.643783] ? __lockdep_init_map+0x105/0x590 [ 35.648262] ? __init_waitqueue_head+0x9e/0x150 [ 35.652911] ? init_wait_entry+0x1c0/0x1c0 [ 35.657136] __synchronize_srcu+0x189/0x240 [ 35.661531] ? call_srcu+0x10/0x10 [ 35.665071] ? rcu_unexpedite_gp+0x20/0x20 [ 35.669290] synchronize_srcu+0x335/0x56f [ 35.673420] ? lock_downgrade+0x8f0/0x8f0 [ 35.677550] ? synchronize_srcu_expedited+0x20/0x20 [ 35.682551] ? kasan_check_read+0x11/0x20 [ 35.686685] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.691251] ? kasan_check_write+0x14/0x20 [ 35.695568] ? do_raw_spin_lock+0xc1/0x200 [ 35.699800] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.705496] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.710930] ? kvfree+0x61/0x70 [ 35.714197] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.719195] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.723239] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.727650] ? kvm_arch_sync_events+0x30/0x30 [ 35.732152] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.737677] ? mmu_notifier_unregister+0x474/0x600 [ 35.742595] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.746994] ? kfree+0x111/0x210 [ 35.750346] ? __mmu_notifier_register+0x30/0x30 [ 35.755088] ? __free_pages+0x10a/0x190 [ 35.759069] ? free_unref_page+0x930/0x930 [ 35.763293] kvm_put_kvm+0x73f/0x1060 [ 35.767081] ? kvm_write_guest_cached+0x40/0x40 [ 35.771757] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.776242] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.780729] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.785309] ? kasan_check_write+0x14/0x20 [ 35.789552] ? do_raw_spin_lock+0xc1/0x200 [ 35.793780] ? kvm_irqfd_release+0xdd/0x120 [ 35.798085] ? kvm_put_kvm+0x1060/0x1060 [ 35.802133] kvm_vm_release+0x42/0x50 [ 35.805920] __fput+0x36e/0x8c0 [ 35.809181] ? __alloc_file+0x400/0x400 [ 35.813142] ? check_same_owner+0x340/0x340 [ 35.817467] ? kasan_check_write+0x14/0x20 [ 35.821690] ? do_raw_spin_lock+0xc1/0x200 [ 35.825914] ____fput+0x15/0x20 [ 35.829176] task_work_run+0x1e8/0x2a0 [ 35.833045] ? task_work_cancel+0x240/0x240 [ 35.837350] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.842887] ? switch_task_namespaces+0xa2/0xd0 [ 35.847544] do_exit+0x1ae4/0x26e0 [ 35.851084] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.855753] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.859979] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.864976] ? kfree+0x1d7/0x210 [ 35.868325] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.872547] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.878240] ? is_bpf_text_address+0xd7/0x170 [ 35.882718] ? kernel_text_address+0x79/0xf0 [ 35.887125] ? __kernel_text_address+0xd/0x40 [ 35.891611] ? unwind_get_return_address+0x61/0xa0 [ 35.896528] ? __save_stack_trace+0x8d/0xf0 [ 35.900837] ? save_stack+0xa9/0xd0 [ 35.904446] ? save_stack+0x43/0xd0 [ 35.908055] ? __kasan_slab_free+0x11a/0x170 [ 35.912445] ? kasan_slab_free+0xe/0x10 [ 35.916405] ? putname+0xf2/0x130 [ 35.919846] ? __x64_sys_openat+0x9d/0x100 [ 35.924064] ? do_syscall_64+0x1b9/0x820 [ 35.928116] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.933475] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.937871] ? kasan_check_read+0x11/0x20 [ 35.942005] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.946391] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.950781] ? initcall_blacklisted+0x9a/0x1e0 [ 35.955351] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.960438] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.966137] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.971662] ? do_vfs_ioctl+0x201/0x1720 [ 35.975729] ? rcu_is_watching+0x8c/0x150 [ 35.979872] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.984179] ? ioctl_preallocate+0x300/0x300 [ 35.988573] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.994101] ? __fget_light+0x2f7/0x440 [ 35.998069] ? fget_raw+0x20/0x20 [ 36.001504] ? putname+0xf2/0x130 [ 36.004942] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.009939] ? kmem_cache_free+0x246/0x280 [ 36.014159] ? putname+0xf7/0x130 [ 36.017621] do_group_exit+0x177/0x440 [ 36.021512] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.025820] ? __ia32_sys_exit+0x50/0x50 [ 36.029863] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.034948] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.040481] ? ksys_ioctl+0x81/0xd0 [ 36.044096] __x64_sys_exit_group+0x3e/0x50 [ 36.048436] do_syscall_64+0x1b9/0x820 [ 36.052311] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.057671] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.062593] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.067435] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.072435] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.077433] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.082262] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.087435] RIP: 0033:0x43ef08 [ 36.090620] Code: Bad RIP value. [ 36.093966] RSP: 002b:00007ffddb098508 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.101656] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.108907] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.116157] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.123405] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.130736] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.138002] [ 36.139613] Allocated by task 4452: [ 36.143231] save_stack+0x43/0xd0 [ 36.146668] kasan_kmalloc+0xc4/0xe0 [ 36.150363] kasan_slab_alloc+0x12/0x20 [ 36.154317] kmem_cache_alloc+0x12e/0x710 [ 36.158446] vmx_create_vcpu+0xcf/0x2830 [ 36.162485] kvm_arch_vcpu_create+0xe5/0x220 [ 36.166878] kvm_vm_ioctl+0x488/0x1d80 [ 36.170758] do_vfs_ioctl+0x1de/0x1720 [ 36.174632] ksys_ioctl+0xa9/0xd0 [ 36.178064] __x64_sys_ioctl+0x73/0xb0 [ 36.181933] do_syscall_64+0x1b9/0x820 [ 36.185805] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.190967] [ 36.192574] Freed by task 4452: [ 36.195856] save_stack+0x43/0xd0 [ 36.199316] __kasan_slab_free+0x11a/0x170 [ 36.203529] kasan_slab_free+0xe/0x10 [ 36.207322] kmem_cache_free+0x86/0x280 [ 36.211275] vmx_free_vcpu+0x26b/0x300 [ 36.215145] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.219554] kvm_put_kvm+0x73f/0x1060 [ 36.223358] kvm_vm_release+0x42/0x50 [ 36.227140] __fput+0x36e/0x8c0 [ 36.230398] ____fput+0x15/0x20 [ 36.233662] task_work_run+0x1e8/0x2a0 [ 36.237533] do_exit+0x1ae4/0x26e0 [ 36.241053] do_group_exit+0x177/0x440 [ 36.244923] __x64_sys_exit_group+0x3e/0x50 [ 36.249254] do_syscall_64+0x1b9/0x820 [ 36.253182] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.258360] [ 36.259969] The buggy address belongs to the object at ffff8801aeeb8040 [ 36.259969] which belongs to the cache kvm_vcpu of size 23872 [ 36.272520] The buggy address is located 24 bytes inside of [ 36.272520] 23872-byte region [ffff8801aeeb8040, ffff8801aeebdd80) [ 36.284457] The buggy address belongs to the page: [ 36.289415] page:ffffea0006bbae00 count:1 mapcount:0 mapping:ffff8801d9e69000 index:0x0 compound_mapcount: 0 [ 36.299361] flags: 0x2fffc0000008100(slab|head) [ 36.304012] raw: 02fffc0000008100 ffff8801d5298b48 ffff8801d5298b48 ffff8801d9e69000 [ 36.311896] raw: 0000000000000000 ffff8801aeeb8040 0000000100000001 0000000000000000 [ 36.319758] page dumped because: kasan: bad access detected [ 36.325796] [ 36.327399] Memory state around the buggy address: [ 36.332320] ffff8801aeeb7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.339668] ffff8801aeeb7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.347007] >ffff8801aeeb8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.354342] ^ [ 36.360550] ffff8801aeeb8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.367887] ffff8801aeeb8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.375220] ================================================================== [ 36.382566] Kernel panic - not syncing: panic_on_warn set ... [ 36.382566] [ 36.389918] CPU: 1 PID: 4452 Comm: syz-executor749 Tainted: G B 4.18.0+ #206 [ 36.398382] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.407716] Call Trace: [ 36.410306] dump_stack+0x1c9/0x2b4 [ 36.413920] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.419090] ? lock_downgrade+0x8f0/0x8f0 [ 36.423226] ? __schedule+0xf54/0x1df0 [ 36.427097] panic+0x238/0x4e7 [ 36.430290] ? add_taint.cold.5+0x16/0x16 [ 36.434869] ? print_shadow_for_address+0xba/0x116 [ 36.439780] ? trace_hardirqs_off+0xaf/0x2b0 [ 36.444183] ? trace_hardirqs_off+0x77/0x2b0 [ 36.448591] ? __schedule+0xf54/0x1df0 [ 36.452465] kasan_end_report+0x47/0x4f [ 36.456420] kasan_report.cold.7+0x76/0x30d [ 36.460741] __asan_report_load8_noabort+0x14/0x20 [ 36.465667] __schedule+0xf54/0x1df0 [ 36.469363] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.474449] ? __sched_text_start+0x8/0x8 [ 36.478579] ? __call_srcu+0x7e7/0x1040 [ 36.482568] ? check_same_owner+0x340/0x340 [ 36.486882] ? mark_held_locks+0x160/0x160 [ 36.491097] ? find_held_lock+0x36/0x1c0 [ 36.495166] preempt_schedule_common+0x22/0x60 [ 36.499745] _cond_resched+0x1d/0x30 [ 36.503448] wait_for_completion+0xa5/0x8d0 [ 36.507758] ? wait_for_completion_interruptible+0x950/0x950 [ 36.513539] ? __lockdep_init_map+0x105/0x590 [ 36.518018] ? __init_waitqueue_head+0x9e/0x150 [ 36.522669] ? init_wait_entry+0x1c0/0x1c0 [ 36.526890] __synchronize_srcu+0x189/0x240 [ 36.531190] ? call_srcu+0x10/0x10 [ 36.534718] ? rcu_unexpedite_gp+0x20/0x20 [ 36.538955] synchronize_srcu+0x335/0x56f [ 36.543106] ? lock_downgrade+0x8f0/0x8f0 [ 36.547256] ? synchronize_srcu_expedited+0x20/0x20 [ 36.552255] ? kasan_check_read+0x11/0x20 [ 36.556385] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.560950] ? kasan_check_write+0x14/0x20 [ 36.565168] ? do_raw_spin_lock+0xc1/0x200 [ 36.569387] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.575077] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.580510] ? kvfree+0x61/0x70 [ 36.583790] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.588797] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.592842] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.597232] ? kvm_arch_sync_events+0x30/0x30 [ 36.601725] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.607269] ? mmu_notifier_unregister+0x474/0x600 [ 36.612179] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.616568] ? kfree+0x111/0x210 [ 36.619940] ? __mmu_notifier_register+0x30/0x30 [ 36.624680] ? __free_pages+0x10a/0x190 [ 36.628640] ? free_unref_page+0x930/0x930 [ 36.632862] kvm_put_kvm+0x73f/0x1060 [ 36.636654] ? kvm_write_guest_cached+0x40/0x40 [ 36.641308] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.645796] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.650286] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.654851] ? kasan_check_write+0x14/0x20 [ 36.659066] ? do_raw_spin_lock+0xc1/0x200 [ 36.663299] ? kvm_irqfd_release+0xdd/0x120 [ 36.667611] ? kvm_put_kvm+0x1060/0x1060 [ 36.671670] kvm_vm_release+0x42/0x50 [ 36.675453] __fput+0x36e/0x8c0 [ 36.678739] ? __alloc_file+0x400/0x400 [ 36.682727] ? check_same_owner+0x340/0x340 [ 36.687039] ? kasan_check_write+0x14/0x20 [ 36.691281] ? do_raw_spin_lock+0xc1/0x200 [ 36.695512] ____fput+0x15/0x20 [ 36.698777] task_work_run+0x1e8/0x2a0 [ 36.702646] ? task_work_cancel+0x240/0x240 [ 36.706960] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.712493] ? switch_task_namespaces+0xa2/0xd0 [ 36.717148] do_exit+0x1ae4/0x26e0 [ 36.720671] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.725326] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.729562] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.734569] ? kfree+0x1d7/0x210 [ 36.737932] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.742163] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.747860] ? is_bpf_text_address+0xd7/0x170 [ 36.752336] ? kernel_text_address+0x79/0xf0 [ 36.756733] ? __kernel_text_address+0xd/0x40 [ 36.761224] ? unwind_get_return_address+0x61/0xa0 [ 36.766148] ? __save_stack_trace+0x8d/0xf0 [ 36.770457] ? save_stack+0xa9/0xd0 [ 36.774091] ? save_stack+0x43/0xd0 [ 36.777706] ? __kasan_slab_free+0x11a/0x170 [ 36.782108] ? kasan_slab_free+0xe/0x10 [ 36.786068] ? putname+0xf2/0x130 [ 36.789505] ? __x64_sys_openat+0x9d/0x100 [ 36.793728] ? do_syscall_64+0x1b9/0x820 [ 36.797783] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.803133] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.807522] ? kasan_check_read+0x11/0x20 [ 36.811654] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.816045] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.820435] ? initcall_blacklisted+0x9a/0x1e0 [ 36.825003] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.830089] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.835788] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.841308] ? do_vfs_ioctl+0x201/0x1720 [ 36.845350] ? rcu_is_watching+0x8c/0x150 [ 36.849476] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.853781] ? ioctl_preallocate+0x300/0x300 [ 36.858196] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.863734] ? __fget_light+0x2f7/0x440 [ 36.867703] ? fget_raw+0x20/0x20 [ 36.871186] ? putname+0xf2/0x130 [ 36.874638] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.879745] ? kmem_cache_free+0x246/0x280 [ 36.883967] ? putname+0xf7/0x130 [ 36.887404] do_group_exit+0x177/0x440 [ 36.891275] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.895580] ? __ia32_sys_exit+0x50/0x50 [ 36.899654] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.904751] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.910272] ? ksys_ioctl+0x81/0xd0 [ 36.913880] __x64_sys_exit_group+0x3e/0x50 [ 36.918184] do_syscall_64+0x1b9/0x820 [ 36.922055] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.927400] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.932325] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.937148] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.942146] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.947148] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.951979] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.957150] RIP: 0033:0x43ef08 [ 36.960328] Code: Bad RIP value. [ 36.963671] RSP: 002b:00007ffddb098508 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.971371] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.978635] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.985887] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.993147] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.000405] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.007663] [ 37.007667] ====================================================== [ 37.007670] WARNING: possible circular locking dependency detected [ 37.007672] 4.18.0+ #206 Not tainted [ 37.007675] ------------------------------------------------------ [ 37.007678] syz-executor749/4452 is trying to acquire lock: [ 37.007680] 0000000018c8bab2 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.007688] [ 37.007690] but task is already holding lock: [ 37.007692] 00000000af695957 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.007699] [ 37.007702] which lock already depends on the new lock. [ 37.007703] [ 37.007705] [ 37.007708] the existing dependency chain (in reverse order) is: [ 37.007709] [ 37.007711] -> #3 (report_lock){....}: [ 37.007724] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.007728] kasan_report+0x8e/0x110 [ 37.007732] __asan_report_load8_noabort+0x14/0x20 [ 37.007736] __schedule+0xf54/0x1df0 [ 37.007740] preempt_schedule_common+0x22/0x60 [ 37.007744] _cond_resched+0x1d/0x30 [ 37.007748] wait_for_completion+0xa5/0x8d0 [ 37.007752] __synchronize_srcu+0x189/0x240 [ 37.007754] synchronize_srcu+0x335/0x56f [ 37.007757] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.007759] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.007762] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.007764] kvm_put_kvm+0x73f/0x1060 [ 37.007766] kvm_vm_release+0x42/0x50 [ 37.007768] __fput+0x36e/0x8c0 [ 37.007770] ____fput+0x15/0x20 [ 37.007772] task_work_run+0x1e8/0x2a0 [ 37.007774] do_exit+0x1ae4/0x26e0 [ 37.007776] do_group_exit+0x177/0x440 [ 37.007779] __x64_sys_exit_group+0x3e/0x50 [ 37.007781] do_syscall_64+0x1b9/0x820 [ 37.007784] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.007785] [ 37.007786] -> #2 (&rq->lock){-.-.}: [ 37.007794] _raw_spin_lock+0x2a/0x40 [ 37.007796] task_fork_fair+0x93/0x680 [ 37.007798] sched_fork+0x44b/0xbd0 [ 37.007800] copy_process+0x235e/0x7ad0 [ 37.007802] _do_fork+0x1ca/0x1170 [ 37.007804] kernel_thread+0x34/0x40 [ 37.007806] rest_init+0x22/0xe4 [ 37.007808] start_kernel+0x913/0x94e [ 37.007811] x86_64_start_reservations+0x29/0x2b [ 37.007813] x86_64_start_kernel+0x76/0x79 [ 37.007815] secondary_startup_64+0xa4/0xb0 [ 37.007816] [ 37.007818] -> #1 (&p->pi_lock){-.-.}: [ 37.007825] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.007828] try_to_wake_up+0xd2/0x1250 [ 37.007830] wake_up_process+0x10/0x20 [ 37.007832] __up.isra.1+0x1c0/0x2a0 [ 37.007834] up+0x13c/0x1c0 [ 37.007836] __up_console_sem+0xbe/0x1b0 [ 37.007838] console_unlock+0x506/0x10d0 [ 37.007840] do_con_write+0x1375/0x23d0 [ 37.007842] con_write+0x25/0xc0 [ 37.007844] n_tty_write+0x6c1/0x11a0 [ 37.007846] tty_write+0x3f1/0x880 [ 37.007848] __vfs_write+0x117/0x9d0 [ 37.007850] vfs_write+0x1fc/0x560 [ 37.007852] ksys_write+0x101/0x260 [ 37.007854] __x64_sys_write+0x73/0xb0 [ 37.007856] do_syscall_64+0x1b9/0x820 [ 37.007859] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.007860] [ 37.007861] -> #0 ((console_sem).lock){-...}: [ 37.007869] lock_acquire+0x1e4/0x4f0 [ 37.007871] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.007873] down_trylock+0x13/0x70 [ 37.007876] __down_trylock_console_sem+0xae/0x200 [ 37.007878] console_trylock+0x15/0xa0 [ 37.007880] vprintk_emit+0x31f/0x910 [ 37.007882] vprintk_default+0x28/0x30 [ 37.007884] vprintk_func+0x7a/0x117 [ 37.007886] printk+0xa7/0xcf [ 37.007888] kasan_report+0x9e/0x110 [ 37.007891] __asan_report_load8_noabort+0x14/0x20 [ 37.007893] __schedule+0xf54/0x1df0 [ 37.007895] preempt_schedule_common+0x22/0x60 [ 37.007897] _cond_resched+0x1d/0x30 [ 37.007900] wait_for_completion+0xa5/0x8d0 [ 37.007902] __synchronize_srcu+0x189/0x240 [ 37.007904] synchronize_srcu+0x335/0x56f [ 37.007907] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.007909] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.007911] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.007914] kvm_put_kvm+0x73f/0x1060 [ 37.007916] kvm_vm_release+0x42/0x50 [ 37.007917] __fput+0x36e/0x8c0 [ 37.007919] ____fput+0x15/0x20 [ 37.007922] task_work_run+0x1e8/0x2a0 [ 37.007924] do_exit+0x1ae4/0x26e0 [ 37.007926] do_group_exit+0x177/0x440 [ 37.007928] __x64_sys_exit_group+0x3e/0x50 [ 37.007930] do_syscall_64+0x1b9/0x820 [ 37.007933] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.007934] [ 37.007937] other info that might help us debug this: [ 37.007938] [ 37.007940] Chain exists of: [ 37.007941] (console_sem).lock --> &rq->lock --> report_lock [ 37.007950] [ 37.007953] Possible unsafe locking scenario: [ 37.007954] [ 37.007956] CPU0 CPU1 [ 37.007958] ---- ---- [ 37.007960] lock(report_lock); [ 37.007965] lock(&rq->lock); [ 37.007970] lock(report_lock); [ 37.007974] lock((console_sem).lock); [ 37.007978] [ 37.007980] *** DEADLOCK *** [ 37.007981] [ 37.007983] 2 locks held by syz-executor749/4452: [ 37.007984] #0: 00000000060cf648 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.007993] #1: 00000000af695957 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.008002] [ 37.008004] stack backtrace: [ 37.008007] CPU: 1 PID: 4452 Comm: syz-executor749 Not tainted 4.18.0+ #206 [ 37.008011] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.008013] Call Trace: [ 37.008015] dump_stack+0x1c9/0x2b4 [ 37.008017] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.008019] ? vprintk_func+0x100/0x117 [ 37.008022] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.008024] ? save_trace+0xe0/0x290 [ 37.008026] __lock_acquire+0x3449/0x5020 [ 37.008029] ? mark_held_locks+0x160/0x160 [ 37.008031] ? mark_held_locks+0x160/0x160 [ 37.008033] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.008035] ? is_bpf_text_address+0xd7/0x170 [ 37.008038] ? kernel_text_address+0x79/0xf0 [ 37.008040] ? __kernel_text_address+0xd/0x40 [ 37.008042] ? __save_stack_trace+0x8d/0xf0 [ 37.008045] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.008047] ? save_trace+0x290/0x290 [ 37.008049] ? save_stack_trace+0x1a/0x20 [ 37.008051] ? save_trace+0xe0/0x290 [ 37.008053] ? graph_lock+0x170/0x170 [ 37.008055] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.008057] lock_acquire+0x1e4/0x4f0 [ 37.008060] ? down_trylock+0x13/0x70 [ 37.008062] ? lock_release+0x9f0/0x9f0 [ 37.008064] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.008066] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.008068] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.008070] ? log_store+0x34f/0x4c0 [ 37.008073] ? vprintk_emit+0x31f/0x910 [ 37.008075] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.008077] ? down_trylock+0x13/0x70 [ 37.008079] down_trylock+0x13/0x70 [ 37.008081] __down_trylock_console_sem+0xae/0x200 [ 37.008083] console_trylock+0x15/0xa0 [ 37.008085] vprintk_emit+0x31f/0x910 [ 37.008087] ? wake_up_klogd+0x110/0x110 [ 37.008090] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.008092] ? kasan_check_read+0x11/0x20 [ 37.008094] ? rcu_is_watching+0x8c/0x150 [ 37.008096] ? rcu_pm_notify+0xc0/0xc0 [ 37.008098] ? lock_acquire+0x1e4/0x4f0 [ 37.008100] ? kasan_report+0x8e/0x110 [ 37.008102] ? __schedule+0xf54/0x1df0 [ 37.008104] vprintk_default+0x28/0x30 [ 37.008106] vprintk_func+0x7a/0x117 [ 37.008108] printk+0xa7/0xcf [ 37.008111] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.008120] ? kasan_check_write+0x14/0x20 [ 37.008122] ? do_raw_spin_lock+0xc1/0x200 [ 37.008124] ? do_raw_spin_lock+0xc1/0x200 [ 37.008126] kasan_report+0x9e/0x110 [ 37.008129] __asan_report_load8_noabort+0x14/0x20 [ 37.008131] __schedule+0xf54/0x1df0 [ 37.008133] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.008136] ? __sched_text_start+0x8/0x8 [ 37.008138] ? __call_srcu+0x7e7/0x1040 [ 37.008140] ? check_same_owner+0x340/0x340 [ 37.008142] ? mark_held_locks+0x160/0x160 [ 37.008145] ? find_held_lock+0x36/0x1c0 [ 37.008147] preempt_schedule_common+0x22/0x60 [ 37.008149] _cond_resched+0x1d/0x30 [ 37.008151] wait_for_completion+0xa5/0x8d0 [ 37.008154] ? wait_for_completion_interruptible+0x950/0x950 [ 37.008157] ? __lockdep_init_map+0x105/0x590 [ 37.008159] ? __init_waitqueue_head+0x9e/0x150 [ 37.008161] ? init_wait_entry+0x1c0/0x1c0 [ 37.008164] __synchronize_srcu+0x189/0x240 [ 37.008166] ? call_srcu+0x10/0x10 [ 37.008168] ? rcu_unexpedite_gp+0x20/0x20 [ 37.008170] synchronize_srcu+0x335/0x56f [ 37.008173] ? lock_downgrade+0x8f0/0x8f0 [ 37.008175] ? synchronize_srcu_expedited+0x20/0x20 [ 37.008177] ? kasan_check_read+0x11/0x20 [ 37.008180] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.008182] ? kasan_check_write+0x14/0x20 [ 37.008184] ? do_raw_spin_lock+0xc1/0x200 [ 37.008187] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.008190] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.008191] ? kvfree+0x61/0x70 [ 37.008194] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.008196] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.008199] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.008201] ? kvm_arch_sync_events+0x30/0x30 [ 37.008204] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.008206] ? mmu_notifier_unregister+0x474/0x600 [ 37.008208] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.008210] ? kfree+0x111/0x210 [ 37.008213] ? __mmu_notifier_register+0x30/0x30 [ 37.008215] ? __free_pages+0x10a/0x190 [ 37.008217] ? free_unref_page+0x930/0x930 [ 37.008219] kvm_put_kvm+0x73f/0x1060 [ 37.008222] ? kvm_write_guest_cached+0x40/0x40 [ 37.008224] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.008226] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.008229] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.008231] ? kasan_check_write+0x14/0x20 [ 37.008233] ? do_raw_spin_lock+0xc1/0x200 [ 37.008235] ? kvm_irqfd_release+0xdd/0x120 [ 37.008237] ? kvm_put_kvm+0x1060/0x1060 [ 37.008253] kvm_vm_release+0x42/0x50 [ 37.008254] __fput+0x36e/0x8c0 [ 37.008257] ? __alloc_file+0x400/0x400 [ 37.008259] ? check_same_owner+0x340/0x340 [ 37.008261] ? kasan_check_write+0x14/0x20 [ 37.008263] ? do_raw_spin_lock+0xc1/0x200 [ 37.008265] ____fput+0x15/0x20 [ 37.008278] task_work_run+0x1e8/0x2a0 [ 37.008281] ? task_work_cancel+0x240/0x240 [ 37.008283] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.008286] ? switch_task_namespaces+0xa2/0xd0 [ 37.008288] do_exit+0x1ae4/0x26e0 [ 37.008290] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.008292] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.008295] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.008296] ? kfree+0x1d7/0x210 [ 37.008299] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.008301] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.008304] ? is_bpf_text_address+0xd7/0x170 [ 37.008307] Lost 54 message(s)! [ 37.008627] Dumping ftrace buffer: [ 38.063149] (ftrace buffer empty) [ 38.066849] Kernel Offset: disabled [ 38.070457] Rebooting in 86400 seconds..