[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.130983] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.494099] random: sshd: uninitialized urandom read (32 bytes read) [ 27.796369] random: sshd: uninitialized urandom read (32 bytes read) [ 28.356720] random: sshd: uninitialized urandom read (32 bytes read) [ 28.947362] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.5' (ECDSA) to the list of known hosts. [ 34.591908] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.686261] 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. [ 34.710439] ================================================================== [ 34.720238] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.726463] Read of size 8 at addr ffff8801ab0f0058 by task syz-executor196/4415 [ 34.733981] [ 34.735605] CPU: 0 PID: 4415 Comm: syz-executor196 Not tainted 4.18.0+ #205 [ 34.742689] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.752030] Call Trace: [ 34.754623] dump_stack+0x1c9/0x2b4 [ 34.758253] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.763439] ? printk+0xa7/0xcf [ 34.766718] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.771473] ? __schedule+0xf54/0x1df0 [ 34.775358] print_address_description+0x6c/0x20b [ 34.780198] ? __schedule+0xf54/0x1df0 [ 34.784097] kasan_report.cold.7+0x242/0x30d [ 34.788507] __asan_report_load8_noabort+0x14/0x20 [ 34.793434] __schedule+0xf54/0x1df0 [ 34.797146] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.802248] ? __sched_text_start+0x8/0x8 [ 34.806391] ? __call_srcu+0x7e7/0x1040 [ 34.810369] ? check_same_owner+0x340/0x340 [ 34.814683] ? mark_held_locks+0x160/0x160 [ 34.818913] ? find_held_lock+0x36/0x1c0 [ 34.822969] preempt_schedule_common+0x22/0x60 [ 34.827546] _cond_resched+0x1d/0x30 [ 34.831256] wait_for_completion+0xa5/0x8d0 [ 34.835574] ? wait_for_completion_interruptible+0x950/0x950 [ 34.841365] ? __lockdep_init_map+0x105/0x590 [ 34.845857] ? __init_waitqueue_head+0x9e/0x150 [ 34.850519] ? init_wait_entry+0x1c0/0x1c0 [ 34.854753] __synchronize_srcu+0x189/0x240 [ 34.859069] ? call_srcu+0x10/0x10 [ 34.862611] ? rcu_unexpedite_gp+0x20/0x20 [ 34.866851] synchronize_srcu+0x335/0x56f [ 34.870990] ? lock_downgrade+0x8f0/0x8f0 [ 34.875135] ? synchronize_srcu_expedited+0x20/0x20 [ 34.880153] ? kasan_check_read+0x11/0x20 [ 34.884299] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.888878] ? kasan_check_write+0x14/0x20 [ 34.893106] ? do_raw_spin_lock+0xc1/0x200 [ 34.897345] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.903060] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.908508] ? kvfree+0x61/0x70 [ 34.911787] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.916802] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.920856] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.925259] ? kvm_arch_sync_events+0x30/0x30 [ 34.929758] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.935292] ? mmu_notifier_unregister+0x474/0x600 [ 34.940213] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.944616] ? kfree+0x111/0x210 [ 34.947984] ? __mmu_notifier_register+0x30/0x30 [ 34.952738] ? __free_pages+0x10a/0x190 [ 34.956710] ? free_unref_page+0x930/0x930 [ 34.960948] kvm_put_kvm+0x73f/0x1060 [ 34.964748] ? kvm_write_guest_cached+0x40/0x40 [ 34.969420] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.973912] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.978402] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.982984] ? kasan_check_write+0x14/0x20 [ 34.987218] ? do_raw_spin_lock+0xc1/0x200 [ 34.991450] ? kvm_irqfd_release+0xdd/0x120 [ 34.995771] ? kvm_put_kvm+0x1060/0x1060 [ 35.000220] kvm_vm_release+0x42/0x50 [ 35.004016] __fput+0x36e/0x8c0 [ 35.007298] ? __alloc_file+0x400/0x400 [ 35.011268] ? check_same_owner+0x340/0x340 [ 35.015585] ? kasan_check_write+0x14/0x20 [ 35.019816] ? do_raw_spin_lock+0xc1/0x200 [ 35.024077] ____fput+0x15/0x20 [ 35.027353] task_work_run+0x1e8/0x2a0 [ 35.031238] ? task_work_cancel+0x240/0x240 [ 35.035558] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.041092] ? switch_task_namespaces+0xa2/0xd0 [ 35.045761] do_exit+0x1ae4/0x26e0 [ 35.049301] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.053969] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.058204] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.063214] ? kfree+0x1d7/0x210 [ 35.066579] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.070815] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.076522] ? is_bpf_text_address+0xd7/0x170 [ 35.081012] ? kernel_text_address+0x79/0xf0 [ 35.085419] ? __kernel_text_address+0xd/0x40 [ 35.089909] ? unwind_get_return_address+0x61/0xa0 [ 35.094836] ? __save_stack_trace+0x8d/0xf0 [ 35.099157] ? save_stack+0xa9/0xd0 [ 35.102779] ? save_stack+0x43/0xd0 [ 35.106401] ? __kasan_slab_free+0x11a/0x170 [ 35.110802] ? kasan_slab_free+0xe/0x10 [ 35.114770] ? putname+0xf2/0x130 [ 35.118220] ? __x64_sys_openat+0x9d/0x100 [ 35.122452] ? do_syscall_64+0x1b9/0x820 [ 35.126513] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.132007] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.136396] ? kasan_check_read+0x11/0x20 [ 35.140521] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.144909] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.149320] ? initcall_blacklisted+0x9a/0x1e0 [ 35.153903] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.159019] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.164746] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.170283] ? do_vfs_ioctl+0x201/0x1720 [ 35.174338] ? rcu_is_watching+0x8c/0x150 [ 35.178482] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.182800] ? ioctl_preallocate+0x300/0x300 [ 35.187205] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.192869] ? __fget_light+0x2f7/0x440 [ 35.196840] ? fget_raw+0x20/0x20 [ 35.200286] ? putname+0xf2/0x130 [ 35.203735] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.208747] ? kmem_cache_free+0x246/0x280 [ 35.212978] ? putname+0xf7/0x130 [ 35.216431] do_group_exit+0x177/0x440 [ 35.220318] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.224637] ? __ia32_sys_exit+0x50/0x50 [ 35.228695] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.233800] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.239334] ? ksys_ioctl+0x81/0xd0 [ 35.242958] __x64_sys_exit_group+0x3e/0x50 [ 35.247277] do_syscall_64+0x1b9/0x820 [ 35.251168] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.256533] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.261462] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.266302] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.271320] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.276351] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.281364] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.286218] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.291400] RIP: 0033:0x43ef08 [ 35.294588] Code: Bad RIP value. [ 35.297948] RSP: 002b:00007fffb4848b58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.305652] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.312912] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.320173] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.327434] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.334851] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.342118] [ 35.343738] Allocated by task 4415: [ 35.347578] save_stack+0x43/0xd0 [ 35.351213] kasan_kmalloc+0xc4/0xe0 [ 35.354924] kasan_slab_alloc+0x12/0x20 [ 35.358890] kmem_cache_alloc+0x12e/0x710 [ 35.363030] vmx_create_vcpu+0xcf/0x2830 [ 35.367093] kvm_arch_vcpu_create+0xe5/0x220 [ 35.371496] kvm_vm_ioctl+0x488/0x1d80 [ 35.375413] do_vfs_ioctl+0x1de/0x1720 [ 35.379292] ksys_ioctl+0xa9/0xd0 [ 35.382739] __x64_sys_ioctl+0x73/0xb0 [ 35.386634] do_syscall_64+0x1b9/0x820 [ 35.390518] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.395693] [ 35.397312] Freed by task 4415: [ 35.400583] save_stack+0x43/0xd0 [ 35.404030] __kasan_slab_free+0x11a/0x170 [ 35.408270] kasan_slab_free+0xe/0x10 [ 35.412072] kmem_cache_free+0x86/0x280 [ 35.416053] vmx_free_vcpu+0x26b/0x300 [ 35.419936] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.424340] kvm_put_kvm+0x73f/0x1060 [ 35.428143] kvm_vm_release+0x42/0x50 [ 35.431937] __fput+0x36e/0x8c0 [ 35.435206] ____fput+0x15/0x20 [ 35.438479] task_work_run+0x1e8/0x2a0 [ 35.442363] do_exit+0x1ae4/0x26e0 [ 35.445895] do_group_exit+0x177/0x440 [ 35.449777] __x64_sys_exit_group+0x3e/0x50 [ 35.454090] do_syscall_64+0x1b9/0x820 [ 35.457974] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.463148] [ 35.464769] The buggy address belongs to the object at ffff8801ab0f0040 [ 35.464769] which belongs to the cache kvm_vcpu of size 23872 [ 35.477735] The buggy address is located 24 bytes inside of [ 35.477735] 23872-byte region [ffff8801ab0f0040, ffff8801ab0f5d80) [ 35.489820] The buggy address belongs to the page: [ 35.494778] page:ffffea0006ac3c00 count:1 mapcount:0 mapping:ffff8801d5388900 index:0x0 compound_mapcount: 0 [ 35.505058] flags: 0x2fffc0000008100(slab|head) [ 35.509724] raw: 02fffc0000008100 ffff8801d5385548 ffff8801d5385548 ffff8801d5388900 [ 35.517768] raw: 0000000000000000 ffff8801ab0f0040 0000000100000001 0000000000000000 [ 35.525750] page dumped because: kasan: bad access detected [ 35.531449] [ 35.533063] Memory state around the buggy address: [ 35.537983] ffff8801ab0eff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.545332] ffff8801ab0eff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.552699] >ffff8801ab0f0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.560061] ^ [ 35.566284] ffff8801ab0f0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.573637] ffff8801ab0f0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.580978] ================================================================== [ 35.588327] Kernel panic - not syncing: panic_on_warn set ... [ 35.588327] [ 35.595692] CPU: 0 PID: 4415 Comm: syz-executor196 Tainted: G B 4.18.0+ #205 [ 35.604200] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.613541] Call Trace: [ 35.616139] dump_stack+0x1c9/0x2b4 [ 35.619769] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.624955] ? lock_downgrade+0x8f0/0x8f0 [ 35.629096] ? __schedule+0xf54/0x1df0 [ 35.632985] panic+0x238/0x4e7 [ 35.636171] ? add_taint.cold.5+0x16/0x16 [ 35.640316] ? print_shadow_for_address+0xba/0x116 [ 35.645237] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.649640] ? trace_hardirqs_off+0x77/0x2b0 [ 35.654058] ? __schedule+0xf54/0x1df0 [ 35.657945] kasan_end_report+0x47/0x4f [ 35.661917] kasan_report.cold.7+0x76/0x30d [ 35.666241] __asan_report_load8_noabort+0x14/0x20 [ 35.671174] __schedule+0xf54/0x1df0 [ 35.674883] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.679986] ? __sched_text_start+0x8/0x8 [ 35.684141] ? __call_srcu+0x7e7/0x1040 [ 35.688126] ? check_same_owner+0x340/0x340 [ 35.692444] ? mark_held_locks+0x160/0x160 [ 35.696676] ? find_held_lock+0x36/0x1c0 [ 35.700747] preempt_schedule_common+0x22/0x60 [ 35.705327] _cond_resched+0x1d/0x30 [ 35.709047] wait_for_completion+0xa5/0x8d0 [ 35.713372] ? wait_for_completion_interruptible+0x950/0x950 [ 35.719174] ? __lockdep_init_map+0x105/0x590 [ 35.723674] ? __init_waitqueue_head+0x9e/0x150 [ 35.728338] ? init_wait_entry+0x1c0/0x1c0 [ 35.732572] __synchronize_srcu+0x189/0x240 [ 35.736890] ? call_srcu+0x10/0x10 [ 35.740429] ? rcu_unexpedite_gp+0x20/0x20 [ 35.744670] synchronize_srcu+0x335/0x56f [ 35.748812] ? lock_downgrade+0x8f0/0x8f0 [ 35.752954] ? synchronize_srcu_expedited+0x20/0x20 [ 35.757969] ? kasan_check_read+0x11/0x20 [ 35.762126] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.766703] ? kasan_check_write+0x14/0x20 [ 35.770931] ? do_raw_spin_lock+0xc1/0x200 [ 35.775168] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.780875] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.786321] ? kvfree+0x61/0x70 [ 35.789599] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.794618] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.798676] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.803083] ? kvm_arch_sync_events+0x30/0x30 [ 35.807580] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.813130] ? mmu_notifier_unregister+0x474/0x600 [ 35.818067] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.822470] ? kfree+0x111/0x210 [ 35.825838] ? __mmu_notifier_register+0x30/0x30 [ 35.830601] ? __free_pages+0x10a/0x190 [ 35.834589] ? free_unref_page+0x930/0x930 [ 35.838830] kvm_put_kvm+0x73f/0x1060 [ 35.842634] ? kvm_write_guest_cached+0x40/0x40 [ 35.847490] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.851993] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.856551] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.861133] ? kasan_check_write+0x14/0x20 [ 35.865356] ? do_raw_spin_lock+0xc1/0x200 [ 35.869589] ? kvm_irqfd_release+0xdd/0x120 [ 35.873904] ? kvm_put_kvm+0x1060/0x1060 [ 35.877959] kvm_vm_release+0x42/0x50 [ 35.881760] __fput+0x36e/0x8c0 [ 35.885029] ? __alloc_file+0x400/0x400 [ 35.888998] ? check_same_owner+0x340/0x340 [ 35.893308] ? kasan_check_write+0x14/0x20 [ 35.897531] ? do_raw_spin_lock+0xc1/0x200 [ 35.901759] ____fput+0x15/0x20 [ 35.905135] task_work_run+0x1e8/0x2a0 [ 35.909123] ? task_work_cancel+0x240/0x240 [ 35.913447] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.919098] ? switch_task_namespaces+0xa2/0xd0 [ 35.923934] do_exit+0x1ae4/0x26e0 [ 35.927467] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.932139] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.936537] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.941539] ? kfree+0x1d7/0x210 [ 35.944890] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.949293] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.955008] ? is_bpf_text_address+0xd7/0x170 [ 35.959498] ? kernel_text_address+0x79/0xf0 [ 35.963906] ? __kernel_text_address+0xd/0x40 [ 35.968440] ? unwind_get_return_address+0x61/0xa0 [ 35.973384] ? __save_stack_trace+0x8d/0xf0 [ 35.977823] ? save_stack+0xa9/0xd0 [ 35.981451] ? save_stack+0x43/0xd0 [ 35.985068] ? __kasan_slab_free+0x11a/0x170 [ 35.989462] ? kasan_slab_free+0xe/0x10 [ 35.993654] ? putname+0xf2/0x130 [ 35.997106] ? __x64_sys_openat+0x9d/0x100 [ 36.001335] ? do_syscall_64+0x1b9/0x820 [ 36.005386] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.010843] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.015248] ? kasan_check_read+0x11/0x20 [ 36.019435] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.023844] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.028257] ? initcall_blacklisted+0x9a/0x1e0 [ 36.032837] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.037932] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.043644] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.049333] ? do_vfs_ioctl+0x201/0x1720 [ 36.053399] ? rcu_is_watching+0x8c/0x150 [ 36.057535] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.061850] ? ioctl_preallocate+0x300/0x300 [ 36.066246] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.071839] ? __fget_light+0x2f7/0x440 [ 36.075909] ? fget_raw+0x20/0x20 [ 36.079348] ? putname+0xf2/0x130 [ 36.082789] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.087915] ? kmem_cache_free+0x246/0x280 [ 36.092150] ? putname+0xf7/0x130 [ 36.095598] do_group_exit+0x177/0x440 [ 36.099491] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.103798] ? __ia32_sys_exit+0x50/0x50 [ 36.107844] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.112941] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.118469] ? ksys_ioctl+0x81/0xd0 [ 36.122088] __x64_sys_exit_group+0x3e/0x50 [ 36.126399] do_syscall_64+0x1b9/0x820 [ 36.130275] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.135632] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.140555] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.145400] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.150421] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.155435] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.160441] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.165292] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.170470] RIP: 0033:0x43ef08 [ 36.173651] Code: Bad RIP value. [ 36.177058] RSP: 002b:00007fffb4848b58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.184836] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.192182] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.199555] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.206888] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.214161] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.221432] [ 36.221436] ====================================================== [ 36.221439] WARNING: possible circular locking dependency detected [ 36.221441] 4.18.0+ #205 Not tainted [ 36.221445] ------------------------------------------------------ [ 36.221452] syz-executor196/4415 is trying to acquire lock: [ 36.221454] 000000007b70572d ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.221463] [ 36.221465] but task is already holding lock: [ 36.221467] 00000000d99460c8 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.221474] [ 36.221477] which lock already depends on the new lock. [ 36.221478] [ 36.221480] [ 36.221482] the existing dependency chain (in reverse order) is: [ 36.221484] [ 36.221485] -> #3 (report_lock){....}: [ 36.221493] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.221495] kasan_report+0x8e/0x110 [ 36.221498] __asan_report_load8_noabort+0x14/0x20 [ 36.221500] __schedule+0xf54/0x1df0 [ 36.221502] preempt_schedule_common+0x22/0x60 [ 36.221505] _cond_resched+0x1d/0x30 [ 36.221507] wait_for_completion+0xa5/0x8d0 [ 36.221509] __synchronize_srcu+0x189/0x240 [ 36.221512] synchronize_srcu+0x335/0x56f [ 36.221515] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.221517] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.221519] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.221522] kvm_put_kvm+0x73f/0x1060 [ 36.221524] kvm_vm_release+0x42/0x50 [ 36.221526] __fput+0x36e/0x8c0 [ 36.221528] ____fput+0x15/0x20 [ 36.221530] task_work_run+0x1e8/0x2a0 [ 36.221532] do_exit+0x1ae4/0x26e0 [ 36.221534] do_group_exit+0x177/0x440 [ 36.221536] __x64_sys_exit_group+0x3e/0x50 [ 36.221538] do_syscall_64+0x1b9/0x820 [ 36.221541] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.221542] [ 36.221543] -> #2 (&rq->lock){-.-.}: [ 36.221551] _raw_spin_lock+0x2a/0x40 [ 36.221553] task_fork_fair+0x93/0x680 [ 36.221555] sched_fork+0x44b/0xbd0 [ 36.221557] copy_process+0x235e/0x7ad0 [ 36.221559] _do_fork+0x1ca/0x1170 [ 36.221562] kernel_thread+0x34/0x40 [ 36.221563] rest_init+0x22/0xe4 [ 36.221566] start_kernel+0x913/0x94e [ 36.221568] x86_64_start_reservations+0x29/0x2b [ 36.221570] x86_64_start_kernel+0x76/0x79 [ 36.221573] secondary_startup_64+0xa4/0xb0 [ 36.221574] [ 36.221575] -> #1 (&p->pi_lock){-.-.}: [ 36.221583] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.221585] try_to_wake_up+0xd2/0x1250 [ 36.221587] wake_up_process+0x10/0x20 [ 36.221589] __up.isra.1+0x1c0/0x2a0 [ 36.221591] up+0x13c/0x1c0 [ 36.221593] __up_console_sem+0xbe/0x1b0 [ 36.221596] console_unlock+0x506/0x10d0 [ 36.221598] vprintk_emit+0x33a/0x910 [ 36.221600] vprintk_default+0x28/0x30 [ 36.221602] vprintk_func+0x7a/0x117 [ 36.221604] printk+0xa7/0xcf [ 36.221606] load_umh+0x51/0xbd [ 36.221608] do_one_initcall+0x127/0x838 [ 36.221610] kernel_init_freeable+0x4bb/0x5ae [ 36.221612] kernel_init+0x11/0x1b3 [ 36.221615] ret_from_fork+0x3a/0x50 [ 36.221616] [ 36.221617] -> #0 ((console_sem).lock){-...}: [ 36.221625] lock_acquire+0x1e4/0x4f0 [ 36.221627] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.221629] down_trylock+0x13/0x70 [ 36.221632] __down_trylock_console_sem+0xae/0x200 [ 36.221634] console_trylock+0x15/0xa0 [ 36.221636] vprintk_emit+0x31f/0x910 [ 36.221638] vprintk_default+0x28/0x30 [ 36.221640] vprintk_func+0x7a/0x117 [ 36.221642] printk+0xa7/0xcf [ 36.221644] kasan_report+0x9e/0x110 [ 36.221647] __asan_report_load8_noabort+0x14/0x20 [ 36.221649] __schedule+0xf54/0x1df0 [ 36.221651] preempt_schedule_common+0x22/0x60 [ 36.221654] _cond_resched+0x1d/0x30 [ 36.221656] wait_for_completion+0xa5/0x8d0 [ 36.221658] __synchronize_srcu+0x189/0x240 [ 36.221661] synchronize_srcu+0x335/0x56f [ 36.221663] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.221666] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.221668] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.221670] kvm_put_kvm+0x73f/0x1060 [ 36.221672] kvm_vm_release+0x42/0x50 [ 36.221674] __fput+0x36e/0x8c0 [ 36.221676] ____fput+0x15/0x20 [ 36.221678] task_work_run+0x1e8/0x2a0 [ 36.221681] do_exit+0x1ae4/0x26e0 [ 36.221683] do_group_exit+0x177/0x440 [ 36.221685] __x64_sys_exit_group+0x3e/0x50 [ 36.221687] do_syscall_64+0x1b9/0x820 [ 36.221690] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.221691] [ 36.221694] other info that might help us debug this: [ 36.221695] [ 36.221697] Chain exists of: [ 36.221698] (console_sem).lock --> &rq->lock --> report_lock [ 36.221708] [ 36.221710] Possible unsafe locking scenario: [ 36.221711] [ 36.221713] CPU0 CPU1 [ 36.221716] ---- ---- [ 36.221717] lock(report_lock); [ 36.221722] lock(&rq->lock); [ 36.221727] lock(report_lock); [ 36.221731] lock((console_sem).lock); [ 36.221736] [ 36.221737] *** DEADLOCK *** [ 36.221738] [ 36.221741] 2 locks held by syz-executor196/4415: [ 36.221742] #0: 00000000371d19e7 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.221751] #1: 00000000d99460c8 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.221760] [ 36.221762] stack backtrace: [ 36.221765] CPU: 0 PID: 4415 Comm: syz-executor196 Not tainted 4.18.0+ #205 [ 36.221769] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.221771] Call Trace: [ 36.221773] dump_stack+0x1c9/0x2b4 [ 36.221776] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.221778] ? vprintk_func+0x100/0x117 [ 36.221780] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.221783] ? save_trace+0xe0/0x290 [ 36.221785] __lock_acquire+0x3449/0x5020 [ 36.221787] ? mark_held_locks+0x160/0x160 [ 36.221789] ? mark_held_locks+0x160/0x160 [ 36.221792] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.221794] ? is_bpf_text_address+0xd7/0x170 [ 36.221796] ? kernel_text_address+0x79/0xf0 [ 36.221799] ? __kernel_text_address+0xd/0x40 [ 36.221801] ? __save_stack_trace+0x8d/0xf0 [ 36.221803] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.221805] ? save_trace+0x290/0x290 [ 36.221808] ? save_stack_trace+0x1a/0x20 [ 36.221810] ? save_trace+0xe0/0x290 [ 36.221812] ? graph_lock+0x170/0x170 [ 36.221814] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.221817] lock_acquire+0x1e4/0x4f0 [ 36.221819] ? down_trylock+0x13/0x70 [ 36.221821] ? lock_release+0x9f0/0x9f0 [ 36.221823] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.221825] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.221828] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.221830] ? log_store+0x34f/0x4c0 [ 36.221832] ? vprintk_emit+0x31f/0x910 [ 36.221834] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.221836] ? down_trylock+0x13/0x70 [ 36.221838] down_trylock+0x13/0x70 [ 36.221841] __down_trylock_console_sem+0xae/0x200 [ 36.221843] console_trylock+0x15/0xa0 [ 36.221845] vprintk_emit+0x31f/0x910 [ 36.221847] ? wake_up_klogd+0x110/0x110 [ 36.221850] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.221852] ? kasan_check_read+0x11/0x20 [ 36.221854] ? rcu_is_watching+0x8c/0x150 [ 36.221856] ? rcu_pm_notify+0xc0/0xc0 [ 36.221858] ? lock_acquire+0x1e4/0x4f0 [ 36.221860] ? kasan_report+0x8e/0x110 [ 36.221863] ? __schedule+0xf54/0x1df0 [ 36.221865] vprintk_default+0x28/0x30 [ 36.221867] vprintk_func+0x7a/0x117 [ 36.221869] printk+0xa7/0xcf [ 36.221871] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.221873] ? kasan_check_write+0x14/0x20 [ 36.221875] ? do_raw_spin_lock+0xc1/0x200 [ 36.221878] ? do_raw_spin_lock+0xc1/0x200 [ 36.221880] kasan_report+0x9e/0x110 [ 36.221882] __asan_report_load8_noabort+0x14/0x20 [ 36.221884] __schedule+0xf54/0x1df0 [ 36.221887] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.221889] ? __sched_text_start+0x8/0x8 [ 36.221891] ? __call_srcu+0x7e7/0x1040 [ 36.221893] ? check_same_owner+0x340/0x340 [ 36.221896] ? mark_held_locks+0x160/0x160 [ 36.221898] ? find_held_lock+0x36/0x1c0 [ 36.221900] preempt_schedule_common+0x22/0x60 [ 36.221902] _cond_resched+0x1d/0x30 [ 36.221905] wait_for_completion+0xa5/0x8d0 [ 36.221907] ? wait_for_completion_interruptible+0x950/0x950 [ 36.221910] ? __lockdep_init_map+0x105/0x590 [ 36.221912] ? __init_waitqueue_head+0x9e/0x150 [ 36.221915] ? init_wait_entry+0x1c0/0x1c0 [ 36.221917] __synchronize_srcu+0x189/0x240 [ 36.221919] ? call_srcu+0x10/0x10 [ 36.221921] ? rcu_unexpedite_gp+0x20/0x20 [ 36.221924] synchronize_srcu+0x335/0x56f [ 36.221926] ? lock_downgrade+0x8f0/0x8f0 [ 36.221929] ? synchronize_srcu_expedited+0x20/0x20 [ 36.221931] ? kasan_check_read+0x11/0x20 [ 36.221933] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.221935] ? kasan_check_write+0x14/0x20 [ 36.221938] ? do_raw_spin_lock+0xc1/0x200 [ 36.221941] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.221943] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.221945] ? kvfree+0x61/0x70 [ 36.221952] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.221955] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.221959] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.221962] ? kvm_arch_sync_events+0x30/0x30 [ 36.221965] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.221967] ? mmu_notifier_unregister+0x474/0x600 [ 36.221969] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.221971] ? kfree+0x111/0x210 [ 36.221974] ? __mmu_notifier_register+0x30/0x30 [ 36.221976] ? __free_pages+0x10a/0x190 [ 36.221978] ? free_unref_page+0x930/0x930 [ 36.221980] kvm_put_kvm+0x73f/0x1060 [ 36.221983] ? kvm_write_guest_cached+0x40/0x40 [ 36.221985] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.221988] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.221990] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.221993] ? kasan_check_write+0x14/0x20 [ 36.221995] ? do_raw_spin_lock+0xc1/0x200 [ 36.221997] ? kvm_irqfd_release+0xdd/0x120 [ 36.221999] ? kvm_put_kvm+0x1060/0x1060 [ 36.222002] kvm_vm_release+0x42/0x50 [ 36.222003] __fput+0x36e/0x8c0 [ 36.222006] ? __alloc_file+0x400/0x400 [ 36.222008] ? check_same_owner+0x340/0x340 [ 36.222010] ? kasan_check_write+0x14/0x20 [ 36.222012] ? do_raw_spin_lock+0xc1/0x200 [ 36.222014] ____fput+0x15/0x20 [ 36.222016] task_work_run+0x1e8/0x2a0 [ 36.222019] ? task_work_cancel+0x240/0x240 [ 36.222021] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.222024] ? switch_task_namespaces+0xa2/0xd0 [ 36.222026] do_exit+0x1ae4/0x26e0 [ 36.222028] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.222030] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.222033] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.222035] ? kfree+0x1d7/0x210 [ 36.222044] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.222047] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.222050] ? is_bpf_text_address+0xd7/0x170 [ 36.222052] ? kernel_text_address+0x79/0xf0 [ 36.222053] ? __kern [ 36.222059] Lost 54 message(s)! [ 37.276503] Shutting down cpus with NMI [ 38.335350] Dumping ftrace buffer: [ 38.338894] (ftrace buffer empty) [ 38.342582] Kernel Offset: disabled [ 38.346187] Rebooting in 86400 seconds..