[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.129114] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.416928] random: sshd: uninitialized urandom read (32 bytes read) [ 25.946349] random: sshd: uninitialized urandom read (32 bytes read) [ 26.538199] random: sshd: uninitialized urandom read (32 bytes read) [ 26.721788] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.36' (ECDSA) to the list of known hosts. [ 32.266977] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.363988] 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. [ 32.388314] ================================================================== [ 32.398366] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.404590] Read of size 8 at addr ffff8801b51c0058 by task syz-executor215/4632 [ 32.412105] [ 32.413733] CPU: 0 PID: 4632 Comm: syz-executor215 Not tainted 4.19.0-rc1+ #216 [ 32.421165] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.430508] Call Trace: [ 32.433097] dump_stack+0x1c9/0x2b4 [ 32.436734] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.441950] ? printk+0xa7/0xcf [ 32.445243] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.449997] ? __schedule+0xf54/0x1df0 [ 32.453884] print_address_description+0x6c/0x20b [ 32.458721] ? __schedule+0xf54/0x1df0 [ 32.462608] kasan_report.cold.7+0x242/0x30d [ 32.467017] __asan_report_load8_noabort+0x14/0x20 [ 32.471942] __schedule+0xf54/0x1df0 [ 32.475652] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.480770] ? __sched_text_start+0x8/0x8 [ 32.484920] ? __call_srcu+0x7e7/0x1040 [ 32.488902] ? check_same_owner+0x340/0x340 [ 32.493220] ? mark_held_locks+0x160/0x160 [ 32.497451] ? find_held_lock+0x36/0x1c0 [ 32.501515] preempt_schedule_common+0x22/0x60 [ 32.506095] _cond_resched+0x1d/0x30 [ 32.509818] wait_for_completion+0xa5/0x8d0 [ 32.514146] ? wait_for_completion_interruptible+0x950/0x950 [ 32.519943] ? __lockdep_init_map+0x105/0x590 [ 32.524469] ? __init_waitqueue_head+0x9e/0x150 [ 32.529140] ? init_wait_entry+0x1c0/0x1c0 [ 32.533375] __synchronize_srcu+0x189/0x240 [ 32.537688] ? call_srcu+0x10/0x10 [ 32.541238] ? rcu_unexpedite_gp+0x20/0x20 [ 32.545487] synchronize_srcu+0x335/0x56f [ 32.549645] ? lock_downgrade+0x8f0/0x8f0 [ 32.553786] ? synchronize_srcu_expedited+0x20/0x20 [ 32.558872] ? kasan_check_read+0x11/0x20 [ 32.563020] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.567602] ? kasan_check_write+0x14/0x20 [ 32.571839] ? do_raw_spin_lock+0xc1/0x200 [ 32.576073] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.581779] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.587231] ? kvfree+0x61/0x70 [ 32.590505] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.595549] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.599632] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.604051] ? kvm_arch_sync_events+0x30/0x30 [ 32.608545] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.614084] ? mmu_notifier_unregister+0x474/0x600 [ 32.619009] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.623415] ? kfree+0x111/0x210 [ 32.626778] ? __mmu_notifier_register+0x30/0x30 [ 32.631538] ? __free_pages+0x10a/0x190 [ 32.635506] ? free_unref_page+0x930/0x930 [ 32.639760] kvm_put_kvm+0x73f/0x1060 [ 32.643565] ? kvm_write_guest_cached+0x40/0x40 [ 32.648233] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.652740] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.657228] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.662177] ? kasan_check_write+0x14/0x20 [ 32.666410] ? do_raw_spin_lock+0xc1/0x200 [ 32.670645] ? kvm_irqfd_release+0xdd/0x120 [ 32.674963] ? kvm_irqfd_release+0xdd/0x120 [ 32.679317] ? kvm_put_kvm+0x1060/0x1060 [ 32.683375] kvm_vm_release+0x42/0x50 [ 32.687171] __fput+0x38a/0xa40 [ 32.690450] ? __alloc_file+0x400/0x400 [ 32.694427] ? check_same_owner+0x340/0x340 [ 32.698743] ? kasan_check_write+0x14/0x20 [ 32.702989] ? do_raw_spin_lock+0xc1/0x200 [ 32.707218] ____fput+0x15/0x20 [ 32.710494] task_work_run+0x1e8/0x2a0 [ 32.714382] ? task_work_cancel+0x240/0x240 [ 32.718701] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.724250] ? switch_task_namespaces+0xa2/0xd0 [ 32.728917] do_exit+0x1ae4/0x26e0 [ 32.732455] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.737133] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.741369] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.746381] ? kfree+0x1d7/0x210 [ 32.749755] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.754015] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.759738] ? is_bpf_text_address+0xd7/0x170 [ 32.764227] ? kernel_text_address+0x79/0xf0 [ 32.768632] ? __kernel_text_address+0xd/0x40 [ 32.773129] ? unwind_get_return_address+0x61/0xa0 [ 32.778058] ? __save_stack_trace+0x8d/0xf0 [ 32.782383] ? save_stack+0xa9/0xd0 [ 32.786007] ? save_stack+0x43/0xd0 [ 32.789627] ? __kasan_slab_free+0x11a/0x170 [ 32.794291] ? kasan_slab_free+0xe/0x10 [ 32.798264] ? putname+0xf2/0x130 [ 32.801715] ? __x64_sys_openat+0x9d/0x100 [ 32.805950] ? do_syscall_64+0x1b9/0x820 [ 32.810354] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.815715] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.820120] ? kasan_check_read+0x11/0x20 [ 32.824272] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.828674] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.833080] ? initcall_blacklisted+0x9a/0x1e0 [ 32.837665] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.842770] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.848481] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.854015] ? do_vfs_ioctl+0x201/0x1720 [ 32.858071] ? rcu_is_watching+0x8c/0x150 [ 32.862211] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.866528] ? ioctl_preallocate+0x300/0x300 [ 32.870931] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.876480] ? __fget_light+0x2f7/0x440 [ 32.880450] ? fget_raw+0x20/0x20 [ 32.883898] ? putname+0xf2/0x130 [ 32.887364] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.892375] ? kmem_cache_free+0x246/0x280 [ 32.896632] ? putname+0xf7/0x130 [ 32.900088] do_group_exit+0x177/0x440 [ 32.903974] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.908290] ? __ia32_sys_exit+0x50/0x50 [ 32.912349] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.917447] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.922993] ? ksys_ioctl+0x81/0xd0 [ 32.926621] __x64_sys_exit_group+0x3e/0x50 [ 32.930961] do_syscall_64+0x1b9/0x820 [ 32.934859] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.940233] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.945160] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.949998] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.955015] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.960059] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.964897] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.970082] RIP: 0033:0x43ed68 [ 32.973273] Code: Bad RIP value. [ 32.976630] RSP: 002b:00007ffe831a02c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.984334] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ed68 [ 32.991612] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.998892] RBP: 00000000004be628 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.006174] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.013440] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.020719] [ 33.022339] Allocated by task 4632: [ 33.025967] save_stack+0x43/0xd0 [ 33.029417] kasan_kmalloc+0xc4/0xe0 [ 33.033144] kasan_slab_alloc+0x12/0x20 [ 33.037110] kmem_cache_alloc+0x12e/0x710 [ 33.041317] vmx_create_vcpu+0xcf/0x2830 [ 33.045372] kvm_arch_vcpu_create+0xe5/0x220 [ 33.049782] kvm_vm_ioctl+0x488/0x1d80 [ 33.053677] do_vfs_ioctl+0x1de/0x1720 [ 33.057561] ksys_ioctl+0xa9/0xd0 [ 33.061013] __x64_sys_ioctl+0x73/0xb0 [ 33.064895] do_syscall_64+0x1b9/0x820 [ 33.068815] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.073989] [ 33.075606] Freed by task 4632: [ 33.078880] save_stack+0x43/0xd0 [ 33.082326] __kasan_slab_free+0x11a/0x170 [ 33.086558] kasan_slab_free+0xe/0x10 [ 33.090350] kmem_cache_free+0x86/0x280 [ 33.094320] vmx_free_vcpu+0x26b/0x300 [ 33.098200] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.102609] kvm_put_kvm+0x73f/0x1060 [ 33.106404] kvm_vm_release+0x42/0x50 [ 33.110202] __fput+0x38a/0xa40 [ 33.113479] ____fput+0x15/0x20 [ 33.116754] task_work_run+0x1e8/0x2a0 [ 33.120635] do_exit+0x1ae4/0x26e0 [ 33.124173] do_group_exit+0x177/0x440 [ 33.128060] __x64_sys_exit_group+0x3e/0x50 [ 33.132384] do_syscall_64+0x1b9/0x820 [ 33.136267] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.141441] [ 33.143063] The buggy address belongs to the object at ffff8801b51c0040 [ 33.143063] which belongs to the cache kvm_vcpu of size 23872 [ 33.155664] The buggy address is located 24 bytes inside of [ 33.155664] 23872-byte region [ffff8801b51c0040, ffff8801b51c5d80) [ 33.167619] The buggy address belongs to the page: [ 33.172551] page:ffffea0006d47000 count:1 mapcount:0 mapping:ffff8801d9fd8200 index:0x0 compound_mapcount: 0 [ 33.182545] flags: 0x2fffc0000008100(slab|head) [ 33.187221] raw: 02fffc0000008100 ffff8801d535dc48 ffff8801d535dc48 ffff8801d9fd8200 [ 33.195104] raw: 0000000000000000 ffff8801b51c0040 0000000100000001 0000000000000000 [ 33.202977] page dumped because: kasan: bad access detected [ 33.208673] [ 33.210288] Memory state around the buggy address: [ 33.215213] ffff8801b51bff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.222566] ffff8801b51bff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.229919] >ffff8801b51c0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.237276] ^ [ 33.243516] ffff8801b51c0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.250869] ffff8801b51c0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.258217] ================================================================== [ 33.265568] Kernel panic - not syncing: panic_on_warn set ... [ 33.265568] [ 33.272934] CPU: 0 PID: 4632 Comm: syz-executor215 Tainted: G B 4.19.0-rc1+ #216 [ 33.281758] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.291106] Call Trace: [ 33.293709] dump_stack+0x1c9/0x2b4 [ 33.297337] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.302525] ? lock_downgrade+0x8f0/0x8f0 [ 33.306684] ? __schedule+0xf54/0x1df0 [ 33.310572] panic+0x238/0x4e7 [ 33.313761] ? add_taint.cold.5+0x16/0x16 [ 33.317911] ? print_shadow_for_address+0xba/0x116 [ 33.322841] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.327257] ? trace_hardirqs_off+0x77/0x2b0 [ 33.331669] ? __schedule+0xf54/0x1df0 [ 33.335555] kasan_end_report+0x47/0x4f [ 33.339527] kasan_report.cold.7+0x76/0x30d [ 33.343869] __asan_report_load8_noabort+0x14/0x20 [ 33.348795] __schedule+0xf54/0x1df0 [ 33.352568] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.357673] ? __sched_text_start+0x8/0x8 [ 33.361831] ? __call_srcu+0x7e7/0x1040 [ 33.365823] ? check_same_owner+0x340/0x340 [ 33.370143] ? mark_held_locks+0x160/0x160 [ 33.374374] ? find_held_lock+0x36/0x1c0 [ 33.378439] preempt_schedule_common+0x22/0x60 [ 33.383026] _cond_resched+0x1d/0x30 [ 33.386736] wait_for_completion+0xa5/0x8d0 [ 33.391056] ? wait_for_completion_interruptible+0x950/0x950 [ 33.396852] ? __lockdep_init_map+0x105/0x590 [ 33.401349] ? __init_waitqueue_head+0x9e/0x150 [ 33.406016] ? init_wait_entry+0x1c0/0x1c0 [ 33.410257] __synchronize_srcu+0x189/0x240 [ 33.414603] ? call_srcu+0x10/0x10 [ 33.418160] ? rcu_unexpedite_gp+0x20/0x20 [ 33.422403] synchronize_srcu+0x335/0x56f [ 33.426546] ? lock_downgrade+0x8f0/0x8f0 [ 33.430690] ? synchronize_srcu_expedited+0x20/0x20 [ 33.435711] ? kasan_check_read+0x11/0x20 [ 33.439863] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.444446] ? kasan_check_write+0x14/0x20 [ 33.448678] ? do_raw_spin_lock+0xc1/0x200 [ 33.452918] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.458631] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.464078] ? kvfree+0x61/0x70 [ 33.467360] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.472378] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.476435] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.480842] ? kvm_arch_sync_events+0x30/0x30 [ 33.485339] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.490876] ? mmu_notifier_unregister+0x474/0x600 [ 33.495811] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.500231] ? kfree+0x111/0x210 [ 33.503603] ? __mmu_notifier_register+0x30/0x30 [ 33.508361] ? __free_pages+0x10a/0x190 [ 33.512332] ? free_unref_page+0x930/0x930 [ 33.516572] kvm_put_kvm+0x73f/0x1060 [ 33.520378] ? kvm_write_guest_cached+0x40/0x40 [ 33.525047] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.529542] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.534035] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.538620] ? kasan_check_write+0x14/0x20 [ 33.542852] ? do_raw_spin_lock+0xc1/0x200 [ 33.547085] ? kvm_irqfd_release+0xdd/0x120 [ 33.551405] ? kvm_irqfd_release+0xdd/0x120 [ 33.555728] ? kvm_put_kvm+0x1060/0x1060 [ 33.559790] kvm_vm_release+0x42/0x50 [ 33.563596] __fput+0x38a/0xa40 [ 33.566873] ? __alloc_file+0x400/0x400 [ 33.570849] ? check_same_owner+0x340/0x340 [ 33.575168] ? kasan_check_write+0x14/0x20 [ 33.579419] ? do_raw_spin_lock+0xc1/0x200 [ 33.583664] ____fput+0x15/0x20 [ 33.586940] task_work_run+0x1e8/0x2a0 [ 33.590832] ? task_work_cancel+0x240/0x240 [ 33.595162] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.600708] ? switch_task_namespaces+0xa2/0xd0 [ 33.605377] do_exit+0x1ae4/0x26e0 [ 33.608917] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.613588] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.617828] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.622844] ? kfree+0x1d7/0x210 [ 33.626215] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.630450] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.636172] ? is_bpf_text_address+0xd7/0x170 [ 33.640663] ? kernel_text_address+0x79/0xf0 [ 33.645065] ? __kernel_text_address+0xd/0x40 [ 33.649574] ? unwind_get_return_address+0x61/0xa0 [ 33.654500] ? __save_stack_trace+0x8d/0xf0 [ 33.658833] ? save_stack+0xa9/0xd0 [ 33.662645] ? save_stack+0x43/0xd0 [ 33.666285] ? __kasan_slab_free+0x11a/0x170 [ 33.670717] ? kasan_slab_free+0xe/0x10 [ 33.674686] ? putname+0xf2/0x130 [ 33.678147] ? __x64_sys_openat+0x9d/0x100 [ 33.682381] ? do_syscall_64+0x1b9/0x820 [ 33.686441] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.691801] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.696219] ? kasan_check_read+0x11/0x20 [ 33.700368] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.704773] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.709189] ? initcall_blacklisted+0x9a/0x1e0 [ 33.713788] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.718917] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.724643] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.730195] ? do_vfs_ioctl+0x201/0x1720 [ 33.734253] ? rcu_is_watching+0x8c/0x150 [ 33.738394] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.742713] ? ioctl_preallocate+0x300/0x300 [ 33.747130] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.752668] ? __fget_light+0x2f7/0x440 [ 33.756638] ? fget_raw+0x20/0x20 [ 33.760086] ? putname+0xf2/0x130 [ 33.763557] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.768596] ? kmem_cache_free+0x246/0x280 [ 33.772848] ? putname+0xf7/0x130 [ 33.776317] do_group_exit+0x177/0x440 [ 33.780202] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.784523] ? __ia32_sys_exit+0x50/0x50 [ 33.788592] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.793695] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.799229] ? ksys_ioctl+0x81/0xd0 [ 33.802875] __x64_sys_exit_group+0x3e/0x50 [ 33.807213] do_syscall_64+0x1b9/0x820 [ 33.811112] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.816506] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.821446] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.826286] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.831298] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.836315] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.841159] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.846342] RIP: 0033:0x43ed68 [ 33.849535] Code: Bad RIP value. [ 33.852889] RSP: 002b:00007ffe831a02c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.860592] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ed68 [ 33.867855] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.875119] RBP: 00000000004be628 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.882388] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.889651] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.896925] [ 33.896930] ====================================================== [ 33.896936] WARNING: possible circular locking dependency detected [ 33.896940] 4.19.0-rc1+ #216 Not tainted [ 33.896945] ------------------------------------------------------ [ 33.896950] syz-executor215/4632 is trying to acquire lock: [ 33.896954] 00000000dc62b2fc ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.896969] [ 33.896973] but task is already holding lock: [ 33.896977] 00000000be0aae40 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.896991] [ 33.896996] which lock already depends on the new lock. [ 33.896998] [ 33.897000] [ 33.897005] the existing dependency chain (in reverse order) is: [ 33.897008] [ 33.897010] -> #3 (report_lock){....}: [ 33.897025] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.897028] kasan_report+0x8e/0x110 [ 33.897033] __asan_report_load8_noabort+0x14/0x20 [ 33.897037] __schedule+0xf54/0x1df0 [ 33.897041] preempt_schedule_common+0x22/0x60 [ 33.897045] _cond_resched+0x1d/0x30 [ 33.897049] wait_for_completion+0xa5/0x8d0 [ 33.897053] __synchronize_srcu+0x189/0x240 [ 33.897057] synchronize_srcu+0x335/0x56f [ 33.897063] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.897067] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.897071] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.897075] kvm_put_kvm+0x73f/0x1060 [ 33.897079] kvm_vm_release+0x42/0x50 [ 33.897082] __fput+0x38a/0xa40 [ 33.897086] ____fput+0x15/0x20 [ 33.897090] task_work_run+0x1e8/0x2a0 [ 33.897094] do_exit+0x1ae4/0x26e0 [ 33.897098] do_group_exit+0x177/0x440 [ 33.897102] __x64_sys_exit_group+0x3e/0x50 [ 33.897106] do_syscall_64+0x1b9/0x820 [ 33.897111] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.897113] [ 33.897115] -> #2 (&rq->lock){-.-.}: [ 33.897135] _raw_spin_lock+0x2a/0x40 [ 33.897139] task_fork_fair+0x93/0x680 [ 33.897142] sched_fork+0x44b/0xbd0 [ 33.897146] copy_process+0x235e/0x7ad0 [ 33.897150] _do_fork+0x1ca/0x1170 [ 33.897154] kernel_thread+0x34/0x40 [ 33.897157] rest_init+0x22/0xe4 [ 33.897161] start_kernel+0x913/0x94e [ 33.897166] x86_64_start_reservations+0x29/0x2b [ 33.897170] x86_64_start_kernel+0x76/0x79 [ 33.897174] secondary_startup_64+0xa4/0xb0 [ 33.897177] [ 33.897179] -> #1 (&p->pi_lock){-.-.}: [ 33.897193] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.897197] try_to_wake_up+0xd2/0x1250 [ 33.897201] wake_up_process+0x10/0x20 [ 33.897205] __up.isra.1+0x1c0/0x2a0 [ 33.897209] up+0x13c/0x1c0 [ 33.897213] __up_console_sem+0xbe/0x1b0 [ 33.897217] console_unlock+0x506/0x10d0 [ 33.897221] vprintk_emit+0x33a/0x910 [ 33.897225] vprintk_default+0x28/0x30 [ 33.897228] vprintk_func+0x7a/0x117 [ 33.897232] printk+0xa7/0xcf [ 33.897235] load_umh+0x51/0xbd [ 33.897239] do_one_initcall+0x127/0x838 [ 33.897244] kernel_init_freeable+0x4bb/0x5ae [ 33.897247] kernel_init+0x11/0x1b3 [ 33.897251] ret_from_fork+0x3a/0x50 [ 33.897253] [ 33.897256] -> #0 ((console_sem).lock){-...}: [ 33.897270] lock_acquire+0x1e4/0x4f0 [ 33.897273] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.897277] down_trylock+0x13/0x70 [ 33.897281] __down_trylock_console_sem+0xae/0x200 [ 33.897285] console_trylock+0x15/0xa0 [ 33.897289] vprintk_emit+0x31f/0x910 [ 33.897293] vprintk_default+0x28/0x30 [ 33.897297] vprintk_func+0x7a/0x117 [ 33.897300] printk+0xa7/0xcf [ 33.897304] kasan_report+0x9e/0x110 [ 33.897309] __asan_report_load8_noabort+0x14/0x20 [ 33.897312] __schedule+0xf54/0x1df0 [ 33.897317] preempt_schedule_common+0x22/0x60 [ 33.897321] _cond_resched+0x1d/0x30 [ 33.897325] wait_for_completion+0xa5/0x8d0 [ 33.897329] __synchronize_srcu+0x189/0x240 [ 33.897333] synchronize_srcu+0x335/0x56f [ 33.897338] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.897342] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.897347] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.897351] kvm_put_kvm+0x73f/0x1060 [ 33.897355] kvm_vm_release+0x42/0x50 [ 33.897358] __fput+0x38a/0xa40 [ 33.897362] ____fput+0x15/0x20 [ 33.897366] task_work_run+0x1e8/0x2a0 [ 33.897370] do_exit+0x1ae4/0x26e0 [ 33.897374] do_group_exit+0x177/0x440 [ 33.897378] __x64_sys_exit_group+0x3e/0x50 [ 33.897382] do_syscall_64+0x1b9/0x820 [ 33.897387] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.897389] [ 33.897393] other info that might help us debug this: [ 33.897395] [ 33.897398] Chain exists of: [ 33.897401] (console_sem).lock --> &rq->lock --> report_lock [ 33.897419] [ 33.897423] Possible unsafe locking scenario: [ 33.897425] [ 33.897429] CPU0 CPU1 [ 33.897433] ---- ---- [ 33.897436] lock(report_lock); [ 33.897445] lock(&rq->lock); [ 33.897455] lock(report_lock); [ 33.897463] lock((console_sem).lock); [ 33.897471] [ 33.897474] *** DEADLOCK *** [ 33.897476] [ 33.897480] 2 locks held by syz-executor215/4632: [ 33.897483] #0: 00000000f59d5f0d (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.897500] #1: 00000000be0aae40 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.897517] [ 33.897520] stack backtrace: [ 33.897526] CPU: 0 PID: 4632 Comm: syz-executor215 Not tainted 4.19.0-rc1+ #216 [ 33.897533] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.897536] Call Trace: [ 33.897540] dump_stack+0x1c9/0x2b4 [ 33.897544] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.897548] ? vprintk_func+0x100/0x117 [ 33.897553] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.897557] ? save_trace+0xe0/0x290 [ 33.897561] __lock_acquire+0x3449/0x5020 [ 33.897565] ? mark_held_locks+0x160/0x160 [ 33.897569] ? mark_held_locks+0x160/0x160 [ 33.897574] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.897578] ? is_bpf_text_address+0xd7/0x170 [ 33.897582] ? kernel_text_address+0x79/0xf0 [ 33.897586] ? __kernel_text_address+0xd/0x40 [ 33.897590] ? __save_stack_trace+0x8d/0xf0 [ 33.897595] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.897598] ? save_trace+0x290/0x290 [ 33.897602] ? save_stack_trace+0x1a/0x20 [ 33.897606] ? save_trace+0xe0/0x290 [ 33.897610] ? graph_lock+0x170/0x170 [ 33.897615] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.897619] lock_acquire+0x1e4/0x4f0 [ 33.897622] ? down_trylock+0x13/0x70 [ 33.897627] ? lock_release+0x9f0/0x9f0 [ 33.897631] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.897636] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.897640] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.897658] ? log_store+0x34f/0x4c0 [ 33.897662] ? vprintk_emit+0x31f/0x910 [ 33.897666] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.897670] ? down_trylock+0x13/0x70 [ 33.897673] down_trylock+0x13/0x70 [ 33.897678] __down_trylock_console_sem+0xae/0x200 [ 33.897681] console_trylock+0x15/0xa0 [ 33.897685] vprintk_emit+0x31f/0x910 [ 33.897689] ? wake_up_klogd+0x110/0x110 [ 33.897693] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.897711] ? kasan_check_read+0x11/0x20 [ 33.897715] ? rcu_is_watching+0x8c/0x150 [ 33.897719] ? rcu_pm_notify+0xc0/0xc0 [ 33.897723] ? lock_acquire+0x1e4/0x4f0 [ 33.897727] ? kasan_report+0x8e/0x110 [ 33.897731] ? __schedule+0xf54/0x1df0 [ 33.897735] vprintk_default+0x28/0x30 [ 33.897738] vprintk_func+0x7a/0x117 [ 33.897742] printk+0xa7/0xcf [ 33.897746] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.897750] ? kasan_check_write+0x14/0x20 [ 33.897754] ? do_raw_spin_lock+0xc1/0x200 [ 33.897758] ? do_raw_spin_lock+0xc1/0x200 [ 33.897762] kasan_report+0x9e/0x110 [ 33.897766] __asan_report_load8_noabort+0x14/0x20 [ 33.897770] __schedule+0xf54/0x1df0 [ 33.897775] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.897779] ? __sched_text_start+0x8/0x8 [ 33.897783] ? __call_srcu+0x7e7/0x1040 [ 33.897787] ? check_same_owner+0x340/0x340 [ 33.897791] ? mark_held_locks+0x160/0x160 [ 33.897795] ? find_held_lock+0x36/0x1c0 [ 33.897799] preempt_schedule_common+0x22/0x60 [ 33.897803] _cond_resched+0x1d/0x30 [ 33.897815] wait_for_completion+0xa5/0x8d0 [ 33.897820] ? wait_for_completion_interruptible+0x950/0x950 [ 33.897825] ? __lockdep_init_map+0x105/0x590 [ 33.897829] ? __init_waitqueue_head+0x9e/0x150 [ 33.897848] ? init_wait_entry+0x1c0/0x1c0 [ 33.897852] __synchronize_srcu+0x189/0x240 [ 33.897856] ? call_srcu+0x10/0x10 [ 33.897860] ? rcu_unexpedite_gp+0x20/0x20 [ 33.897863] synchronize_srcu+0x335/0x56f [ 33.897882] ? lock_downgrade+0x8f0/0x8f0 [ 33.897887] ? synchronize_srcu_expedited+0x20/0x20 [ 33.897891] ? kasan_check_read+0x11/0x20 [ 33.897895] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.897899] ? kasan_check_write+0x14/0x20 [ 33.897904] ? do_raw_spin_lock+0xc1/0x200 [ 33.897908] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.897913] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.897917] ? kvfree+0x61/0x70 [ 33.897929] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.897933] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.897937] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.897941] ? kvm_arch_sync_events+0x30/0x30 [ 33.897946] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.897951] ? mmu_notifier_unregister+0x474/0x600 [ 33.897955] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.897959] ? kfree+0x111/0x210 [ 33.897963] ? __mmu_notifier_register+0x30/0x30 [ 33.897967] ? __free_pages+0x10a/0x190 [ 33.897971] ? free_unref_page+0x930/0x930 [ 33.897975] kvm_put_kvm+0x73f/0x1060 [ 33.897979] ? kvm_write_guest_cached+0x40/0x40 [ 33.897983] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.897988] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.897992] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.897996] ? kasan_check_write+0x14/0x20 [ 33.898000] ? do_raw_spin_lock+0xc1/0x200 [ 33.898004] ? kvm_irqfd_release+0xdd/0x120 [ 33.898008] ? kvm_irqfd_release+0xdd/0x120 [ 33.898012] ? kvm_put_kvm+0x1060/0x1060 [ 33.898016] kvm_vm_release+0x42/0x50 [ 33.898020] __fput+0x38a/0xa40 [ 33.898024] ? __alloc_file+0x400/0x400 [ 33.898028] ? check_same_owner+0x340/0x340 [ 33.898032] ? kasan_check_write+0x14/0x20 [ 33.898036] ? do_raw_spin_lock+0xc1/0x200 [ 33.898039] ____fput+0x15/0x20 [ 33.898043] task_work_run+0x1e8/0x2a0 [ 33.898047] ? task_work_cancel+0x240/0x240 [ 33.898052] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.898056] ? switch_task_namespaces+0xa2/0xd0 [ 33.898060] do_exit+0x1ae4/0x26e0 [ 33.898064] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.898068] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.898073] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.898076] ? kfree+0x1d7/0x210 [ 33.898080] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.898085] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.898090] ? is_bpf_text_address+0xd7/0x170 [ 33.898092] ? [ 33.898100] Lost 54 message(s)! [ 35.005058] Shutting down cpus with NMI [ 36.063225] Dumping ftrace buffer: [ 36.066748] (ftrace buffer empty) [ 36.070438] Kernel Offset: disabled [ 36.074045] Rebooting in 86400 seconds..