[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.855261] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.306944] random: sshd: uninitialized urandom read (32 bytes read) [ 27.652881] random: sshd: uninitialized urandom read (32 bytes read) [ 28.186228] random: sshd: uninitialized urandom read (32 bytes read) [ 28.364152] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.62' (ECDSA) to the list of known hosts. [ 34.190759] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.288889] 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.313558] ================================================================== [ 34.323433] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.329660] Read of size 8 at addr ffff8801b7060058 by task syz-executor042/4661 [ 34.337176] [ 34.338804] CPU: 0 PID: 4661 Comm: syz-executor042 Not tainted 4.19.0-rc2+ #220 [ 34.346246] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.355590] Call Trace: [ 34.358184] dump_stack+0x1c9/0x2b4 [ 34.361818] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.367007] ? printk+0xa7/0xcf [ 34.370286] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.375040] ? __schedule+0xf54/0x1df0 [ 34.378928] print_address_description+0x6c/0x20b [ 34.383781] ? __schedule+0xf54/0x1df0 [ 34.387678] kasan_report.cold.7+0x242/0x30d [ 34.392085] __asan_report_load8_noabort+0x14/0x20 [ 34.397012] __schedule+0xf54/0x1df0 [ 34.400737] ? __sched_text_start+0x8/0x8 [ 34.404888] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.410013] ? __call_srcu+0x7e7/0x1040 [ 34.413993] ? check_same_owner+0x340/0x340 [ 34.418312] ? mark_held_locks+0x160/0x160 [ 34.422542] ? find_held_lock+0x36/0x1c0 [ 34.426602] preempt_schedule_common+0x22/0x60 [ 34.431181] _cond_resched+0x1d/0x30 [ 34.434900] wait_for_completion+0xa5/0x8d0 [ 34.439231] ? wait_for_completion_interruptible+0x950/0x950 [ 34.445035] ? __lockdep_init_map+0x105/0x590 [ 34.449530] ? __init_waitqueue_head+0x9e/0x150 [ 34.454191] ? init_wait_entry+0x1c0/0x1c0 [ 34.458433] __synchronize_srcu+0x189/0x240 [ 34.462752] ? call_srcu+0x10/0x10 [ 34.466289] ? rcu_unexpedite_gp+0x20/0x20 [ 34.470527] synchronize_srcu+0x335/0x56f [ 34.474669] ? lock_downgrade+0x8f0/0x8f0 [ 34.478815] ? synchronize_srcu_expedited+0x20/0x20 [ 34.483842] ? kasan_check_read+0x11/0x20 [ 34.488001] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.492580] ? kasan_check_write+0x14/0x20 [ 34.496810] ? do_raw_spin_lock+0xc1/0x200 [ 34.501045] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.506755] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.512201] ? kvfree+0x61/0x70 [ 34.515493] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.520510] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.524571] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.528982] ? kvm_arch_sync_events+0x30/0x30 [ 34.533490] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.539030] ? mmu_notifier_unregister+0x474/0x600 [ 34.543953] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.548358] ? kfree+0x111/0x210 [ 34.551725] ? __mmu_notifier_register+0x30/0x30 [ 34.556486] ? __free_pages+0x10a/0x190 [ 34.560463] ? free_unref_page+0x930/0x930 [ 34.564712] kvm_put_kvm+0x73f/0x1060 [ 34.568521] ? kvm_write_guest_cached+0x40/0x40 [ 34.573195] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.577693] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.582188] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.586782] ? kasan_check_write+0x14/0x20 [ 34.591019] ? do_raw_spin_lock+0xc1/0x200 [ 34.595256] ? kvm_irqfd_release+0xdd/0x120 [ 34.599571] ? kvm_irqfd_release+0xdd/0x120 [ 34.603890] ? kvm_put_kvm+0x1060/0x1060 [ 34.607988] kvm_vm_release+0x42/0x50 [ 34.611801] __fput+0x38a/0xa40 [ 34.615078] ? __alloc_file+0x400/0x400 [ 34.619064] ? check_same_owner+0x340/0x340 [ 34.623399] ? kasan_check_write+0x14/0x20 [ 34.627632] ? do_raw_spin_lock+0xc1/0x200 [ 34.631864] ____fput+0x15/0x20 [ 34.635144] task_work_run+0x1e8/0x2a0 [ 34.639028] ? task_work_cancel+0x240/0x240 [ 34.643350] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.648889] ? switch_task_namespaces+0xa2/0xd0 [ 34.653563] do_exit+0x1ae4/0x26e0 [ 34.657110] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.661787] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.666021] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.671037] ? kfree+0x1d7/0x210 [ 34.674403] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.678641] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.684354] ? is_bpf_text_address+0xd7/0x170 [ 34.688852] ? kernel_text_address+0x79/0xf0 [ 34.693255] ? __kernel_text_address+0xd/0x40 [ 34.697750] ? unwind_get_return_address+0x61/0xa0 [ 34.702681] ? __save_stack_trace+0x8d/0xf0 [ 34.707007] ? save_stack+0xa9/0xd0 [ 34.710633] ? save_stack+0x43/0xd0 [ 34.714256] ? __kasan_slab_free+0x11a/0x170 [ 34.718658] ? kasan_slab_free+0xe/0x10 [ 34.722627] ? putname+0xf2/0x130 [ 34.726079] ? __x64_sys_openat+0x9d/0x100 [ 34.730312] ? do_syscall_64+0x1b9/0x820 [ 34.734373] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.739737] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.744146] ? kasan_check_read+0x11/0x20 [ 34.748296] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.752699] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.757106] ? initcall_blacklisted+0x9a/0x1e0 [ 34.761690] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.766799] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.772512] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.778050] ? do_vfs_ioctl+0x201/0x1720 [ 34.782112] ? rcu_is_watching+0x8c/0x150 [ 34.786254] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.790578] ? ioctl_preallocate+0x300/0x300 [ 34.794987] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.800523] ? __fget_light+0x2f7/0x440 [ 34.804501] ? fget_raw+0x20/0x20 [ 34.807950] ? putname+0xf2/0x130 [ 34.811407] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.816428] ? kmem_cache_free+0x246/0x280 [ 34.820663] ? putname+0xf7/0x130 [ 34.824121] do_group_exit+0x177/0x440 [ 34.828011] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.832329] ? __ia32_sys_exit+0x50/0x50 [ 34.836385] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.841494] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.847036] ? ksys_ioctl+0x81/0xd0 [ 34.850665] __x64_sys_exit_group+0x3e/0x50 [ 34.854989] do_syscall_64+0x1b9/0x820 [ 34.858877] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.864245] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.869171] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.874012] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.879028] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.884042] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.889058] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.893900] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.899084] RIP: 0033:0x43ecf8 [ 34.902276] Code: Bad RIP value. [ 34.905634] RSP: 002b:00007ffe1c4ed278 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.913339] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 34.920601] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.927865] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.935128] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.942390] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.949658] [ 34.951277] Allocated by task 4661: [ 34.954907] save_stack+0x43/0xd0 [ 34.958354] kasan_kmalloc+0xc4/0xe0 [ 34.962062] kasan_slab_alloc+0x12/0x20 [ 34.966028] kmem_cache_alloc+0x12e/0x710 [ 34.970171] vmx_create_vcpu+0xcf/0x2830 [ 34.974234] kvm_arch_vcpu_create+0xe5/0x220 [ 34.978641] kvm_vm_ioctl+0x488/0x1d80 [ 34.982524] do_vfs_ioctl+0x1de/0x1720 [ 34.986404] ksys_ioctl+0xa9/0xd0 [ 34.989850] __x64_sys_ioctl+0x73/0xb0 [ 34.993737] do_syscall_64+0x1b9/0x820 [ 34.997620] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.002796] [ 35.004417] Freed by task 4661: [ 35.007696] save_stack+0x43/0xd0 [ 35.011146] __kasan_slab_free+0x11a/0x170 [ 35.015375] kasan_slab_free+0xe/0x10 [ 35.019168] kmem_cache_free+0x86/0x280 [ 35.023141] vmx_free_vcpu+0x26b/0x300 [ 35.027023] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.031649] kvm_put_kvm+0x73f/0x1060 [ 35.035446] kvm_vm_release+0x42/0x50 [ 35.039250] __fput+0x38a/0xa40 [ 35.042523] ____fput+0x15/0x20 [ 35.045798] task_work_run+0x1e8/0x2a0 [ 35.049683] do_exit+0x1ae4/0x26e0 [ 35.053225] do_group_exit+0x177/0x440 [ 35.057108] __x64_sys_exit_group+0x3e/0x50 [ 35.061427] do_syscall_64+0x1b9/0x820 [ 35.065313] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.070490] [ 35.072114] The buggy address belongs to the object at ffff8801b7060040 [ 35.072114] which belongs to the cache kvm_vcpu of size 23872 [ 35.084684] The buggy address is located 24 bytes inside of [ 35.084684] 23872-byte region [ffff8801b7060040, ffff8801b7065d80) [ 35.096859] The buggy address belongs to the page: [ 35.101790] page:ffffea0006dc1800 count:1 mapcount:0 mapping:ffff8801d53b2b40 index:0x0 compound_mapcount: 0 [ 35.111759] flags: 0x2fffc0000008100(slab|head) [ 35.116432] raw: 02fffc0000008100 ffff8801d53b3e48 ffff8801d53b3e48 ffff8801d53b2b40 [ 35.124321] raw: 0000000000000000 ffff8801b7060040 0000000100000001 0000000000000000 [ 35.132194] page dumped because: kasan: bad access detected [ 35.137902] [ 35.139519] Memory state around the buggy address: [ 35.144448] ffff8801b705ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.151813] ffff8801b705ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.159171] >ffff8801b7060000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.166526] ^ [ 35.172758] ffff8801b7060080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.180120] ffff8801b7060100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.187480] ================================================================== [ 35.194840] Kernel panic - not syncing: panic_on_warn set ... [ 35.194840] [ 35.202221] CPU: 0 PID: 4661 Comm: syz-executor042 Tainted: G B 4.19.0-rc2+ #220 [ 35.211064] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.220429] Call Trace: [ 35.223037] dump_stack+0x1c9/0x2b4 [ 35.226667] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.231861] ? lock_downgrade+0x8f0/0x8f0 [ 35.236010] ? __schedule+0xf54/0x1df0 [ 35.239897] panic+0x238/0x4e7 [ 35.243087] ? add_taint.cold.5+0x16/0x16 [ 35.247244] ? print_shadow_for_address+0xba/0x116 [ 35.252173] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.256582] ? trace_hardirqs_off+0x77/0x2b0 [ 35.260993] ? __schedule+0xf54/0x1df0 [ 35.264881] kasan_end_report+0x47/0x4f [ 35.268854] kasan_report.cold.7+0x76/0x30d [ 35.273177] __asan_report_load8_noabort+0x14/0x20 [ 35.278120] __schedule+0xf54/0x1df0 [ 35.281834] ? __sched_text_start+0x8/0x8 [ 35.285979] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.291087] ? __call_srcu+0x7e7/0x1040 [ 35.295070] ? check_same_owner+0x340/0x340 [ 35.299388] ? mark_held_locks+0x160/0x160 [ 35.303621] ? find_held_lock+0x36/0x1c0 [ 35.307684] preempt_schedule_common+0x22/0x60 [ 35.312268] _cond_resched+0x1d/0x30 [ 35.315979] wait_for_completion+0xa5/0x8d0 [ 35.320314] ? wait_for_completion_interruptible+0x950/0x950 [ 35.326109] ? __lockdep_init_map+0x105/0x590 [ 35.330604] ? __init_waitqueue_head+0x9e/0x150 [ 35.335270] ? init_wait_entry+0x1c0/0x1c0 [ 35.339535] __synchronize_srcu+0x189/0x240 [ 35.343863] ? call_srcu+0x10/0x10 [ 35.347401] ? rcu_unexpedite_gp+0x20/0x20 [ 35.351649] synchronize_srcu+0x335/0x56f [ 35.355801] ? lock_downgrade+0x8f0/0x8f0 [ 35.359946] ? synchronize_srcu_expedited+0x20/0x20 [ 35.364965] ? kasan_check_read+0x11/0x20 [ 35.369112] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.373695] ? kasan_check_write+0x14/0x20 [ 35.377927] ? do_raw_spin_lock+0xc1/0x200 [ 35.382164] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.387880] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.393332] ? kvfree+0x61/0x70 [ 35.396612] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.401628] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.405685] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.410089] ? kvm_arch_sync_events+0x30/0x30 [ 35.414615] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.420159] ? mmu_notifier_unregister+0x474/0x600 [ 35.425085] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.429495] ? kfree+0x111/0x210 [ 35.432859] ? __mmu_notifier_register+0x30/0x30 [ 35.437617] ? __free_pages+0x10a/0x190 [ 35.441589] ? free_unref_page+0x930/0x930 [ 35.445830] kvm_put_kvm+0x73f/0x1060 [ 35.449635] ? kvm_write_guest_cached+0x40/0x40 [ 35.454310] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.458801] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.463297] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.467885] ? kasan_check_write+0x14/0x20 [ 35.472121] ? do_raw_spin_lock+0xc1/0x200 [ 35.476361] ? kvm_irqfd_release+0xdd/0x120 [ 35.480680] ? kvm_irqfd_release+0xdd/0x120 [ 35.485015] ? kvm_put_kvm+0x1060/0x1060 [ 35.489077] kvm_vm_release+0x42/0x50 [ 35.492877] __fput+0x38a/0xa40 [ 35.496156] ? __alloc_file+0x400/0x400 [ 35.500136] ? check_same_owner+0x340/0x340 [ 35.504458] ? kasan_check_write+0x14/0x20 [ 35.508698] ? do_raw_spin_lock+0xc1/0x200 [ 35.512930] ____fput+0x15/0x20 [ 35.516207] task_work_run+0x1e8/0x2a0 [ 35.520103] ? task_work_cancel+0x240/0x240 [ 35.524429] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.529978] ? switch_task_namespaces+0xa2/0xd0 [ 35.534650] do_exit+0x1ae4/0x26e0 [ 35.538190] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.542868] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.547105] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.552120] ? kfree+0x1d7/0x210 [ 35.555491] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.559725] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.565435] ? is_bpf_text_address+0xd7/0x170 [ 35.569951] ? kernel_text_address+0x79/0xf0 [ 35.574387] ? __kernel_text_address+0xd/0x40 [ 35.578879] ? unwind_get_return_address+0x61/0xa0 [ 35.583811] ? __save_stack_trace+0x8d/0xf0 [ 35.588136] ? save_stack+0xa9/0xd0 [ 35.591762] ? save_stack+0x43/0xd0 [ 35.595386] ? __kasan_slab_free+0x11a/0x170 [ 35.599793] ? kasan_slab_free+0xe/0x10 [ 35.603765] ? putname+0xf2/0x130 [ 35.607227] ? __x64_sys_openat+0x9d/0x100 [ 35.611463] ? do_syscall_64+0x1b9/0x820 [ 35.615528] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.620914] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.625321] ? kasan_check_read+0x11/0x20 [ 35.629468] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.633883] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.638295] ? initcall_blacklisted+0x9a/0x1e0 [ 35.642877] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.647981] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.653696] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.659237] ? do_vfs_ioctl+0x201/0x1720 [ 35.663300] ? rcu_is_watching+0x8c/0x150 [ 35.667444] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.671795] ? ioctl_preallocate+0x300/0x300 [ 35.676202] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.681748] ? __fget_light+0x2f7/0x440 [ 35.685720] ? fget_raw+0x20/0x20 [ 35.689176] ? putname+0xf2/0x130 [ 35.692631] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.697645] ? kmem_cache_free+0x246/0x280 [ 35.701880] ? putname+0xf7/0x130 [ 35.705332] do_group_exit+0x177/0x440 [ 35.709224] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.713540] ? __ia32_sys_exit+0x50/0x50 [ 35.717599] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.722705] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.728279] ? ksys_ioctl+0x81/0xd0 [ 35.731924] __x64_sys_exit_group+0x3e/0x50 [ 35.736248] do_syscall_64+0x1b9/0x820 [ 35.740137] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.745501] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.750429] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.755282] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.760294] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.765310] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.770325] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.775171] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.780357] RIP: 0033:0x43ecf8 [ 35.783563] Code: Bad RIP value. [ 35.786948] RSP: 002b:00007ffe1c4ed278 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.794708] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 35.801973] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.809241] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.816506] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.823769] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.831043] [ 35.831048] ====================================================== [ 35.831054] WARNING: possible circular locking dependency detected [ 35.831058] 4.19.0-rc2+ #220 Not tainted [ 35.831063] ------------------------------------------------------ [ 35.831068] syz-executor042/4661 is trying to acquire lock: [ 35.831072] 00000000870bf932 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.831087] [ 35.831091] but task is already holding lock: [ 35.831094] 00000000302a5baf (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.831109] [ 35.831113] which lock already depends on the new lock. [ 35.831115] [ 35.831118] [ 35.831123] the existing dependency chain (in reverse order) is: [ 35.831125] [ 35.831128] -> #3 (report_lock){....}: [ 35.831142] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.831146] kasan_report+0x8e/0x110 [ 35.831150] __asan_report_load8_noabort+0x14/0x20 [ 35.831154] __schedule+0xf54/0x1df0 [ 35.831158] preempt_schedule_common+0x22/0x60 [ 35.831162] _cond_resched+0x1d/0x30 [ 35.831167] wait_for_completion+0xa5/0x8d0 [ 35.831171] __synchronize_srcu+0x189/0x240 [ 35.831175] synchronize_srcu+0x335/0x56f [ 35.831180] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.831184] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.831188] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.831192] kvm_put_kvm+0x73f/0x1060 [ 35.831196] kvm_vm_release+0x42/0x50 [ 35.831200] __fput+0x38a/0xa40 [ 35.831203] ____fput+0x15/0x20 [ 35.831207] task_work_run+0x1e8/0x2a0 [ 35.831221] do_exit+0x1ae4/0x26e0 [ 35.831225] do_group_exit+0x177/0x440 [ 35.831229] __x64_sys_exit_group+0x3e/0x50 [ 35.831233] do_syscall_64+0x1b9/0x820 [ 35.831238] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.831240] [ 35.831242] -> #2 (&rq->lock){-.-.}: [ 35.831256] _raw_spin_lock+0x2a/0x40 [ 35.831260] task_fork_fair+0x93/0x680 [ 35.831264] sched_fork+0x44b/0xbd0 [ 35.831268] copy_process+0x235e/0x7ad0 [ 35.831272] _do_fork+0x1ca/0x1170 [ 35.831276] kernel_thread+0x34/0x40 [ 35.831279] rest_init+0x22/0xe4 [ 35.831283] start_kernel+0x913/0x94e [ 35.831288] x86_64_start_reservations+0x29/0x2b [ 35.831292] x86_64_start_kernel+0x76/0x79 [ 35.831296] secondary_startup_64+0xa4/0xb0 [ 35.831298] [ 35.831300] -> #1 (&p->pi_lock){-.-.}: [ 35.831315] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.831319] try_to_wake_up+0xd2/0x1250 [ 35.831323] wake_up_process+0x10/0x20 [ 35.831327] __up.isra.1+0x1c0/0x2a0 [ 35.831330] up+0x13c/0x1c0 [ 35.831334] __up_console_sem+0xbe/0x1b0 [ 35.831338] console_unlock+0x506/0x10d0 [ 35.831342] vprintk_emit+0x33a/0x910 [ 35.831346] vprintk_default+0x28/0x30 [ 35.831350] vprintk_func+0x7a/0x117 [ 35.831353] printk+0xa7/0xcf [ 35.831357] do_exit.cold.22+0x120/0x21f [ 35.831361] do_group_exit+0x177/0x440 [ 35.831365] __x64_sys_exit_group+0x3e/0x50 [ 35.831369] do_syscall_64+0x1b9/0x820 [ 35.831374] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.831376] [ 35.831378] -> #0 ((console_sem).lock){-...}: [ 35.831393] lock_acquire+0x1e4/0x4f0 [ 35.831397] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.831401] down_trylock+0x13/0x70 [ 35.831405] __down_trylock_console_sem+0xae/0x200 [ 35.831409] console_trylock+0x15/0xa0 [ 35.831413] vprintk_emit+0x31f/0x910 [ 35.831417] vprintk_default+0x28/0x30 [ 35.831421] vprintk_func+0x7a/0x117 [ 35.831424] printk+0xa7/0xcf [ 35.831428] kasan_report+0x9e/0x110 [ 35.831432] __asan_report_load8_noabort+0x14/0x20 [ 35.831436] __schedule+0xf54/0x1df0 [ 35.831441] preempt_schedule_common+0x22/0x60 [ 35.831444] _cond_resched+0x1d/0x30 [ 35.831449] wait_for_completion+0xa5/0x8d0 [ 35.831453] __synchronize_srcu+0x189/0x240 [ 35.831457] synchronize_srcu+0x335/0x56f [ 35.831462] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.831466] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.831476] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.831480] kvm_put_kvm+0x73f/0x1060 [ 35.831484] kvm_vm_release+0x42/0x50 [ 35.831487] __fput+0x38a/0xa40 [ 35.831491] ____fput+0x15/0x20 [ 35.831494] task_work_run+0x1e8/0x2a0 [ 35.831498] do_exit+0x1ae4/0x26e0 [ 35.831502] do_group_exit+0x177/0x440 [ 35.831506] __x64_sys_exit_group+0x3e/0x50 [ 35.831510] do_syscall_64+0x1b9/0x820 [ 35.831515] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.831517] [ 35.831521] other info that might help us debug this: [ 35.831524] [ 35.831527] Chain exists of: [ 35.831529] (console_sem).lock --> &rq->lock --> report_lock [ 35.831547] [ 35.831551] Possible unsafe locking scenario: [ 35.831553] [ 35.831558] CPU0 CPU1 [ 35.831562] ---- ---- [ 35.831564] lock(report_lock); [ 35.831573] lock(&rq->lock); [ 35.831583] lock(report_lock); [ 35.831591] lock((console_sem).lock); [ 35.831599] [ 35.831602] *** DEADLOCK *** [ 35.831604] [ 35.831609] 2 locks held by syz-executor042/4661: [ 35.831611] #0: 0000000028364f3d (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.831628] #1: 00000000302a5baf (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.831645] [ 35.831648] stack backtrace: [ 35.831654] CPU: 0 PID: 4661 Comm: syz-executor042 Not tainted 4.19.0-rc2+ #220 [ 35.831661] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.831664] Call Trace: [ 35.831668] dump_stack+0x1c9/0x2b4 [ 35.831673] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.831677] ? vprintk_func+0x100/0x117 [ 35.831681] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.831685] ? save_trace+0xe0/0x290 [ 35.831689] __lock_acquire+0x3449/0x5020 [ 35.831693] ? mark_held_locks+0x160/0x160 [ 35.831698] ? mark_held_locks+0x160/0x160 [ 35.831702] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.831706] ? is_bpf_text_address+0xd7/0x170 [ 35.831710] ? kernel_text_address+0x79/0xf0 [ 35.831714] ? __kernel_text_address+0xd/0x40 [ 35.831719] ? __save_stack_trace+0x8d/0xf0 [ 35.831723] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.831727] ? save_trace+0x290/0x290 [ 35.831731] ? save_stack_trace+0x1a/0x20 [ 35.831735] ? save_trace+0xe0/0x290 [ 35.831739] ? graph_lock+0x170/0x170 [ 35.831743] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.831747] lock_acquire+0x1e4/0x4f0 [ 35.831751] ? down_trylock+0x13/0x70 [ 35.831755] ? lock_release+0x9f0/0x9f0 [ 35.831759] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.831763] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.831768] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.831771] ? log_store+0x34f/0x4c0 [ 35.831775] ? vprintk_emit+0x31f/0x910 [ 35.831779] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.831783] ? down_trylock+0x13/0x70 [ 35.831787] down_trylock+0x13/0x70 [ 35.831791] __down_trylock_console_sem+0xae/0x200 [ 35.831795] console_trylock+0x15/0xa0 [ 35.831799] vprintk_emit+0x31f/0x910 [ 35.831803] ? wake_up_klogd+0x110/0x110 [ 35.831807] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.831811] ? kasan_check_read+0x11/0x20 [ 35.831815] ? rcu_is_watching+0x8c/0x150 [ 35.831819] ? rcu_pm_notify+0xc0/0xc0 [ 35.831823] ? lock_acquire+0x1e4/0x4f0 [ 35.831827] ? kasan_report+0x8e/0x110 [ 35.831831] ? __schedule+0xf54/0x1df0 [ 35.831835] vprintk_default+0x28/0x30 [ 35.831838] vprintk_func+0x7a/0x117 [ 35.831842] printk+0xa7/0xcf [ 35.831846] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.831850] ? kasan_check_write+0x14/0x20 [ 35.831854] ? do_raw_spin_lock+0xc1/0x200 [ 35.831858] ? do_raw_spin_lock+0xc1/0x200 [ 35.831862] kasan_report+0x9e/0x110 [ 35.831867] __asan_report_load8_noabort+0x14/0x20 [ 35.831870] __schedule+0xf54/0x1df0 [ 35.831874] ? __sched_text_start+0x8/0x8 [ 35.831879] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.831883] ? __call_srcu+0x7e7/0x1040 [ 35.831887] ? check_same_owner+0x340/0x340 [ 35.831891] ? mark_held_locks+0x160/0x160 [ 35.831895] ? find_held_lock+0x36/0x1c0 [ 35.831899] preempt_schedule_common+0x22/0x60 [ 35.831903] _cond_resched+0x1d/0x30 [ 35.831907] wait_for_completion+0xa5/0x8d0 [ 35.831912] ? wait_for_completion_interruptible+0x950/0x950 [ 35.831917] ? __lockdep_init_map+0x105/0x590 [ 35.831921] ? __init_waitqueue_head+0x9e/0x150 [ 35.831925] ? init_wait_entry+0x1c0/0x1c0 [ 35.831929] __synchronize_srcu+0x189/0x240 [ 35.831933] ? call_srcu+0x10/0x10 [ 35.831937] ? rcu_unexpedite_gp+0x20/0x20 [ 35.831941] synchronize_srcu+0x335/0x56f [ 35.831945] ? lock_downgrade+0x8f0/0x8f0 [ 35.831950] ? synchronize_srcu_expedited+0x20/0x20 [ 35.831954] ? kasan_check_read+0x11/0x20 [ 35.831958] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.831962] ? kasan_check_write+0x14/0x20 [ 35.831966] ? do_raw_spin_lock+0xc1/0x200 [ 35.831971] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.831977] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.831980] ? kvfree+0x61/0x70 [ 35.831985] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.831989] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.831993] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.831997] ? kvm_arch_sync_events+0x30/0x30 [ 35.832002] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.832007] ? mmu_notifier_unregister+0x474/0x600 [ 35.832011] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.832015] ? kfree+0x111/0x210 [ 35.832019] ? __mmu_notifier_register+0x30/0x30 [ 35.832023] ? __free_pages+0x10a/0x190 [ 35.832027] ? free_unref_page+0x930/0x930 [ 35.832031] kvm_put_kvm+0x73f/0x1060 [ 35.832035] ? kvm_write_guest_cached+0x40/0x40 [ 35.832039] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.832044] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.832048] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.832052] ? kasan_check_write+0x14/0x20 [ 35.832056] ? do_raw_spin_lock+0xc1/0x200 [ 35.832060] ? kvm_irqfd_release+0xdd/0x120 [ 35.832064] ? kvm_irqfd_release+0xdd/0x120 [ 35.832068] ? kvm_put_kvm+0x1060/0x1060 [ 35.832072] kvm_vm_release+0x42/0x50 [ 35.832076] __fput+0x38a/0xa40 [ 35.832080] ? __alloc_file+0x400/0x400 [ 35.832084] ? check_same_owner+0x340/0x340 [ 35.832088] ? kasan_check_write+0x14/0x20 [ 35.832092] ? do_raw_spin_lock+0xc1/0x200 [ 35.832095] ____fput+0x15/0x20 [ 35.832099] task_work_run+0x1e8/0x2a0 [ 35.832103] ? task_work_cancel+0x240/0x240 [ 35.832108] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.832112] ? switch_task_namespaces+0xa2/0xd0 [ 35.832116] do_exit+0x1ae4/0x26e0 [ 35.832120] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.832124] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.832129] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.832132] ? kfree+0x1d7/0x210 [ 35.832136] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.832141] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.832144] ? is_bpf_tex [ 35.832152] Lost 56 message(s)! [ 36.897312] Shutting down cpus with NMI [ 37.955085] Dumping ftrace buffer: [ 37.958614] (ftrace buffer empty) [ 37.962310] Kernel Offset: disabled [ 37.965921] Rebooting in 86400 seconds..