[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.477991] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.557759] random: sshd: uninitialized urandom read (32 bytes read) [ 26.908570] random: sshd: uninitialized urandom read (32 bytes read) [ 27.473808] random: sshd: uninitialized urandom read (32 bytes read) [ 27.666037] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.41' (ECDSA) to the list of known hosts. [ 33.447059] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.551382] 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. [ 33.576198] ================================================================== [ 33.586406] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.592646] Read of size 8 at addr ffff8801b9fc0058 by task syz-executor305/4747 [ 33.600205] [ 33.601848] CPU: 1 PID: 4747 Comm: syz-executor305 Not tainted 4.19.0-rc1+ #217 [ 33.609282] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.618622] Call Trace: [ 33.621210] dump_stack+0x1c9/0x2b4 [ 33.624845] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.630030] ? printk+0xa7/0xcf [ 33.633314] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.638075] ? __schedule+0xf54/0x1df0 [ 33.641974] print_address_description+0x6c/0x20b [ 33.646825] ? __schedule+0xf54/0x1df0 [ 33.650710] kasan_report.cold.7+0x242/0x30d [ 33.655124] __asan_report_load8_noabort+0x14/0x20 [ 33.660048] __schedule+0xf54/0x1df0 [ 33.663766] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.668868] ? __sched_text_start+0x8/0x8 [ 33.673011] ? __call_srcu+0x7e7/0x1040 [ 33.677000] ? check_same_owner+0x340/0x340 [ 33.681315] ? mark_held_locks+0x160/0x160 [ 33.685554] ? find_held_lock+0x36/0x1c0 [ 33.689618] preempt_schedule_common+0x22/0x60 [ 33.694198] _cond_resched+0x1d/0x30 [ 33.697908] wait_for_completion+0xa5/0x8d0 [ 33.702232] ? wait_for_completion_interruptible+0x950/0x950 [ 33.708036] ? __lockdep_init_map+0x105/0x590 [ 33.712554] ? __init_waitqueue_head+0x9e/0x150 [ 33.717220] ? init_wait_entry+0x1c0/0x1c0 [ 33.721469] __synchronize_srcu+0x189/0x240 [ 33.725794] ? call_srcu+0x10/0x10 [ 33.729350] ? rcu_unexpedite_gp+0x20/0x20 [ 33.733588] synchronize_srcu+0x335/0x56f [ 33.737729] ? lock_downgrade+0x8f0/0x8f0 [ 33.741871] ? synchronize_srcu_expedited+0x20/0x20 [ 33.746887] ? kasan_check_read+0x11/0x20 [ 33.751062] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.755641] ? kasan_check_write+0x14/0x20 [ 33.759875] ? do_raw_spin_lock+0xc1/0x200 [ 33.764113] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.769820] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.775276] ? kvfree+0x61/0x70 [ 33.778564] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.783583] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.787647] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.792061] ? kvm_arch_sync_events+0x30/0x30 [ 33.796567] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.802100] ? mmu_notifier_unregister+0x474/0x600 [ 33.807032] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.811437] ? kfree+0x111/0x210 [ 33.814801] ? __mmu_notifier_register+0x30/0x30 [ 33.819575] ? __free_pages+0x10a/0x190 [ 33.823557] ? free_unref_page+0x930/0x930 [ 33.827801] kvm_put_kvm+0x73f/0x1060 [ 33.831606] ? kvm_write_guest_cached+0x40/0x40 [ 33.836272] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.840761] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.845250] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.849830] ? kasan_check_write+0x14/0x20 [ 33.854068] ? do_raw_spin_lock+0xc1/0x200 [ 33.858300] ? kvm_irqfd_release+0xdd/0x120 [ 33.862628] ? kvm_irqfd_release+0xdd/0x120 [ 33.866952] ? kvm_put_kvm+0x1060/0x1060 [ 33.871010] kvm_vm_release+0x42/0x50 [ 33.874806] __fput+0x38a/0xa40 [ 33.878081] ? __alloc_file+0x400/0x400 [ 33.882078] ? check_same_owner+0x340/0x340 [ 33.886398] ? kasan_check_write+0x14/0x20 [ 33.890629] ? do_raw_spin_lock+0xc1/0x200 [ 33.894861] ____fput+0x15/0x20 [ 33.898135] task_work_run+0x1e8/0x2a0 [ 33.902017] ? task_work_cancel+0x240/0x240 [ 33.906340] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.911880] ? switch_task_namespaces+0xa2/0xd0 [ 33.916552] do_exit+0x1ae4/0x26e0 [ 33.920094] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.924775] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.929007] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.934018] ? kfree+0x1d7/0x210 [ 33.937380] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.941615] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.947326] ? is_bpf_text_address+0xd7/0x170 [ 33.951816] ? kernel_text_address+0x79/0xf0 [ 33.956217] ? __kernel_text_address+0xd/0x40 [ 33.960745] ? unwind_get_return_address+0x61/0xa0 [ 33.965671] ? __save_stack_trace+0x8d/0xf0 [ 33.969999] ? save_stack+0xa9/0xd0 [ 33.973658] ? save_stack+0x43/0xd0 [ 33.977278] ? __kasan_slab_free+0x11a/0x170 [ 33.981680] ? kasan_slab_free+0xe/0x10 [ 33.985661] ? putname+0xf2/0x130 [ 33.989112] ? __x64_sys_openat+0x9d/0x100 [ 33.993343] ? do_syscall_64+0x1b9/0x820 [ 33.997401] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.002762] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.007166] ? kasan_check_read+0x11/0x20 [ 34.011318] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.015718] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.020136] ? initcall_blacklisted+0x9a/0x1e0 [ 34.024716] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.029828] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.035577] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.041113] ? do_vfs_ioctl+0x201/0x1720 [ 34.045173] ? rcu_is_watching+0x8c/0x150 [ 34.049328] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.053645] ? ioctl_preallocate+0x300/0x300 [ 34.058049] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.063586] ? __fget_light+0x2f7/0x440 [ 34.067574] ? fget_raw+0x20/0x20 [ 34.071025] ? putname+0xf2/0x130 [ 34.074481] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.079506] ? kmem_cache_free+0x246/0x280 [ 34.083738] ? putname+0xf7/0x130 [ 34.087190] do_group_exit+0x177/0x440 [ 34.091076] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.095403] ? __ia32_sys_exit+0x50/0x50 [ 34.099468] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.104577] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.110121] ? ksys_ioctl+0x81/0xd0 [ 34.113742] __x64_sys_exit_group+0x3e/0x50 [ 34.118069] do_syscall_64+0x1b9/0x820 [ 34.121967] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.127340] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.132263] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.137100] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.142121] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.147134] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.152151] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.156996] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.162212] RIP: 0033:0x43ecc8 [ 34.165403] Code: Bad RIP value. [ 34.168760] RSP: 002b:00007ffc7152bfd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.176463] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 34.183747] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.191021] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.198302] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.205581] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.212850] [ 34.214481] Allocated by task 4747: [ 34.218104] save_stack+0x43/0xd0 [ 34.221559] kasan_kmalloc+0xc4/0xe0 [ 34.225271] kasan_slab_alloc+0x12/0x20 [ 34.229237] kmem_cache_alloc+0x12e/0x710 [ 34.233377] vmx_create_vcpu+0xcf/0x2830 [ 34.237430] kvm_arch_vcpu_create+0xe5/0x220 [ 34.241836] kvm_vm_ioctl+0x488/0x1d80 [ 34.245717] do_vfs_ioctl+0x1de/0x1720 [ 34.249598] ksys_ioctl+0xa9/0xd0 [ 34.253047] __x64_sys_ioctl+0x73/0xb0 [ 34.256935] do_syscall_64+0x1b9/0x820 [ 34.260840] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.266022] [ 34.267646] Freed by task 4747: [ 34.270922] save_stack+0x43/0xd0 [ 34.274368] __kasan_slab_free+0x11a/0x170 [ 34.278604] kasan_slab_free+0xe/0x10 [ 34.282397] kmem_cache_free+0x86/0x280 [ 34.286364] vmx_free_vcpu+0x26b/0x300 [ 34.290257] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.294663] kvm_put_kvm+0x73f/0x1060 [ 34.298455] kvm_vm_release+0x42/0x50 [ 34.302244] __fput+0x38a/0xa40 [ 34.305515] ____fput+0x15/0x20 [ 34.308800] task_work_run+0x1e8/0x2a0 [ 34.312694] do_exit+0x1ae4/0x26e0 [ 34.316234] do_group_exit+0x177/0x440 [ 34.320125] __x64_sys_exit_group+0x3e/0x50 [ 34.324453] do_syscall_64+0x1b9/0x820 [ 34.328346] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.333522] [ 34.335153] The buggy address belongs to the object at ffff8801b9fc0040 [ 34.335153] which belongs to the cache kvm_vcpu of size 23872 [ 34.347725] The buggy address is located 24 bytes inside of [ 34.347725] 23872-byte region [ffff8801b9fc0040, ffff8801b9fc5d80) [ 34.359694] The buggy address belongs to the page: [ 34.364618] page:ffffea0006e7f000 count:1 mapcount:0 mapping:ffff8801d86b7000 index:0x0 compound_mapcount: 0 [ 34.374580] flags: 0x2fffc0000008100(slab|head) [ 34.379296] raw: 02fffc0000008100 ffff8801d52caf48 ffff8801d52caf48 ffff8801d86b7000 [ 34.387173] raw: 0000000000000000 ffff8801b9fc0040 0000000100000001 0000000000000000 [ 34.395039] page dumped because: kasan: bad access detected [ 34.400740] [ 34.402359] Memory state around the buggy address: [ 34.407283] ffff8801b9fbff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.414633] ffff8801b9fbff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.421988] >ffff8801b9fc0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.429337] ^ [ 34.435574] ffff8801b9fc0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.442929] ffff8801b9fc0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.450276] ================================================================== [ 34.457878] Kernel panic - not syncing: panic_on_warn set ... [ 34.457878] [ 34.465239] CPU: 1 PID: 4747 Comm: syz-executor305 Tainted: G B 4.19.0-rc1+ #217 [ 34.474066] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.483408] Call Trace: [ 34.486000] dump_stack+0x1c9/0x2b4 [ 34.489627] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.494816] ? lock_downgrade+0x8f0/0x8f0 [ 34.498972] ? __schedule+0xf54/0x1df0 [ 34.502855] panic+0x238/0x4e7 [ 34.506042] ? add_taint.cold.5+0x16/0x16 [ 34.510198] ? print_shadow_for_address+0xba/0x116 [ 34.515475] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.519878] ? trace_hardirqs_off+0x77/0x2b0 [ 34.524293] ? __schedule+0xf54/0x1df0 [ 34.528188] kasan_end_report+0x47/0x4f [ 34.532170] kasan_report.cold.7+0x76/0x30d [ 34.536513] __asan_report_load8_noabort+0x14/0x20 [ 34.541443] __schedule+0xf54/0x1df0 [ 34.545148] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.550246] ? __sched_text_start+0x8/0x8 [ 34.554400] ? __call_srcu+0x7e7/0x1040 [ 34.558380] ? check_same_owner+0x340/0x340 [ 34.563156] ? mark_held_locks+0x160/0x160 [ 34.567400] ? find_held_lock+0x36/0x1c0 [ 34.571459] preempt_schedule_common+0x22/0x60 [ 34.576036] _cond_resched+0x1d/0x30 [ 34.579750] wait_for_completion+0xa5/0x8d0 [ 34.584076] ? wait_for_completion_interruptible+0x950/0x950 [ 34.589876] ? __lockdep_init_map+0x105/0x590 [ 34.594369] ? __init_waitqueue_head+0x9e/0x150 [ 34.599040] ? init_wait_entry+0x1c0/0x1c0 [ 34.603276] __synchronize_srcu+0x189/0x240 [ 34.607616] ? call_srcu+0x10/0x10 [ 34.611154] ? rcu_unexpedite_gp+0x20/0x20 [ 34.615394] synchronize_srcu+0x335/0x56f [ 34.619545] ? lock_downgrade+0x8f0/0x8f0 [ 34.623706] ? synchronize_srcu_expedited+0x20/0x20 [ 34.628722] ? kasan_check_read+0x11/0x20 [ 34.632883] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.637464] ? kasan_check_write+0x14/0x20 [ 34.641697] ? do_raw_spin_lock+0xc1/0x200 [ 34.645936] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.651648] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.657091] ? kvfree+0x61/0x70 [ 34.660366] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.665390] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.669459] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.673865] ? kvm_arch_sync_events+0x30/0x30 [ 34.678360] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.683894] ? mmu_notifier_unregister+0x474/0x600 [ 34.688830] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.693237] ? kfree+0x111/0x210 [ 34.696602] ? __mmu_notifier_register+0x30/0x30 [ 34.701354] ? __free_pages+0x10a/0x190 [ 34.705324] ? free_unref_page+0x930/0x930 [ 34.709580] kvm_put_kvm+0x73f/0x1060 [ 34.713396] ? kvm_write_guest_cached+0x40/0x40 [ 34.718066] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.722570] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.727064] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.731650] ? kasan_check_write+0x14/0x20 [ 34.735881] ? do_raw_spin_lock+0xc1/0x200 [ 34.740130] ? kvm_irqfd_release+0xdd/0x120 [ 34.744468] ? kvm_irqfd_release+0xdd/0x120 [ 34.748809] ? kvm_put_kvm+0x1060/0x1060 [ 34.752876] kvm_vm_release+0x42/0x50 [ 34.756673] __fput+0x38a/0xa40 [ 34.759956] ? __alloc_file+0x400/0x400 [ 34.763942] ? check_same_owner+0x340/0x340 [ 34.768256] ? kasan_check_write+0x14/0x20 [ 34.772496] ? do_raw_spin_lock+0xc1/0x200 [ 34.776729] ____fput+0x15/0x20 [ 34.780002] task_work_run+0x1e8/0x2a0 [ 34.783889] ? task_work_cancel+0x240/0x240 [ 34.788208] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.793742] ? switch_task_namespaces+0xa2/0xd0 [ 34.798410] do_exit+0x1ae4/0x26e0 [ 34.801948] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.806628] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.810859] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.815867] ? kfree+0x1d7/0x210 [ 34.819230] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.823459] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.829186] ? is_bpf_text_address+0xd7/0x170 [ 34.833676] ? kernel_text_address+0x79/0xf0 [ 34.838085] ? __kernel_text_address+0xd/0x40 [ 34.842579] ? unwind_get_return_address+0x61/0xa0 [ 34.847507] ? __save_stack_trace+0x8d/0xf0 [ 34.851838] ? save_stack+0xa9/0xd0 [ 34.855475] ? save_stack+0x43/0xd0 [ 34.859095] ? __kasan_slab_free+0x11a/0x170 [ 34.863499] ? kasan_slab_free+0xe/0x10 [ 34.867473] ? putname+0xf2/0x130 [ 34.870923] ? __x64_sys_openat+0x9d/0x100 [ 34.875154] ? do_syscall_64+0x1b9/0x820 [ 34.879206] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.884572] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.888974] ? kasan_check_read+0x11/0x20 [ 34.893118] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.897518] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.901934] ? initcall_blacklisted+0x9a/0x1e0 [ 34.906513] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.911634] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.917340] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.922874] ? do_vfs_ioctl+0x201/0x1720 [ 34.926929] ? rcu_is_watching+0x8c/0x150 [ 34.931070] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.935385] ? ioctl_preallocate+0x300/0x300 [ 34.939785] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.945330] ? __fget_light+0x2f7/0x440 [ 34.949300] ? fget_raw+0x20/0x20 [ 34.952763] ? putname+0xf2/0x130 [ 34.956221] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.961227] ? kmem_cache_free+0x246/0x280 [ 34.965458] ? putname+0xf7/0x130 [ 34.968914] do_group_exit+0x177/0x440 [ 34.972796] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.977115] ? __ia32_sys_exit+0x50/0x50 [ 34.981173] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.986274] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.991807] ? ksys_ioctl+0x81/0xd0 [ 34.995443] __x64_sys_exit_group+0x3e/0x50 [ 34.999757] do_syscall_64+0x1b9/0x820 [ 35.003647] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.009026] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.013953] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.018804] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.023819] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.028832] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.033853] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.038721] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.043904] RIP: 0033:0x43ecc8 [ 35.047092] Code: Bad RIP value. [ 35.050447] RSP: 002b:00007ffc7152bfd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.058163] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.065423] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.072686] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.079954] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.087227] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.094508] [ 35.094514] ====================================================== [ 35.094519] WARNING: possible circular locking dependency detected [ 35.094523] 4.19.0-rc1+ #217 Not tainted [ 35.094528] ------------------------------------------------------ [ 35.094533] syz-executor305/4747 is trying to acquire lock: [ 35.094536] 0000000006dbc623 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.094557] [ 35.094562] but task is already holding lock: [ 35.094565] 000000004848c974 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.094579] [ 35.094584] which lock already depends on the new lock. [ 35.094586] [ 35.094588] [ 35.094593] the existing dependency chain (in reverse order) is: [ 35.094607] [ 35.094609] -> #3 (report_lock){....}: [ 35.094623] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.094627] kasan_report+0x8e/0x110 [ 35.094631] __asan_report_load8_noabort+0x14/0x20 [ 35.094634] __schedule+0xf54/0x1df0 [ 35.094640] preempt_schedule_common+0x22/0x60 [ 35.094644] _cond_resched+0x1d/0x30 [ 35.094648] wait_for_completion+0xa5/0x8d0 [ 35.094652] __synchronize_srcu+0x189/0x240 [ 35.094656] synchronize_srcu+0x335/0x56f [ 35.094660] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.094664] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.094668] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.094672] kvm_put_kvm+0x73f/0x1060 [ 35.094675] kvm_vm_release+0x42/0x50 [ 35.094678] __fput+0x38a/0xa40 [ 35.094682] ____fput+0x15/0x20 [ 35.094685] task_work_run+0x1e8/0x2a0 [ 35.094689] do_exit+0x1ae4/0x26e0 [ 35.094693] do_group_exit+0x177/0x440 [ 35.094696] __x64_sys_exit_group+0x3e/0x50 [ 35.094700] do_syscall_64+0x1b9/0x820 [ 35.094704] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.094707] [ 35.094709] -> #2 (&rq->lock){-.-.}: [ 35.094722] _raw_spin_lock+0x2a/0x40 [ 35.094725] task_fork_fair+0x93/0x680 [ 35.094729] sched_fork+0x44b/0xbd0 [ 35.094733] copy_process+0x235e/0x7ad0 [ 35.094736] _do_fork+0x1ca/0x1170 [ 35.094740] kernel_thread+0x34/0x40 [ 35.094743] rest_init+0x22/0xe4 [ 35.094747] start_kernel+0x913/0x94e [ 35.094751] x86_64_start_reservations+0x29/0x2b [ 35.094755] x86_64_start_kernel+0x76/0x79 [ 35.094759] secondary_startup_64+0xa4/0xb0 [ 35.094773] [ 35.094775] -> #1 (&p->pi_lock){-.-.}: [ 35.094789] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.094793] try_to_wake_up+0xd2/0x1250 [ 35.094797] wake_up_process+0x10/0x20 [ 35.094801] __up.isra.1+0x1c0/0x2a0 [ 35.094804] up+0x13c/0x1c0 [ 35.094808] __up_console_sem+0xbe/0x1b0 [ 35.094812] console_unlock+0x506/0x10d0 [ 35.094815] vprintk_emit+0x33a/0x910 [ 35.094819] vprintk_default+0x28/0x30 [ 35.094823] vprintk_func+0x7a/0x117 [ 35.094826] printk+0xa7/0xcf [ 35.094830] load_umh+0x51/0xbd [ 35.094834] do_one_initcall+0x127/0x838 [ 35.094838] kernel_init_freeable+0x4bb/0x5ae [ 35.094841] kernel_init+0x11/0x1b3 [ 35.094845] ret_from_fork+0x3a/0x50 [ 35.094847] [ 35.094849] -> #0 ((console_sem).lock){-...}: [ 35.094863] lock_acquire+0x1e4/0x4f0 [ 35.094868] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.094871] down_trylock+0x13/0x70 [ 35.094875] __down_trylock_console_sem+0xae/0x200 [ 35.094879] console_trylock+0x15/0xa0 [ 35.094883] vprintk_emit+0x31f/0x910 [ 35.094887] vprintk_default+0x28/0x30 [ 35.094890] vprintk_func+0x7a/0x117 [ 35.094894] printk+0xa7/0xcf [ 35.094898] kasan_report+0x9e/0x110 [ 35.094902] __asan_report_load8_noabort+0x14/0x20 [ 35.094906] __schedule+0xf54/0x1df0 [ 35.094910] preempt_schedule_common+0x22/0x60 [ 35.094913] _cond_resched+0x1d/0x30 [ 35.094917] wait_for_completion+0xa5/0x8d0 [ 35.094921] __synchronize_srcu+0x189/0x240 [ 35.094925] synchronize_srcu+0x335/0x56f [ 35.094930] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.094934] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.094938] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.094942] kvm_put_kvm+0x73f/0x1060 [ 35.094946] kvm_vm_release+0x42/0x50 [ 35.094949] __fput+0x38a/0xa40 [ 35.094952] ____fput+0x15/0x20 [ 35.094956] task_work_run+0x1e8/0x2a0 [ 35.094960] do_exit+0x1ae4/0x26e0 [ 35.094964] do_group_exit+0x177/0x440 [ 35.094968] __x64_sys_exit_group+0x3e/0x50 [ 35.094972] do_syscall_64+0x1b9/0x820 [ 35.094976] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.094978] [ 35.094983] other info that might help us debug this: [ 35.094985] [ 35.094988] Chain exists of: [ 35.094990] (console_sem).lock --> &rq->lock --> report_lock [ 35.095007] [ 35.095011] Possible unsafe locking scenario: [ 35.095014] [ 35.095018] CPU0 CPU1 [ 35.095021] ---- ---- [ 35.095024] lock(report_lock); [ 35.095033] lock(&rq->lock); [ 35.095042] lock(report_lock); [ 35.095050] lock((console_sem).lock); [ 35.095063] [ 35.095066] *** DEADLOCK *** [ 35.095068] [ 35.095072] 2 locks held by syz-executor305/4747: [ 35.095075] #0: 00000000422651c3 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.095091] #1: 000000004848c974 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.095108] [ 35.095111] stack backtrace: [ 35.095116] CPU: 1 PID: 4747 Comm: syz-executor305 Not tainted 4.19.0-rc1+ #217 [ 35.095123] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.095126] Call Trace: [ 35.095130] dump_stack+0x1c9/0x2b4 [ 35.095134] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.095138] ? vprintk_func+0x100/0x117 [ 35.095143] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.095146] ? save_trace+0xe0/0x290 [ 35.095150] __lock_acquire+0x3449/0x5020 [ 35.095154] ? mark_held_locks+0x160/0x160 [ 35.095158] ? mark_held_locks+0x160/0x160 [ 35.095162] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.095166] ? is_bpf_text_address+0xd7/0x170 [ 35.095170] ? kernel_text_address+0x79/0xf0 [ 35.095174] ? __kernel_text_address+0xd/0x40 [ 35.095178] ? __save_stack_trace+0x8d/0xf0 [ 35.095183] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.095198] ? save_trace+0x290/0x290 [ 35.095202] ? save_stack_trace+0x1a/0x20 [ 35.095206] ? save_trace+0xe0/0x290 [ 35.095209] ? graph_lock+0x170/0x170 [ 35.095214] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.095217] lock_acquire+0x1e4/0x4f0 [ 35.095221] ? down_trylock+0x13/0x70 [ 35.095224] ? lock_release+0x9f0/0x9f0 [ 35.095228] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.095232] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.095236] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.095240] ? log_store+0x34f/0x4c0 [ 35.095243] ? vprintk_emit+0x31f/0x910 [ 35.095247] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.095251] ? down_trylock+0x13/0x70 [ 35.095254] down_trylock+0x13/0x70 [ 35.095258] __down_trylock_console_sem+0xae/0x200 [ 35.095262] console_trylock+0x15/0xa0 [ 35.095266] vprintk_emit+0x31f/0x910 [ 35.095269] ? wake_up_klogd+0x110/0x110 [ 35.095273] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.095277] ? kasan_check_read+0x11/0x20 [ 35.095281] ? rcu_is_watching+0x8c/0x150 [ 35.095285] ? rcu_pm_notify+0xc0/0xc0 [ 35.095288] ? lock_acquire+0x1e4/0x4f0 [ 35.095292] ? kasan_report+0x8e/0x110 [ 35.095295] ? __schedule+0xf54/0x1df0 [ 35.095299] vprintk_default+0x28/0x30 [ 35.095302] vprintk_func+0x7a/0x117 [ 35.095306] printk+0xa7/0xcf [ 35.095310] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.095313] ? kasan_check_write+0x14/0x20 [ 35.095317] ? do_raw_spin_lock+0xc1/0x200 [ 35.095321] ? do_raw_spin_lock+0xc1/0x200 [ 35.095324] kasan_report+0x9e/0x110 [ 35.095329] __asan_report_load8_noabort+0x14/0x20 [ 35.095332] __schedule+0xf54/0x1df0 [ 35.095336] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.095340] ? __sched_text_start+0x8/0x8 [ 35.095344] ? __call_srcu+0x7e7/0x1040 [ 35.095347] ? check_same_owner+0x340/0x340 [ 35.095351] ? mark_held_locks+0x160/0x160 [ 35.095355] ? find_held_lock+0x36/0x1c0 [ 35.095359] preempt_schedule_common+0x22/0x60 [ 35.095362] _cond_resched+0x1d/0x30 [ 35.095366] wait_for_completion+0xa5/0x8d0 [ 35.095371] ? wait_for_completion_interruptible+0x950/0x950 [ 35.095375] ? __lockdep_init_map+0x105/0x590 [ 35.095379] ? __init_waitqueue_head+0x9e/0x150 [ 35.095383] ? init_wait_entry+0x1c0/0x1c0 [ 35.095387] __synchronize_srcu+0x189/0x240 [ 35.095390] ? call_srcu+0x10/0x10 [ 35.095394] ? rcu_unexpedite_gp+0x20/0x20 [ 35.095398] synchronize_srcu+0x335/0x56f [ 35.095402] ? lock_downgrade+0x8f0/0x8f0 [ 35.095406] ? synchronize_srcu_expedited+0x20/0x20 [ 35.095410] ? kasan_check_read+0x11/0x20 [ 35.095414] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.095417] ? kasan_check_write+0x14/0x20 [ 35.095421] ? do_raw_spin_lock+0xc1/0x200 [ 35.095426] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.095430] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.095434] ? kvfree+0x61/0x70 [ 35.095438] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.095442] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.095446] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.095450] ? kvm_arch_sync_events+0x30/0x30 [ 35.095454] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.095458] ? mmu_notifier_unregister+0x474/0x600 [ 35.095462] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.095466] ? kfree+0x111/0x210 [ 35.095470] ? __mmu_notifier_register+0x30/0x30 [ 35.095473] ? __free_pages+0x10a/0x190 [ 35.095477] ? free_unref_page+0x930/0x930 [ 35.095481] kvm_put_kvm+0x73f/0x1060 [ 35.095485] ? kvm_write_guest_cached+0x40/0x40 [ 35.095489] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.095492] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.095496] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.095500] ? kasan_check_write+0x14/0x20 [ 35.095504] ? do_raw_spin_lock+0xc1/0x200 [ 35.095508] ? kvm_irqfd_release+0xdd/0x120 [ 35.095512] ? kvm_irqfd_release+0xdd/0x120 [ 35.095515] ? kvm_put_kvm+0x1060/0x1060 [ 35.095519] kvm_vm_release+0x42/0x50 [ 35.095522] __fput+0x38a/0xa40 [ 35.095526] ? __alloc_file+0x400/0x400 [ 35.095529] ? check_same_owner+0x340/0x340 [ 35.095533] ? kasan_check_write+0x14/0x20 [ 35.095545] ? do_raw_spin_lock+0xc1/0x200 [ 35.095549] ____fput+0x15/0x20 [ 35.095552] task_work_run+0x1e8/0x2a0 [ 35.095557] ? task_work_cancel+0x240/0x240 [ 35.095561] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.095565] ? switch_task_namespaces+0xa2/0xd0 [ 35.095569] do_exit+0x1ae4/0x26e0 [ 35.095573] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.095577] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.095581] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.095584] ? kfree+0x1d7/0x210 [ 35.095588] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.095593] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.095596] ? is_bpf_text_address+0xd7/0x170 [ 35.095599] ? [ 35.095605] Lost 55 message(s)! [ 36.201015] Shutting down cpus with NMI [ 37.260555] Dumping ftrace buffer: [ 37.264100] (ftrace buffer empty) [ 37.267789] Kernel Offset: disabled [ 37.271413] Rebooting in 86400 seconds..