[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.111986] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.540332] random: sshd: uninitialized urandom read (32 bytes read) [ 25.850363] random: sshd: uninitialized urandom read (32 bytes read) [ 26.426009] random: sshd: uninitialized urandom read (32 bytes read) [ 26.614178] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.211' (ECDSA) to the list of known hosts. [ 32.413427] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.511226] 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.537172] ================================================================== [ 32.546925] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.553152] Read of size 8 at addr ffff8801d9f88058 by task syz-executor891/4717 [ 32.562426] [ 32.564054] CPU: 1 PID: 4717 Comm: syz-executor891 Not tainted 4.19.0-rc2+ #220 [ 32.571489] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.580832] Call Trace: [ 32.583422] dump_stack+0x1c9/0x2b4 [ 32.587053] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.592259] ? printk+0xa7/0xcf [ 32.595537] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.600301] ? __schedule+0xf54/0x1df0 [ 32.604187] print_address_description+0x6c/0x20b [ 32.609561] ? __schedule+0xf54/0x1df0 [ 32.613454] kasan_report.cold.7+0x242/0x30d [ 32.617865] __asan_report_load8_noabort+0x14/0x20 [ 32.622798] __schedule+0xf54/0x1df0 [ 32.626512] ? __sched_text_start+0x8/0x8 [ 32.630655] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 32.635755] ? __call_srcu+0x7e7/0x1040 [ 32.639732] ? check_same_owner+0x340/0x340 [ 32.644048] ? mark_held_locks+0x160/0x160 [ 32.648279] ? find_held_lock+0x36/0x1c0 [ 32.652340] preempt_schedule_common+0x22/0x60 [ 32.656923] _cond_resched+0x1d/0x30 [ 32.660637] wait_for_completion+0xa5/0x8d0 [ 32.664960] ? wait_for_completion_interruptible+0x950/0x950 [ 32.670771] ? __lockdep_init_map+0x105/0x590 [ 32.675790] ? __init_waitqueue_head+0x9e/0x150 [ 32.680456] ? init_wait_entry+0x1c0/0x1c0 [ 32.684693] __synchronize_srcu+0x189/0x240 [ 32.689012] ? call_srcu+0x10/0x10 [ 32.692553] ? rcu_unexpedite_gp+0x20/0x20 [ 32.696790] synchronize_srcu+0x335/0x56f [ 32.700933] ? lock_downgrade+0x8f0/0x8f0 [ 32.705080] ? synchronize_srcu_expedited+0x20/0x20 [ 32.710096] ? kasan_check_read+0x11/0x20 [ 32.714241] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.718824] ? kasan_check_write+0x14/0x20 [ 32.723053] ? do_raw_spin_lock+0xc1/0x200 [ 32.727292] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.733000] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.738449] ? kvfree+0x61/0x70 [ 32.741727] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.746741] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.750798] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.755218] ? kvm_arch_sync_events+0x30/0x30 [ 32.759727] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.765265] ? mmu_notifier_unregister+0x474/0x600 [ 32.770190] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.774594] ? kfree+0x111/0x210 [ 32.777958] ? __mmu_notifier_register+0x30/0x30 [ 32.782752] ? __free_pages+0x10a/0x190 [ 32.786723] ? free_unref_page+0x930/0x930 [ 32.790962] kvm_put_kvm+0x73f/0x1060 [ 32.794772] ? kvm_write_guest_cached+0x40/0x40 [ 32.799441] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.803932] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.808431] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.813016] ? kasan_check_write+0x14/0x20 [ 32.817258] ? do_raw_spin_lock+0xc1/0x200 [ 32.821492] ? kvm_irqfd_release+0xdd/0x120 [ 32.825809] ? kvm_irqfd_release+0xdd/0x120 [ 32.830131] ? kvm_put_kvm+0x1060/0x1060 [ 32.834189] kvm_vm_release+0x42/0x50 [ 32.837985] __fput+0x38a/0xa40 [ 32.841265] ? __alloc_file+0x400/0x400 [ 32.845241] ? check_same_owner+0x340/0x340 [ 32.849556] ? kasan_check_write+0x14/0x20 [ 32.853787] ? do_raw_spin_lock+0xc1/0x200 [ 32.858019] ____fput+0x15/0x20 [ 32.861295] task_work_run+0x1e8/0x2a0 [ 32.865181] ? task_work_cancel+0x240/0x240 [ 32.869501] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.875034] ? switch_task_namespaces+0xa2/0xd0 [ 32.879702] do_exit+0x1ae4/0x26e0 [ 32.883245] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.887918] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.892150] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.897163] ? kfree+0x1d7/0x210 [ 32.900528] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.904787] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.910499] ? is_bpf_text_address+0xd7/0x170 [ 32.914997] ? kernel_text_address+0x79/0xf0 [ 32.919419] ? __kernel_text_address+0xd/0x40 [ 32.923921] ? unwind_get_return_address+0x61/0xa0 [ 32.928857] ? __save_stack_trace+0x8d/0xf0 [ 32.933186] ? save_stack+0xa9/0xd0 [ 32.936816] ? save_stack+0x43/0xd0 [ 32.940445] ? __kasan_slab_free+0x11a/0x170 [ 32.944848] ? kasan_slab_free+0xe/0x10 [ 32.948816] ? putname+0xf2/0x130 [ 32.952266] ? __x64_sys_openat+0x9d/0x100 [ 32.956502] ? do_syscall_64+0x1b9/0x820 [ 32.960560] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.965926] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.970347] ? kasan_check_read+0x11/0x20 [ 32.974495] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.978906] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.983314] ? initcall_blacklisted+0x9a/0x1e0 [ 32.987906] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.993011] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.998747] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.004287] ? do_vfs_ioctl+0x201/0x1720 [ 33.008347] ? rcu_is_watching+0x8c/0x150 [ 33.012491] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.016814] ? ioctl_preallocate+0x300/0x300 [ 33.021220] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.026756] ? __fget_light+0x2f7/0x440 [ 33.030742] ? fget_raw+0x20/0x20 [ 33.034204] ? putname+0xf2/0x130 [ 33.037658] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.042671] ? kmem_cache_free+0x246/0x280 [ 33.046912] ? putname+0xf7/0x130 [ 33.050374] do_group_exit+0x177/0x440 [ 33.054271] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.058593] ? __ia32_sys_exit+0x50/0x50 [ 33.062650] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.067753] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.073292] ? ksys_ioctl+0x81/0xd0 [ 33.076925] __x64_sys_exit_group+0x3e/0x50 [ 33.081270] do_syscall_64+0x1b9/0x820 [ 33.085160] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.090526] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.095459] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.100299] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.105840] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.110856] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.115701] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.120885] RIP: 0033:0x43ecf8 [ 33.124081] Code: Bad RIP value. [ 33.127443] RSP: 002b:00007ffdfcb8f5f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.135149] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 33.142432] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.149702] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.156965] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.164226] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.171491] [ 33.173111] Allocated by task 4717: [ 33.176737] save_stack+0x43/0xd0 [ 33.180195] kasan_kmalloc+0xc4/0xe0 [ 33.183916] kasan_slab_alloc+0x12/0x20 [ 33.187902] kmem_cache_alloc+0x12e/0x710 [ 33.192044] vmx_create_vcpu+0xcf/0x2830 [ 33.196101] kvm_arch_vcpu_create+0xe5/0x220 [ 33.200514] kvm_vm_ioctl+0x488/0x1d80 [ 33.204405] do_vfs_ioctl+0x1de/0x1720 [ 33.208291] ksys_ioctl+0xa9/0xd0 [ 33.211739] __x64_sys_ioctl+0x73/0xb0 [ 33.215625] do_syscall_64+0x1b9/0x820 [ 33.219508] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.224683] [ 33.226298] Freed by task 4717: [ 33.229572] save_stack+0x43/0xd0 [ 33.233025] __kasan_slab_free+0x11a/0x170 [ 33.237257] kasan_slab_free+0xe/0x10 [ 33.241051] kmem_cache_free+0x86/0x280 [ 33.245018] vmx_free_vcpu+0x26b/0x300 [ 33.248904] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.253309] kvm_put_kvm+0x73f/0x1060 [ 33.257104] kvm_vm_release+0x42/0x50 [ 33.260904] __fput+0x38a/0xa40 [ 33.264176] ____fput+0x15/0x20 [ 33.267458] task_work_run+0x1e8/0x2a0 [ 33.271337] do_exit+0x1ae4/0x26e0 [ 33.274870] do_group_exit+0x177/0x440 [ 33.278753] __x64_sys_exit_group+0x3e/0x50 [ 33.283068] do_syscall_64+0x1b9/0x820 [ 33.286965] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.292151] [ 33.293788] The buggy address belongs to the object at ffff8801d9f88040 [ 33.293788] which belongs to the cache kvm_vcpu of size 23872 [ 33.306367] The buggy address is located 24 bytes inside of [ 33.306367] 23872-byte region [ffff8801d9f88040, ffff8801d9f8dd80) [ 33.318324] The buggy address belongs to the page: [ 33.323246] page:ffffea000767e200 count:1 mapcount:0 mapping:ffff8801d9fd8500 index:0x0 compound_mapcount: 0 [ 33.333220] flags: 0x2fffc0000008100(slab|head) [ 33.337890] raw: 02fffc0000008100 ffff8801d5347248 ffff8801d5347248 ffff8801d9fd8500 [ 33.345774] raw: 0000000000000000 ffff8801d9f88040 0000000100000001 0000000000000000 [ 33.353652] page dumped because: kasan: bad access detected [ 33.359344] [ 33.360959] Memory state around the buggy address: [ 33.365878] ffff8801d9f87f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.373232] ffff8801d9f87f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.380584] >ffff8801d9f88000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.387929] ^ [ 33.394152] ffff8801d9f88080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.401503] ffff8801d9f88100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.408863] ================================================================== [ 33.416214] Kernel panic - not syncing: panic_on_warn set ... [ 33.416214] [ 33.423600] CPU: 1 PID: 4717 Comm: syz-executor891 Tainted: G B 4.19.0-rc2+ #220 [ 33.432478] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.441836] Call Trace: [ 33.444447] dump_stack+0x1c9/0x2b4 [ 33.448081] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.453270] ? lock_downgrade+0x8f0/0x8f0 [ 33.457423] ? __schedule+0xf54/0x1df0 [ 33.461307] panic+0x238/0x4e7 [ 33.464509] ? add_taint.cold.5+0x16/0x16 [ 33.468660] ? print_shadow_for_address+0xba/0x116 [ 33.473585] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.478004] ? trace_hardirqs_off+0x77/0x2b0 [ 33.482417] ? __schedule+0xf54/0x1df0 [ 33.486305] kasan_end_report+0x47/0x4f [ 33.490277] kasan_report.cold.7+0x76/0x30d [ 33.494611] __asan_report_load8_noabort+0x14/0x20 [ 33.499538] __schedule+0xf54/0x1df0 [ 33.503253] ? __sched_text_start+0x8/0x8 [ 33.507395] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 33.512512] ? __call_srcu+0x7e7/0x1040 [ 33.516513] ? check_same_owner+0x340/0x340 [ 33.520829] ? mark_held_locks+0x160/0x160 [ 33.525076] ? find_held_lock+0x36/0x1c0 [ 33.529140] preempt_schedule_common+0x22/0x60 [ 33.533724] _cond_resched+0x1d/0x30 [ 33.537447] wait_for_completion+0xa5/0x8d0 [ 33.541767] ? wait_for_completion_interruptible+0x950/0x950 [ 33.547560] ? __lockdep_init_map+0x105/0x590 [ 33.552053] ? __init_waitqueue_head+0x9e/0x150 [ 33.556731] ? init_wait_entry+0x1c0/0x1c0 [ 33.560967] __synchronize_srcu+0x189/0x240 [ 33.565284] ? call_srcu+0x10/0x10 [ 33.568830] ? rcu_unexpedite_gp+0x20/0x20 [ 33.573070] synchronize_srcu+0x335/0x56f [ 33.577214] ? lock_downgrade+0x8f0/0x8f0 [ 33.581357] ? synchronize_srcu_expedited+0x20/0x20 [ 33.586390] ? kasan_check_read+0x11/0x20 [ 33.590538] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.595115] ? kasan_check_write+0x14/0x20 [ 33.599343] ? do_raw_spin_lock+0xc1/0x200 [ 33.603591] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.609799] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.615271] ? kvfree+0x61/0x70 [ 33.618551] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.623564] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.627619] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.632032] ? kvm_arch_sync_events+0x30/0x30 [ 33.636529] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.642065] ? mmu_notifier_unregister+0x474/0x600 [ 33.646991] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.651410] ? kfree+0x111/0x210 [ 33.654778] ? __mmu_notifier_register+0x30/0x30 [ 33.659534] ? __free_pages+0x10a/0x190 [ 33.663505] ? free_unref_page+0x930/0x930 [ 33.667749] kvm_put_kvm+0x73f/0x1060 [ 33.671557] ? kvm_write_guest_cached+0x40/0x40 [ 33.676226] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.680714] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.685206] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.689787] ? kasan_check_write+0x14/0x20 [ 33.694016] ? do_raw_spin_lock+0xc1/0x200 [ 33.698249] ? kvm_irqfd_release+0xdd/0x120 [ 33.702566] ? kvm_irqfd_release+0xdd/0x120 [ 33.706885] ? kvm_put_kvm+0x1060/0x1060 [ 33.710946] kvm_vm_release+0x42/0x50 [ 33.714741] __fput+0x38a/0xa40 [ 33.718017] ? __alloc_file+0x400/0x400 [ 33.721995] ? check_same_owner+0x340/0x340 [ 33.726312] ? kasan_check_write+0x14/0x20 [ 33.730544] ? do_raw_spin_lock+0xc1/0x200 [ 33.734775] ____fput+0x15/0x20 [ 33.738060] task_work_run+0x1e8/0x2a0 [ 33.741944] ? task_work_cancel+0x240/0x240 [ 33.746266] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.751804] ? switch_task_namespaces+0xa2/0xd0 [ 33.756474] do_exit+0x1ae4/0x26e0 [ 33.760026] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.764721] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.768957] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.773967] ? kfree+0x1d7/0x210 [ 33.777331] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.781568] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.787276] ? is_bpf_text_address+0xd7/0x170 [ 33.791768] ? kernel_text_address+0x79/0xf0 [ 33.796172] ? __kernel_text_address+0xd/0x40 [ 33.800688] ? unwind_get_return_address+0x61/0xa0 [ 33.805617] ? __save_stack_trace+0x8d/0xf0 [ 33.809942] ? save_stack+0xa9/0xd0 [ 33.813564] ? save_stack+0x43/0xd0 [ 33.817197] ? __kasan_slab_free+0x11a/0x170 [ 33.821601] ? kasan_slab_free+0xe/0x10 [ 33.825571] ? putname+0xf2/0x130 [ 33.829020] ? __x64_sys_openat+0x9d/0x100 [ 33.833250] ? do_syscall_64+0x1b9/0x820 [ 33.837305] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.842668] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.847074] ? kasan_check_read+0x11/0x20 [ 33.851231] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.855644] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.860069] ? initcall_blacklisted+0x9a/0x1e0 [ 33.864650] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.869751] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.875474] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.881008] ? do_vfs_ioctl+0x201/0x1720 [ 33.885064] ? rcu_is_watching+0x8c/0x150 [ 33.889204] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.893539] ? ioctl_preallocate+0x300/0x300 [ 33.897953] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.903485] ? __fget_light+0x2f7/0x440 [ 33.907456] ? fget_raw+0x20/0x20 [ 33.910908] ? putname+0xf2/0x130 [ 33.914368] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.919396] ? kmem_cache_free+0x246/0x280 [ 33.923631] ? putname+0xf7/0x130 [ 33.927083] do_group_exit+0x177/0x440 [ 33.930969] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.935284] ? __ia32_sys_exit+0x50/0x50 [ 33.939339] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.944438] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.949972] ? ksys_ioctl+0x81/0xd0 [ 33.953598] __x64_sys_exit_group+0x3e/0x50 [ 33.957932] do_syscall_64+0x1b9/0x820 [ 33.961828] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.967183] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.972102] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.976942] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.981959] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.986975] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.991816] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.997039] RIP: 0033:0x43ecf8 [ 34.000231] Code: Bad RIP value. [ 34.003584] RSP: 002b:00007ffdfcb8f5f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.011286] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 34.018564] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.025829] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.033093] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.040352] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.047624] [ 34.047629] ====================================================== [ 34.047634] WARNING: possible circular locking dependency detected [ 34.047638] 4.19.0-rc2+ #220 Not tainted [ 34.047643] ------------------------------------------------------ [ 34.047648] syz-executor891/4717 is trying to acquire lock: [ 34.047651] 00000000fd170846 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.047666] [ 34.047670] but task is already holding lock: [ 34.047673] 00000000a7299db0 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.047687] [ 34.047691] which lock already depends on the new lock. [ 34.047694] [ 34.047696] [ 34.047701] the existing dependency chain (in reverse order) is: [ 34.047703] [ 34.047705] -> #3 (report_lock){....}: [ 34.047719] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.047723] kasan_report+0x8e/0x110 [ 34.047728] __asan_report_load8_noabort+0x14/0x20 [ 34.047731] __schedule+0xf54/0x1df0 [ 34.047736] preempt_schedule_common+0x22/0x60 [ 34.047739] _cond_resched+0x1d/0x30 [ 34.047743] wait_for_completion+0xa5/0x8d0 [ 34.047747] __synchronize_srcu+0x189/0x240 [ 34.047751] synchronize_srcu+0x335/0x56f [ 34.047756] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.047760] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.047764] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.047768] kvm_put_kvm+0x73f/0x1060 [ 34.047772] kvm_vm_release+0x42/0x50 [ 34.047775] __fput+0x38a/0xa40 [ 34.047779] ____fput+0x15/0x20 [ 34.047782] task_work_run+0x1e8/0x2a0 [ 34.047786] do_exit+0x1ae4/0x26e0 [ 34.047790] do_group_exit+0x177/0x440 [ 34.047794] __x64_sys_exit_group+0x3e/0x50 [ 34.047798] do_syscall_64+0x1b9/0x820 [ 34.047802] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.047804] [ 34.047807] -> #2 (&rq->lock){-.-.}: [ 34.047820] _raw_spin_lock+0x2a/0x40 [ 34.047824] task_fork_fair+0x93/0x680 [ 34.047827] sched_fork+0x44b/0xbd0 [ 34.047831] copy_process+0x235e/0x7ad0 [ 34.047835] _do_fork+0x1ca/0x1170 [ 34.047838] kernel_thread+0x34/0x40 [ 34.047842] rest_init+0x22/0xe4 [ 34.047846] start_kernel+0x913/0x94e [ 34.047850] x86_64_start_reservations+0x29/0x2b [ 34.047854] x86_64_start_kernel+0x76/0x79 [ 34.047858] secondary_startup_64+0xa4/0xb0 [ 34.047860] [ 34.047862] -> #1 (&p->pi_lock){-.-.}: [ 34.047889] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.047893] try_to_wake_up+0xd2/0x1250 [ 34.047915] wake_up_process+0x10/0x20 [ 34.047919] __up.isra.1+0x1c0/0x2a0 [ 34.047922] up+0x13c/0x1c0 [ 34.047926] __up_console_sem+0xbe/0x1b0 [ 34.047929] console_unlock+0x506/0x10d0 [ 34.047933] vprintk_emit+0x33a/0x910 [ 34.047936] vprintk_default+0x28/0x30 [ 34.047940] vprintk_func+0x7a/0x117 [ 34.047943] printk+0xa7/0xcf [ 34.047958] load_umh+0x51/0xbd [ 34.047961] do_one_initcall+0x127/0x838 [ 34.047965] kernel_init_freeable+0x4bb/0x5ae [ 34.047969] kernel_init+0x11/0x1b3 [ 34.047972] ret_from_fork+0x3a/0x50 [ 34.047974] [ 34.047989] -> #0 ((console_sem).lock){-...}: [ 34.048003] lock_acquire+0x1e4/0x4f0 [ 34.048007] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.048011] down_trylock+0x13/0x70 [ 34.048015] __down_trylock_console_sem+0xae/0x200 [ 34.048019] console_trylock+0x15/0xa0 [ 34.048023] vprintk_emit+0x31f/0x910 [ 34.048026] vprintk_default+0x28/0x30 [ 34.048030] vprintk_func+0x7a/0x117 [ 34.048034] printk+0xa7/0xcf [ 34.048037] kasan_report+0x9e/0x110 [ 34.048042] __asan_report_load8_noabort+0x14/0x20 [ 34.048045] __schedule+0xf54/0x1df0 [ 34.048050] preempt_schedule_common+0x22/0x60 [ 34.048053] _cond_resched+0x1d/0x30 [ 34.048058] wait_for_completion+0xa5/0x8d0 [ 34.048062] __synchronize_srcu+0x189/0x240 [ 34.048066] synchronize_srcu+0x335/0x56f [ 34.048071] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.048075] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.048079] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.048082] kvm_put_kvm+0x73f/0x1060 [ 34.048086] kvm_vm_release+0x42/0x50 [ 34.048090] __fput+0x38a/0xa40 [ 34.048093] ____fput+0x15/0x20 [ 34.048097] task_work_run+0x1e8/0x2a0 [ 34.048101] do_exit+0x1ae4/0x26e0 [ 34.048105] do_group_exit+0x177/0x440 [ 34.048109] __x64_sys_exit_group+0x3e/0x50 [ 34.048112] do_syscall_64+0x1b9/0x820 [ 34.048117] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.048119] [ 34.048123] other info that might help us debug this: [ 34.048125] [ 34.048128] Chain exists of: [ 34.048130] (console_sem).lock --> &rq->lock --> report_lock [ 34.048148] [ 34.048152] Possible unsafe locking scenario: [ 34.048154] [ 34.048158] CPU0 CPU1 [ 34.048162] ---- ---- [ 34.048164] lock(report_lock); [ 34.048173] lock(&rq->lock); [ 34.048182] lock(report_lock); [ 34.048190] lock((console_sem).lock); [ 34.048198] [ 34.048201] *** DEADLOCK *** [ 34.048203] [ 34.048207] 2 locks held by syz-executor891/4717: [ 34.048209] #0: 00000000e89c8ea9 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.048226] #1: 00000000a7299db0 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.048242] [ 34.048245] stack backtrace: [ 34.048251] CPU: 1 PID: 4717 Comm: syz-executor891 Not tainted 4.19.0-rc2+ #220 [ 34.048258] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.048261] Call Trace: [ 34.048265] dump_stack+0x1c9/0x2b4 [ 34.048269] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.048273] ? vprintk_func+0x100/0x117 [ 34.048278] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.048281] ? save_trace+0xe0/0x290 [ 34.048285] __lock_acquire+0x3449/0x5020 [ 34.048289] ? mark_held_locks+0x160/0x160 [ 34.048293] ? mark_held_locks+0x160/0x160 [ 34.048297] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.048301] ? is_bpf_text_address+0xd7/0x170 [ 34.048306] ? kernel_text_address+0x79/0xf0 [ 34.048310] ? __kernel_text_address+0xd/0x40 [ 34.048314] ? __save_stack_trace+0x8d/0xf0 [ 34.048318] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.048322] ? save_trace+0x290/0x290 [ 34.048326] ? save_stack_trace+0x1a/0x20 [ 34.048330] ? save_trace+0xe0/0x290 [ 34.048333] ? graph_lock+0x170/0x170 [ 34.048338] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.048342] lock_acquire+0x1e4/0x4f0 [ 34.048345] ? down_trylock+0x13/0x70 [ 34.048349] ? lock_release+0x9f0/0x9f0 [ 34.048353] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.048357] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.048361] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.048365] ? log_store+0x34f/0x4c0 [ 34.048369] ? vprintk_emit+0x31f/0x910 [ 34.048373] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.048377] ? down_trylock+0x13/0x70 [ 34.048380] down_trylock+0x13/0x70 [ 34.048393] __down_trylock_console_sem+0xae/0x200 [ 34.048396] console_trylock+0x15/0xa0 [ 34.048400] vprintk_emit+0x31f/0x910 [ 34.048405] ? wake_up_klogd+0x110/0x110 [ 34.048409] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.048413] ? kasan_check_read+0x11/0x20 [ 34.048417] ? rcu_is_watching+0x8c/0x150 [ 34.048421] ? rcu_pm_notify+0xc0/0xc0 [ 34.048425] ? lock_acquire+0x1e4/0x4f0 [ 34.048428] ? kasan_report+0x8e/0x110 [ 34.048432] ? __schedule+0xf54/0x1df0 [ 34.048436] vprintk_default+0x28/0x30 [ 34.048440] vprintk_func+0x7a/0x117 [ 34.048443] printk+0xa7/0xcf [ 34.048447] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.048451] ? kasan_check_write+0x14/0x20 [ 34.048455] ? do_raw_spin_lock+0xc1/0x200 [ 34.048459] ? do_raw_spin_lock+0xc1/0x200 [ 34.048463] kasan_report+0x9e/0x110 [ 34.048467] __asan_report_load8_noabort+0x14/0x20 [ 34.048471] __schedule+0xf54/0x1df0 [ 34.048474] ? __sched_text_start+0x8/0x8 [ 34.048479] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.048483] ? __call_srcu+0x7e7/0x1040 [ 34.048487] ? check_same_owner+0x340/0x340 [ 34.048491] ? mark_held_locks+0x160/0x160 [ 34.048495] ? find_held_lock+0x36/0x1c0 [ 34.048499] preempt_schedule_common+0x22/0x60 [ 34.048502] _cond_resched+0x1d/0x30 [ 34.048507] wait_for_completion+0xa5/0x8d0 [ 34.048511] ? wait_for_completion_interruptible+0x950/0x950 [ 34.048516] ? __lockdep_init_map+0x105/0x590 [ 34.048520] ? __init_waitqueue_head+0x9e/0x150 [ 34.048524] ? init_wait_entry+0x1c0/0x1c0 [ 34.048528] __synchronize_srcu+0x189/0x240 [ 34.048531] ? call_srcu+0x10/0x10 [ 34.048535] ? rcu_unexpedite_gp+0x20/0x20 [ 34.048539] synchronize_srcu+0x335/0x56f [ 34.048543] ? lock_downgrade+0x8f0/0x8f0 [ 34.048548] ? synchronize_srcu_expedited+0x20/0x20 [ 34.048552] ? kasan_check_read+0x11/0x20 [ 34.048556] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.048560] ? kasan_check_write+0x14/0x20 [ 34.048564] ? do_raw_spin_lock+0xc1/0x200 [ 34.048569] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.048574] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.048577] ? kvfree+0x61/0x70 [ 34.048582] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.048585] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.048590] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.048594] ? kvm_arch_sync_events+0x30/0x30 [ 34.048599] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.048603] ? mmu_notifier_unregister+0x474/0x600 [ 34.048607] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.048610] ? kfree+0x111/0x210 [ 34.048615] ? __mmu_notifier_register+0x30/0x30 [ 34.048618] ? __free_pages+0x10a/0x190 [ 34.048622] ? free_unref_page+0x930/0x930 [ 34.048626] kvm_put_kvm+0x73f/0x1060 [ 34.048630] ? kvm_write_guest_cached+0x40/0x40 [ 34.048634] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.048639] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.048643] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.048647] ? kasan_check_write+0x14/0x20 [ 34.048651] ? do_raw_spin_lock+0xc1/0x200 [ 34.048655] ? kvm_irqfd_release+0xdd/0x120 [ 34.048659] ? kvm_irqfd_release+0xdd/0x120 [ 34.048662] ? kvm_put_kvm+0x1060/0x1060 [ 34.048666] kvm_vm_release+0x42/0x50 [ 34.048669] __fput+0x38a/0xa40 [ 34.048673] ? __alloc_file+0x400/0x400 [ 34.048677] ? check_same_owner+0x340/0x340 [ 34.048681] ? kasan_check_write+0x14/0x20 [ 34.048685] ? do_raw_spin_lock+0xc1/0x200 [ 34.048689] ____fput+0x15/0x20 [ 34.048692] task_work_run+0x1e8/0x2a0 [ 34.048696] ? task_work_cancel+0x240/0x240 [ 34.048701] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.048705] ? switch_task_namespaces+0xa2/0xd0 [ 34.048709] do_exit+0x1ae4/0x26e0 [ 34.048713] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.048717] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.048722] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.048725] ? kfree+0x1d7/0x210 [ 34.048729] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.048734] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.048738] ? is_bpf_text_address+0xd7/0x170 [ 34.048740] ? [ 34.048747] Lost 54 message(s)! [ 35.150671] Shutting down cpus with NMI [ 36.209981] Dumping ftrace buffer: [ 36.213511] (ftrace buffer empty) [ 36.217219] Kernel Offset: disabled [ 36.220858] Rebooting in 86400 seconds..