[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.459831] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 24.650814] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.949114] random: sshd: uninitialized urandom read (32 bytes read) [ 25.484548] random: sshd: uninitialized urandom read (32 bytes read) [ 25.663847] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.35' (ECDSA) to the list of known hosts. [ 31.331089] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.436490] 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. [ 31.461343] ================================================================== [ 31.471221] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.477454] Read of size 8 at addr ffff8801ba3a8058 by task syz-executor568/4677 [ 31.484969] [ 31.486594] CPU: 0 PID: 4677 Comm: syz-executor568 Not tainted 4.19.0-rc1+ #217 [ 31.494064] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.503405] Call Trace: [ 31.506717] dump_stack+0x1c9/0x2b4 [ 31.510347] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.515558] ? printk+0xa7/0xcf [ 31.518831] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.523593] ? __schedule+0xf54/0x1df0 [ 31.527484] print_address_description+0x6c/0x20b [ 31.532323] ? __schedule+0xf54/0x1df0 [ 31.536203] kasan_report.cold.7+0x242/0x30d [ 31.540606] __asan_report_load8_noabort+0x14/0x20 [ 31.545549] __schedule+0xf54/0x1df0 [ 31.549278] ? __sched_text_start+0x8/0x8 [ 31.553435] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 31.558536] ? __call_srcu+0x7e7/0x1040 [ 31.562545] ? check_same_owner+0x340/0x340 [ 31.566860] ? mark_held_locks+0x160/0x160 [ 31.571092] ? find_held_lock+0x36/0x1c0 [ 31.575154] preempt_schedule_common+0x22/0x60 [ 31.579753] _cond_resched+0x1d/0x30 [ 31.583464] wait_for_completion+0xa5/0x8d0 [ 31.587784] ? wait_for_completion_interruptible+0x950/0x950 [ 31.593578] ? __lockdep_init_map+0x105/0x590 [ 31.598083] ? __init_waitqueue_head+0x9e/0x150 [ 31.602748] ? init_wait_entry+0x1c0/0x1c0 [ 31.606982] __synchronize_srcu+0x189/0x240 [ 31.611310] ? call_srcu+0x10/0x10 [ 31.614848] ? rcu_unexpedite_gp+0x20/0x20 [ 31.619089] synchronize_srcu+0x335/0x56f [ 31.623232] ? lock_downgrade+0x8f0/0x8f0 [ 31.627397] ? synchronize_srcu_expedited+0x20/0x20 [ 31.632413] ? kasan_check_read+0x11/0x20 [ 31.636564] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.641145] ? kasan_check_write+0x14/0x20 [ 31.645383] ? do_raw_spin_lock+0xc1/0x200 [ 31.649631] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.655352] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.660800] ? kvfree+0x61/0x70 [ 31.664078] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.669093] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.673147] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.677554] ? kvm_arch_sync_events+0x30/0x30 [ 31.682047] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.687588] ? mmu_notifier_unregister+0x474/0x600 [ 31.692509] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.696911] ? kfree+0x111/0x210 [ 31.700283] ? __mmu_notifier_register+0x30/0x30 [ 31.705053] ? __free_pages+0x10a/0x190 [ 31.709032] ? free_unref_page+0x930/0x930 [ 31.713280] kvm_put_kvm+0x73f/0x1060 [ 31.717085] ? kvm_write_guest_cached+0x40/0x40 [ 31.721757] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.726258] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.730755] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.735340] ? kasan_check_write+0x14/0x20 [ 31.739569] ? do_raw_spin_lock+0xc1/0x200 [ 31.743805] ? kvm_irqfd_release+0xdd/0x120 [ 31.748120] ? kvm_irqfd_release+0xdd/0x120 [ 31.752435] ? kvm_put_kvm+0x1060/0x1060 [ 31.756489] kvm_vm_release+0x42/0x50 [ 31.760288] __fput+0x38a/0xa40 [ 31.763568] ? __alloc_file+0x400/0x400 [ 31.767577] ? check_same_owner+0x340/0x340 [ 31.771889] ? kasan_check_write+0x14/0x20 [ 31.776118] ? do_raw_spin_lock+0xc1/0x200 [ 31.780347] ____fput+0x15/0x20 [ 31.783635] task_work_run+0x1e8/0x2a0 [ 31.787530] ? task_work_cancel+0x240/0x240 [ 31.791861] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.797397] ? switch_task_namespaces+0xa2/0xd0 [ 31.802068] do_exit+0x1ae4/0x26e0 [ 31.805612] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.810291] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.814539] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.819551] ? kfree+0x1d7/0x210 [ 31.822924] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.827163] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.832871] ? is_bpf_text_address+0xd7/0x170 [ 31.837359] ? kernel_text_address+0x79/0xf0 [ 31.841758] ? __kernel_text_address+0xd/0x40 [ 31.846256] ? unwind_get_return_address+0x61/0xa0 [ 31.851189] ? __save_stack_trace+0x8d/0xf0 [ 31.855513] ? save_stack+0xa9/0xd0 [ 31.859131] ? save_stack+0x43/0xd0 [ 31.862750] ? __kasan_slab_free+0x11a/0x170 [ 31.867151] ? kasan_slab_free+0xe/0x10 [ 31.871117] ? putname+0xf2/0x130 [ 31.874578] ? __x64_sys_openat+0x9d/0x100 [ 31.878809] ? do_syscall_64+0x1b9/0x820 [ 31.882900] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.888270] ? trace_hardirqs_off+0xb8/0x2b0 [ 31.892670] ? kasan_check_read+0x11/0x20 [ 31.896811] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.901213] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.905623] ? initcall_blacklisted+0x9a/0x1e0 [ 31.910198] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 31.915313] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.921033] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.926564] ? do_vfs_ioctl+0x201/0x1720 [ 31.930620] ? rcu_is_watching+0x8c/0x150 [ 31.934759] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.939079] ? ioctl_preallocate+0x300/0x300 [ 31.943504] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.949040] ? __fget_light+0x2f7/0x440 [ 31.953032] ? fget_raw+0x20/0x20 [ 31.956474] ? putname+0xf2/0x130 [ 31.959936] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.964949] ? kmem_cache_free+0x246/0x280 [ 31.969177] ? putname+0xf7/0x130 [ 31.972625] do_group_exit+0x177/0x440 [ 31.976504] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.980823] ? __ia32_sys_exit+0x50/0x50 [ 31.984877] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.989973] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.995503] ? ksys_ioctl+0x81/0xd0 [ 31.999149] __x64_sys_exit_group+0x3e/0x50 [ 32.003490] do_syscall_64+0x1b9/0x820 [ 32.007374] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.012751] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.017688] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.022524] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.027536] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.032547] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.037557] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.042398] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.047590] RIP: 0033:0x43ef08 [ 32.050803] Code: Bad RIP value. [ 32.054158] RSP: 002b:00007ffe4ff00aa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.061858] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.069116] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.076374] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.083639] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.090901] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.098163] [ 32.099795] Allocated by task 4677: [ 32.103415] save_stack+0x43/0xd0 [ 32.106860] kasan_kmalloc+0xc4/0xe0 [ 32.110565] kasan_slab_alloc+0x12/0x20 [ 32.114550] kmem_cache_alloc+0x12e/0x710 [ 32.118685] vmx_create_vcpu+0xcf/0x2830 [ 32.122732] kvm_arch_vcpu_create+0xe5/0x220 [ 32.127137] kvm_vm_ioctl+0x488/0x1d80 [ 32.131011] do_vfs_ioctl+0x1de/0x1720 [ 32.134893] ksys_ioctl+0xa9/0xd0 [ 32.138333] __x64_sys_ioctl+0x73/0xb0 [ 32.142209] do_syscall_64+0x1b9/0x820 [ 32.146086] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.151258] [ 32.152881] Freed by task 4677: [ 32.156159] save_stack+0x43/0xd0 [ 32.159600] __kasan_slab_free+0x11a/0x170 [ 32.163824] kasan_slab_free+0xe/0x10 [ 32.167616] kmem_cache_free+0x86/0x280 [ 32.171583] vmx_free_vcpu+0x26b/0x300 [ 32.175460] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.179860] kvm_put_kvm+0x73f/0x1060 [ 32.183669] kvm_vm_release+0x42/0x50 [ 32.187469] __fput+0x38a/0xa40 [ 32.190736] ____fput+0x15/0x20 [ 32.194003] task_work_run+0x1e8/0x2a0 [ 32.197881] do_exit+0x1ae4/0x26e0 [ 32.201429] do_group_exit+0x177/0x440 [ 32.205306] __x64_sys_exit_group+0x3e/0x50 [ 32.209620] do_syscall_64+0x1b9/0x820 [ 32.213501] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.218675] [ 32.220293] The buggy address belongs to the object at ffff8801ba3a8040 [ 32.220293] which belongs to the cache kvm_vcpu of size 23872 [ 32.232853] The buggy address is located 24 bytes inside of [ 32.232853] 23872-byte region [ffff8801ba3a8040, ffff8801ba3add80) [ 32.244801] The buggy address belongs to the page: [ 32.249721] page:ffffea0006e8ea00 count:1 mapcount:0 mapping:ffff8801d52469c0 index:0x0 compound_mapcount: 0 [ 32.259684] flags: 0x2fffc0000008100(slab|head) [ 32.264363] raw: 02fffc0000008100 ffff8801d5243648 ffff8801d5243648 ffff8801d52469c0 [ 32.272261] raw: 0000000000000000 ffff8801ba3a8040 0000000100000001 0000000000000000 [ 32.280157] page dumped because: kasan: bad access detected [ 32.285850] [ 32.287461] Memory state around the buggy address: [ 32.292383] ffff8801ba3a7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.299736] ffff8801ba3a7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.307103] >ffff8801ba3a8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.314453] ^ [ 32.320675] ffff8801ba3a8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.328027] ffff8801ba3a8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.335378] ================================================================== [ 32.342727] Kernel panic - not syncing: panic_on_warn set ... [ 32.342727] [ 32.350112] CPU: 0 PID: 4677 Comm: syz-executor568 Tainted: G B 4.19.0-rc1+ #217 [ 32.358936] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.368314] Call Trace: [ 32.370928] dump_stack+0x1c9/0x2b4 [ 32.374552] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.379740] ? lock_downgrade+0x8f0/0x8f0 [ 32.383888] ? __schedule+0xf54/0x1df0 [ 32.387779] panic+0x238/0x4e7 [ 32.390964] ? add_taint.cold.5+0x16/0x16 [ 32.395109] ? print_shadow_for_address+0xba/0x116 [ 32.400027] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.404441] ? trace_hardirqs_off+0x77/0x2b0 [ 32.409366] ? __schedule+0xf54/0x1df0 [ 32.413260] kasan_end_report+0x47/0x4f [ 32.417257] kasan_report.cold.7+0x76/0x30d [ 32.421584] __asan_report_load8_noabort+0x14/0x20 [ 32.426522] __schedule+0xf54/0x1df0 [ 32.430235] ? __sched_text_start+0x8/0x8 [ 32.434407] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 32.439508] ? __call_srcu+0x7e7/0x1040 [ 32.443486] ? check_same_owner+0x340/0x340 [ 32.447802] ? mark_held_locks+0x160/0x160 [ 32.452028] ? find_held_lock+0x36/0x1c0 [ 32.456086] preempt_schedule_common+0x22/0x60 [ 32.460690] _cond_resched+0x1d/0x30 [ 32.464416] wait_for_completion+0xa5/0x8d0 [ 32.468736] ? wait_for_completion_interruptible+0x950/0x950 [ 32.474552] ? __lockdep_init_map+0x105/0x590 [ 32.479070] ? __init_waitqueue_head+0x9e/0x150 [ 32.483731] ? init_wait_entry+0x1c0/0x1c0 [ 32.487976] __synchronize_srcu+0x189/0x240 [ 32.492288] ? call_srcu+0x10/0x10 [ 32.495822] ? rcu_unexpedite_gp+0x20/0x20 [ 32.500057] synchronize_srcu+0x335/0x56f [ 32.504199] ? lock_downgrade+0x8f0/0x8f0 [ 32.508342] ? synchronize_srcu_expedited+0x20/0x20 [ 32.513358] ? kasan_check_read+0x11/0x20 [ 32.517732] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.522310] ? kasan_check_write+0x14/0x20 [ 32.526541] ? do_raw_spin_lock+0xc1/0x200 [ 32.530780] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.536489] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.541968] ? kvfree+0x61/0x70 [ 32.545263] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.550287] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.554344] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.558754] ? kvm_arch_sync_events+0x30/0x30 [ 32.563262] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.568808] ? mmu_notifier_unregister+0x474/0x600 [ 32.573729] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.578130] ? kfree+0x111/0x210 [ 32.581494] ? __mmu_notifier_register+0x30/0x30 [ 32.586258] ? __free_pages+0x10a/0x190 [ 32.590246] ? free_unref_page+0x930/0x930 [ 32.594492] kvm_put_kvm+0x73f/0x1060 [ 32.598302] ? kvm_write_guest_cached+0x40/0x40 [ 32.602969] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.607460] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.611951] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.616547] ? kasan_check_write+0x14/0x20 [ 32.620788] ? do_raw_spin_lock+0xc1/0x200 [ 32.625023] ? kvm_irqfd_release+0xdd/0x120 [ 32.629341] ? kvm_irqfd_release+0xdd/0x120 [ 32.633660] ? kvm_put_kvm+0x1060/0x1060 [ 32.637716] kvm_vm_release+0x42/0x50 [ 32.641510] __fput+0x38a/0xa40 [ 32.644798] ? __alloc_file+0x400/0x400 [ 32.648789] ? check_same_owner+0x340/0x340 [ 32.653102] ? kasan_check_write+0x14/0x20 [ 32.657335] ? do_raw_spin_lock+0xc1/0x200 [ 32.661564] ____fput+0x15/0x20 [ 32.664836] task_work_run+0x1e8/0x2a0 [ 32.668730] ? task_work_cancel+0x240/0x240 [ 32.673047] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.678614] ? switch_task_namespaces+0xa2/0xd0 [ 32.683296] do_exit+0x1ae4/0x26e0 [ 32.686862] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.691527] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.695771] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.700791] ? kfree+0x1d7/0x210 [ 32.704153] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.708387] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.714095] ? is_bpf_text_address+0xd7/0x170 [ 32.718585] ? kernel_text_address+0x79/0xf0 [ 32.722993] ? __kernel_text_address+0xd/0x40 [ 32.727488] ? unwind_get_return_address+0x61/0xa0 [ 32.732416] ? __save_stack_trace+0x8d/0xf0 [ 32.736747] ? save_stack+0xa9/0xd0 [ 32.740400] ? save_stack+0x43/0xd0 [ 32.744018] ? __kasan_slab_free+0x11a/0x170 [ 32.748431] ? kasan_slab_free+0xe/0x10 [ 32.752413] ? putname+0xf2/0x130 [ 32.755866] ? __x64_sys_openat+0x9d/0x100 [ 32.760098] ? do_syscall_64+0x1b9/0x820 [ 32.764177] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.769540] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.773942] ? kasan_check_read+0x11/0x20 [ 32.778088] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.782494] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.787717] ? initcall_blacklisted+0x9a/0x1e0 [ 32.792304] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.797421] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.803130] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.808667] ? do_vfs_ioctl+0x201/0x1720 [ 32.812750] ? rcu_is_watching+0x8c/0x150 [ 32.816894] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.821214] ? ioctl_preallocate+0x300/0x300 [ 32.825627] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.831158] ? __fget_light+0x2f7/0x440 [ 32.835130] ? fget_raw+0x20/0x20 [ 32.838578] ? putname+0xf2/0x130 [ 32.842026] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.847038] ? kmem_cache_free+0x246/0x280 [ 32.851276] ? putname+0xf7/0x130 [ 32.854756] do_group_exit+0x177/0x440 [ 32.858652] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.862971] ? __ia32_sys_exit+0x50/0x50 [ 32.867025] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.872124] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.877653] ? ksys_ioctl+0x81/0xd0 [ 32.881285] __x64_sys_exit_group+0x3e/0x50 [ 32.885622] do_syscall_64+0x1b9/0x820 [ 32.889520] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.894908] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.899836] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.904686] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.909697] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.914709] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.919725] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.924589] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.929772] RIP: 0033:0x43ef08 [ 32.932962] Code: Bad RIP value. [ 32.936315] RSP: 002b:00007ffe4ff00aa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.944018] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.951282] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.958567] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.965828] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.973103] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.980377] [ 32.980382] ====================================================== [ 32.980387] WARNING: possible circular locking dependency detected [ 32.980391] 4.19.0-rc1+ #217 Not tainted [ 32.980396] ------------------------------------------------------ [ 32.980401] syz-executor568/4677 is trying to acquire lock: [ 32.980404] 00000000fa7ec938 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 32.980419] [ 32.980423] but task is already holding lock: [ 32.980426] 000000000e808272 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.980440] [ 32.980444] which lock already depends on the new lock. [ 32.980446] [ 32.980449] [ 32.980453] the existing dependency chain (in reverse order) is: [ 32.980456] [ 32.980458] -> #3 (report_lock){....}: [ 32.980472] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.980476] kasan_report+0x8e/0x110 [ 32.980480] __asan_report_load8_noabort+0x14/0x20 [ 32.980484] __schedule+0xf54/0x1df0 [ 32.980488] preempt_schedule_common+0x22/0x60 [ 32.980492] _cond_resched+0x1d/0x30 [ 32.980496] wait_for_completion+0xa5/0x8d0 [ 32.980500] __synchronize_srcu+0x189/0x240 [ 32.980504] synchronize_srcu+0x335/0x56f [ 32.980521] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.980525] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.980529] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.980533] kvm_put_kvm+0x73f/0x1060 [ 32.980536] kvm_vm_release+0x42/0x50 [ 32.980540] __fput+0x38a/0xa40 [ 32.980543] ____fput+0x15/0x20 [ 32.980547] task_work_run+0x1e8/0x2a0 [ 32.980550] do_exit+0x1ae4/0x26e0 [ 32.980554] do_group_exit+0x177/0x440 [ 32.980558] __x64_sys_exit_group+0x3e/0x50 [ 32.980561] do_syscall_64+0x1b9/0x820 [ 32.980566] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.980568] [ 32.980570] -> #2 (&rq->lock){-.-.}: [ 32.980583] _raw_spin_lock+0x2a/0x40 [ 32.980586] task_fork_fair+0x93/0x680 [ 32.980603] sched_fork+0x44b/0xbd0 [ 32.980606] copy_process+0x235e/0x7ad0 [ 32.980610] _do_fork+0x1ca/0x1170 [ 32.980613] kernel_thread+0x34/0x40 [ 32.980616] rest_init+0x22/0xe4 [ 32.980620] start_kernel+0x913/0x94e [ 32.980624] x86_64_start_reservations+0x29/0x2b [ 32.980628] x86_64_start_kernel+0x76/0x79 [ 32.980631] secondary_startup_64+0xa4/0xb0 [ 32.980633] [ 32.980635] -> #1 (&p->pi_lock){-.-.}: [ 32.980648] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.980652] try_to_wake_up+0xd2/0x1250 [ 32.980656] wake_up_process+0x10/0x20 [ 32.980659] __up.isra.1+0x1c0/0x2a0 [ 32.980662] up+0x13c/0x1c0 [ 32.980666] __up_console_sem+0xbe/0x1b0 [ 32.980669] console_unlock+0x506/0x10d0 [ 32.980673] vprintk_emit+0x33a/0x910 [ 32.980676] vprintk_default+0x28/0x30 [ 32.980680] vprintk_func+0x7a/0x117 [ 32.980683] printk+0xa7/0xcf [ 32.980686] load_umh+0x51/0xbd [ 32.980690] do_one_initcall+0x127/0x838 [ 32.980694] kernel_init_freeable+0x4bb/0x5ae [ 32.980697] kernel_init+0x11/0x1b3 [ 32.980700] ret_from_fork+0x3a/0x50 [ 32.980702] [ 32.980705] -> #0 ((console_sem).lock){-...}: [ 32.980718] lock_acquire+0x1e4/0x4f0 [ 32.980722] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.980725] down_trylock+0x13/0x70 [ 32.980729] __down_trylock_console_sem+0xae/0x200 [ 32.980733] console_trylock+0x15/0xa0 [ 32.980736] vprintk_emit+0x31f/0x910 [ 32.980740] vprintk_default+0x28/0x30 [ 32.980743] vprintk_func+0x7a/0x117 [ 32.980746] printk+0xa7/0xcf [ 32.980750] kasan_report+0x9e/0x110 [ 32.980754] __asan_report_load8_noabort+0x14/0x20 [ 32.980757] __schedule+0xf54/0x1df0 [ 32.980761] preempt_schedule_common+0x22/0x60 [ 32.980764] _cond_resched+0x1d/0x30 [ 32.980768] wait_for_completion+0xa5/0x8d0 [ 32.980773] __synchronize_srcu+0x189/0x240 [ 32.980776] synchronize_srcu+0x335/0x56f [ 32.980781] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.980785] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.980788] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.980792] kvm_put_kvm+0x73f/0x1060 [ 32.980795] kvm_vm_release+0x42/0x50 [ 32.980798] __fput+0x38a/0xa40 [ 32.980802] ____fput+0x15/0x20 [ 32.980805] task_work_run+0x1e8/0x2a0 [ 32.980808] do_exit+0x1ae4/0x26e0 [ 32.980812] do_group_exit+0x177/0x440 [ 32.980816] __x64_sys_exit_group+0x3e/0x50 [ 32.980819] do_syscall_64+0x1b9/0x820 [ 32.980824] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.980826] [ 32.980829] other info that might help us debug this: [ 32.980831] [ 32.980834] Chain exists of: [ 32.980836] (console_sem).lock --> &rq->lock --> report_lock [ 32.980853] [ 32.980856] Possible unsafe locking scenario: [ 32.980858] [ 32.980862] CPU0 CPU1 [ 32.980866] ---- ---- [ 32.980868] lock(report_lock); [ 32.980877] lock(&rq->lock); [ 32.980885] lock(report_lock); [ 32.980892] lock((console_sem).lock); [ 32.980899] [ 32.980902] *** DEADLOCK *** [ 32.980904] [ 32.980908] 2 locks held by syz-executor568/4677: [ 32.980910] #0: 000000004598844c (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 32.980926] #1: 000000000e808272 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.980941] [ 32.980944] stack backtrace: [ 32.980949] CPU: 0 PID: 4677 Comm: syz-executor568 Not tainted 4.19.0-rc1+ #217 [ 32.980956] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.980958] Call Trace: [ 32.980962] dump_stack+0x1c9/0x2b4 [ 32.980966] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.980982] ? vprintk_func+0x100/0x117 [ 32.980986] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 32.981001] ? save_trace+0xe0/0x290 [ 32.981005] __lock_acquire+0x3449/0x5020 [ 32.981009] ? mark_held_locks+0x160/0x160 [ 32.981013] ? mark_held_locks+0x160/0x160 [ 32.981017] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.981021] ? is_bpf_text_address+0xd7/0x170 [ 32.981025] ? kernel_text_address+0x79/0xf0 [ 32.981029] ? __kernel_text_address+0xd/0x40 [ 32.981033] ? __save_stack_trace+0x8d/0xf0 [ 32.981037] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 32.981041] ? save_trace+0x290/0x290 [ 32.981045] ? save_stack_trace+0x1a/0x20 [ 32.981049] ? save_trace+0xe0/0x290 [ 32.981052] ? graph_lock+0x170/0x170 [ 32.981057] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.981061] lock_acquire+0x1e4/0x4f0 [ 32.981064] ? down_trylock+0x13/0x70 [ 32.981068] ? lock_release+0x9f0/0x9f0 [ 32.981072] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.981076] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.981080] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.981084] ? log_store+0x34f/0x4c0 [ 32.981087] ? vprintk_emit+0x31f/0x910 [ 32.981092] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.981095] ? down_trylock+0x13/0x70 [ 32.981099] down_trylock+0x13/0x70 [ 32.981103] __down_trylock_console_sem+0xae/0x200 [ 32.981107] console_trylock+0x15/0xa0 [ 32.981110] vprintk_emit+0x31f/0x910 [ 32.981114] ? wake_up_klogd+0x110/0x110 [ 32.981118] ? run_rebalance_domains+0x4c0/0x4c0 [ 32.981122] ? kasan_check_read+0x11/0x20 [ 32.981126] ? rcu_is_watching+0x8c/0x150 [ 32.981130] ? rcu_pm_notify+0xc0/0xc0 [ 32.981133] ? lock_acquire+0x1e4/0x4f0 [ 32.981137] ? kasan_report+0x8e/0x110 [ 32.981141] ? __schedule+0xf54/0x1df0 [ 32.981145] vprintk_default+0x28/0x30 [ 32.981148] vprintk_func+0x7a/0x117 [ 32.981152] printk+0xa7/0xcf [ 32.981156] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.981160] ? kasan_check_write+0x14/0x20 [ 32.981163] ? do_raw_spin_lock+0xc1/0x200 [ 32.981167] ? do_raw_spin_lock+0xc1/0x200 [ 32.981171] kasan_report+0x9e/0x110 [ 32.981175] __asan_report_load8_noabort+0x14/0x20 [ 32.981179] __schedule+0xf54/0x1df0 [ 32.981183] ? __sched_text_start+0x8/0x8 [ 32.981200] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 32.981204] ? __call_srcu+0x7e7/0x1040 [ 32.981208] ? check_same_owner+0x340/0x340 [ 32.981211] ? mark_held_locks+0x160/0x160 [ 32.981215] ? find_held_lock+0x36/0x1c0 [ 32.981219] preempt_schedule_common+0x22/0x60 [ 32.981235] _cond_resched+0x1d/0x30 [ 32.981248] wait_for_completion+0xa5/0x8d0 [ 32.981252] ? wait_for_completion_interruptible+0x950/0x950 [ 32.981256] ? __lockdep_init_map+0x105/0x590 [ 32.981260] ? __init_waitqueue_head+0x9e/0x150 [ 32.981263] ? init_wait_entry+0x1c0/0x1c0 [ 32.981272] __synchronize_srcu+0x189/0x240 [ 32.981276] ? call_srcu+0x10/0x10 [ 32.981279] ? rcu_unexpedite_gp+0x20/0x20 [ 32.981283] synchronize_srcu+0x335/0x56f [ 32.981287] ? lock_downgrade+0x8f0/0x8f0 [ 32.981291] ? synchronize_srcu_expedited+0x20/0x20 [ 32.981294] ? kasan_check_read+0x11/0x20 [ 32.981298] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.981302] ? kasan_check_write+0x14/0x20 [ 32.981306] ? do_raw_spin_lock+0xc1/0x200 [ 32.981310] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.981315] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.981318] ? kvfree+0x61/0x70 [ 32.981322] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.981326] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.981330] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.981333] ? kvm_arch_sync_events+0x30/0x30 [ 32.981338] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.981342] ? mmu_notifier_unregister+0x474/0x600 [ 32.981346] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.981349] ? kfree+0x111/0x210 [ 32.981353] ? __mmu_notifier_register+0x30/0x30 [ 32.981356] ? __free_pages+0x10a/0x190 [ 32.981360] ? free_unref_page+0x930/0x930 [ 32.981363] kvm_put_kvm+0x73f/0x1060 [ 32.981367] ? kvm_write_guest_cached+0x40/0x40 [ 32.981371] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.981375] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.981379] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.981382] ? kasan_check_write+0x14/0x20 [ 32.981386] ? do_raw_spin_lock+0xc1/0x200 [ 32.981390] ? kvm_irqfd_release+0xdd/0x120 [ 32.981393] ? kvm_irqfd_release+0xdd/0x120 [ 32.981397] ? kvm_put_kvm+0x1060/0x1060 [ 32.981400] kvm_vm_release+0x42/0x50 [ 32.981403] __fput+0x38a/0xa40 [ 32.981407] ? __alloc_file+0x400/0x400 [ 32.981411] ? check_same_owner+0x340/0x340 [ 32.981414] ? kasan_check_write+0x14/0x20 [ 32.981418] ? do_raw_spin_lock+0xc1/0x200 [ 32.981421] ____fput+0x15/0x20 [ 32.981425] task_work_run+0x1e8/0x2a0 [ 32.981428] ? task_work_cancel+0x240/0x240 [ 32.981433] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.981449] ? switch_task_namespaces+0xa2/0xd0 [ 32.981452] do_exit+0x1ae4/0x26e0 [ 32.981456] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.981460] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.981464] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.981467] ? kfree+0x1d7/0x210 [ 32.981471] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.981476] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.981480] ? is_bpf_text_address+0xd7/0x170 [ 32.981482] ? [ 32.981501] Lost 55 message(s)! [ 34.087350] Shutting down cpus with NMI [ 35.146884] Dumping ftrace buffer: [ 35.150422] (ftrace buffer empty) [ 35.154112] Kernel Offset: disabled [ 35.157740] Rebooting in 86400 seconds..