[....] Starting OpenBSD Secure Shell server: sshd[ 19.951409] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 23.670635] random: sshd: uninitialized urandom read (32 bytes read) [ 23.923278] random: sshd: uninitialized urandom read (32 bytes read) [ 24.494214] sshd (4283) used greatest stack depth: 17064 bytes left [ 24.517634] random: sshd: uninitialized urandom read (32 bytes read) [ 24.695825] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.5' (ECDSA) to the list of known hosts. [ 30.370504] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 30.483951] 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. [ 30.509940] ================================================================== [ 30.520254] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 30.526530] Read of size 8 at addr ffff8801ca518058 by task syz-executor979/4296 [ 30.534116] [ 30.535775] CPU: 0 PID: 4296 Comm: syz-executor979 Not tainted 4.19.0-rc2+ #3 [ 30.543051] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.552413] Call Trace: [ 30.555018] dump_stack+0x1c9/0x2b4 [ 30.558652] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.563860] ? printk+0xa7/0xcf [ 30.567142] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.571905] ? __schedule+0xf54/0x1df0 [ 30.575800] print_address_description+0x6c/0x20b [ 30.580810] ? __schedule+0xf54/0x1df0 [ 30.584707] kasan_report.cold.7+0x242/0x30d [ 30.589129] __asan_report_load8_noabort+0x14/0x20 [ 30.594065] __schedule+0xf54/0x1df0 [ 30.597777] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 30.602894] ? __sched_text_start+0x8/0x8 [ 30.607084] ? __call_srcu+0x7e7/0x1040 [ 30.611080] ? check_same_owner+0x340/0x340 [ 30.615398] ? mark_held_locks+0x160/0x160 [ 30.619631] ? find_held_lock+0x36/0x1c0 [ 30.623698] preempt_schedule_common+0x22/0x60 [ 30.628294] _cond_resched+0x1d/0x30 [ 30.632021] wait_for_completion+0xa5/0x8d0 [ 30.636366] ? wait_for_completion_interruptible+0x950/0x950 [ 30.642176] ? __lockdep_init_map+0x105/0x590 [ 30.646683] ? __init_waitqueue_head+0x9e/0x150 [ 30.651359] ? init_wait_entry+0x1c0/0x1c0 [ 30.655601] __synchronize_srcu+0x189/0x240 [ 30.659927] ? call_srcu+0x10/0x10 [ 30.663477] ? rcu_unexpedite_gp+0x20/0x20 [ 30.667723] synchronize_srcu+0x335/0x56f [ 30.671881] ? lock_downgrade+0x8f0/0x8f0 [ 30.676035] ? synchronize_srcu_expedited+0x20/0x20 [ 30.681069] ? kasan_check_read+0x11/0x20 [ 30.685225] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 30.689832] ? kasan_check_write+0x14/0x20 [ 30.694081] ? do_raw_spin_lock+0xc1/0x200 [ 30.698321] kvm_page_track_unregister_notifier+0x17d/0x250 [ 30.704033] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 30.709496] ? kvfree+0x61/0x70 [ 30.712799] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.717828] kvm_mmu_uninit_vm+0x1c/0x20 [ 30.721890] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 30.726301] ? kvm_arch_sync_events+0x30/0x30 [ 30.730814] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 30.736371] ? mmu_notifier_unregister+0x474/0x600 [ 30.741301] ? trace_hardirqs_on+0x2c0/0x2c0 [ 30.745710] ? kfree+0x111/0x210 [ 30.749081] ? __mmu_notifier_register+0x30/0x30 [ 30.753847] ? __free_pages+0x10a/0x190 [ 30.757840] ? free_unref_page+0x930/0x930 [ 30.762101] kvm_put_kvm+0x73f/0x1060 [ 30.765909] ? kvm_write_guest_cached+0x40/0x40 [ 30.770583] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.775074] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.779578] ? lockdep_hardirqs_on+0x421/0x5c0 [ 30.784166] ? kasan_check_write+0x14/0x20 [ 30.788399] ? do_raw_spin_lock+0xc1/0x200 [ 30.792638] ? kvm_irqfd_release+0xdd/0x120 [ 30.796967] ? kvm_irqfd_release+0xdd/0x120 [ 30.801293] ? kvm_put_kvm+0x1060/0x1060 [ 30.805352] kvm_vm_release+0x42/0x50 [ 30.809151] __fput+0x38a/0xa40 [ 30.812427] ? __alloc_file+0x400/0x400 [ 30.816415] ? check_same_owner+0x340/0x340 [ 30.820736] ? kasan_check_write+0x14/0x20 [ 30.824967] ? do_raw_spin_lock+0xc1/0x200 [ 30.829201] ____fput+0x15/0x20 [ 30.832479] task_work_run+0x1e8/0x2a0 [ 30.836373] ? task_work_cancel+0x240/0x240 [ 30.840697] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 30.846233] ? switch_task_namespaces+0xa2/0xd0 [ 30.850905] do_exit+0x1ae4/0x26e0 [ 30.854452] ? mm_update_next_owner+0x9a0/0x9a0 [ 30.859133] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 30.863371] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.868388] ? kfree+0x1d7/0x210 [ 30.871769] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 30.876022] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 30.881745] ? is_bpf_text_address+0xd7/0x170 [ 30.886241] ? kernel_text_address+0x79/0xf0 [ 30.890646] ? __kernel_text_address+0xd/0x40 [ 30.895152] ? unwind_get_return_address+0x61/0xa0 [ 30.900085] ? __save_stack_trace+0x8d/0xf0 [ 30.904410] ? save_stack+0xa9/0xd0 [ 30.908034] ? save_stack+0x43/0xd0 [ 30.911667] ? __kasan_slab_free+0x11a/0x170 [ 30.916082] ? kasan_slab_free+0xe/0x10 [ 30.920060] ? putname+0xf2/0x130 [ 30.923516] ? __x64_sys_openat+0x9d/0x100 [ 30.927749] ? do_syscall_64+0x1b9/0x820 [ 30.931822] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.937190] ? trace_hardirqs_off+0xb8/0x2c0 [ 30.941597] ? kasan_check_read+0x11/0x20 [ 30.945744] ? do_raw_spin_unlock+0xa7/0x2f0 [ 30.950153] ? trace_hardirqs_on+0x2c0/0x2c0 [ 30.954569] ? initcall_blacklisted+0x9a/0x1e0 [ 30.959165] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 30.964287] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 30.970012] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.975560] ? do_vfs_ioctl+0x201/0x1720 [ 30.979620] ? rcu_is_watching+0x8c/0x150 [ 30.983776] ? trace_hardirqs_on+0xbd/0x2c0 [ 30.988120] ? ioctl_preallocate+0x300/0x300 [ 30.992545] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.998093] ? __fget_light+0x2f7/0x440 [ 31.002078] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.007629] ? smack_file_ioctl+0x210/0x3c0 [ 31.011963] ? fget_raw+0x20/0x20 [ 31.015424] ? smack_file_lock+0x2e0/0x2e0 [ 31.019667] do_group_exit+0x177/0x440 [ 31.023553] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.027879] ? __ia32_sys_exit+0x50/0x50 [ 31.031946] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.037060] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.042601] ? ksys_ioctl+0x81/0xd0 [ 31.046231] __x64_sys_exit_group+0x3e/0x50 [ 31.050556] do_syscall_64+0x1b9/0x820 [ 31.054453] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 31.059821] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.064751] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.069601] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 31.074632] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 31.079651] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.084671] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.089522] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.094732] RIP: 0033:0x43ef08 [ 31.097930] Code: Bad RIP value. [ 31.101291] RSP: 002b:00007ffd99dfc898 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.109000] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 31.116273] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.123541] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.130822] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 31.138091] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 31.145364] [ 31.146994] Allocated by task 4296: [ 31.150629] save_stack+0x43/0xd0 [ 31.154081] kasan_kmalloc+0xc4/0xe0 [ 31.157802] kasan_slab_alloc+0x12/0x20 [ 31.161776] kmem_cache_alloc+0x12e/0x710 [ 31.165935] vmx_create_vcpu+0xcf/0x2830 [ 31.170004] kvm_arch_vcpu_create+0xe5/0x220 [ 31.174419] kvm_vm_ioctl+0x488/0x1d80 [ 31.178305] do_vfs_ioctl+0x1de/0x1720 [ 31.182187] ksys_ioctl+0xa9/0xd0 [ 31.185635] __x64_sys_ioctl+0x73/0xb0 [ 31.189523] do_syscall_64+0x1b9/0x820 [ 31.193416] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.198596] [ 31.200216] Freed by task 4296: [ 31.203499] save_stack+0x43/0xd0 [ 31.206947] __kasan_slab_free+0x11a/0x170 [ 31.211187] kasan_slab_free+0xe/0x10 [ 31.214993] kmem_cache_free+0x86/0x280 [ 31.218966] vmx_free_vcpu+0x26b/0x300 [ 31.222852] kvm_arch_destroy_vm+0x365/0x7c0 [ 31.227263] kvm_put_kvm+0x73f/0x1060 [ 31.231065] kvm_vm_release+0x42/0x50 [ 31.234870] __fput+0x38a/0xa40 [ 31.238146] ____fput+0x15/0x20 [ 31.241421] task_work_run+0x1e8/0x2a0 [ 31.245304] do_exit+0x1ae4/0x26e0 [ 31.248844] do_group_exit+0x177/0x440 [ 31.252839] __x64_sys_exit_group+0x3e/0x50 [ 31.257169] do_syscall_64+0x1b9/0x820 [ 31.261050] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.266226] [ 31.267848] The buggy address belongs to the object at ffff8801ca518040 [ 31.267848] which belongs to the cache kvm_vcpu of size 23872 [ 31.280419] The buggy address is located 24 bytes inside of [ 31.280419] 23872-byte region [ffff8801ca518040, ffff8801ca51dd80) [ 31.292372] The buggy address belongs to the page: [ 31.297298] page:ffffea0007294600 count:1 mapcount:0 mapping:ffff8801d5d10840 index:0x0 compound_mapcount: 0 [ 31.307266] flags: 0x2fffc0000008100(slab|head) [ 31.311934] raw: 02fffc0000008100 ffff8801d5d18c48 ffff8801d5d18c48 ffff8801d5d10840 [ 31.319819] raw: 0000000000000000 ffff8801ca518040 0000000100000001 0000000000000000 [ 31.327687] page dumped because: kasan: bad access detected [ 31.333380] [ 31.334994] Memory state around the buggy address: [ 31.339918] ffff8801ca517f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.347268] ffff8801ca517f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.354618] >ffff8801ca518000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.361963] ^ [ 31.368188] ffff8801ca518080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.375555] ffff8801ca518100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.382907] ================================================================== [ 31.390258] Kernel panic - not syncing: panic_on_warn set ... [ 31.390258] [ 31.397618] CPU: 0 PID: 4296 Comm: syz-executor979 Tainted: G B 4.19.0-rc2+ #3 [ 31.406268] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.415611] Call Trace: [ 31.418206] dump_stack+0x1c9/0x2b4 [ 31.421831] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.427016] ? lock_downgrade+0x8f0/0x8f0 [ 31.431162] ? __schedule+0xf54/0x1df0 [ 31.435045] panic+0x238/0x4e7 [ 31.438233] ? add_taint.cold.5+0x16/0x16 [ 31.442386] ? print_shadow_for_address+0xba/0x116 [ 31.447307] ? trace_hardirqs_off+0xaf/0x2c0 [ 31.451716] ? trace_hardirqs_off+0x77/0x2c0 [ 31.456120] ? __schedule+0xf54/0x1df0 [ 31.460005] kasan_end_report+0x47/0x4f [ 31.463977] kasan_report.cold.7+0x76/0x30d [ 31.468300] __asan_report_load8_noabort+0x14/0x20 [ 31.473233] __schedule+0xf54/0x1df0 [ 31.476941] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.482043] ? __sched_text_start+0x8/0x8 [ 31.486188] ? __call_srcu+0x7e7/0x1040 [ 31.490166] ? check_same_owner+0x340/0x340 [ 31.494480] ? mark_held_locks+0x160/0x160 [ 31.498712] ? find_held_lock+0x36/0x1c0 [ 31.502776] preempt_schedule_common+0x22/0x60 [ 31.507367] _cond_resched+0x1d/0x30 [ 31.511078] wait_for_completion+0xa5/0x8d0 [ 31.515398] ? wait_for_completion_interruptible+0x950/0x950 [ 31.521194] ? __lockdep_init_map+0x105/0x590 [ 31.525686] ? __init_waitqueue_head+0x9e/0x150 [ 31.530357] ? init_wait_entry+0x1c0/0x1c0 [ 31.534593] __synchronize_srcu+0x189/0x240 [ 31.538908] ? call_srcu+0x10/0x10 [ 31.542448] ? rcu_unexpedite_gp+0x20/0x20 [ 31.546683] synchronize_srcu+0x335/0x56f [ 31.550825] ? lock_downgrade+0x8f0/0x8f0 [ 31.554967] ? synchronize_srcu_expedited+0x20/0x20 [ 31.559982] ? kasan_check_read+0x11/0x20 [ 31.564126] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.568696] ? kasan_check_write+0x14/0x20 [ 31.572908] ? do_raw_spin_lock+0xc1/0x200 [ 31.577123] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.582925] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.588391] ? kvfree+0x61/0x70 [ 31.591669] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.596682] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.600737] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.605146] ? kvm_arch_sync_events+0x30/0x30 [ 31.609661] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.615193] ? mmu_notifier_unregister+0x474/0x600 [ 31.620119] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.624522] ? kfree+0x111/0x210 [ 31.627885] ? __mmu_notifier_register+0x30/0x30 [ 31.632643] ? __free_pages+0x10a/0x190 [ 31.636617] ? free_unref_page+0x930/0x930 [ 31.640857] kvm_put_kvm+0x73f/0x1060 [ 31.644661] ? kvm_write_guest_cached+0x40/0x40 [ 31.649335] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.653824] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.658322] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.662907] ? kasan_check_write+0x14/0x20 [ 31.667145] ? do_raw_spin_lock+0xc1/0x200 [ 31.671383] ? kvm_irqfd_release+0xdd/0x120 [ 31.675697] ? kvm_irqfd_release+0xdd/0x120 [ 31.680015] ? kvm_put_kvm+0x1060/0x1060 [ 31.684071] kvm_vm_release+0x42/0x50 [ 31.687869] __fput+0x38a/0xa40 [ 31.691149] ? __alloc_file+0x400/0x400 [ 31.695127] ? check_same_owner+0x340/0x340 [ 31.699444] ? kasan_check_write+0x14/0x20 [ 31.703678] ? do_raw_spin_lock+0xc1/0x200 [ 31.707907] ____fput+0x15/0x20 [ 31.711182] task_work_run+0x1e8/0x2a0 [ 31.715086] ? task_work_cancel+0x240/0x240 [ 31.719408] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.724943] ? switch_task_namespaces+0xa2/0xd0 [ 31.729610] do_exit+0x1ae4/0x26e0 [ 31.733149] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.737821] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.742059] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.747070] ? kfree+0x1d7/0x210 [ 31.750432] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.754670] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.760379] ? is_bpf_text_address+0xd7/0x170 [ 31.764870] ? kernel_text_address+0x79/0xf0 [ 31.769272] ? __kernel_text_address+0xd/0x40 [ 31.773761] ? unwind_get_return_address+0x61/0xa0 [ 31.778694] ? __save_stack_trace+0x8d/0xf0 [ 31.783021] ? save_stack+0xa9/0xd0 [ 31.786645] ? save_stack+0x43/0xd0 [ 31.790269] ? __kasan_slab_free+0x11a/0x170 [ 31.794670] ? kasan_slab_free+0xe/0x10 [ 31.798637] ? putname+0xf2/0x130 [ 31.802090] ? __x64_sys_openat+0x9d/0x100 [ 31.806323] ? do_syscall_64+0x1b9/0x820 [ 31.810383] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.815745] ? trace_hardirqs_off+0xb8/0x2c0 [ 31.820146] ? kasan_check_read+0x11/0x20 [ 31.824295] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.828704] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.833112] ? initcall_blacklisted+0x9a/0x1e0 [ 31.837693] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 31.842806] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.848515] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.854047] ? do_vfs_ioctl+0x201/0x1720 [ 31.858105] ? rcu_is_watching+0x8c/0x150 [ 31.862246] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.866568] ? ioctl_preallocate+0x300/0x300 [ 31.870972] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.876506] ? __fget_light+0x2f7/0x440 [ 31.880478] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.886013] ? smack_file_ioctl+0x210/0x3c0 [ 31.890337] ? fget_raw+0x20/0x20 [ 31.893790] ? smack_file_lock+0x2e0/0x2e0 [ 31.898050] do_group_exit+0x177/0x440 [ 31.901938] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.906253] ? __ia32_sys_exit+0x50/0x50 [ 31.910316] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.915413] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.920947] ? ksys_ioctl+0x81/0xd0 [ 31.924571] __x64_sys_exit_group+0x3e/0x50 [ 31.928895] do_syscall_64+0x1b9/0x820 [ 31.932779] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 31.938149] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.943075] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.947911] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 31.952926] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 31.957939] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.962954] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.967802] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.972989] RIP: 0033:0x43ef08 [ 31.976177] Code: Bad RIP value. [ 31.979535] RSP: 002b:00007ffd99dfc898 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.987241] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 31.994502] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.001765] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.009037] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.016300] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.023576] [ 32.023582] ====================================================== [ 32.023587] WARNING: possible circular locking dependency detected [ 32.023591] 4.19.0-rc2+ #3 Not tainted [ 32.023597] ------------------------------------------------------ [ 32.023602] syz-executor979/4296 is trying to acquire lock: [ 32.023605] 0000000025229b84 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 32.023620] [ 32.023624] but task is already holding lock: [ 32.023627] 0000000081f08089 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.023641] [ 32.023646] which lock already depends on the new lock. [ 32.023648] [ 32.023651] [ 32.023656] the existing dependency chain (in reverse order) is: [ 32.023658] [ 32.023660] -> #3 (report_lock){....}: [ 32.023675] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.023679] kasan_report+0x8e/0x110 [ 32.023683] __asan_report_load8_noabort+0x14/0x20 [ 32.023687] __schedule+0xf54/0x1df0 [ 32.023691] preempt_schedule_common+0x22/0x60 [ 32.023695] _cond_resched+0x1d/0x30 [ 32.023700] wait_for_completion+0xa5/0x8d0 [ 32.023704] __synchronize_srcu+0x189/0x240 [ 32.023708] synchronize_srcu+0x335/0x56f [ 32.023713] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.023717] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.023721] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.023725] kvm_put_kvm+0x73f/0x1060 [ 32.023729] kvm_vm_release+0x42/0x50 [ 32.023732] __fput+0x38a/0xa40 [ 32.023736] ____fput+0x15/0x20 [ 32.023740] task_work_run+0x1e8/0x2a0 [ 32.023744] do_exit+0x1ae4/0x26e0 [ 32.023748] do_group_exit+0x177/0x440 [ 32.023752] __x64_sys_exit_group+0x3e/0x50 [ 32.023756] do_syscall_64+0x1b9/0x820 [ 32.023760] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.023763] [ 32.023765] -> #2 (&rq->lock){-.-.}: [ 32.023779] _raw_spin_lock+0x2a/0x40 [ 32.023791] task_fork_fair+0x93/0x680 [ 32.023795] sched_fork+0x44b/0xbd0 [ 32.023799] copy_process+0x235e/0x7af0 [ 32.023803] _do_fork+0x1ca/0x1170 [ 32.023807] kernel_thread+0x34/0x40 [ 32.023811] rest_init+0x22/0xe4 [ 32.023815] start_kernel+0x913/0x94e [ 32.023819] x86_64_start_reservations+0x29/0x2b [ 32.023823] x86_64_start_kernel+0x76/0x79 [ 32.023827] secondary_startup_64+0xa4/0xb0 [ 32.023830] [ 32.023832] -> #1 (&p->pi_lock){-.-.}: [ 32.023846] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.023850] try_to_wake_up+0xd2/0x1250 [ 32.023854] wake_up_process+0x10/0x20 [ 32.023858] __up.isra.1+0x1c0/0x2a0 [ 32.023861] up+0x13c/0x1c0 [ 32.023866] __up_console_sem+0xbe/0x1b0 [ 32.023870] console_unlock+0x506/0x10e0 [ 32.023873] vprintk_emit+0x33a/0x910 [ 32.023877] vprintk_default+0x28/0x30 [ 32.023881] vprintk_func+0x7a/0x117 [ 32.023885] printk+0xa7/0xcf [ 32.023888] load_umh+0x51/0xbd [ 32.023892] do_one_initcall+0x127/0x838 [ 32.023896] kernel_init_freeable+0x4bb/0x5ae [ 32.023900] kernel_init+0x11/0x1b3 [ 32.023904] ret_from_fork+0x3a/0x50 [ 32.023906] [ 32.023909] -> #0 ((console_sem).lock){-...}: [ 32.023923] lock_acquire+0x1e4/0x4f0 [ 32.023927] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.023931] down_trylock+0x13/0x70 [ 32.023936] __down_trylock_console_sem+0xae/0x200 [ 32.023940] console_trylock+0x15/0xa0 [ 32.023944] vprintk_emit+0x31f/0x910 [ 32.023947] vprintk_default+0x28/0x30 [ 32.023951] vprintk_func+0x7a/0x117 [ 32.023955] printk+0xa7/0xcf [ 32.023958] kasan_report+0x9e/0x110 [ 32.023963] __asan_report_load8_noabort+0x14/0x20 [ 32.023967] __schedule+0xf54/0x1df0 [ 32.023971] preempt_schedule_common+0x22/0x60 [ 32.023975] _cond_resched+0x1d/0x30 [ 32.023979] wait_for_completion+0xa5/0x8d0 [ 32.023983] __synchronize_srcu+0x189/0x240 [ 32.023988] synchronize_srcu+0x335/0x56f [ 32.023993] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.023997] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.024001] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.024005] kvm_put_kvm+0x73f/0x1060 [ 32.024009] kvm_vm_release+0x42/0x50 [ 32.024012] __fput+0x38a/0xa40 [ 32.024016] ____fput+0x15/0x20 [ 32.024020] task_work_run+0x1e8/0x2a0 [ 32.024023] do_exit+0x1ae4/0x26e0 [ 32.024027] do_group_exit+0x177/0x440 [ 32.024031] __x64_sys_exit_group+0x3e/0x50 [ 32.024035] do_syscall_64+0x1b9/0x820 [ 32.024040] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.024042] [ 32.024047] other info that might help us debug this: [ 32.024049] [ 32.024052] Chain exists of: [ 32.024054] (console_sem).lock --> &rq->lock --> report_lock [ 32.024072] [ 32.024077] Possible unsafe locking scenario: [ 32.024079] [ 32.024083] CPU0 CPU1 [ 32.024087] ---- ---- [ 32.024089] lock(report_lock); [ 32.024099] lock(&rq->lock); [ 32.024108] lock(report_lock); [ 32.024116] lock((console_sem).lock); [ 32.024124] [ 32.024127] *** DEADLOCK *** [ 32.024129] [ 32.024133] 2 locks held by syz-executor979/4296: [ 32.024136] #0: 00000000589bca25 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 32.024153] #1: 0000000081f08089 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.024169] [ 32.024173] stack backtrace: [ 32.024178] CPU: 0 PID: 4296 Comm: syz-executor979 Not tainted 4.19.0-rc2+ #3 [ 32.024186] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.024189] Call Trace: [ 32.024193] dump_stack+0x1c9/0x2b4 [ 32.024197] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.024201] ? vprintk_func+0x100/0x117 [ 32.024206] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 32.024210] ? save_trace+0xe0/0x290 [ 32.024214] __lock_acquire+0x3449/0x5020 [ 32.024218] ? mark_held_locks+0x160/0x160 [ 32.024222] ? mark_held_locks+0x160/0x160 [ 32.024226] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.024231] ? is_bpf_text_address+0xd7/0x170 [ 32.024235] ? kernel_text_address+0x79/0xf0 [ 32.024239] ? __kernel_text_address+0xd/0x40 [ 32.024243] ? __save_stack_trace+0x8d/0xf0 [ 32.024248] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 32.024251] ? save_trace+0x290/0x290 [ 32.024255] ? save_stack_trace+0x1a/0x20 [ 32.024259] ? save_trace+0xe0/0x290 [ 32.024263] ? graph_lock+0x170/0x170 [ 32.024268] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.024271] lock_acquire+0x1e4/0x4f0 [ 32.024275] ? down_trylock+0x13/0x70 [ 32.024279] ? lock_release+0x9f0/0x9f0 [ 32.024283] ? trace_hardirqs_off+0xb8/0x2c0 [ 32.024288] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.024292] ? trace_hardirqs_off+0xb8/0x2c0 [ 32.024296] ? log_store+0x34f/0x4c0 [ 32.024299] ? vprintk_emit+0x31f/0x910 [ 32.024309] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.024313] ? down_trylock+0x13/0x70 [ 32.024317] down_trylock+0x13/0x70 [ 32.024321] __down_trylock_console_sem+0xae/0x200 [ 32.024325] console_trylock+0x15/0xa0 [ 32.024329] vprintk_emit+0x31f/0x910 [ 32.024333] ? wake_up_klogd+0x110/0x110 [ 32.024337] ? run_rebalance_domains+0x4c0/0x4c0 [ 32.024341] ? kasan_check_read+0x11/0x20 [ 32.024345] ? rcu_is_watching+0x8c/0x150 [ 32.024349] ? rcu_pm_notify+0xc0/0xc0 [ 32.024353] ? lock_acquire+0x1e4/0x4f0 [ 32.024357] ? kasan_report+0x8e/0x110 [ 32.024361] ? __schedule+0xf54/0x1df0 [ 32.024365] vprintk_default+0x28/0x30 [ 32.024368] vprintk_func+0x7a/0x117 [ 32.024372] printk+0xa7/0xcf [ 32.024376] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.024380] ? kasan_check_write+0x14/0x20 [ 32.024384] ? do_raw_spin_lock+0xc1/0x200 [ 32.024388] ? do_raw_spin_lock+0xc1/0x200 [ 32.024392] kasan_report+0x9e/0x110 [ 32.024396] __asan_report_load8_noabort+0x14/0x20 [ 32.024400] __schedule+0xf54/0x1df0 [ 32.024405] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.024409] ? __sched_text_start+0x8/0x8 [ 32.024413] ? __call_srcu+0x7e7/0x1040 [ 32.024417] ? check_same_owner+0x340/0x340 [ 32.024421] ? mark_held_locks+0x160/0x160 [ 32.024425] ? find_held_lock+0x36/0x1c0 [ 32.024429] preempt_schedule_common+0x22/0x60 [ 32.024433] _cond_resched+0x1d/0x30 [ 32.024437] wait_for_completion+0xa5/0x8d0 [ 32.024442] ? wait_for_completion_interruptible+0x950/0x950 [ 32.024447] ? __lockdep_init_map+0x105/0x590 [ 32.024451] ? __init_waitqueue_head+0x9e/0x150 [ 32.024455] ? init_wait_entry+0x1c0/0x1c0 [ 32.024459] __synchronize_srcu+0x189/0x240 [ 32.024463] ? call_srcu+0x10/0x10 [ 32.024467] ? rcu_unexpedite_gp+0x20/0x20 [ 32.024471] synchronize_srcu+0x335/0x56f [ 32.024476] ? lock_downgrade+0x8f0/0x8f0 [ 32.024480] ? synchronize_srcu_expedited+0x20/0x20 [ 32.024484] ? kasan_check_read+0x11/0x20 [ 32.024489] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.024493] ? kasan_check_write+0x14/0x20 [ 32.024497] ? do_raw_spin_lock+0xc1/0x200 [ 32.024502] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.024507] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.024510] ? kvfree+0x61/0x70 [ 32.024515] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.024519] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.024523] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.024527] ? kvm_arch_sync_events+0x30/0x30 [ 32.024532] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.024537] ? mmu_notifier_unregister+0x474/0x600 [ 32.024541] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.024544] ? kfree+0x111/0x210 [ 32.024549] ? __mmu_notifier_register+0x30/0x30 [ 32.024553] ? __free_pages+0x10a/0x190 [ 32.024557] ? free_unref_page+0x930/0x930 [ 32.024560] kvm_put_kvm+0x73f/0x1060 [ 32.024565] ? kvm_write_guest_cached+0x40/0x40 [ 32.024569] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.024573] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.024578] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.024582] ? kasan_check_write+0x14/0x20 [ 32.024586] ? do_raw_spin_lock+0xc1/0x200 [ 32.024590] ? kvm_irqfd_release+0xdd/0x120 [ 32.024594] ? kvm_irqfd_release+0xdd/0x120 [ 32.024598] ? kvm_put_kvm+0x1060/0x1060 [ 32.024602] kvm_vm_release+0x42/0x50 [ 32.024605] __fput+0x38a/0xa40 [ 32.024609] ? __alloc_file+0x400/0x400 [ 32.024613] ? check_same_owner+0x340/0x340 [ 32.024617] ? kasan_check_write+0x14/0x20 [ 32.024621] ? do_raw_spin_lock+0xc1/0x200 [ 32.024625] ____fput+0x15/0x20 [ 32.024629] task_work_run+0x1e8/0x2a0 [ 32.024633] ? task_work_cancel+0x240/0x240 [ 32.024638] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.024642] ? switch_task_namespaces+0xa2/0xd0 [ 32.024646] do_exit+0x1ae4/0x26e0 [ 32.024650] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.024654] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.024659] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.024662] ? kfree+0x1d7/0x210 [ 32.024666] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.024671] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.024675] ? is_bpf_text_address+0xd7/0x170 [ 32.024678] ? ker [ 32.024685] Lost 54 message(s)! [ 33.095259] Shutting down cpus with NMI [ 34.154934] Dumping ftrace buffer: [ 34.158463] (ftrace buffer empty) [ 34.162152] Kernel Offset: disabled [ 34.165762] Rebooting in 86400 seconds..