[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 21.758214] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.740915] random: sshd: uninitialized urandom read (32 bytes read) [ 25.921942] random: sshd: uninitialized urandom read (32 bytes read) [ 26.462967] random: sshd: uninitialized urandom read (32 bytes read) [ 47.603939] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.25' (ECDSA) to the list of known hosts. [ 53.319303] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 53.423242] 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. [ 53.448803] ================================================================== [ 53.458603] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 53.464835] Read of size 8 at addr ffff8801d9350058 by task syz-executor538/4675 [ 53.472357] [ 53.473985] CPU: 1 PID: 4675 Comm: syz-executor538 Not tainted 4.19.0-rc1+ #216 [ 53.481429] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.490786] Call Trace: [ 53.493388] dump_stack+0x1c9/0x2b4 [ 53.497024] ? dump_stack_print_info.cold.2+0x52/0x52 [ 53.502211] ? printk+0xa7/0xcf [ 53.505493] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 53.510252] ? __schedule+0xf54/0x1df0 [ 53.514140] print_address_description+0x6c/0x20b [ 53.518985] ? __schedule+0xf54/0x1df0 [ 53.522928] kasan_report.cold.7+0x242/0x30d [ 53.527362] __asan_report_load8_noabort+0x14/0x20 [ 53.532301] __schedule+0xf54/0x1df0 [ 53.536029] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 53.541138] ? __sched_text_start+0x8/0x8 [ 53.545289] ? __call_srcu+0x7e7/0x1040 [ 53.549278] ? check_same_owner+0x340/0x340 [ 53.553600] ? mark_held_locks+0x160/0x160 [ 53.557836] ? find_held_lock+0x36/0x1c0 [ 53.561904] preempt_schedule_common+0x22/0x60 [ 53.566489] _cond_resched+0x1d/0x30 [ 53.570207] wait_for_completion+0xa5/0x8d0 [ 53.574536] ? wait_for_completion_interruptible+0x950/0x950 [ 53.580343] ? __lockdep_init_map+0x105/0x590 [ 53.584846] ? __init_waitqueue_head+0x9e/0x150 [ 53.589516] ? init_wait_entry+0x1c0/0x1c0 [ 53.593756] __synchronize_srcu+0x189/0x240 [ 53.598079] ? call_srcu+0x10/0x10 [ 53.601621] ? rcu_unexpedite_gp+0x20/0x20 [ 53.605864] synchronize_srcu+0x335/0x56f [ 53.610009] ? lock_downgrade+0x8f0/0x8f0 [ 53.614159] ? synchronize_srcu_expedited+0x20/0x20 [ 53.619176] ? kasan_check_read+0x11/0x20 [ 53.623329] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 53.627908] ? kasan_check_write+0x14/0x20 [ 53.632141] ? do_raw_spin_lock+0xc1/0x200 [ 53.636381] kvm_page_track_unregister_notifier+0x17d/0x250 [ 53.642094] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 53.647542] ? kvfree+0x61/0x70 [ 53.650821] ? rcu_read_lock_sched_held+0x108/0x120 [ 53.655836] kvm_mmu_uninit_vm+0x1c/0x20 [ 53.659895] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 53.664304] ? kvm_arch_sync_events+0x30/0x30 [ 53.668818] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 53.674363] ? mmu_notifier_unregister+0x474/0x600 [ 53.679293] ? trace_hardirqs_on+0x2c0/0x2c0 [ 53.683714] ? kfree+0x111/0x210 [ 53.687088] ? __mmu_notifier_register+0x30/0x30 [ 53.691854] ? __free_pages+0x10a/0x190 [ 53.695833] ? free_unref_page+0x930/0x930 [ 53.700105] kvm_put_kvm+0x73f/0x1060 [ 53.703922] ? kvm_write_guest_cached+0x40/0x40 [ 53.708606] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.713130] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.717635] ? lockdep_hardirqs_on+0x421/0x5c0 [ 53.722232] ? kasan_check_write+0x14/0x20 [ 53.726477] ? do_raw_spin_lock+0xc1/0x200 [ 53.730724] ? kvm_irqfd_release+0xdd/0x120 [ 53.735056] ? kvm_irqfd_release+0xdd/0x120 [ 53.739384] ? kvm_put_kvm+0x1060/0x1060 [ 53.743452] kvm_vm_release+0x42/0x50 [ 53.747252] __fput+0x38a/0xa40 [ 53.750539] ? __alloc_file+0x400/0x400 [ 53.754521] ? check_same_owner+0x340/0x340 [ 53.758843] ? kasan_check_write+0x14/0x20 [ 53.763078] ? do_raw_spin_lock+0xc1/0x200 [ 53.767314] ____fput+0x15/0x20 [ 53.770607] task_work_run+0x1e8/0x2a0 [ 53.774498] ? task_work_cancel+0x240/0x240 [ 53.778826] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 53.784371] ? switch_task_namespaces+0xa2/0xd0 [ 53.789044] do_exit+0x1ae4/0x26e0 [ 53.792593] ? mm_update_next_owner+0x9a0/0x9a0 [ 53.797302] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 53.801557] ? rcu_read_lock_sched_held+0x108/0x120 [ 53.806578] ? kfree+0x1d7/0x210 [ 53.809951] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 53.814193] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 53.819916] ? is_bpf_text_address+0xd7/0x170 [ 53.824428] ? kernel_text_address+0x79/0xf0 [ 53.828847] ? __kernel_text_address+0xd/0x40 [ 53.833352] ? unwind_get_return_address+0x61/0xa0 [ 53.838289] ? __save_stack_trace+0x8d/0xf0 [ 53.842631] ? save_stack+0xa9/0xd0 [ 53.846260] ? save_stack+0x43/0xd0 [ 53.849902] ? __kasan_slab_free+0x11a/0x170 [ 53.854309] ? kasan_slab_free+0xe/0x10 [ 53.858293] ? putname+0xf2/0x130 [ 53.861752] ? __x64_sys_openat+0x9d/0x100 [ 53.866000] ? do_syscall_64+0x1b9/0x820 [ 53.870067] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 53.875449] ? trace_hardirqs_off+0xb8/0x2b0 [ 53.879861] ? kasan_check_read+0x11/0x20 [ 53.884011] ? do_raw_spin_unlock+0xa7/0x2f0 [ 53.888417] ? trace_hardirqs_on+0x2c0/0x2c0 [ 53.892828] ? initcall_blacklisted+0x9a/0x1e0 [ 53.897413] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 53.902532] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 53.908250] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.913803] ? do_vfs_ioctl+0x201/0x1720 [ 53.917882] ? rcu_is_watching+0x8c/0x150 [ 53.922043] ? trace_hardirqs_on+0xbd/0x2c0 [ 53.926383] ? ioctl_preallocate+0x300/0x300 [ 53.930796] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.936340] ? __fget_light+0x2f7/0x440 [ 53.940333] ? fget_raw+0x20/0x20 [ 53.943784] ? putname+0xf2/0x130 [ 53.947234] ? rcu_read_lock_sched_held+0x108/0x120 [ 53.952243] ? kmem_cache_free+0x246/0x280 [ 53.956485] ? putname+0xf7/0x130 [ 53.959936] do_group_exit+0x177/0x440 [ 53.963832] ? trace_hardirqs_on+0xbd/0x2c0 [ 53.968158] ? __ia32_sys_exit+0x50/0x50 [ 53.972214] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 53.977330] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 53.982862] ? ksys_ioctl+0x81/0xd0 [ 53.986485] __x64_sys_exit_group+0x3e/0x50 [ 53.990829] do_syscall_64+0x1b9/0x820 [ 53.994732] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 54.000091] ? syscall_return_slowpath+0x5e0/0x5e0 [ 54.005015] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.009856] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 54.014869] ? prepare_exit_to_usermode+0x291/0x3b0 [ 54.019884] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.024727] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.029908] RIP: 0033:0x43ef08 [ 54.033098] Code: Bad RIP value. [ 54.036477] RSP: 002b:00007ffe68fa7f58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 54.044191] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 54.051460] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 54.058722] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 54.065983] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 54.073242] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 54.080506] [ 54.082122] Allocated by task 4675: [ 54.085745] save_stack+0x43/0xd0 [ 54.089191] kasan_kmalloc+0xc4/0xe0 [ 54.092897] kasan_slab_alloc+0x12/0x20 [ 54.096866] kmem_cache_alloc+0x12e/0x710 [ 54.101011] vmx_create_vcpu+0xcf/0x2830 [ 54.105068] kvm_arch_vcpu_create+0xe5/0x220 [ 54.109475] kvm_vm_ioctl+0x488/0x1d80 [ 54.113357] do_vfs_ioctl+0x1de/0x1720 [ 54.117237] ksys_ioctl+0xa9/0xd0 [ 54.120686] __x64_sys_ioctl+0x73/0xb0 [ 54.124568] do_syscall_64+0x1b9/0x820 [ 54.128456] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.133629] [ 54.135246] Freed by task 4675: [ 54.138530] save_stack+0x43/0xd0 [ 54.141976] __kasan_slab_free+0x11a/0x170 [ 54.146206] kasan_slab_free+0xe/0x10 [ 54.149998] kmem_cache_free+0x86/0x280 [ 54.153967] vmx_free_vcpu+0x26b/0x300 [ 54.157848] kvm_arch_destroy_vm+0x365/0x7c0 [ 54.162264] kvm_put_kvm+0x73f/0x1060 [ 54.166072] kvm_vm_release+0x42/0x50 [ 54.169866] __fput+0x38a/0xa40 [ 54.173137] ____fput+0x15/0x20 [ 54.176413] task_work_run+0x1e8/0x2a0 [ 54.180300] do_exit+0x1ae4/0x26e0 [ 54.183847] do_group_exit+0x177/0x440 [ 54.187726] __x64_sys_exit_group+0x3e/0x50 [ 54.192080] do_syscall_64+0x1b9/0x820 [ 54.196007] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.201201] [ 54.202826] The buggy address belongs to the object at ffff8801d9350040 [ 54.202826] which belongs to the cache kvm_vcpu of size 23872 [ 54.215519] The buggy address is located 24 bytes inside of [ 54.215519] 23872-byte region [ffff8801d9350040, ffff8801d9355d80) [ 54.227459] The buggy address belongs to the page: [ 54.232371] page:ffffea000764d400 count:1 mapcount:0 mapping:ffff8801d52fd6c0 index:0x0 compound_mapcount: 0 [ 54.242377] flags: 0x2fffc0000008100(slab|head) [ 54.247074] raw: 02fffc0000008100 ffff8801d5305c48 ffff8801d5305c48 ffff8801d52fd6c0 [ 54.254975] raw: 0000000000000000 ffff8801d9350040 0000000100000001 0000000000000000 [ 54.262847] page dumped because: kasan: bad access detected [ 54.268550] [ 54.270167] Memory state around the buggy address: [ 54.275092] ffff8801d934ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.282445] ffff8801d934ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 54.289801] >ffff8801d9350000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 54.297153] ^ [ 54.303381] ffff8801d9350080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.310741] ffff8801d9350100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.318090] ================================================================== [ 54.325443] Kernel panic - not syncing: panic_on_warn set ... [ 54.325443] [ 54.333332] CPU: 1 PID: 4675 Comm: syz-executor538 Tainted: G B 4.19.0-rc1+ #216 [ 54.342159] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.351507] Call Trace: [ 54.354124] dump_stack+0x1c9/0x2b4 [ 54.357744] ? dump_stack_print_info.cold.2+0x52/0x52 [ 54.362917] ? lock_downgrade+0x8f0/0x8f0 [ 54.367044] ? __schedule+0xf54/0x1df0 [ 54.370924] panic+0x238/0x4e7 [ 54.374111] ? add_taint.cold.5+0x16/0x16 [ 54.378239] ? print_shadow_for_address+0xba/0x116 [ 54.383145] ? trace_hardirqs_off+0xaf/0x2b0 [ 54.387534] ? trace_hardirqs_off+0x77/0x2b0 [ 54.391924] ? __schedule+0xf54/0x1df0 [ 54.395793] kasan_end_report+0x47/0x4f [ 54.399749] kasan_report.cold.7+0x76/0x30d [ 54.404050] __asan_report_load8_noabort+0x14/0x20 [ 54.408961] __schedule+0xf54/0x1df0 [ 54.412721] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 54.417834] ? __sched_text_start+0x8/0x8 [ 54.421993] ? __call_srcu+0x7e7/0x1040 [ 54.425989] ? check_same_owner+0x340/0x340 [ 54.430313] ? mark_held_locks+0x160/0x160 [ 54.434546] ? find_held_lock+0x36/0x1c0 [ 54.438606] preempt_schedule_common+0x22/0x60 [ 54.443184] _cond_resched+0x1d/0x30 [ 54.446892] wait_for_completion+0xa5/0x8d0 [ 54.451216] ? wait_for_completion_interruptible+0x950/0x950 [ 54.457006] ? __lockdep_init_map+0x105/0x590 [ 54.461498] ? __init_waitqueue_head+0x9e/0x150 [ 54.466172] ? init_wait_entry+0x1c0/0x1c0 [ 54.470416] __synchronize_srcu+0x189/0x240 [ 54.474749] ? call_srcu+0x10/0x10 [ 54.478286] ? rcu_unexpedite_gp+0x20/0x20 [ 54.482524] synchronize_srcu+0x335/0x56f [ 54.486665] ? lock_downgrade+0x8f0/0x8f0 [ 54.490807] ? synchronize_srcu_expedited+0x20/0x20 [ 54.495820] ? kasan_check_read+0x11/0x20 [ 54.499966] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 54.504556] ? kasan_check_write+0x14/0x20 [ 54.508784] ? do_raw_spin_lock+0xc1/0x200 [ 54.513016] kvm_page_track_unregister_notifier+0x17d/0x250 [ 54.518721] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 54.524186] ? kvfree+0x61/0x70 [ 54.527470] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.532485] kvm_mmu_uninit_vm+0x1c/0x20 [ 54.536541] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 54.540944] ? kvm_arch_sync_events+0x30/0x30 [ 54.545439] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.550985] ? mmu_notifier_unregister+0x474/0x600 [ 54.555908] ? trace_hardirqs_on+0x2c0/0x2c0 [ 54.560345] ? kfree+0x111/0x210 [ 54.563713] ? __mmu_notifier_register+0x30/0x30 [ 54.568469] ? __free_pages+0x10a/0x190 [ 54.572441] ? free_unref_page+0x930/0x930 [ 54.576692] kvm_put_kvm+0x73f/0x1060 [ 54.580506] ? kvm_write_guest_cached+0x40/0x40 [ 54.585180] ? _raw_spin_unlock_irq+0x27/0x70 [ 54.589671] ? _raw_spin_unlock_irq+0x27/0x70 [ 54.594167] ? lockdep_hardirqs_on+0x421/0x5c0 [ 54.598748] ? kasan_check_write+0x14/0x20 [ 54.602979] ? do_raw_spin_lock+0xc1/0x200 [ 54.607213] ? kvm_irqfd_release+0xdd/0x120 [ 54.611535] ? kvm_irqfd_release+0xdd/0x120 [ 54.615853] ? kvm_put_kvm+0x1060/0x1060 [ 54.619912] kvm_vm_release+0x42/0x50 [ 54.623734] __fput+0x38a/0xa40 [ 54.627030] ? __alloc_file+0x400/0x400 [ 54.631017] ? check_same_owner+0x340/0x340 [ 54.635344] ? kasan_check_write+0x14/0x20 [ 54.639577] ? do_raw_spin_lock+0xc1/0x200 [ 54.643810] ____fput+0x15/0x20 [ 54.647093] task_work_run+0x1e8/0x2a0 [ 54.650971] ? task_work_cancel+0x240/0x240 [ 54.655302] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.660870] ? switch_task_namespaces+0xa2/0xd0 [ 54.665552] do_exit+0x1ae4/0x26e0 [ 54.669093] ? mm_update_next_owner+0x9a0/0x9a0 [ 54.673766] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 54.678008] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.683018] ? kfree+0x1d7/0x210 [ 54.686399] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 54.690635] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 54.696364] ? is_bpf_text_address+0xd7/0x170 [ 54.700860] ? kernel_text_address+0x79/0xf0 [ 54.705263] ? __kernel_text_address+0xd/0x40 [ 54.709755] ? unwind_get_return_address+0x61/0xa0 [ 54.714688] ? __save_stack_trace+0x8d/0xf0 [ 54.719021] ? save_stack+0xa9/0xd0 [ 54.722647] ? save_stack+0x43/0xd0 [ 54.726271] ? __kasan_slab_free+0x11a/0x170 [ 54.730678] ? kasan_slab_free+0xe/0x10 [ 54.734653] ? putname+0xf2/0x130 [ 54.738107] ? __x64_sys_openat+0x9d/0x100 [ 54.742347] ? do_syscall_64+0x1b9/0x820 [ 54.746408] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.751775] ? trace_hardirqs_off+0xb8/0x2b0 [ 54.756185] ? kasan_check_read+0x11/0x20 [ 54.760339] ? do_raw_spin_unlock+0xa7/0x2f0 [ 54.764746] ? trace_hardirqs_on+0x2c0/0x2c0 [ 54.769158] ? initcall_blacklisted+0x9a/0x1e0 [ 54.773738] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 54.778844] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 54.784552] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.790087] ? do_vfs_ioctl+0x201/0x1720 [ 54.794147] ? rcu_is_watching+0x8c/0x150 [ 54.798288] ? trace_hardirqs_on+0xbd/0x2c0 [ 54.802606] ? ioctl_preallocate+0x300/0x300 [ 54.807017] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.812562] ? __fget_light+0x2f7/0x440 [ 54.816542] ? fget_raw+0x20/0x20 [ 54.819993] ? putname+0xf2/0x130 [ 54.823465] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.828477] ? kmem_cache_free+0x246/0x280 [ 54.832710] ? putname+0xf7/0x130 [ 54.836164] do_group_exit+0x177/0x440 [ 54.840048] ? trace_hardirqs_on+0xbd/0x2c0 [ 54.844369] ? __ia32_sys_exit+0x50/0x50 [ 54.848425] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 54.853529] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.859066] ? ksys_ioctl+0x81/0xd0 [ 54.862693] __x64_sys_exit_group+0x3e/0x50 [ 54.867012] do_syscall_64+0x1b9/0x820 [ 54.870895] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 54.876267] ? syscall_return_slowpath+0x5e0/0x5e0 [ 54.881191] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.886034] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 54.891054] ? prepare_exit_to_usermode+0x291/0x3b0 [ 54.896066] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.900931] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.906118] RIP: 0033:0x43ef08 [ 54.909308] Code: Bad RIP value. [ 54.912682] RSP: 002b:00007ffe68fa7f58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 54.920390] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 54.927655] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 54.934925] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 54.942214] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 54.949482] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 54.956771] [ 54.956776] ====================================================== [ 54.956781] WARNING: possible circular locking dependency detected [ 54.956785] 4.19.0-rc1+ #216 Not tainted [ 54.956790] ------------------------------------------------------ [ 54.956794] syz-executor538/4675 is trying to acquire lock: [ 54.956798] 000000006a9770f9 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 54.956812] [ 54.956815] but task is already holding lock: [ 54.956819] 0000000075b75404 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 54.956832] [ 54.956836] which lock already depends on the new lock. [ 54.956838] [ 54.956841] [ 54.956845] the existing dependency chain (in reverse order) is: [ 54.956847] [ 54.956863] -> #3 (report_lock){....}: [ 54.956876] _raw_spin_lock_irqsave+0x96/0xc0 [ 54.956879] kasan_report+0x8e/0x110 [ 54.956883] __asan_report_load8_noabort+0x14/0x20 [ 54.956887] __schedule+0xf54/0x1df0 [ 54.956891] preempt_schedule_common+0x22/0x60 [ 54.956894] _cond_resched+0x1d/0x30 [ 54.956898] wait_for_completion+0xa5/0x8d0 [ 54.956902] __synchronize_srcu+0x189/0x240 [ 54.956905] synchronize_srcu+0x335/0x56f [ 54.956910] kvm_page_track_unregister_notifier+0x17d/0x250 [ 54.956913] kvm_mmu_uninit_vm+0x1c/0x20 [ 54.956917] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 54.956921] kvm_put_kvm+0x73f/0x1060 [ 54.956936] kvm_vm_release+0x42/0x50 [ 54.956940] __fput+0x38a/0xa40 [ 54.956943] ____fput+0x15/0x20 [ 54.956947] task_work_run+0x1e8/0x2a0 [ 54.956951] do_exit+0x1ae4/0x26e0 [ 54.956955] do_group_exit+0x177/0x440 [ 54.956959] __x64_sys_exit_group+0x3e/0x50 [ 54.956962] do_syscall_64+0x1b9/0x820 [ 54.956967] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.956969] [ 54.956971] -> #2 (&rq->lock){-.-.}: [ 54.956984] _raw_spin_lock+0x2a/0x40 [ 54.956988] task_fork_fair+0x93/0x680 [ 54.956991] sched_fork+0x44b/0xbd0 [ 54.956995] copy_process+0x235e/0x7ad0 [ 54.956998] _do_fork+0x1ca/0x1170 [ 54.957002] kernel_thread+0x34/0x40 [ 54.957005] rest_init+0x22/0xe4 [ 54.957009] start_kernel+0x913/0x94e [ 54.957013] x86_64_start_reservations+0x29/0x2b [ 54.957017] x86_64_start_kernel+0x76/0x79 [ 54.957021] secondary_startup_64+0xa4/0xb0 [ 54.957023] [ 54.957025] -> #1 (&p->pi_lock){-.-.}: [ 54.957039] _raw_spin_lock_irqsave+0x96/0xc0 [ 54.957042] try_to_wake_up+0xd2/0x1250 [ 54.957046] wake_up_process+0x10/0x20 [ 54.957050] __up.isra.1+0x1c0/0x2a0 [ 54.957053] up+0x13c/0x1c0 [ 54.957056] __up_console_sem+0xbe/0x1b0 [ 54.957060] console_unlock+0x506/0x10d0 [ 54.957064] vprintk_emit+0x33a/0x910 [ 54.957067] vprintk_default+0x28/0x30 [ 54.957071] vprintk_func+0x7a/0x117 [ 54.957074] printk+0xa7/0xcf [ 54.957077] load_umh+0x51/0xbd [ 54.957081] do_one_initcall+0x127/0x838 [ 54.957085] kernel_init_freeable+0x4bb/0x5ae [ 54.957089] kernel_init+0x11/0x1b3 [ 54.957092] ret_from_fork+0x3a/0x50 [ 54.957094] [ 54.957096] -> #0 ((console_sem).lock){-...}: [ 54.957110] lock_acquire+0x1e4/0x4f0 [ 54.957114] _raw_spin_lock_irqsave+0x96/0xc0 [ 54.957117] down_trylock+0x13/0x70 [ 54.957122] __down_trylock_console_sem+0xae/0x200 [ 54.957137] console_trylock+0x15/0xa0 [ 54.957141] vprintk_emit+0x31f/0x910 [ 54.957145] vprintk_default+0x28/0x30 [ 54.957148] vprintk_func+0x7a/0x117 [ 54.957152] printk+0xa7/0xcf [ 54.957155] kasan_report+0x9e/0x110 [ 54.957160] __asan_report_load8_noabort+0x14/0x20 [ 54.957164] __schedule+0xf54/0x1df0 [ 54.957168] preempt_schedule_common+0x22/0x60 [ 54.957171] _cond_resched+0x1d/0x30 [ 54.957176] wait_for_completion+0xa5/0x8d0 [ 54.957180] __synchronize_srcu+0x189/0x240 [ 54.957184] synchronize_srcu+0x335/0x56f [ 54.957188] kvm_page_track_unregister_notifier+0x17d/0x250 [ 54.957192] kvm_mmu_uninit_vm+0x1c/0x20 [ 54.957196] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 54.957200] kvm_put_kvm+0x73f/0x1060 [ 54.957204] kvm_vm_release+0x42/0x50 [ 54.957207] __fput+0x38a/0xa40 [ 54.957211] ____fput+0x15/0x20 [ 54.957215] task_work_run+0x1e8/0x2a0 [ 54.957218] do_exit+0x1ae4/0x26e0 [ 54.957222] do_group_exit+0x177/0x440 [ 54.957226] __x64_sys_exit_group+0x3e/0x50 [ 54.957230] do_syscall_64+0x1b9/0x820 [ 54.957234] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.957236] [ 54.957241] other info that might help us debug this: [ 54.957243] [ 54.957246] Chain exists of: [ 54.957248] (console_sem).lock --> &rq->lock --> report_lock [ 54.957266] [ 54.957269] Possible unsafe locking scenario: [ 54.957272] [ 54.957276] CPU0 CPU1 [ 54.957280] ---- ---- [ 54.957282] lock(report_lock); [ 54.957291] lock(&rq->lock); [ 54.957300] lock(report_lock); [ 54.957308] lock((console_sem).lock); [ 54.957316] [ 54.957319] *** DEADLOCK *** [ 54.957329] [ 54.957333] 2 locks held by syz-executor538/4675: [ 54.957335] #0: 000000000f62c0da (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 54.957352] #1: 0000000075b75404 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 54.957368] [ 54.957371] stack backtrace: [ 54.957377] CPU: 1 PID: 4675 Comm: syz-executor538 Not tainted 4.19.0-rc1+ #216 [ 54.957384] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.957387] Call Trace: [ 54.957390] dump_stack+0x1c9/0x2b4 [ 54.957395] ? dump_stack_print_info.cold.2+0x52/0x52 [ 54.957399] ? vprintk_func+0x100/0x117 [ 54.957403] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 54.957407] ? save_trace+0xe0/0x290 [ 54.957411] __lock_acquire+0x3449/0x5020 [ 54.957415] ? mark_held_locks+0x160/0x160 [ 54.957419] ? mark_held_locks+0x160/0x160 [ 54.957423] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 54.957427] ? is_bpf_text_address+0xd7/0x170 [ 54.957431] ? kernel_text_address+0x79/0xf0 [ 54.957435] ? __kernel_text_address+0xd/0x40 [ 54.957439] ? __save_stack_trace+0x8d/0xf0 [ 54.957443] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 54.957452] ? save_trace+0x290/0x290 [ 54.957456] ? save_stack_trace+0x1a/0x20 [ 54.957460] ? save_trace+0xe0/0x290 [ 54.957464] ? graph_lock+0x170/0x170 [ 54.957468] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.957472] lock_acquire+0x1e4/0x4f0 [ 54.957476] ? down_trylock+0x13/0x70 [ 54.957479] ? lock_release+0x9f0/0x9f0 [ 54.957483] ? trace_hardirqs_off+0xb8/0x2b0 [ 54.957487] ? trace_hardirqs_on+0x2c0/0x2c0 [ 54.957491] ? trace_hardirqs_off+0xb8/0x2b0 [ 54.957495] ? log_store+0x34f/0x4c0 [ 54.957499] ? vprintk_emit+0x31f/0x910 [ 54.957503] _raw_spin_lock_irqsave+0x96/0xc0 [ 54.957506] ? down_trylock+0x13/0x70 [ 54.957510] down_trylock+0x13/0x70 [ 54.957514] __down_trylock_console_sem+0xae/0x200 [ 54.957518] console_trylock+0x15/0xa0 [ 54.957522] vprintk_emit+0x31f/0x910 [ 54.957525] ? wake_up_klogd+0x110/0x110 [ 54.957530] ? run_rebalance_domains+0x4c0/0x4c0 [ 54.957534] ? kasan_check_read+0x11/0x20 [ 54.957538] ? rcu_is_watching+0x8c/0x150 [ 54.957541] ? rcu_pm_notify+0xc0/0xc0 [ 54.957545] ? lock_acquire+0x1e4/0x4f0 [ 54.957549] ? kasan_report+0x8e/0x110 [ 54.957552] ? __schedule+0xf54/0x1df0 [ 54.957556] vprintk_default+0x28/0x30 [ 54.957560] vprintk_func+0x7a/0x117 [ 54.957563] printk+0xa7/0xcf [ 54.957567] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 54.957571] ? kasan_check_write+0x14/0x20 [ 54.957575] ? do_raw_spin_lock+0xc1/0x200 [ 54.957579] ? do_raw_spin_lock+0xc1/0x200 [ 54.957583] kasan_report+0x9e/0x110 [ 54.957587] __asan_report_load8_noabort+0x14/0x20 [ 54.957591] __schedule+0xf54/0x1df0 [ 54.957595] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 54.957599] ? __sched_text_start+0x8/0x8 [ 54.957603] ? __call_srcu+0x7e7/0x1040 [ 54.957607] ? check_same_owner+0x340/0x340 [ 54.957611] ? mark_held_locks+0x160/0x160 [ 54.957614] ? find_held_lock+0x36/0x1c0 [ 54.957618] preempt_schedule_common+0x22/0x60 [ 54.957622] _cond_resched+0x1d/0x30 [ 54.957626] wait_for_completion+0xa5/0x8d0 [ 54.957631] ? wait_for_completion_interruptible+0x950/0x950 [ 54.957635] ? __lockdep_init_map+0x105/0x590 [ 54.957639] ? __init_waitqueue_head+0x9e/0x150 [ 54.957643] ? init_wait_entry+0x1c0/0x1c0 [ 54.957647] __synchronize_srcu+0x189/0x240 [ 54.957651] ? call_srcu+0x10/0x10 [ 54.957654] ? rcu_unexpedite_gp+0x20/0x20 [ 54.957658] synchronize_srcu+0x335/0x56f [ 54.957662] ? lock_downgrade+0x8f0/0x8f0 [ 54.957667] ? synchronize_srcu_expedited+0x20/0x20 [ 54.957671] ? kasan_check_read+0x11/0x20 [ 54.957675] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 54.957679] ? kasan_check_write+0x14/0x20 [ 54.957683] ? do_raw_spin_lock+0xc1/0x200 [ 54.957687] kvm_page_track_unregister_notifier+0x17d/0x250 [ 54.957692] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 54.957696] ? kvfree+0x61/0x70 [ 54.957700] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.957704] kvm_mmu_uninit_vm+0x1c/0x20 [ 54.957708] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 54.957712] ? kvm_arch_sync_events+0x30/0x30 [ 54.957717] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.957721] ? mmu_notifier_unregister+0x474/0x600 [ 54.957725] ? trace_hardirqs_on+0x2c0/0x2c0 [ 54.957729] ? kfree+0x111/0x210 [ 54.957733] ? __mmu_notifier_register+0x30/0x30 [ 54.957736] ? __free_pages+0x10a/0x190 [ 54.957740] ? free_unref_page+0x930/0x930 [ 54.957744] kvm_put_kvm+0x73f/0x1060 [ 54.957748] ? kvm_write_guest_cached+0x40/0x40 [ 54.957752] ? _raw_spin_unlock_irq+0x27/0x70 [ 54.957756] ? _raw_spin_unlock_irq+0x27/0x70 [ 54.957760] ? lockdep_hardirqs_on+0x421/0x5c0 [ 54.957764] ? kasan_check_write+0x14/0x20 [ 54.957768] ? do_raw_spin_lock+0xc1/0x200 [ 54.957772] ? kvm_irqfd_release+0xdd/0x120 [ 54.957776] ? kvm_irqfd_release+0xdd/0x120 [ 54.957780] ? kvm_put_kvm+0x1060/0x1060 [ 54.957784] kvm_vm_release+0x42/0x50 [ 54.957787] __fput+0x38a/0xa40 [ 54.957791] ? __alloc_file+0x400/0x400 [ 54.957795] ? check_same_owner+0x340/0x340 [ 54.957799] ? kasan_check_write+0x14/0x20 [ 54.957802] ? do_raw_spin_lock+0xc1/0x200 [ 54.957806] ____fput+0x15/0x20 [ 54.957810] task_work_run+0x1e8/0x2a0 [ 54.957813] ? task_work_cancel+0x240/0x240 [ 54.957818] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.957822] ? switch_task_namespaces+0xa2/0xd0 [ 54.957826] do_exit+0x1ae4/0x26e0 [ 54.957830] ? mm_update_next_owner+0x9a0/0x9a0 [ 54.957834] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 54.957838] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.957841] ? kfree+0x1d7/0x210 [ 54.957845] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 54.957850] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 54.957854] ? is_bpf_text_address+0xd7/0x170 [ 54.957856] ? [ 54.957864] Lost 54 message(s)! [ 56.045125] Shutting down cpus with NMI [ 57.104358] Dumping ftrace buffer: [ 57.107887] (ftrace buffer empty) [ 57.111575] Kernel Offset: disabled [ 57.115182] Rebooting in 86400 seconds..