[....] Starting OpenBSD Secure Shell server: sshd[ 22.855383] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 33.814456] random: sshd: uninitialized urandom read (32 bytes read) [ 34.097431] random: sshd: uninitialized urandom read (32 bytes read) [ 34.638997] random: sshd: uninitialized urandom read (32 bytes read) [ 57.707178] random: sshd: uninitialized urandom read (32 bytes read) [ 57.842257] sshd (4450) used greatest stack depth: 16616 bytes left Warning: Permanently added '10.128.10.33' (ECDSA) to the list of known hosts. [ 63.256619] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 63.353380] 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. [ 63.375547] ================================================================== [ 63.384508] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 63.390892] Read of size 8 at addr ffff8801acd20058 by task syz-executor537/4455 [ 63.398414] [ 63.400044] CPU: 1 PID: 4455 Comm: syz-executor537 Not tainted 4.18.0+ #210 [ 63.407290] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 63.416792] Call Trace: [ 63.419379] dump_stack+0x1c9/0x2b4 [ 63.423024] ? dump_stack_print_info.cold.2+0x52/0x52 [ 63.428210] ? printk+0xa7/0xcf [ 63.431484] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 63.436238] ? __schedule+0xf54/0x1df0 [ 63.440123] print_address_description+0x6c/0x20b [ 63.444985] ? __schedule+0xf54/0x1df0 [ 63.448870] kasan_report.cold.7+0x242/0x30d [ 63.453274] __asan_report_load8_noabort+0x14/0x20 [ 63.458198] __schedule+0xf54/0x1df0 [ 63.461907] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 63.467180] ? __sched_text_start+0x8/0x8 [ 63.471327] ? __call_srcu+0x7e7/0x1040 [ 63.475302] ? check_same_owner+0x340/0x340 [ 63.479767] ? mark_held_locks+0x160/0x160 [ 63.484239] ? find_held_lock+0x36/0x1c0 [ 63.488300] preempt_schedule_common+0x22/0x60 [ 63.493065] _cond_resched+0x1d/0x30 [ 63.497461] wait_for_completion+0xa5/0x8d0 [ 63.502102] ? wait_for_completion_interruptible+0x950/0x950 [ 63.507904] ? __lockdep_init_map+0x105/0x590 [ 63.512566] ? __init_waitqueue_head+0x9e/0x150 [ 63.517232] ? init_wait_entry+0x1c0/0x1c0 [ 63.521468] __synchronize_srcu+0x189/0x240 [ 63.525786] ? call_srcu+0x10/0x10 [ 63.529327] ? rcu_unexpedite_gp+0x20/0x20 [ 63.533724] synchronize_srcu+0x335/0x56f [ 63.537872] ? lock_downgrade+0x8f0/0x8f0 [ 63.542159] ? synchronize_srcu_expedited+0x20/0x20 [ 63.547176] ? kasan_check_read+0x11/0x20 [ 63.551478] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 63.556169] ? kasan_check_write+0x14/0x20 [ 63.560405] ? do_raw_spin_lock+0xc1/0x200 [ 63.564642] kvm_page_track_unregister_notifier+0x17d/0x250 [ 63.570504] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 63.576082] ? kvfree+0x61/0x70 [ 63.579362] ? rcu_read_lock_sched_held+0x108/0x120 [ 63.584509] kvm_mmu_uninit_vm+0x1c/0x20 [ 63.588574] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 63.593002] ? kvm_arch_sync_events+0x30/0x30 [ 63.597781] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 63.603319] ? mmu_notifier_unregister+0x474/0x600 [ 63.608351] ? trace_hardirqs_on+0x2c0/0x2c0 [ 63.612759] ? kfree+0x111/0x210 [ 63.616322] ? __mmu_notifier_register+0x30/0x30 [ 63.621077] ? __free_pages+0x10a/0x190 [ 63.625048] ? free_unref_page+0x930/0x930 [ 63.629543] kvm_put_kvm+0x73f/0x1060 [ 63.633347] ? kvm_write_guest_cached+0x40/0x40 [ 63.638020] ? _raw_spin_unlock_irq+0x27/0x70 [ 63.642513] ? _raw_spin_unlock_irq+0x27/0x70 [ 63.647024] ? lockdep_hardirqs_on+0x421/0x5c0 [ 63.651608] ? kasan_check_write+0x14/0x20 [ 63.656028] ? do_raw_spin_lock+0xc1/0x200 [ 63.660266] ? kvm_irqfd_release+0xdd/0x120 [ 63.664585] ? kvm_irqfd_release+0xdd/0x120 [ 63.668908] ? kvm_put_kvm+0x1060/0x1060 [ 63.673103] kvm_vm_release+0x42/0x50 [ 63.677190] __fput+0x36e/0x8c0 [ 63.680469] ? __alloc_file+0x400/0x400 [ 63.684443] ? check_same_owner+0x340/0x340 [ 63.688925] ? kasan_check_write+0x14/0x20 [ 63.693299] ? do_raw_spin_lock+0xc1/0x200 [ 63.697856] ____fput+0x15/0x20 [ 63.701135] task_work_run+0x1e8/0x2a0 [ 63.705023] ? task_work_cancel+0x240/0x240 [ 63.709482] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 63.715020] ? switch_task_namespaces+0xa2/0xd0 [ 63.719686] do_exit+0x1ae4/0x26e0 [ 63.723384] ? mm_update_next_owner+0x9a0/0x9a0 [ 63.728167] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 63.732406] ? rcu_read_lock_sched_held+0x108/0x120 [ 63.737417] ? kfree+0x1d7/0x210 [ 63.740929] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 63.745164] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 63.751048] ? is_bpf_text_address+0xd7/0x170 [ 63.755645] ? kernel_text_address+0x79/0xf0 [ 63.760057] ? __kernel_text_address+0xd/0x40 [ 63.764726] ? unwind_get_return_address+0x61/0xa0 [ 63.769670] ? __save_stack_trace+0x8d/0xf0 [ 63.774011] ? save_stack+0xa9/0xd0 [ 63.777636] ? save_stack+0x43/0xd0 [ 63.781258] ? __kasan_slab_free+0x11a/0x170 [ 63.785811] ? kasan_slab_free+0xe/0x10 [ 63.789806] ? putname+0xf2/0x130 [ 63.793540] ? __x64_sys_openat+0x9d/0x100 [ 63.797772] ? do_syscall_64+0x1b9/0x820 [ 63.801831] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 63.807189] ? trace_hardirqs_off+0xb8/0x2b0 [ 63.811588] ? kasan_check_read+0x11/0x20 [ 63.815919] ? do_raw_spin_unlock+0xa7/0x2f0 [ 63.820323] ? trace_hardirqs_on+0x2c0/0x2c0 [ 63.824730] ? initcall_blacklisted+0x9a/0x1e0 [ 63.829448] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 63.834549] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 63.840257] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 63.845793] ? do_vfs_ioctl+0x201/0x1720 [ 63.849850] ? rcu_is_watching+0x8c/0x150 [ 63.854126] ? trace_hardirqs_on+0xbd/0x2c0 [ 63.858609] ? ioctl_preallocate+0x300/0x300 [ 63.863023] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 63.868683] ? __fget_light+0x2f7/0x440 [ 63.872800] ? fget_raw+0x20/0x20 [ 63.876253] ? putname+0xf2/0x130 [ 63.879705] ? rcu_read_lock_sched_held+0x108/0x120 [ 63.884717] ? kmem_cache_free+0x246/0x280 [ 63.888949] ? putname+0xf7/0x130 [ 63.892599] do_group_exit+0x177/0x440 [ 63.896601] ? trace_hardirqs_on+0xbd/0x2c0 [ 63.900917] ? __ia32_sys_exit+0x50/0x50 [ 63.904996] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 63.910245] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 63.915779] ? ksys_ioctl+0x81/0xd0 [ 63.919403] __x64_sys_exit_group+0x3e/0x50 [ 63.924528] do_syscall_64+0x1b9/0x820 [ 63.928414] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 63.933937] ? syscall_return_slowpath+0x5e0/0x5e0 [ 63.939028] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 63.944027] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 63.949043] ? prepare_exit_to_usermode+0x291/0x3b0 [ 63.954194] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 63.959208] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 63.964538] RIP: 0033:0x43ef08 [ 63.967730] Code: Bad RIP value. [ 63.971222] RSP: 002b:00007ffcfb4e4918 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 63.978925] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 63.986376] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 63.993644] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 64.001177] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 64.008691] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 64.015989] [ 64.017627] Allocated by task 4455: [ 64.021379] save_stack+0x43/0xd0 [ 64.025013] kasan_kmalloc+0xc4/0xe0 [ 64.028724] kasan_slab_alloc+0x12/0x20 [ 64.032692] kmem_cache_alloc+0x12e/0x710 [ 64.036995] vmx_create_vcpu+0xcf/0x2830 [ 64.041183] kvm_arch_vcpu_create+0xe5/0x220 [ 64.045741] kvm_vm_ioctl+0x488/0x1d80 [ 64.049956] do_vfs_ioctl+0x1de/0x1720 [ 64.053872] ksys_ioctl+0xa9/0xd0 [ 64.057475] __x64_sys_ioctl+0x73/0xb0 [ 64.061492] do_syscall_64+0x1b9/0x820 [ 64.065514] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.070870] [ 64.072493] Freed by task 4455: [ 64.075935] save_stack+0x43/0xd0 [ 64.079422] __kasan_slab_free+0x11a/0x170 [ 64.083660] kasan_slab_free+0xe/0x10 [ 64.087457] kmem_cache_free+0x86/0x280 [ 64.091426] vmx_free_vcpu+0x26b/0x300 [ 64.095620] kvm_arch_destroy_vm+0x365/0x7c0 [ 64.100031] kvm_put_kvm+0x73f/0x1060 [ 64.103935] kvm_vm_release+0x42/0x50 [ 64.107765] __fput+0x36e/0x8c0 [ 64.111038] ____fput+0x15/0x20 [ 64.114464] task_work_run+0x1e8/0x2a0 [ 64.118563] do_exit+0x1ae4/0x26e0 [ 64.122106] do_group_exit+0x177/0x440 [ 64.126184] __x64_sys_exit_group+0x3e/0x50 [ 64.130673] do_syscall_64+0x1b9/0x820 [ 64.134777] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.139984] [ 64.141621] The buggy address belongs to the object at ffff8801acd20040 [ 64.141621] which belongs to the cache kvm_vcpu of size 23872 [ 64.154186] The buggy address is located 24 bytes inside of [ 64.154186] 23872-byte region [ffff8801acd20040, ffff8801acd25d80) [ 64.166139] The buggy address belongs to the page: [ 64.171410] page:ffffea0006b34800 count:1 mapcount:0 mapping:ffff8801d4cbbc40 index:0x0 compound_mapcount: 0 [ 64.181526] flags: 0x2fffc0000008100(slab|head) [ 64.186193] raw: 02fffc0000008100 ffff8801d4cbad48 ffff8801d4cbad48 ffff8801d4cbbc40 [ 64.194196] raw: 0000000000000000 ffff8801acd20040 0000000100000001 0000000000000000 [ 64.202335] page dumped because: kasan: bad access detected [ 64.208035] [ 64.209674] Memory state around the buggy address: [ 64.214593] ffff8801acd1ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 64.221944] ffff8801acd1ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 64.229323] >ffff8801acd20000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 64.236669] ^ [ 64.242896] ffff8801acd20080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.250775] ffff8801acd20100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.258128] ================================================================== [ 64.265609] Kernel panic - not syncing: panic_on_warn set ... [ 64.265609] [ 64.273104] CPU: 1 PID: 4455 Comm: syz-executor537 Tainted: G B 4.18.0+ #210 [ 64.281770] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 64.291159] Call Trace: [ 64.293756] dump_stack+0x1c9/0x2b4 [ 64.297384] ? dump_stack_print_info.cold.2+0x52/0x52 [ 64.302751] ? lock_downgrade+0x8f0/0x8f0 [ 64.306898] ? __schedule+0xf54/0x1df0 [ 64.310904] panic+0x238/0x4e7 [ 64.314265] ? add_taint.cold.5+0x16/0x16 [ 64.318619] ? print_shadow_for_address+0xba/0x116 [ 64.324118] ? trace_hardirqs_off+0xaf/0x2b0 [ 64.328951] ? trace_hardirqs_off+0x77/0x2b0 [ 64.333503] ? __schedule+0xf54/0x1df0 [ 64.337552] kasan_end_report+0x47/0x4f [ 64.341528] kasan_report.cold.7+0x76/0x30d [ 64.345997] __asan_report_load8_noabort+0x14/0x20 [ 64.350925] __schedule+0xf54/0x1df0 [ 64.354632] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 64.359730] ? __sched_text_start+0x8/0x8 [ 64.363875] ? __call_srcu+0x7e7/0x1040 [ 64.368101] ? check_same_owner+0x340/0x340 [ 64.372423] ? mark_held_locks+0x160/0x160 [ 64.377001] ? find_held_lock+0x36/0x1c0 [ 64.381208] preempt_schedule_common+0x22/0x60 [ 64.386174] _cond_resched+0x1d/0x30 [ 64.390029] wait_for_completion+0xa5/0x8d0 [ 64.394353] ? wait_for_completion_interruptible+0x950/0x950 [ 64.400284] ? __lockdep_init_map+0x105/0x590 [ 64.405253] ? __init_waitqueue_head+0x9e/0x150 [ 64.409930] ? init_wait_entry+0x1c0/0x1c0 [ 64.414166] __synchronize_srcu+0x189/0x240 [ 64.418809] ? call_srcu+0x10/0x10 [ 64.422362] ? rcu_unexpedite_gp+0x20/0x20 [ 64.426599] synchronize_srcu+0x335/0x56f [ 64.430890] ? lock_downgrade+0x8f0/0x8f0 [ 64.435043] ? synchronize_srcu_expedited+0x20/0x20 [ 64.440209] ? kasan_check_read+0x11/0x20 [ 64.444511] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 64.449092] ? kasan_check_write+0x14/0x20 [ 64.453469] ? do_raw_spin_lock+0xc1/0x200 [ 64.457705] kvm_page_track_unregister_notifier+0x17d/0x250 [ 64.463539] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 64.469010] ? kvfree+0x61/0x70 [ 64.472413] ? rcu_read_lock_sched_held+0x108/0x120 [ 64.477432] kvm_mmu_uninit_vm+0x1c/0x20 [ 64.481490] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 64.486031] ? kvm_arch_sync_events+0x30/0x30 [ 64.490526] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 64.496064] ? mmu_notifier_unregister+0x474/0x600 [ 64.501008] ? trace_hardirqs_on+0x2c0/0x2c0 [ 64.505545] ? kfree+0x111/0x210 [ 64.508910] ? __mmu_notifier_register+0x30/0x30 [ 64.513802] ? __free_pages+0x10a/0x190 [ 64.517918] ? free_unref_page+0x930/0x930 [ 64.522161] kvm_put_kvm+0x73f/0x1060 [ 64.525988] ? kvm_write_guest_cached+0x40/0x40 [ 64.530661] ? _raw_spin_unlock_irq+0x27/0x70 [ 64.535302] ? _raw_spin_unlock_irq+0x27/0x70 [ 64.539801] ? lockdep_hardirqs_on+0x421/0x5c0 [ 64.544604] ? kasan_check_write+0x14/0x20 [ 64.548837] ? do_raw_spin_lock+0xc1/0x200 [ 64.553073] ? kvm_irqfd_release+0xdd/0x120 [ 64.557399] ? kvm_irqfd_release+0xdd/0x120 [ 64.561804] ? kvm_put_kvm+0x1060/0x1060 [ 64.565859] kvm_vm_release+0x42/0x50 [ 64.569657] __fput+0x36e/0x8c0 [ 64.572932] ? __alloc_file+0x400/0x400 [ 64.576907] ? check_same_owner+0x340/0x340 [ 64.581222] ? kasan_check_write+0x14/0x20 [ 64.585601] ? do_raw_spin_lock+0xc1/0x200 [ 64.589836] ____fput+0x15/0x20 [ 64.593111] task_work_run+0x1e8/0x2a0 [ 64.597250] ? task_work_cancel+0x240/0x240 [ 64.601573] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 64.607300] ? switch_task_namespaces+0xa2/0xd0 [ 64.612122] do_exit+0x1ae4/0x26e0 [ 64.615662] ? mm_update_next_owner+0x9a0/0x9a0 [ 64.620330] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 64.624694] ? rcu_read_lock_sched_held+0x108/0x120 [ 64.629855] ? kfree+0x1d7/0x210 [ 64.633221] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 64.637455] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 64.643298] ? is_bpf_text_address+0xd7/0x170 [ 64.647903] ? kernel_text_address+0x79/0xf0 [ 64.652314] ? __kernel_text_address+0xd/0x40 [ 64.656933] ? unwind_get_return_address+0x61/0xa0 [ 64.661890] ? __save_stack_trace+0x8d/0xf0 [ 64.666391] ? save_stack+0xa9/0xd0 [ 64.670339] ? save_stack+0x43/0xd0 [ 64.673990] ? __kasan_slab_free+0x11a/0x170 [ 64.678755] ? kasan_slab_free+0xe/0x10 [ 64.683090] ? putname+0xf2/0x130 [ 64.686542] ? __x64_sys_openat+0x9d/0x100 [ 64.690772] ? do_syscall_64+0x1b9/0x820 [ 64.695086] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.700760] ? trace_hardirqs_off+0xb8/0x2b0 [ 64.705166] ? kasan_check_read+0x11/0x20 [ 64.709310] ? do_raw_spin_unlock+0xa7/0x2f0 [ 64.713880] ? trace_hardirqs_on+0x2c0/0x2c0 [ 64.718289] ? initcall_blacklisted+0x9a/0x1e0 [ 64.722871] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 64.727998] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 64.733872] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 64.739547] ? do_vfs_ioctl+0x201/0x1720 [ 64.743712] ? rcu_is_watching+0x8c/0x150 [ 64.747862] ? trace_hardirqs_on+0xbd/0x2c0 [ 64.752450] ? ioctl_preallocate+0x300/0x300 [ 64.756863] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 64.762400] ? __fget_light+0x2f7/0x440 [ 64.766505] ? fget_raw+0x20/0x20 [ 64.770329] ? putname+0xf2/0x130 [ 64.773912] ? rcu_read_lock_sched_held+0x108/0x120 [ 64.779065] ? kmem_cache_free+0x246/0x280 [ 64.783442] ? putname+0xf7/0x130 [ 64.786899] do_group_exit+0x177/0x440 [ 64.790787] ? trace_hardirqs_on+0xbd/0x2c0 [ 64.795229] ? __ia32_sys_exit+0x50/0x50 [ 64.799291] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 64.804558] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 64.810249] ? ksys_ioctl+0x81/0xd0 [ 64.814023] __x64_sys_exit_group+0x3e/0x50 [ 64.818351] do_syscall_64+0x1b9/0x820 [ 64.822393] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 64.828056] ? syscall_return_slowpath+0x5e0/0x5e0 [ 64.833133] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 64.838353] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 64.843739] ? prepare_exit_to_usermode+0x291/0x3b0 [ 64.849079] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 64.853932] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.859118] RIP: 0033:0x43ef08 [ 64.862310] Code: Bad RIP value. [ 64.865668] RSP: 002b:00007ffcfb4e4918 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 64.873514] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 64.881089] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 64.888660] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 64.896508] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 64.904142] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 64.911422] [ 64.911426] ====================================================== [ 64.911429] WARNING: possible circular locking dependency detected [ 64.911431] 4.18.0+ #210 Not tainted [ 64.911435] ------------------------------------------------------ [ 64.911438] syz-executor537/4455 is trying to acquire lock: [ 64.911440] 00000000db7b2e7f ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 64.911448] [ 64.911450] but task is already holding lock: [ 64.911452] 000000003c0bf725 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 64.911460] [ 64.911463] which lock already depends on the new lock. [ 64.911464] [ 64.911465] [ 64.911468] the existing dependency chain (in reverse order) is: [ 64.911470] [ 64.911471] -> #3 (report_lock){....}: [ 64.911479] _raw_spin_lock_irqsave+0x96/0xc0 [ 64.911481] kasan_report+0x8e/0x110 [ 64.911484] __asan_report_load8_noabort+0x14/0x20 [ 64.911486] __schedule+0xf54/0x1df0 [ 64.911489] preempt_schedule_common+0x22/0x60 [ 64.911491] _cond_resched+0x1d/0x30 [ 64.911494] wait_for_completion+0xa5/0x8d0 [ 64.911496] __synchronize_srcu+0x189/0x240 [ 64.911499] synchronize_srcu+0x335/0x56f [ 64.911502] kvm_page_track_unregister_notifier+0x17d/0x250 [ 64.911504] kvm_mmu_uninit_vm+0x1c/0x20 [ 64.911506] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 64.911508] kvm_put_kvm+0x73f/0x1060 [ 64.911511] kvm_vm_release+0x42/0x50 [ 64.911513] __fput+0x36e/0x8c0 [ 64.911515] ____fput+0x15/0x20 [ 64.911517] task_work_run+0x1e8/0x2a0 [ 64.911519] do_exit+0x1ae4/0x26e0 [ 64.911521] do_group_exit+0x177/0x440 [ 64.911524] __x64_sys_exit_group+0x3e/0x50 [ 64.911526] do_syscall_64+0x1b9/0x820 [ 64.911529] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.911530] [ 64.911531] -> #2 (&rq->lock){-.-.}: [ 64.911539] _raw_spin_lock+0x2a/0x40 [ 64.911541] task_fork_fair+0x93/0x680 [ 64.911543] sched_fork+0x44b/0xbd0 [ 64.911546] copy_process+0x235e/0x7ad0 [ 64.911548] _do_fork+0x1ca/0x1170 [ 64.911550] kernel_thread+0x34/0x40 [ 64.911552] rest_init+0x22/0xe4 [ 64.911554] start_kernel+0x913/0x94e [ 64.911557] x86_64_start_reservations+0x29/0x2b [ 64.911559] x86_64_start_kernel+0x76/0x79 [ 64.911562] secondary_startup_64+0xa4/0xb0 [ 64.911563] [ 64.911564] -> #1 (&p->pi_lock){-.-.}: [ 64.911572] _raw_spin_lock_irqsave+0x96/0xc0 [ 64.911575] try_to_wake_up+0xd2/0x1250 [ 64.911577] wake_up_process+0x10/0x20 [ 64.911579] __up.isra.1+0x1c0/0x2a0 [ 64.911581] up+0x13c/0x1c0 [ 64.911583] __up_console_sem+0xbe/0x1b0 [ 64.911586] console_unlock+0x506/0x10d0 [ 64.911588] vprintk_emit+0x33a/0x910 [ 64.911590] vprintk_default+0x28/0x30 [ 64.911592] vprintk_func+0x7a/0x117 [ 64.911594] printk+0xa7/0xcf [ 64.911596] load_umh+0x51/0xbd [ 64.911599] do_one_initcall+0x127/0x838 [ 64.911601] kernel_init_freeable+0x4bb/0x5ae [ 64.911603] kernel_init+0x11/0x1b3 [ 64.911605] ret_from_fork+0x3a/0x50 [ 64.911607] [ 64.911608] -> #0 ((console_sem).lock){-...}: [ 64.911616] lock_acquire+0x1e4/0x4f0 [ 64.911618] _raw_spin_lock_irqsave+0x96/0xc0 [ 64.911621] down_trylock+0x13/0x70 [ 64.911623] __down_trylock_console_sem+0xae/0x200 [ 64.911625] console_trylock+0x15/0xa0 [ 64.911628] vprintk_emit+0x31f/0x910 [ 64.911630] vprintk_default+0x28/0x30 [ 64.911632] vprintk_func+0x7a/0x117 [ 64.911634] printk+0xa7/0xcf [ 64.911636] kasan_report+0x9e/0x110 [ 64.911639] __asan_report_load8_noabort+0x14/0x20 [ 64.911641] __schedule+0xf54/0x1df0 [ 64.911644] preempt_schedule_common+0x22/0x60 [ 64.911646] _cond_resched+0x1d/0x30 [ 64.911648] wait_for_completion+0xa5/0x8d0 [ 64.911651] __synchronize_srcu+0x189/0x240 [ 64.911653] synchronize_srcu+0x335/0x56f [ 64.911656] kvm_page_track_unregister_notifier+0x17d/0x250 [ 64.911658] kvm_mmu_uninit_vm+0x1c/0x20 [ 64.911661] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 64.911663] kvm_put_kvm+0x73f/0x1060 [ 64.911665] kvm_vm_release+0x42/0x50 [ 64.911667] __fput+0x36e/0x8c0 [ 64.911669] ____fput+0x15/0x20 [ 64.911672] task_work_run+0x1e8/0x2a0 [ 64.911674] do_exit+0x1ae4/0x26e0 [ 64.911676] do_group_exit+0x177/0x440 [ 64.911679] __x64_sys_exit_group+0x3e/0x50 [ 64.911681] do_syscall_64+0x1b9/0x820 [ 64.911684] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 64.911685] [ 64.911688] other info that might help us debug this: [ 64.911689] [ 64.911691] Chain exists of: [ 64.911692] (console_sem).lock --> &rq->lock --> report_lock [ 64.911702] [ 64.911704] Possible unsafe locking scenario: [ 64.911705] [ 64.911708] CPU0 CPU1 [ 64.911710] ---- ---- [ 64.911711] lock(report_lock); [ 64.911717] lock(&rq->lock); [ 64.911722] lock(report_lock); [ 64.911726] lock((console_sem).lock); [ 64.911730] [ 64.911732] *** DEADLOCK *** [ 64.911733] [ 64.911736] 2 locks held by syz-executor537/4455: [ 64.911737] #0: 00000000bac530b3 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 64.911747] #1: 000000003c0bf725 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 64.911761] [ 64.911763] stack backtrace: [ 64.911766] CPU: 1 PID: 4455 Comm: syz-executor537 Not tainted 4.18.0+ #210 [ 64.911771] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 64.911773] Call Trace: [ 64.911775] dump_stack+0x1c9/0x2b4 [ 64.911777] ? dump_stack_print_info.cold.2+0x52/0x52 [ 64.911780] ? vprintk_func+0x100/0x117 [ 64.911783] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 64.911785] ? save_trace+0xe0/0x290 [ 64.911788] __lock_acquire+0x3449/0x5020 [ 64.911790] ? mark_held_locks+0x160/0x160 [ 64.911792] ? mark_held_locks+0x160/0x160 [ 64.911795] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 64.911797] ? is_bpf_text_address+0xd7/0x170 [ 64.911800] ? kernel_text_address+0x79/0xf0 [ 64.911802] ? __kernel_text_address+0xd/0x40 [ 64.911804] ? __save_stack_trace+0x8d/0xf0 [ 64.911807] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 64.911809] ? save_trace+0x290/0x290 [ 64.911812] ? save_stack_trace+0x1a/0x20 [ 64.911814] ? save_trace+0xe0/0x290 [ 64.911816] ? graph_lock+0x170/0x170 [ 64.911819] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 64.911821] lock_acquire+0x1e4/0x4f0 [ 64.911823] ? down_trylock+0x13/0x70 [ 64.911826] ? lock_release+0x9f0/0x9f0 [ 64.911828] ? trace_hardirqs_off+0xb8/0x2b0 [ 64.911830] ? trace_hardirqs_on+0x2c0/0x2c0 [ 64.911833] ? trace_hardirqs_off+0xb8/0x2b0 [ 64.911835] ? log_store+0x34f/0x4c0 [ 64.911837] ? vprintk_emit+0x31f/0x910 [ 64.911840] _raw_spin_lock_irqsave+0x96/0xc0 [ 64.911842] ? down_trylock+0x13/0x70 [ 64.911844] down_trylock+0x13/0x70 [ 64.911846] __down_trylock_console_sem+0xae/0x200 [ 64.911849] console_trylock+0x15/0xa0 [ 64.911851] vprintk_emit+0x31f/0x910 [ 64.911853] ? wake_up_klogd+0x110/0x110 [ 64.911855] ? run_rebalance_domains+0x4c0/0x4c0 [ 64.911858] ? kasan_check_read+0x11/0x20 [ 64.911860] ? rcu_is_watching+0x8c/0x150 [ 64.911862] ? rcu_pm_notify+0xc0/0xc0 [ 64.911865] ? lock_acquire+0x1e4/0x4f0 [ 64.911867] ? kasan_report+0x8e/0x110 [ 64.911869] ? __schedule+0xf54/0x1df0 [ 64.911871] vprintk_default+0x28/0x30 [ 64.911873] vprintk_func+0x7a/0x117 [ 64.911875] printk+0xa7/0xcf [ 64.911878] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 64.911880] ? kasan_check_write+0x14/0x20 [ 64.911882] ? do_raw_spin_lock+0xc1/0x200 [ 64.911885] ? do_raw_spin_lock+0xc1/0x200 [ 64.911887] kasan_report+0x9e/0x110 [ 64.911889] __asan_report_load8_noabort+0x14/0x20 [ 64.911891] __schedule+0xf54/0x1df0 [ 64.911894] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 64.911896] ? __sched_text_start+0x8/0x8 [ 64.911899] ? __call_srcu+0x7e7/0x1040 [ 64.911901] ? check_same_owner+0x340/0x340 [ 64.911904] ? mark_held_locks+0x160/0x160 [ 64.911906] ? find_held_lock+0x36/0x1c0 [ 64.911908] preempt_schedule_common+0x22/0x60 [ 64.911911] _cond_resched+0x1d/0x30 [ 64.911913] wait_for_completion+0xa5/0x8d0 [ 64.911916] ? wait_for_completion_interruptible+0x950/0x950 [ 64.911918] ? __lockdep_init_map+0x105/0x590 [ 64.911921] ? __init_waitqueue_head+0x9e/0x150 [ 64.911923] ? init_wait_entry+0x1c0/0x1c0 [ 64.911926] __synchronize_srcu+0x189/0x240 [ 64.911928] ? call_srcu+0x10/0x10 [ 64.911930] ? rcu_unexpedite_gp+0x20/0x20 [ 64.911933] synchronize_srcu+0x335/0x56f [ 64.911935] ? lock_downgrade+0x8f0/0x8f0 [ 64.911938] ? synchronize_srcu_expedited+0x20/0x20 [ 64.911940] ? kasan_check_read+0x11/0x20 [ 64.911942] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 64.911945] ? kasan_check_write+0x14/0x20 [ 64.911947] ? do_raw_spin_lock+0xc1/0x200 [ 64.911950] kvm_page_track_unregister_notifier+0x17d/0x250 [ 64.911953] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 64.911955] ? kvfree+0x61/0x70 [ 64.911957] ? rcu_read_lock_sched_held+0x108/0x120 [ 64.911987] kvm_mmu_uninit_vm+0x1c/0x20 [ 64.911989] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 64.911991] ? kvm_arch_sync_events+0x30/0x30 [ 64.911994] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 64.911997] ? mmu_notifier_unregister+0x474/0x600 [ 64.911999] ? trace_hardirqs_on+0x2c0/0x2c0 [ 64.912001] ? kfree+0x111/0x210 [ 64.912004] ? __mmu_notifier_register+0x30/0x30 [ 64.912006] ? __free_pages+0x10a/0x190 [ 64.912008] ? free_unref_page+0x930/0x930 [ 64.912010] kvm_put_kvm+0x73f/0x1060 [ 64.912013] ? kvm_write_guest_cached+0x40/0x40 [ 64.912015] ? _raw_spin_unlock_irq+0x27/0x70 [ 64.912018] ? _raw_spin_unlock_irq+0x27/0x70 [ 64.912020] ? lockdep_hardirqs_on+0x421/0x5c0 [ 64.912022] ? kasan_check_write+0x14/0x20 [ 64.912025] ? do_raw_spin_lock+0xc1/0x200 [ 64.912027] ? kvm_irqfd_release+0xdd/0x120 [ 64.912030] ? kvm_irqfd_release+0xdd/0x120 [ 64.912032] ? kvm_put_kvm+0x1060/0x1060 [ 64.912034] kvm_vm_release+0x42/0x50 [ 64.912036] __fput+0x36e/0x8c0 [ 64.912038] ? __alloc_file+0x400/0x400 [ 64.912041] ? check_same_owner+0x340/0x340 [ 64.912043] ? kasan_check_write+0x14/0x20 [ 64.912045] ? do_raw_spin_lock+0xc1/0x200 [ 64.912047] ____fput+0x15/0x20 [ 64.912049] task_work_run+0x1e8/0x2a0 [ 64.912052] ? task_work_cancel+0x240/0x240 [ 64.912054] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 64.912057] ? switch_task_namespaces+0xa2/0xd0 [ 64.912059] do_exit+0x1ae4/0x26e0 [ 64.912061] ? mm_update_next_owner+0x9a0/0x9a0 [ 64.912064] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 64.912066] ? rcu_read_lock_sched_held+0x108/0x120 [ 64.912068] ? kfree+0x1d7/0x210 [ 64.912071] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 64.912074] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 64.912076] ? is_bpf_text_address+0xd7/0x170 [ 64.912077] ? kernel_ [ 64.912082] Lost 54 message(s)! [ 65.985937] Shutting down cpus with NMI [ 67.044862] Dumping ftrace buffer: [ 67.048391] (ftrace buffer empty) [ 67.052078] Kernel Offset: disabled [ 67.055685] Rebooting in 86400 seconds..