[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.143407] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 23.581002] random: sshd: uninitialized urandom read (32 bytes read) [ 23.833987] random: sshd: uninitialized urandom read (32 bytes read) [ 24.397498] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 35.773769] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.56' (ECDSA) to the list of known hosts. [ 41.417255] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 41.513313] 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. [ 41.536307] ================================================================== [ 41.545168] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 41.551470] Read of size 8 at addr ffff8801d9b20058 by task syz-executor404/4679 [ 41.558997] [ 41.560613] CPU: 1 PID: 4679 Comm: syz-executor404 Not tainted 4.19.0-rc1+ #217 [ 41.568033] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.577365] Call Trace: [ 41.579935] dump_stack+0x1c9/0x2b4 [ 41.583545] ? dump_stack_print_info.cold.2+0x52/0x52 [ 41.588721] ? printk+0xa7/0xcf [ 41.591990] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.596724] ? __schedule+0xf54/0x1df0 [ 41.600591] print_address_description+0x6c/0x20b [ 41.605426] ? __schedule+0xf54/0x1df0 [ 41.609299] kasan_report.cold.7+0x242/0x30d [ 41.613693] __asan_report_load8_noabort+0x14/0x20 [ 41.618601] __schedule+0xf54/0x1df0 [ 41.622294] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 41.627388] ? __sched_text_start+0x8/0x8 [ 41.631514] ? __call_srcu+0x7e7/0x1040 [ 41.635470] ? check_same_owner+0x340/0x340 [ 41.639776] ? mark_held_locks+0x160/0x160 [ 41.643991] ? find_held_lock+0x36/0x1c0 [ 41.648033] preempt_schedule_common+0x22/0x60 [ 41.652594] _cond_resched+0x1d/0x30 [ 41.656288] wait_for_completion+0xa5/0x8d0 [ 41.660653] ? wait_for_completion_interruptible+0x950/0x950 [ 41.666438] ? __lockdep_init_map+0x105/0x590 [ 41.670915] ? __init_waitqueue_head+0x9e/0x150 [ 41.675562] ? init_wait_entry+0x1c0/0x1c0 [ 41.679777] __synchronize_srcu+0x189/0x240 [ 41.684075] ? call_srcu+0x10/0x10 [ 41.687594] ? rcu_unexpedite_gp+0x20/0x20 [ 41.691814] synchronize_srcu+0x335/0x56f [ 41.695947] ? lock_downgrade+0x8f0/0x8f0 [ 41.700080] ? synchronize_srcu_expedited+0x20/0x20 [ 41.705080] ? kasan_check_read+0x11/0x20 [ 41.709246] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 41.713806] ? kasan_check_write+0x14/0x20 [ 41.718018] ? do_raw_spin_lock+0xc1/0x200 [ 41.722361] kvm_page_track_unregister_notifier+0x17d/0x250 [ 41.728060] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 41.733492] ? kvfree+0x61/0x70 [ 41.736767] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.741762] kvm_mmu_uninit_vm+0x1c/0x20 [ 41.745802] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 41.750191] ? kvm_arch_sync_events+0x30/0x30 [ 41.754677] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 41.760198] ? mmu_notifier_unregister+0x474/0x600 [ 41.765255] ? trace_hardirqs_on+0x2c0/0x2c0 [ 41.769655] ? kfree+0x111/0x210 [ 41.773003] ? __mmu_notifier_register+0x30/0x30 [ 41.778242] ? __free_pages+0x10a/0x190 [ 41.782196] ? free_unref_page+0x930/0x930 [ 41.786434] kvm_put_kvm+0x73f/0x1060 [ 41.790220] ? kvm_write_guest_cached+0x40/0x40 [ 41.794884] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.799570] ? _raw_spin_unlock_irq+0x27/0x70 [ 41.804102] ? lockdep_hardirqs_on+0x421/0x5c0 [ 41.808842] ? kasan_check_write+0x14/0x20 [ 41.813054] ? do_raw_spin_lock+0xc1/0x200 [ 41.817268] ? kvm_irqfd_release+0xdd/0x120 [ 41.821666] ? kvm_irqfd_release+0xdd/0x120 [ 41.825981] ? kvm_put_kvm+0x1060/0x1060 [ 41.830033] kvm_vm_release+0x42/0x50 [ 41.833812] __fput+0x38a/0xa40 [ 41.837070] ? __alloc_file+0x400/0x400 [ 41.841025] ? check_same_owner+0x340/0x340 [ 41.845327] ? kasan_check_write+0x14/0x20 [ 41.849539] ? do_raw_spin_lock+0xc1/0x200 [ 41.853753] ____fput+0x15/0x20 [ 41.857021] task_work_run+0x1e8/0x2a0 [ 41.860885] ? task_work_cancel+0x240/0x240 [ 41.865187] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 41.870708] ? switch_task_namespaces+0xa2/0xd0 [ 41.875446] do_exit+0x1ae4/0x26e0 [ 41.878982] ? mm_update_next_owner+0x9a0/0x9a0 [ 41.883632] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 41.887848] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.892846] ? kfree+0x1d7/0x210 [ 41.896194] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 41.900417] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 41.906115] ? is_bpf_text_address+0xd7/0x170 [ 41.910599] ? kernel_text_address+0x79/0xf0 [ 41.914990] ? __kernel_text_address+0xd/0x40 [ 41.919531] ? unwind_get_return_address+0x61/0xa0 [ 41.924521] ? __save_stack_trace+0x8d/0xf0 [ 41.928846] ? save_stack+0xa9/0xd0 [ 41.932456] ? save_stack+0x43/0xd0 [ 41.936058] ? __kasan_slab_free+0x11a/0x170 [ 41.940441] ? kasan_slab_free+0xe/0x10 [ 41.944392] ? putname+0xf2/0x130 [ 41.947823] ? __x64_sys_openat+0x9d/0x100 [ 41.952053] ? do_syscall_64+0x1b9/0x820 [ 41.956091] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.961449] ? trace_hardirqs_off+0xb8/0x2b0 [ 41.965964] ? kasan_check_read+0x11/0x20 [ 41.970111] ? do_raw_spin_unlock+0xa7/0x2f0 [ 41.974519] ? trace_hardirqs_on+0x2c0/0x2c0 [ 41.978927] ? initcall_blacklisted+0x9a/0x1e0 [ 41.983488] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 41.988579] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 41.994274] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.999789] ? do_vfs_ioctl+0x201/0x1720 [ 42.003829] ? rcu_is_watching+0x8c/0x150 [ 42.008059] ? trace_hardirqs_on+0xbd/0x2c0 [ 42.012364] ? ioctl_preallocate+0x300/0x300 [ 42.016754] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.022274] ? __fget_light+0x2f7/0x440 [ 42.026279] ? fget_raw+0x20/0x20 [ 42.029792] ? putname+0xf2/0x130 [ 42.033244] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.038240] ? kmem_cache_free+0x246/0x280 [ 42.042596] ? putname+0xf7/0x130 [ 42.046048] do_group_exit+0x177/0x440 [ 42.049924] ? trace_hardirqs_on+0xbd/0x2c0 [ 42.054240] ? __ia32_sys_exit+0x50/0x50 [ 42.058283] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 42.063475] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.069007] ? ksys_ioctl+0x81/0xd0 [ 42.072614] __x64_sys_exit_group+0x3e/0x50 [ 42.076933] do_syscall_64+0x1b9/0x820 [ 42.080805] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.086151] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.091065] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.095903] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 42.100901] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.105912] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.110926] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.115747] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.120918] RIP: 0033:0x43ecc8 [ 42.124093] Code: Bad RIP value. [ 42.127438] RSP: 002b:00007ffc6321cce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 42.135133] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 42.142496] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 42.149849] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 42.157101] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 42.164427] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 42.171683] [ 42.173292] Allocated by task 4679: [ 42.176944] save_stack+0x43/0xd0 [ 42.180386] kasan_kmalloc+0xc4/0xe0 [ 42.184079] kasan_slab_alloc+0x12/0x20 [ 42.188029] kmem_cache_alloc+0x12e/0x710 [ 42.192157] vmx_create_vcpu+0xcf/0x2830 [ 42.196315] kvm_arch_vcpu_create+0xe5/0x220 [ 42.200718] kvm_vm_ioctl+0x488/0x1d80 [ 42.204583] do_vfs_ioctl+0x1de/0x1720 [ 42.208450] ksys_ioctl+0xa9/0xd0 [ 42.211879] __x64_sys_ioctl+0x73/0xb0 [ 42.215750] do_syscall_64+0x1b9/0x820 [ 42.219623] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.224792] [ 42.226401] Freed by task 4679: [ 42.229674] save_stack+0x43/0xd0 [ 42.233107] __kasan_slab_free+0x11a/0x170 [ 42.237327] kasan_slab_free+0xe/0x10 [ 42.241108] kmem_cache_free+0x86/0x280 [ 42.245196] vmx_free_vcpu+0x26b/0x300 [ 42.249075] kvm_arch_destroy_vm+0x365/0x7c0 [ 42.253464] kvm_put_kvm+0x73f/0x1060 [ 42.257287] kvm_vm_release+0x42/0x50 [ 42.261077] __fput+0x38a/0xa40 [ 42.264353] ____fput+0x15/0x20 [ 42.267613] task_work_run+0x1e8/0x2a0 [ 42.271484] do_exit+0x1ae4/0x26e0 [ 42.275003] do_group_exit+0x177/0x440 [ 42.278867] __x64_sys_exit_group+0x3e/0x50 [ 42.283164] do_syscall_64+0x1b9/0x820 [ 42.287316] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.292480] [ 42.294089] The buggy address belongs to the object at ffff8801d9b20040 [ 42.294089] which belongs to the cache kvm_vcpu of size 23872 [ 42.306891] The buggy address is located 24 bytes inside of [ 42.306891] 23872-byte region [ffff8801d9b20040, ffff8801d9b25d80) [ 42.318999] The buggy address belongs to the page: [ 42.323912] page:ffffea000766c800 count:1 mapcount:0 mapping:ffff8801d52c19c0 index:0x0 compound_mapcount: 0 [ 42.333883] flags: 0x2fffc0000008100(slab|head) [ 42.338549] raw: 02fffc0000008100 ffff8801d52c5c48 ffff8801d52c5c48 ffff8801d52c19c0 [ 42.346684] raw: 0000000000000000 ffff8801d9b20040 0000000100000001 0000000000000000 [ 42.354541] page dumped because: kasan: bad access detected [ 42.360224] [ 42.361840] Memory state around the buggy address: [ 42.366857] ffff8801d9b1ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.374215] ffff8801d9b1ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.381567] >ffff8801d9b20000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 42.388898] ^ [ 42.395105] ffff8801d9b20080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.402444] ffff8801d9b20100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.409942] ================================================================== [ 42.417291] Kernel panic - not syncing: panic_on_warn set ... [ 42.417291] [ 42.424638] CPU: 1 PID: 4679 Comm: syz-executor404 Tainted: G B 4.19.0-rc1+ #217 [ 42.433450] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.443038] Call Trace: [ 42.445609] dump_stack+0x1c9/0x2b4 [ 42.449303] ? dump_stack_print_info.cold.2+0x52/0x52 [ 42.454485] ? lock_downgrade+0x8f0/0x8f0 [ 42.458618] ? __schedule+0xf54/0x1df0 [ 42.462485] panic+0x238/0x4e7 [ 42.465659] ? add_taint.cold.5+0x16/0x16 [ 42.469923] ? print_shadow_for_address+0xba/0x116 [ 42.474831] ? trace_hardirqs_off+0xaf/0x2b0 [ 42.479229] ? trace_hardirqs_off+0x77/0x2b0 [ 42.483635] ? __schedule+0xf54/0x1df0 [ 42.487506] kasan_end_report+0x47/0x4f [ 42.491470] kasan_report.cold.7+0x76/0x30d [ 42.495785] __asan_report_load8_noabort+0x14/0x20 [ 42.500697] __schedule+0xf54/0x1df0 [ 42.504388] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 42.509469] ? __sched_text_start+0x8/0x8 [ 42.513706] ? __call_srcu+0x7e7/0x1040 [ 42.517682] ? check_same_owner+0x340/0x340 [ 42.521990] ? mark_held_locks+0x160/0x160 [ 42.526215] ? find_held_lock+0x36/0x1c0 [ 42.530258] preempt_schedule_common+0x22/0x60 [ 42.534921] _cond_resched+0x1d/0x30 [ 42.538632] wait_for_completion+0xa5/0x8d0 [ 42.542957] ? wait_for_completion_interruptible+0x950/0x950 [ 42.548742] ? __lockdep_init_map+0x105/0x590 [ 42.553242] ? __init_waitqueue_head+0x9e/0x150 [ 42.557908] ? init_wait_entry+0x1c0/0x1c0 [ 42.562129] __synchronize_srcu+0x189/0x240 [ 42.566434] ? call_srcu+0x10/0x10 [ 42.569970] ? rcu_unexpedite_gp+0x20/0x20 [ 42.574187] synchronize_srcu+0x335/0x56f [ 42.578321] ? lock_downgrade+0x8f0/0x8f0 [ 42.582447] ? synchronize_srcu_expedited+0x20/0x20 [ 42.587450] ? kasan_check_read+0x11/0x20 [ 42.591648] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 42.596361] ? kasan_check_write+0x14/0x20 [ 42.600683] ? do_raw_spin_lock+0xc1/0x200 [ 42.604902] kvm_page_track_unregister_notifier+0x17d/0x250 [ 42.610608] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 42.616223] ? kvfree+0x61/0x70 [ 42.619485] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.624484] kvm_mmu_uninit_vm+0x1c/0x20 [ 42.628523] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 42.632977] ? kvm_arch_sync_events+0x30/0x30 [ 42.637459] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 42.642975] ? mmu_notifier_unregister+0x474/0x600 [ 42.647881] ? trace_hardirqs_on+0x2c0/0x2c0 [ 42.652271] ? kfree+0x111/0x210 [ 42.655621] ? __mmu_notifier_register+0x30/0x30 [ 42.660356] ? __free_pages+0x10a/0x190 [ 42.664309] ? free_unref_page+0x930/0x930 [ 42.668542] kvm_put_kvm+0x73f/0x1060 [ 42.672325] ? kvm_write_guest_cached+0x40/0x40 [ 42.676994] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.681469] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.685953] ? lockdep_hardirqs_on+0x421/0x5c0 [ 42.690628] ? kasan_check_write+0x14/0x20 [ 42.694861] ? do_raw_spin_lock+0xc1/0x200 [ 42.699096] ? kvm_irqfd_release+0xdd/0x120 [ 42.703435] ? kvm_irqfd_release+0xdd/0x120 [ 42.707778] ? kvm_put_kvm+0x1060/0x1060 [ 42.711833] kvm_vm_release+0x42/0x50 [ 42.715610] __fput+0x38a/0xa40 [ 42.718872] ? __alloc_file+0x400/0x400 [ 42.722835] ? check_same_owner+0x340/0x340 [ 42.727299] ? kasan_check_write+0x14/0x20 [ 42.731518] ? do_raw_spin_lock+0xc1/0x200 [ 42.735729] ____fput+0x15/0x20 [ 42.739129] task_work_run+0x1e8/0x2a0 [ 42.743003] ? task_work_cancel+0x240/0x240 [ 42.747332] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 42.753002] ? switch_task_namespaces+0xa2/0xd0 [ 42.757760] do_exit+0x1ae4/0x26e0 [ 42.761292] ? mm_update_next_owner+0x9a0/0x9a0 [ 42.765940] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 42.770154] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.775146] ? kfree+0x1d7/0x210 [ 42.778490] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 42.782707] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 42.788397] ? is_bpf_text_address+0xd7/0x170 [ 42.792870] ? kernel_text_address+0x79/0xf0 [ 42.797352] ? __kernel_text_address+0xd/0x40 [ 42.801847] ? unwind_get_return_address+0x61/0xa0 [ 42.806789] ? __save_stack_trace+0x8d/0xf0 [ 42.811091] ? save_stack+0xa9/0xd0 [ 42.814694] ? save_stack+0x43/0xd0 [ 42.818302] ? __kasan_slab_free+0x11a/0x170 [ 42.822706] ? kasan_slab_free+0xe/0x10 [ 42.826675] ? putname+0xf2/0x130 [ 42.830107] ? __x64_sys_openat+0x9d/0x100 [ 42.834339] ? do_syscall_64+0x1b9/0x820 [ 42.838377] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.843717] ? trace_hardirqs_off+0xb8/0x2b0 [ 42.848102] ? kasan_check_read+0x11/0x20 [ 42.852234] ? do_raw_spin_unlock+0xa7/0x2f0 [ 42.856622] ? trace_hardirqs_on+0x2c0/0x2c0 [ 42.861013] ? initcall_blacklisted+0x9a/0x1e0 [ 42.865575] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 42.870659] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 42.876350] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.881872] ? do_vfs_ioctl+0x201/0x1720 [ 42.885946] ? rcu_is_watching+0x8c/0x150 [ 42.890094] ? trace_hardirqs_on+0xbd/0x2c0 [ 42.894567] ? ioctl_preallocate+0x300/0x300 [ 42.898968] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.904597] ? __fget_light+0x2f7/0x440 [ 42.908570] ? fget_raw+0x20/0x20 [ 42.912117] ? putname+0xf2/0x130 [ 42.915554] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.920550] ? kmem_cache_free+0x246/0x280 [ 42.924765] ? putname+0xf7/0x130 [ 42.928232] do_group_exit+0x177/0x440 [ 42.932103] ? trace_hardirqs_on+0xbd/0x2c0 [ 42.936404] ? __ia32_sys_exit+0x50/0x50 [ 42.940451] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 42.945541] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.951066] ? ksys_ioctl+0x81/0xd0 [ 42.954675] __x64_sys_exit_group+0x3e/0x50 [ 42.958995] do_syscall_64+0x1b9/0x820 [ 42.962863] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.968211] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.973166] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.978037] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 42.983034] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.988029] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.993044] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.997997] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.003169] RIP: 0033:0x43ecc8 [ 43.006347] Code: Bad RIP value. [ 43.009701] RSP: 002b:00007ffc6321cce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 43.017403] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 43.024656] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 43.032019] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 43.039271] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 43.046520] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 43.053804] [ 43.053807] ====================================================== [ 43.053810] WARNING: possible circular locking dependency detected [ 43.053812] 4.19.0-rc1+ #217 Not tainted [ 43.053815] ------------------------------------------------------ [ 43.053818] syz-executor404/4679 is trying to acquire lock: [ 43.053820] 00000000cdc4ddea ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 43.053828] [ 43.053830] but task is already holding lock: [ 43.053832] 000000004f398be7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 43.053840] [ 43.053842] which lock already depends on the new lock. [ 43.053843] [ 43.053845] [ 43.053848] the existing dependency chain (in reverse order) is: [ 43.053849] [ 43.053850] -> #3 (report_lock){....}: [ 43.053858] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.053860] kasan_report+0x8e/0x110 [ 43.053862] __asan_report_load8_noabort+0x14/0x20 [ 43.053865] __schedule+0xf54/0x1df0 [ 43.053867] preempt_schedule_common+0x22/0x60 [ 43.053869] _cond_resched+0x1d/0x30 [ 43.053872] wait_for_completion+0xa5/0x8d0 [ 43.053874] __synchronize_srcu+0x189/0x240 [ 43.053877] synchronize_srcu+0x335/0x56f [ 43.053879] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.053882] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.053884] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.053886] kvm_put_kvm+0x73f/0x1060 [ 43.053888] kvm_vm_release+0x42/0x50 [ 43.053890] __fput+0x38a/0xa40 [ 43.053892] ____fput+0x15/0x20 [ 43.053894] task_work_run+0x1e8/0x2a0 [ 43.053896] do_exit+0x1ae4/0x26e0 [ 43.053899] do_group_exit+0x177/0x440 [ 43.053901] __x64_sys_exit_group+0x3e/0x50 [ 43.053903] do_syscall_64+0x1b9/0x820 [ 43.053906] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.053907] [ 43.053908] -> #2 (&rq->lock){-.-.}: [ 43.053915] _raw_spin_lock+0x2a/0x40 [ 43.053917] task_fork_fair+0x93/0x680 [ 43.053920] sched_fork+0x44b/0xbd0 [ 43.053922] copy_process+0x235e/0x7ad0 [ 43.053924] _do_fork+0x1ca/0x1170 [ 43.053926] kernel_thread+0x34/0x40 [ 43.053928] rest_init+0x22/0xe4 [ 43.053930] start_kernel+0x913/0x94e [ 43.053932] x86_64_start_reservations+0x29/0x2b [ 43.053935] x86_64_start_kernel+0x76/0x79 [ 43.053937] secondary_startup_64+0xa4/0xb0 [ 43.053938] [ 43.053939] -> #1 (&p->pi_lock){-.-.}: [ 43.053947] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.053949] try_to_wake_up+0xd2/0x1250 [ 43.053951] wake_up_process+0x10/0x20 [ 43.053953] __up.isra.1+0x1c0/0x2a0 [ 43.053955] up+0x13c/0x1c0 [ 43.053957] __up_console_sem+0xbe/0x1b0 [ 43.053960] console_unlock+0x506/0x10d0 [ 43.053962] vprintk_emit+0x33a/0x910 [ 43.053964] vprintk_default+0x28/0x30 [ 43.053966] vprintk_func+0x7a/0x117 [ 43.053968] printk+0xa7/0xcf [ 43.053970] load_umh+0x51/0xbd [ 43.053972] do_one_initcall+0x127/0x838 [ 43.053974] kernel_init_freeable+0x4bb/0x5ae [ 43.053976] kernel_init+0x11/0x1b3 [ 43.053978] ret_from_fork+0x3a/0x50 [ 43.053980] [ 43.053981] -> #0 ((console_sem).lock){-...}: [ 43.053988] lock_acquire+0x1e4/0x4f0 [ 43.053991] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.053993] down_trylock+0x13/0x70 [ 43.053995] __down_trylock_console_sem+0xae/0x200 [ 43.053998] console_trylock+0x15/0xa0 [ 43.054000] vprintk_emit+0x31f/0x910 [ 43.054002] vprintk_default+0x28/0x30 [ 43.054004] vprintk_func+0x7a/0x117 [ 43.054006] printk+0xa7/0xcf [ 43.054008] kasan_report+0x9e/0x110 [ 43.054010] __asan_report_load8_noabort+0x14/0x20 [ 43.054012] __schedule+0xf54/0x1df0 [ 43.054015] preempt_schedule_common+0x22/0x60 [ 43.054017] _cond_resched+0x1d/0x30 [ 43.054019] wait_for_completion+0xa5/0x8d0 [ 43.054022] __synchronize_srcu+0x189/0x240 [ 43.054024] synchronize_srcu+0x335/0x56f [ 43.054027] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.054029] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.054031] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.054034] kvm_put_kvm+0x73f/0x1060 [ 43.054036] kvm_vm_release+0x42/0x50 [ 43.054038] __fput+0x38a/0xa40 [ 43.054040] ____fput+0x15/0x20 [ 43.054042] task_work_run+0x1e8/0x2a0 [ 43.054044] do_exit+0x1ae4/0x26e0 [ 43.054046] do_group_exit+0x177/0x440 [ 43.054048] __x64_sys_exit_group+0x3e/0x50 [ 43.054050] do_syscall_64+0x1b9/0x820 [ 43.054053] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.054054] [ 43.054057] other info that might help us debug this: [ 43.054058] [ 43.054060] Chain exists of: [ 43.054061] (console_sem).lock --> &rq->lock --> report_lock [ 43.054070] [ 43.054073] Possible unsafe locking scenario: [ 43.054074] [ 43.054076] CPU0 CPU1 [ 43.054078] ---- ---- [ 43.054080] lock(report_lock); [ 43.054085] lock(&rq->lock); [ 43.054090] lock(report_lock); [ 43.054094] lock((console_sem).lock); [ 43.054098] [ 43.054099] *** DEADLOCK *** [ 43.054101] [ 43.054103] 2 locks held by syz-executor404/4679: [ 43.054104] #0: 00000000f71bb562 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 43.054113] #1: 000000004f398be7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 43.054122] [ 43.054123] stack backtrace: [ 43.054127] CPU: 1 PID: 4679 Comm: syz-executor404 Not tainted 4.19.0-rc1+ #217 [ 43.054131] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.054133] Call Trace: [ 43.054135] dump_stack+0x1c9/0x2b4 [ 43.054139] ? dump_stack_print_info.cold.2+0x52/0x52 [ 43.054141] ? vprintk_func+0x100/0x117 [ 43.054144] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 43.054146] ? save_trace+0xe0/0x290 [ 43.054148] __lock_acquire+0x3449/0x5020 [ 43.054150] ? mark_held_locks+0x160/0x160 [ 43.054153] ? mark_held_locks+0x160/0x160 [ 43.054155] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 43.054157] ? is_bpf_text_address+0xd7/0x170 [ 43.054160] ? kernel_text_address+0x79/0xf0 [ 43.054162] ? __kernel_text_address+0xd/0x40 [ 43.054164] ? __save_stack_trace+0x8d/0xf0 [ 43.054167] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 43.054169] ? save_trace+0x290/0x290 [ 43.054171] ? save_stack_trace+0x1a/0x20 [ 43.054173] ? save_trace+0xe0/0x290 [ 43.054175] ? graph_lock+0x170/0x170 [ 43.054178] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.054180] lock_acquire+0x1e4/0x4f0 [ 43.054182] ? down_trylock+0x13/0x70 [ 43.054184] ? lock_release+0x9f0/0x9f0 [ 43.054187] ? trace_hardirqs_off+0xb8/0x2b0 [ 43.054189] ? trace_hardirqs_on+0x2c0/0x2c0 [ 43.054191] ? trace_hardirqs_off+0xb8/0x2b0 [ 43.054194] ? log_store+0x34f/0x4c0 [ 43.054196] ? vprintk_emit+0x31f/0x910 [ 43.054199] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.054201] ? down_trylock+0x13/0x70 [ 43.054209] down_trylock+0x13/0x70 [ 43.054212] __down_trylock_console_sem+0xae/0x200 [ 43.054214] console_trylock+0x15/0xa0 [ 43.054216] vprintk_emit+0x31f/0x910 [ 43.054219] ? wake_up_klogd+0x110/0x110 [ 43.054221] ? run_rebalance_domains+0x4c0/0x4c0 [ 43.054223] ? kasan_check_read+0x11/0x20 [ 43.054226] ? rcu_is_watching+0x8c/0x150 [ 43.054228] ? rcu_pm_notify+0xc0/0xc0 [ 43.054230] ? lock_acquire+0x1e4/0x4f0 [ 43.054232] ? kasan_report+0x8e/0x110 [ 43.054234] ? __schedule+0xf54/0x1df0 [ 43.054237] vprintk_default+0x28/0x30 [ 43.054239] vprintk_func+0x7a/0x117 [ 43.054240] printk+0xa7/0xcf [ 43.054243] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 43.054245] ? kasan_check_write+0x14/0x20 [ 43.054247] ? do_raw_spin_lock+0xc1/0x200 [ 43.054250] ? do_raw_spin_lock+0xc1/0x200 [ 43.054252] kasan_report+0x9e/0x110 [ 43.054254] __asan_report_load8_noabort+0x14/0x20 [ 43.054256] __schedule+0xf54/0x1df0 [ 43.054259] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 43.054261] ? __sched_text_start+0x8/0x8 [ 43.054263] ? __call_srcu+0x7e7/0x1040 [ 43.054265] ? check_same_owner+0x340/0x340 [ 43.054268] ? mark_held_locks+0x160/0x160 [ 43.054270] ? find_held_lock+0x36/0x1c0 [ 43.054272] preempt_schedule_common+0x22/0x60 [ 43.054274] _cond_resched+0x1d/0x30 [ 43.054277] wait_for_completion+0xa5/0x8d0 [ 43.054279] ? wait_for_completion_interruptible+0x950/0x950 [ 43.054282] ? __lockdep_init_map+0x105/0x590 [ 43.054284] ? __init_waitqueue_head+0x9e/0x150 [ 43.054287] ? init_wait_entry+0x1c0/0x1c0 [ 43.054289] __synchronize_srcu+0x189/0x240 [ 43.054291] ? call_srcu+0x10/0x10 [ 43.054293] ? rcu_unexpedite_gp+0x20/0x20 [ 43.054295] synchronize_srcu+0x335/0x56f [ 43.054298] ? lock_downgrade+0x8f0/0x8f0 [ 43.054300] ? synchronize_srcu_expedited+0x20/0x20 [ 43.054303] ? kasan_check_read+0x11/0x20 [ 43.054321] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 43.054323] ? kasan_check_write+0x14/0x20 [ 43.054326] ? do_raw_spin_lock+0xc1/0x200 [ 43.054329] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.054331] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 43.054333] ? kvfree+0x61/0x70 [ 43.054336] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.054338] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.054341] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.054343] ? kvm_arch_sync_events+0x30/0x30 [ 43.054346] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.054348] ? mmu_notifier_unregister+0x474/0x600 [ 43.054351] ? trace_hardirqs_on+0x2c0/0x2c0 [ 43.054353] ? kfree+0x111/0x210 [ 43.054355] ? __mmu_notifier_register+0x30/0x30 [ 43.054357] ? __free_pages+0x10a/0x190 [ 43.054360] ? free_unref_page+0x930/0x930 [ 43.054362] kvm_put_kvm+0x73f/0x1060 [ 43.054364] ? kvm_write_guest_cached+0x40/0x40 [ 43.054367] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.054369] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.054372] ? lockdep_hardirqs_on+0x421/0x5c0 [ 43.054374] ? kasan_check_write+0x14/0x20 [ 43.054376] ? do_raw_spin_lock+0xc1/0x200 [ 43.054378] ? kvm_irqfd_release+0xdd/0x120 [ 43.054381] ? kvm_irqfd_release+0xdd/0x120 [ 43.054383] ? kvm_put_kvm+0x1060/0x1060 [ 43.054385] kvm_vm_release+0x42/0x50 [ 43.054387] __fput+0x38a/0xa40 [ 43.054389] ? __alloc_file+0x400/0x400 [ 43.054392] ? check_same_owner+0x340/0x340 [ 43.054394] ? kasan_check_write+0x14/0x20 [ 43.054396] ? do_raw_spin_lock+0xc1/0x200 [ 43.054398] ____fput+0x15/0x20 [ 43.054400] task_work_run+0x1e8/0x2a0 [ 43.054403] ? task_work_cancel+0x240/0x240 [ 43.054405] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.054408] ? switch_task_namespaces+0xa2/0xd0 [ 43.054410] do_exit+0x1ae4/0x26e0 [ 43.054412] ? mm_update_next_owner+0x9a0/0x9a0 [ 43.054415] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 43.054417] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.054419] ? kfree+0x1d7/0x210 [ 43.054422] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 43.054425] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 43.054427] ? is_bpf_text_address+0xd7/0x170 [ 43.054428] ? [ 43.054432] Lost 55 message(s)! [ 44.172896] Shutting down cpus with NMI [ 45.232082] Dumping ftrace buffer: [ 45.235603] (ftrace buffer empty) [ 45.239292] Kernel Offset: disabled [ 45.242898] Rebooting in 86400 seconds..