[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.817825] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 23.377888] random: sshd: uninitialized urandom read (32 bytes read) [ 23.672112] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.229033] random: sshd: uninitialized urandom read (32 bytes read) [ 24.407188] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.38' (ECDSA) to the list of known hosts. [ 29.922349] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 30.017572] 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. [ 30.042750] ================================================================== [ 30.052491] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 30.058726] Read of size 8 at addr ffff8801c0b20058 by task syz-executor211/4455 [ 30.066266] [ 30.067910] CPU: 0 PID: 4455 Comm: syz-executor211 Not tainted 4.18.0+ #209 [ 30.074997] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.084337] Call Trace: [ 30.086917] dump_stack+0x1c9/0x2b4 [ 30.090543] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.095728] ? printk+0xa7/0xcf [ 30.099016] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.103774] ? __schedule+0xf54/0x1df0 [ 30.107657] print_address_description+0x6c/0x20b [ 30.112495] ? __schedule+0xf54/0x1df0 [ 30.116381] kasan_report.cold.7+0x242/0x30d [ 30.120787] __asan_report_load8_noabort+0x14/0x20 [ 30.125708] __schedule+0xf54/0x1df0 [ 30.129417] ? __sched_text_start+0x8/0x8 [ 30.133564] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 30.138675] ? __call_srcu+0x7e7/0x1040 [ 30.142653] ? check_same_owner+0x340/0x340 [ 30.146971] ? mark_held_locks+0x160/0x160 [ 30.151229] ? find_held_lock+0x36/0x1c0 [ 30.155298] preempt_schedule_common+0x22/0x60 [ 30.159885] _cond_resched+0x1d/0x30 [ 30.163642] wait_for_completion+0xa5/0x8d0 [ 30.167978] ? wait_for_completion_interruptible+0x950/0x950 [ 30.173769] ? __lockdep_init_map+0x105/0x590 [ 30.178266] ? __init_waitqueue_head+0x9e/0x150 [ 30.182969] ? init_wait_entry+0x1c0/0x1c0 [ 30.187231] __synchronize_srcu+0x189/0x240 [ 30.191545] ? call_srcu+0x10/0x10 [ 30.195095] ? rcu_unexpedite_gp+0x20/0x20 [ 30.199340] synchronize_srcu+0x335/0x56f [ 30.203482] ? lock_downgrade+0x8f0/0x8f0 [ 30.207632] ? synchronize_srcu_expedited+0x20/0x20 [ 30.212645] ? kasan_check_read+0x11/0x20 [ 30.216813] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 30.221385] ? kasan_check_write+0x14/0x20 [ 30.225636] ? do_raw_spin_lock+0xc1/0x200 [ 30.229882] kvm_page_track_unregister_notifier+0x17d/0x250 [ 30.235597] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 30.241046] ? kvfree+0x61/0x70 [ 30.244336] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.249352] kvm_mmu_uninit_vm+0x1c/0x20 [ 30.253408] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 30.257816] ? kvm_arch_sync_events+0x30/0x30 [ 30.262329] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 30.267875] ? mmu_notifier_unregister+0x474/0x600 [ 30.272808] ? trace_hardirqs_on+0x2c0/0x2c0 [ 30.277213] ? kfree+0x111/0x210 [ 30.280581] ? __mmu_notifier_register+0x30/0x30 [ 30.285345] ? __free_pages+0x10a/0x190 [ 30.289319] ? free_unref_page+0x930/0x930 [ 30.293562] kvm_put_kvm+0x73f/0x1060 [ 30.297371] ? kvm_write_guest_cached+0x40/0x40 [ 30.302045] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.306543] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.311033] ? lockdep_hardirqs_on+0x421/0x5c0 [ 30.315619] ? kasan_check_write+0x14/0x20 [ 30.319849] ? do_raw_spin_lock+0xc1/0x200 [ 30.324083] ? kvm_irqfd_release+0xdd/0x120 [ 30.328852] ? kvm_irqfd_release+0xdd/0x120 [ 30.333175] ? kvm_put_kvm+0x1060/0x1060 [ 30.337235] kvm_vm_release+0x42/0x50 [ 30.341029] __fput+0x36e/0x8c0 [ 30.344318] ? __alloc_file+0x400/0x400 [ 30.348305] ? check_same_owner+0x340/0x340 [ 30.352641] ? kasan_check_write+0x14/0x20 [ 30.356873] ? do_raw_spin_lock+0xc1/0x200 [ 30.361108] ____fput+0x15/0x20 [ 30.364386] task_work_run+0x1e8/0x2a0 [ 30.368291] ? task_work_cancel+0x240/0x240 [ 30.372632] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 30.378168] ? switch_task_namespaces+0xa2/0xd0 [ 30.382838] do_exit+0x1ae4/0x26e0 [ 30.387033] ? mm_update_next_owner+0x9a0/0x9a0 [ 30.391742] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 30.395974] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.400988] ? kfree+0x1d7/0x210 [ 30.404368] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 30.408603] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 30.414317] ? is_bpf_text_address+0xd7/0x170 [ 30.418809] ? kernel_text_address+0x79/0xf0 [ 30.423211] ? __kernel_text_address+0xd/0x40 [ 30.427701] ? unwind_get_return_address+0x61/0xa0 [ 30.432634] ? __save_stack_trace+0x8d/0xf0 [ 30.437209] ? save_stack+0xa9/0xd0 [ 30.440834] ? save_stack+0x43/0xd0 [ 30.444458] ? __kasan_slab_free+0x11a/0x170 [ 30.448861] ? kasan_slab_free+0xe/0x10 [ 30.452833] ? putname+0xf2/0x130 [ 30.456312] ? __x64_sys_openat+0x9d/0x100 [ 30.460549] ? do_syscall_64+0x1b9/0x820 [ 30.464610] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.469972] ? trace_hardirqs_off+0xb8/0x2b0 [ 30.474376] ? kasan_check_read+0x11/0x20 [ 30.478519] ? do_raw_spin_unlock+0xa7/0x2f0 [ 30.482921] ? trace_hardirqs_on+0x2c0/0x2c0 [ 30.487332] ? initcall_blacklisted+0x9a/0x1e0 [ 30.491917] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 30.497022] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 30.502737] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.508287] ? do_vfs_ioctl+0x201/0x1720 [ 30.512348] ? rcu_is_watching+0x8c/0x150 [ 30.516493] ? trace_hardirqs_on+0xbd/0x2c0 [ 30.520825] ? ioctl_preallocate+0x300/0x300 [ 30.525230] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.530766] ? __fget_light+0x2f7/0x440 [ 30.534742] ? fget_raw+0x20/0x20 [ 30.538194] ? putname+0xf2/0x130 [ 30.541649] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.546661] ? kmem_cache_free+0x246/0x280 [ 30.550894] ? putname+0xf7/0x130 [ 30.554351] do_group_exit+0x177/0x440 [ 30.558240] ? trace_hardirqs_on+0xbd/0x2c0 [ 30.562565] ? __ia32_sys_exit+0x50/0x50 [ 30.566621] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 30.571723] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.577256] ? ksys_ioctl+0x81/0xd0 [ 30.580898] __x64_sys_exit_group+0x3e/0x50 [ 30.585228] do_syscall_64+0x1b9/0x820 [ 30.589118] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 30.594482] ? syscall_return_slowpath+0x5e0/0x5e0 [ 30.599415] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.604252] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 30.609293] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 30.614316] ? prepare_exit_to_usermode+0x291/0x3b0 [ 30.619336] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.624181] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.629388] RIP: 0033:0x43ecc8 [ 30.632582] Code: Bad RIP value. [ 30.635941] RSP: 002b:00007fffd9597c18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 30.643649] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 30.650913] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 30.658173] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 30.665452] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 30.672717] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 30.679991] [ 30.681611] Allocated by task 4455: [ 30.685236] save_stack+0x43/0xd0 [ 30.688691] kasan_kmalloc+0xc4/0xe0 [ 30.692399] kasan_slab_alloc+0x12/0x20 [ 30.696372] kmem_cache_alloc+0x12e/0x710 [ 30.700514] vmx_create_vcpu+0xcf/0x2830 [ 30.704570] kvm_arch_vcpu_create+0xe5/0x220 [ 30.708977] kvm_vm_ioctl+0x488/0x1d80 [ 30.712871] do_vfs_ioctl+0x1de/0x1720 [ 30.716756] ksys_ioctl+0xa9/0xd0 [ 30.720204] __x64_sys_ioctl+0x73/0xb0 [ 30.724093] do_syscall_64+0x1b9/0x820 [ 30.727982] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.733161] [ 30.734778] Freed by task 4455: [ 30.738053] save_stack+0x43/0xd0 [ 30.741504] __kasan_slab_free+0x11a/0x170 [ 30.745732] kasan_slab_free+0xe/0x10 [ 30.749529] kmem_cache_free+0x86/0x280 [ 30.753496] vmx_free_vcpu+0x26b/0x300 [ 30.757382] kvm_arch_destroy_vm+0x365/0x7c0 [ 30.761789] kvm_put_kvm+0x73f/0x1060 [ 30.765584] kvm_vm_release+0x42/0x50 [ 30.769382] __fput+0x36e/0x8c0 [ 30.772655] ____fput+0x15/0x20 [ 30.775932] task_work_run+0x1e8/0x2a0 [ 30.779814] do_exit+0x1ae4/0x26e0 [ 30.783354] do_group_exit+0x177/0x440 [ 30.787236] __x64_sys_exit_group+0x3e/0x50 [ 30.791556] do_syscall_64+0x1b9/0x820 [ 30.795440] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.800614] [ 30.802238] The buggy address belongs to the object at ffff8801c0b20040 [ 30.802238] which belongs to the cache kvm_vcpu of size 23872 [ 30.814834] The buggy address is located 24 bytes inside of [ 30.814834] 23872-byte region [ffff8801c0b20040, ffff8801c0b25d80) [ 30.826785] The buggy address belongs to the page: [ 30.831712] page:ffffea000702c800 count:1 mapcount:0 mapping:ffff8801d56cf780 index:0x0 compound_mapcount: 0 [ 30.841689] flags: 0x2fffc0000008100(slab|head) [ 30.846363] raw: 02fffc0000008100 ffff8801d4412f48 ffff8801d4412f48 ffff8801d56cf780 [ 30.854240] raw: 0000000000000000 ffff8801c0b20040 0000000100000001 0000000000000000 [ 30.862115] page dumped because: kasan: bad access detected [ 30.867814] [ 30.869432] Memory state around the buggy address: [ 30.874355] ffff8801c0b1ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.881707] ffff8801c0b1ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 30.889060] >ffff8801c0b20000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 30.896407] ^ [ 30.902631] ffff8801c0b20080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.909987] ffff8801c0b20100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.917334] ================================================================== [ 30.924693] Kernel panic - not syncing: panic_on_warn set ... [ 30.924693] [ 30.932057] CPU: 0 PID: 4455 Comm: syz-executor211 Tainted: G B 4.18.0+ #209 [ 30.940535] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.949879] Call Trace: [ 30.952474] dump_stack+0x1c9/0x2b4 [ 30.956100] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.961302] ? lock_downgrade+0x8f0/0x8f0 [ 30.965446] ? __schedule+0xf54/0x1df0 [ 30.969336] panic+0x238/0x4e7 [ 30.972529] ? add_taint.cold.5+0x16/0x16 [ 30.976683] ? print_shadow_for_address+0xba/0x116 [ 30.981610] ? trace_hardirqs_off+0xaf/0x2b0 [ 30.986016] ? trace_hardirqs_off+0x77/0x2b0 [ 30.990435] ? __schedule+0xf54/0x1df0 [ 30.994327] kasan_end_report+0x47/0x4f [ 30.998308] kasan_report.cold.7+0x76/0x30d [ 31.002633] __asan_report_load8_noabort+0x14/0x20 [ 31.007561] __schedule+0xf54/0x1df0 [ 31.011293] ? __sched_text_start+0x8/0x8 [ 31.015460] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 31.020568] ? __call_srcu+0x7e7/0x1040 [ 31.024548] ? check_same_owner+0x340/0x340 [ 31.028871] ? mark_held_locks+0x160/0x160 [ 31.033099] ? find_held_lock+0x36/0x1c0 [ 31.037158] preempt_schedule_common+0x22/0x60 [ 31.041740] _cond_resched+0x1d/0x30 [ 31.045452] wait_for_completion+0xa5/0x8d0 [ 31.049772] ? wait_for_completion_interruptible+0x950/0x950 [ 31.055578] ? __lockdep_init_map+0x105/0x590 [ 31.060076] ? __init_waitqueue_head+0x9e/0x150 [ 31.064741] ? init_wait_entry+0x1c0/0x1c0 [ 31.068977] __synchronize_srcu+0x189/0x240 [ 31.073308] ? call_srcu+0x10/0x10 [ 31.076850] ? rcu_unexpedite_gp+0x20/0x20 [ 31.081092] synchronize_srcu+0x335/0x56f [ 31.085265] ? lock_downgrade+0x8f0/0x8f0 [ 31.089431] ? synchronize_srcu_expedited+0x20/0x20 [ 31.094448] ? kasan_check_read+0x11/0x20 [ 31.098593] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.103171] ? kasan_check_write+0x14/0x20 [ 31.107402] ? do_raw_spin_lock+0xc1/0x200 [ 31.111642] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.117354] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.122803] ? kvfree+0x61/0x70 [ 31.126082] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.131096] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.135153] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.139560] ? kvm_arch_sync_events+0x30/0x30 [ 31.144057] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.149595] ? mmu_notifier_unregister+0x474/0x600 [ 31.154519] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.158924] ? kfree+0x111/0x210 [ 31.162308] ? __mmu_notifier_register+0x30/0x30 [ 31.167069] ? __free_pages+0x10a/0x190 [ 31.171043] ? free_unref_page+0x930/0x930 [ 31.175298] kvm_put_kvm+0x73f/0x1060 [ 31.179105] ? kvm_write_guest_cached+0x40/0x40 [ 31.183781] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.188289] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.192786] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.197376] ? kasan_check_write+0x14/0x20 [ 31.201608] ? do_raw_spin_lock+0xc1/0x200 [ 31.205843] ? kvm_irqfd_release+0xdd/0x120 [ 31.210160] ? kvm_irqfd_release+0xdd/0x120 [ 31.214481] ? kvm_put_kvm+0x1060/0x1060 [ 31.218539] kvm_vm_release+0x42/0x50 [ 31.222340] __fput+0x36e/0x8c0 [ 31.225620] ? __alloc_file+0x400/0x400 [ 31.229591] ? check_same_owner+0x340/0x340 [ 31.233910] ? kasan_check_write+0x14/0x20 [ 31.238147] ? do_raw_spin_lock+0xc1/0x200 [ 31.242381] ____fput+0x15/0x20 [ 31.245661] task_work_run+0x1e8/0x2a0 [ 31.249551] ? task_work_cancel+0x240/0x240 [ 31.253875] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.259412] ? switch_task_namespaces+0xa2/0xd0 [ 31.264080] do_exit+0x1ae4/0x26e0 [ 31.267621] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.272304] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.276540] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.281557] ? kfree+0x1d7/0x210 [ 31.284923] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.289161] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.294874] ? is_bpf_text_address+0xd7/0x170 [ 31.299366] ? kernel_text_address+0x79/0xf0 [ 31.303775] ? __kernel_text_address+0xd/0x40 [ 31.308266] ? unwind_get_return_address+0x61/0xa0 [ 31.313210] ? __save_stack_trace+0x8d/0xf0 [ 31.317533] ? save_stack+0xa9/0xd0 [ 31.321155] ? save_stack+0x43/0xd0 [ 31.324777] ? __kasan_slab_free+0x11a/0x170 [ 31.329625] ? kasan_slab_free+0xe/0x10 [ 31.333600] ? putname+0xf2/0x130 [ 31.337050] ? __x64_sys_openat+0x9d/0x100 [ 31.341295] ? do_syscall_64+0x1b9/0x820 [ 31.345359] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.350720] ? trace_hardirqs_off+0xb8/0x2b0 [ 31.355124] ? kasan_check_read+0x11/0x20 [ 31.359288] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.363695] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.368104] ? initcall_blacklisted+0x9a/0x1e0 [ 31.372689] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 31.377792] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.383504] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.389038] ? do_vfs_ioctl+0x201/0x1720 [ 31.393096] ? rcu_is_watching+0x8c/0x150 [ 31.397241] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.401580] ? ioctl_preallocate+0x300/0x300 [ 31.405987] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.411520] ? __fget_light+0x2f7/0x440 [ 31.415500] ? fget_raw+0x20/0x20 [ 31.418947] ? putname+0xf2/0x130 [ 31.422402] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.427417] ? kmem_cache_free+0x246/0x280 [ 31.431650] ? putname+0xf7/0x130 [ 31.435108] do_group_exit+0x177/0x440 [ 31.438993] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.443313] ? __ia32_sys_exit+0x50/0x50 [ 31.447370] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.452470] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.458003] ? ksys_ioctl+0x81/0xd0 [ 31.461631] __x64_sys_exit_group+0x3e/0x50 [ 31.465956] do_syscall_64+0x1b9/0x820 [ 31.469846] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 31.475209] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.480140] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.484979] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 31.489997] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 31.495010] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.500031] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.504884] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.510073] RIP: 0033:0x43ecc8 [ 31.513289] Code: Bad RIP value. [ 31.516654] RSP: 002b:00007fffd9597c18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.524359] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 31.531626] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.538896] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.546159] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 31.553439] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 31.560714] [ 31.560720] ====================================================== [ 31.560725] WARNING: possible circular locking dependency detected [ 31.560729] 4.18.0+ #209 Not tainted [ 31.560734] ------------------------------------------------------ [ 31.560739] syz-executor211/4455 is trying to acquire lock: [ 31.560743] 000000006197d580 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 31.560758] [ 31.560761] but task is already holding lock: [ 31.560765] 00000000e80dd57d (report_lock){....}, at: kasan_report+0x8e/0x110 [ 31.560779] [ 31.560783] which lock already depends on the new lock. [ 31.560785] [ 31.560789] [ 31.560794] the existing dependency chain (in reverse order) is: [ 31.560796] [ 31.560798] -> #3 (report_lock){....}: [ 31.560813] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.560816] kasan_report+0x8e/0x110 [ 31.560821] __asan_report_load8_noabort+0x14/0x20 [ 31.560825] __schedule+0xf54/0x1df0 [ 31.560829] preempt_schedule_common+0x22/0x60 [ 31.560833] _cond_resched+0x1d/0x30 [ 31.560837] wait_for_completion+0xa5/0x8d0 [ 31.560841] __synchronize_srcu+0x189/0x240 [ 31.560845] synchronize_srcu+0x335/0x56f [ 31.560850] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.560854] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.560858] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.560862] kvm_put_kvm+0x73f/0x1060 [ 31.560866] kvm_vm_release+0x42/0x50 [ 31.560869] __fput+0x36e/0x8c0 [ 31.560873] ____fput+0x15/0x20 [ 31.560877] task_work_run+0x1e8/0x2a0 [ 31.560880] do_exit+0x1ae4/0x26e0 [ 31.560884] do_group_exit+0x177/0x440 [ 31.560888] __x64_sys_exit_group+0x3e/0x50 [ 31.560892] do_syscall_64+0x1b9/0x820 [ 31.560897] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.560899] [ 31.560901] -> #2 (&rq->lock){-.-.}: [ 31.560915] _raw_spin_lock+0x2a/0x40 [ 31.560919] task_fork_fair+0x93/0x680 [ 31.560922] sched_fork+0x44b/0xbd0 [ 31.560926] copy_process+0x235e/0x7ad0 [ 31.560930] _do_fork+0x1ca/0x1170 [ 31.560934] kernel_thread+0x34/0x40 [ 31.560937] rest_init+0x22/0xe4 [ 31.560941] start_kernel+0x913/0x94e [ 31.560945] x86_64_start_reservations+0x29/0x2b [ 31.560950] x86_64_start_kernel+0x76/0x79 [ 31.560954] secondary_startup_64+0xa4/0xb0 [ 31.560956] [ 31.560958] -> #1 (&p->pi_lock){-.-.}: [ 31.560972] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.560976] try_to_wake_up+0xd2/0x1250 [ 31.560980] wake_up_process+0x10/0x20 [ 31.560984] __up.isra.1+0x1c0/0x2a0 [ 31.560987] up+0x13c/0x1c0 [ 31.560991] __up_console_sem+0xbe/0x1b0 [ 31.560995] console_unlock+0x506/0x10d0 [ 31.560999] vprintk_emit+0x33a/0x910 [ 31.561003] vprintk_default+0x28/0x30 [ 31.561006] vprintk_func+0x7a/0x117 [ 31.561010] printk+0xa7/0xcf [ 31.561013] load_umh+0x51/0xbd [ 31.561017] do_one_initcall+0x127/0x838 [ 31.561021] kernel_init_freeable+0x4bb/0x5ae [ 31.561025] kernel_init+0x11/0x1b3 [ 31.561029] ret_from_fork+0x3a/0x50 [ 31.561031] [ 31.561033] -> #0 ((console_sem).lock){-...}: [ 31.561047] lock_acquire+0x1e4/0x4f0 [ 31.561052] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.561056] down_trylock+0x13/0x70 [ 31.561060] __down_trylock_console_sem+0xae/0x200 [ 31.561064] console_trylock+0x15/0xa0 [ 31.561068] vprintk_emit+0x31f/0x910 [ 31.561071] vprintk_default+0x28/0x30 [ 31.561075] vprintk_func+0x7a/0x117 [ 31.561079] printk+0xa7/0xcf [ 31.561082] kasan_report+0x9e/0x110 [ 31.561087] __asan_report_load8_noabort+0x14/0x20 [ 31.561091] __schedule+0xf54/0x1df0 [ 31.561095] preempt_schedule_common+0x22/0x60 [ 31.561099] _cond_resched+0x1d/0x30 [ 31.561110] wait_for_completion+0xa5/0x8d0 [ 31.561114] __synchronize_srcu+0x189/0x240 [ 31.561118] synchronize_srcu+0x335/0x56f [ 31.561123] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.561127] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.561131] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.561135] kvm_put_kvm+0x73f/0x1060 [ 31.561139] kvm_vm_release+0x42/0x50 [ 31.561143] __fput+0x36e/0x8c0 [ 31.561146] ____fput+0x15/0x20 [ 31.561150] task_work_run+0x1e8/0x2a0 [ 31.561154] do_exit+0x1ae4/0x26e0 [ 31.561158] do_group_exit+0x177/0x440 [ 31.561162] __x64_sys_exit_group+0x3e/0x50 [ 31.561166] do_syscall_64+0x1b9/0x820 [ 31.561170] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.561172] [ 31.561177] other info that might help us debug this: [ 31.561179] [ 31.561182] Chain exists of: [ 31.561184] (console_sem).lock --> &rq->lock --> report_lock [ 31.561202] [ 31.561206] Possible unsafe locking scenario: [ 31.561208] [ 31.561212] CPU0 CPU1 [ 31.561216] ---- ---- [ 31.561219] lock(report_lock); [ 31.561228] lock(&rq->lock); [ 31.561237] lock(report_lock); [ 31.561245] lock((console_sem).lock); [ 31.561253] [ 31.561256] *** DEADLOCK *** [ 31.561258] [ 31.561262] 2 locks held by syz-executor211/4455: [ 31.561265] #0: 00000000c4b4ab60 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 31.561296] #1: 00000000e80dd57d (report_lock){....}, at: kasan_report+0x8e/0x110 [ 31.561313] [ 31.561316] stack backtrace: [ 31.561322] CPU: 0 PID: 4455 Comm: syz-executor211 Not tainted 4.18.0+ #209 [ 31.561329] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.561332] Call Trace: [ 31.561336] dump_stack+0x1c9/0x2b4 [ 31.561340] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.561344] ? vprintk_func+0x100/0x117 [ 31.561349] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 31.561353] ? save_trace+0xe0/0x290 [ 31.561357] __lock_acquire+0x3449/0x5020 [ 31.561361] ? mark_held_locks+0x160/0x160 [ 31.561365] ? mark_held_locks+0x160/0x160 [ 31.561369] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 31.561373] ? is_bpf_text_address+0xd7/0x170 [ 31.561377] ? kernel_text_address+0x79/0xf0 [ 31.561382] ? __kernel_text_address+0xd/0x40 [ 31.561386] ? __save_stack_trace+0x8d/0xf0 [ 31.561390] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 31.561394] ? save_trace+0x290/0x290 [ 31.561398] ? save_stack_trace+0x1a/0x20 [ 31.561402] ? save_trace+0xe0/0x290 [ 31.561406] ? graph_lock+0x170/0x170 [ 31.561410] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.561414] lock_acquire+0x1e4/0x4f0 [ 31.561418] ? down_trylock+0x13/0x70 [ 31.561422] ? lock_release+0x9f0/0x9f0 [ 31.561426] ? trace_hardirqs_off+0xb8/0x2b0 [ 31.561430] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.561434] ? trace_hardirqs_off+0xb8/0x2b0 [ 31.561438] ? log_store+0x34f/0x4c0 [ 31.561442] ? vprintk_emit+0x31f/0x910 [ 31.561446] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.561450] ? down_trylock+0x13/0x70 [ 31.561453] down_trylock+0x13/0x70 [ 31.561458] __down_trylock_console_sem+0xae/0x200 [ 31.561462] console_trylock+0x15/0xa0 [ 31.561465] vprintk_emit+0x31f/0x910 [ 31.561469] ? wake_up_klogd+0x110/0x110 [ 31.561474] ? run_rebalance_domains+0x4c0/0x4c0 [ 31.561478] ? kasan_check_read+0x11/0x20 [ 31.561482] ? rcu_is_watching+0x8c/0x150 [ 31.561486] ? rcu_pm_notify+0xc0/0xc0 [ 31.561490] ? lock_acquire+0x1e4/0x4f0 [ 31.561493] ? kasan_report+0x8e/0x110 [ 31.561497] ? __schedule+0xf54/0x1df0 [ 31.561501] vprintk_default+0x28/0x30 [ 31.561505] vprintk_func+0x7a/0x117 [ 31.561508] printk+0xa7/0xcf [ 31.561512] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.561516] ? kasan_check_write+0x14/0x20 [ 31.561520] ? do_raw_spin_lock+0xc1/0x200 [ 31.561524] ? do_raw_spin_lock+0xc1/0x200 [ 31.561528] kasan_report+0x9e/0x110 [ 31.561533] __asan_report_load8_noabort+0x14/0x20 [ 31.561536] __schedule+0xf54/0x1df0 [ 31.561540] ? __sched_text_start+0x8/0x8 [ 31.561545] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 31.561549] ? __call_srcu+0x7e7/0x1040 [ 31.561553] ? check_same_owner+0x340/0x340 [ 31.561557] ? mark_held_locks+0x160/0x160 [ 31.561561] ? find_held_lock+0x36/0x1c0 [ 31.561565] preempt_schedule_common+0x22/0x60 [ 31.561569] _cond_resched+0x1d/0x30 [ 31.561573] wait_for_completion+0xa5/0x8d0 [ 31.561578] ? wait_for_completion_interruptible+0x950/0x950 [ 31.561582] ? __lockdep_init_map+0x105/0x590 [ 31.561586] ? __init_waitqueue_head+0x9e/0x150 [ 31.561590] ? init_wait_entry+0x1c0/0x1c0 [ 31.561594] __synchronize_srcu+0x189/0x240 [ 31.561598] ? call_srcu+0x10/0x10 [ 31.561602] ? rcu_unexpedite_gp+0x20/0x20 [ 31.561606] synchronize_srcu+0x335/0x56f [ 31.561610] ? lock_downgrade+0x8f0/0x8f0 [ 31.561615] ? synchronize_srcu_expedited+0x20/0x20 [ 31.561619] ? kasan_check_read+0x11/0x20 [ 31.561623] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.561627] ? kasan_check_write+0x14/0x20 [ 31.561631] ? do_raw_spin_lock+0xc1/0x200 [ 31.561636] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.561641] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.561644] ? kvfree+0x61/0x70 [ 31.561649] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.561652] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.561657] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.561661] ? kvm_arch_sync_events+0x30/0x30 [ 31.561666] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.561670] ? mmu_notifier_unregister+0x474/0x600 [ 31.561674] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.561678] ? kfree+0x111/0x210 [ 31.561682] ? __mmu_notifier_register+0x30/0x30 [ 31.561686] ? __free_pages+0x10a/0x190 [ 31.561690] ? free_unref_page+0x930/0x930 [ 31.561694] kvm_put_kvm+0x73f/0x1060 [ 31.561698] ? kvm_write_guest_cached+0x40/0x40 [ 31.561702] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.561706] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.561710] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.561714] ? kasan_check_write+0x14/0x20 [ 31.561718] ? do_raw_spin_lock+0xc1/0x200 [ 31.561722] ? kvm_irqfd_release+0xdd/0x120 [ 31.561726] ? kvm_irqfd_release+0xdd/0x120 [ 31.561730] ? kvm_put_kvm+0x1060/0x1060 [ 31.561734] kvm_vm_release+0x42/0x50 [ 31.561738] __fput+0x36e/0x8c0 [ 31.561742] ? __alloc_file+0x400/0x400 [ 31.561746] ? check_same_owner+0x340/0x340 [ 31.561750] ? kasan_check_write+0x14/0x20 [ 31.561754] ? do_raw_spin_lock+0xc1/0x200 [ 31.561757] ____fput+0x15/0x20 [ 31.561761] task_work_run+0x1e8/0x2a0 [ 31.561765] ? task_work_cancel+0x240/0x240 [ 31.561770] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.561774] ? switch_task_namespaces+0xa2/0xd0 [ 31.561778] do_exit+0x1ae4/0x26e0 [ 31.561782] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.561787] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.561791] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.561795] ? kfree+0x1d7/0x210 [ 31.561799] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.561804] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.561808] ? is_bpf_text_address+0xd7/0x170 [ 31.561811] ? kernel_ [ 31.561818] Lost 55 message(s)! [ 32.653678] Shutting down cpus with NMI [ 33.712303] Dumping ftrace buffer: [ 33.715828] (ftrace buffer empty) [ 33.719517] Kernel Offset: disabled [ 33.723127] Rebooting in 86400 seconds..