[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.681507] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.746529] random: sshd: uninitialized urandom read (32 bytes read) [ 27.102136] random: sshd: uninitialized urandom read (32 bytes read) [ 27.700335] random: sshd: uninitialized urandom read (32 bytes read) [ 27.882368] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.204' (ECDSA) to the list of known hosts. [ 33.437972] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.535021] 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.559873] ================================================================== [ 33.569833] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.576058] Read of size 8 at addr ffff8801bdd28058 by task syz-executor808/4621 [ 33.583574] [ 33.585199] CPU: 0 PID: 4621 Comm: syz-executor808 Not tainted 4.19.0-rc2+ #224 [ 33.592631] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.601972] Call Trace: [ 33.604573] dump_stack+0x1c9/0x2b4 [ 33.608201] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.613392] ? printk+0xa7/0xcf [ 33.616666] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.621417] ? __schedule+0xf54/0x1df0 [ 33.625301] print_address_description+0x6c/0x20b [ 33.630139] ? __schedule+0xf54/0x1df0 [ 33.634023] kasan_report.cold.7+0x242/0x30d [ 33.638429] __asan_report_load8_noabort+0x14/0x20 [ 33.643356] __schedule+0xf54/0x1df0 [ 33.647070] ? __sched_text_start+0x8/0x8 [ 33.651210] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 33.656315] ? __call_srcu+0x7e7/0x1040 [ 33.660275] ? check_same_owner+0x340/0x340 [ 33.664575] ? mark_held_locks+0x160/0x160 [ 33.668788] ? find_held_lock+0x36/0x1c0 [ 33.672845] preempt_schedule_common+0x22/0x60 [ 33.677428] _cond_resched+0x1d/0x30 [ 33.681137] wait_for_completion+0xa5/0x8d0 [ 33.685457] ? wait_for_completion_interruptible+0x950/0x950 [ 33.691256] ? __lockdep_init_map+0x105/0x590 [ 33.695751] ? __init_waitqueue_head+0x9e/0x150 [ 33.700413] ? init_wait_entry+0x1c0/0x1c0 [ 33.704650] __synchronize_srcu+0x189/0x240 [ 33.708964] ? call_srcu+0x10/0x10 [ 33.712511] ? rcu_unexpedite_gp+0x20/0x20 [ 33.716751] synchronize_srcu+0x335/0x56f [ 33.720909] ? lock_downgrade+0x8f0/0x8f0 [ 33.725067] ? synchronize_srcu_expedited+0x20/0x20 [ 33.730093] ? kasan_check_read+0x11/0x20 [ 33.734260] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.738840] ? kasan_check_write+0x14/0x20 [ 33.743068] ? do_raw_spin_lock+0xc1/0x200 [ 33.747302] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.753006] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.758454] ? kvfree+0x61/0x70 [ 33.761730] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.766744] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.770797] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.775214] ? kvm_arch_sync_events+0x30/0x30 [ 33.779717] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.785256] ? mmu_notifier_unregister+0x474/0x600 [ 33.790175] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.794574] ? kfree+0x111/0x210 [ 33.797935] ? __mmu_notifier_register+0x30/0x30 [ 33.802690] ? __free_pages+0x10a/0x190 [ 33.806664] ? free_unref_page+0x930/0x930 [ 33.810901] kvm_put_kvm+0x73f/0x1060 [ 33.814700] ? kvm_write_guest_cached+0x40/0x40 [ 33.819366] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.823868] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.828374] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.832953] ? kasan_check_write+0x14/0x20 [ 33.837180] ? do_raw_spin_lock+0xc1/0x200 [ 33.841429] ? kvm_irqfd_release+0xdd/0x120 [ 33.845742] ? kvm_irqfd_release+0xdd/0x120 [ 33.850058] ? kvm_put_kvm+0x1060/0x1060 [ 33.854111] kvm_vm_release+0x42/0x50 [ 33.857905] __fput+0x38a/0xa40 [ 33.861180] ? __alloc_file+0x400/0x400 [ 33.865154] ? check_same_owner+0x340/0x340 [ 33.869472] ? kasan_check_write+0x14/0x20 [ 33.873702] ? do_raw_spin_lock+0xc1/0x200 [ 33.877929] ____fput+0x15/0x20 [ 33.881203] task_work_run+0x1e8/0x2a0 [ 33.885090] ? task_work_cancel+0x240/0x240 [ 33.889410] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.894944] ? switch_task_namespaces+0xa2/0xd0 [ 33.899610] do_exit+0x1ae4/0x26e0 [ 33.903146] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.907828] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.912062] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.917072] ? kfree+0x1d7/0x210 [ 33.920435] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.924689] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.930396] ? is_bpf_text_address+0xd7/0x170 [ 33.934886] ? kernel_text_address+0x79/0xf0 [ 33.939293] ? __kernel_text_address+0xd/0x40 [ 33.943780] ? unwind_get_return_address+0x61/0xa0 [ 33.948706] ? __save_stack_trace+0x8d/0xf0 [ 33.953044] ? save_stack+0xa9/0xd0 [ 33.956664] ? save_stack+0x43/0xd0 [ 33.960286] ? __kasan_slab_free+0x11a/0x170 [ 33.964701] ? kasan_slab_free+0xe/0x10 [ 33.968668] ? putname+0xf2/0x130 [ 33.972115] ? __x64_sys_openat+0x9d/0x100 [ 33.976357] ? do_syscall_64+0x1b9/0x820 [ 33.980447] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.985806] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.990221] ? kasan_check_read+0x11/0x20 [ 33.994369] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.998767] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.003173] ? initcall_blacklisted+0x9a/0x1e0 [ 34.007752] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.012859] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.018569] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.024099] ? do_vfs_ioctl+0x201/0x1720 [ 34.028155] ? rcu_is_watching+0x8c/0x150 [ 34.032297] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.036615] ? ioctl_preallocate+0x300/0x300 [ 34.041017] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.046548] ? __fget_light+0x2f7/0x440 [ 34.050551] ? fget_raw+0x20/0x20 [ 34.054005] ? putname+0xf2/0x130 [ 34.057457] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.062466] ? kmem_cache_free+0x246/0x280 [ 34.066694] ? putname+0xf7/0x130 [ 34.070148] do_group_exit+0x177/0x440 [ 34.074027] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.078345] ? __ia32_sys_exit+0x50/0x50 [ 34.082409] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.087513] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.093060] ? ksys_ioctl+0x81/0xd0 [ 34.096683] __x64_sys_exit_group+0x3e/0x50 [ 34.101000] do_syscall_64+0x1b9/0x820 [ 34.104885] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.110299] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.115221] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.120067] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.125089] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.130100] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.135128] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.140002] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.145212] RIP: 0033:0x43f028 [ 34.148420] Code: Bad RIP value. [ 34.151771] RSP: 002b:00007ffca5557f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.159473] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 34.166730] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.174003] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.181292] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.188550] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 34.195813] [ 34.197430] Allocated by task 4621: [ 34.201052] save_stack+0x43/0xd0 [ 34.204498] kasan_kmalloc+0xc4/0xe0 [ 34.208220] kasan_slab_alloc+0x12/0x20 [ 34.212206] kmem_cache_alloc+0x12e/0x710 [ 34.216349] vmx_create_vcpu+0xcf/0x2830 [ 34.220401] kvm_arch_vcpu_create+0xe5/0x220 [ 34.224805] kvm_vm_ioctl+0x488/0x1d80 [ 34.228690] do_vfs_ioctl+0x1de/0x1720 [ 34.232582] ksys_ioctl+0xa9/0xd0 [ 34.236042] __x64_sys_ioctl+0x73/0xb0 [ 34.239922] do_syscall_64+0x1b9/0x820 [ 34.243807] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.249031] [ 34.250648] Freed by task 4621: [ 34.253960] save_stack+0x43/0xd0 [ 34.257402] __kasan_slab_free+0x11a/0x170 [ 34.261858] kasan_slab_free+0xe/0x10 [ 34.265664] kmem_cache_free+0x86/0x280 [ 34.269628] vmx_free_vcpu+0x26b/0x300 [ 34.273522] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.277942] kvm_put_kvm+0x73f/0x1060 [ 34.281736] kvm_vm_release+0x42/0x50 [ 34.285542] __fput+0x38a/0xa40 [ 34.288815] ____fput+0x15/0x20 [ 34.292090] task_work_run+0x1e8/0x2a0 [ 34.295988] do_exit+0x1ae4/0x26e0 [ 34.299532] do_group_exit+0x177/0x440 [ 34.303416] __x64_sys_exit_group+0x3e/0x50 [ 34.307728] do_syscall_64+0x1b9/0x820 [ 34.311626] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.316799] [ 34.318423] The buggy address belongs to the object at ffff8801bdd28040 [ 34.318423] which belongs to the cache kvm_vcpu of size 23872 [ 34.331003] The buggy address is located 24 bytes inside of [ 34.331003] 23872-byte region [ffff8801bdd28040, ffff8801bdd2dd80) [ 34.342966] The buggy address belongs to the page: [ 34.347888] page:ffffea0006f74a00 count:1 mapcount:0 mapping:ffff8801d513db40 index:0x0 compound_mapcount: 0 [ 34.357851] flags: 0x2fffc0000008100(slab|head) [ 34.362522] raw: 02fffc0000008100 ffff8801d513cc48 ffff8801d513cc48 ffff8801d513db40 [ 34.370399] raw: 0000000000000000 ffff8801bdd28040 0000000100000001 0000000000000000 [ 34.378263] page dumped because: kasan: bad access detected [ 34.383957] [ 34.385585] Memory state around the buggy address: [ 34.390515] ffff8801bdd27f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.397864] ffff8801bdd27f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.405211] >ffff8801bdd28000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.412566] ^ [ 34.418790] ffff8801bdd28080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.426165] ffff8801bdd28100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.433507] ================================================================== [ 34.440845] Kernel panic - not syncing: panic_on_warn set ... [ 34.440845] [ 34.448184] CPU: 0 PID: 4621 Comm: syz-executor808 Tainted: G B 4.19.0-rc2+ #224 [ 34.456991] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.466323] Call Trace: [ 34.468895] dump_stack+0x1c9/0x2b4 [ 34.472502] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.477674] ? lock_downgrade+0x8f0/0x8f0 [ 34.481798] ? __schedule+0xf54/0x1df0 [ 34.485662] panic+0x238/0x4e7 [ 34.488830] ? add_taint.cold.5+0x16/0x16 [ 34.492959] ? print_shadow_for_address+0xba/0x116 [ 34.497865] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.502253] ? trace_hardirqs_off+0x77/0x2b0 [ 34.506642] ? __schedule+0xf54/0x1df0 [ 34.510507] kasan_end_report+0x47/0x4f [ 34.514460] kasan_report.cold.7+0x76/0x30d [ 34.518763] __asan_report_load8_noabort+0x14/0x20 [ 34.523668] __schedule+0xf54/0x1df0 [ 34.527456] ? __sched_text_start+0x8/0x8 [ 34.531614] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.536714] ? __call_srcu+0x7e7/0x1040 [ 34.540694] ? check_same_owner+0x340/0x340 [ 34.545044] ? mark_held_locks+0x160/0x160 [ 34.549288] ? find_held_lock+0x36/0x1c0 [ 34.553345] preempt_schedule_common+0x22/0x60 [ 34.557924] _cond_resched+0x1d/0x30 [ 34.561646] wait_for_completion+0xa5/0x8d0 [ 34.565982] ? wait_for_completion_interruptible+0x950/0x950 [ 34.571789] ? __lockdep_init_map+0x105/0x590 [ 34.576294] ? __init_waitqueue_head+0x9e/0x150 [ 34.580955] ? init_wait_entry+0x1c0/0x1c0 [ 34.585187] __synchronize_srcu+0x189/0x240 [ 34.589509] ? call_srcu+0x10/0x10 [ 34.593047] ? rcu_unexpedite_gp+0x20/0x20 [ 34.597283] synchronize_srcu+0x335/0x56f [ 34.601423] ? lock_downgrade+0x8f0/0x8f0 [ 34.605569] ? synchronize_srcu_expedited+0x20/0x20 [ 34.610585] ? kasan_check_read+0x11/0x20 [ 34.614730] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.619308] ? kasan_check_write+0x14/0x20 [ 34.623568] ? do_raw_spin_lock+0xc1/0x200 [ 34.627814] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.633531] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.638975] ? kvfree+0x61/0x70 [ 34.642256] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.647272] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.651326] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.655732] ? kvm_arch_sync_events+0x30/0x30 [ 34.660317] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.665850] ? mmu_notifier_unregister+0x474/0x600 [ 34.670775] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.675175] ? kfree+0x111/0x210 [ 34.678537] ? __mmu_notifier_register+0x30/0x30 [ 34.683292] ? __free_pages+0x10a/0x190 [ 34.687314] ? free_unref_page+0x930/0x930 [ 34.691559] kvm_put_kvm+0x73f/0x1060 [ 34.695363] ? kvm_write_guest_cached+0x40/0x40 [ 34.700030] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.704517] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.709002] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.713579] ? kasan_check_write+0x14/0x20 [ 34.717823] ? do_raw_spin_lock+0xc1/0x200 [ 34.722083] ? kvm_irqfd_release+0xdd/0x120 [ 34.726406] ? kvm_irqfd_release+0xdd/0x120 [ 34.730725] ? kvm_put_kvm+0x1060/0x1060 [ 34.734784] kvm_vm_release+0x42/0x50 [ 34.738599] __fput+0x38a/0xa40 [ 34.741873] ? __alloc_file+0x400/0x400 [ 34.745848] ? check_same_owner+0x340/0x340 [ 34.750180] ? kasan_check_write+0x14/0x20 [ 34.754420] ? do_raw_spin_lock+0xc1/0x200 [ 34.758662] ____fput+0x15/0x20 [ 34.761935] task_work_run+0x1e8/0x2a0 [ 34.765816] ? task_work_cancel+0x240/0x240 [ 34.770138] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.775671] ? switch_task_namespaces+0xa2/0xd0 [ 34.780334] do_exit+0x1ae4/0x26e0 [ 34.783874] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.788541] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.792773] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.797784] ? kfree+0x1d7/0x210 [ 34.801146] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.805381] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.811087] ? is_bpf_text_address+0xd7/0x170 [ 34.815576] ? kernel_text_address+0x79/0xf0 [ 34.819979] ? __kernel_text_address+0xd/0x40 [ 34.824470] ? unwind_get_return_address+0x61/0xa0 [ 34.829406] ? __save_stack_trace+0x8d/0xf0 [ 34.833727] ? save_stack+0xa9/0xd0 [ 34.837346] ? save_stack+0x43/0xd0 [ 34.840962] ? __kasan_slab_free+0x11a/0x170 [ 34.845365] ? kasan_slab_free+0xe/0x10 [ 34.849344] ? putname+0xf2/0x130 [ 34.852790] ? __x64_sys_openat+0x9d/0x100 [ 34.857034] ? do_syscall_64+0x1b9/0x820 [ 34.861087] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.866449] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.870880] ? kasan_check_read+0x11/0x20 [ 34.875022] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.879430] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.883837] ? initcall_blacklisted+0x9a/0x1e0 [ 34.888419] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.893529] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.899240] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.904772] ? do_vfs_ioctl+0x201/0x1720 [ 34.908825] ? rcu_is_watching+0x8c/0x150 [ 34.912965] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.917284] ? ioctl_preallocate+0x300/0x300 [ 34.921690] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.927224] ? __fget_light+0x2f7/0x440 [ 34.931204] ? fget_raw+0x20/0x20 [ 34.934656] ? putname+0xf2/0x130 [ 34.938103] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.943114] ? kmem_cache_free+0x246/0x280 [ 34.947343] ? putname+0xf7/0x130 [ 34.950793] do_group_exit+0x177/0x440 [ 34.954672] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.958990] ? __ia32_sys_exit+0x50/0x50 [ 34.963041] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.968136] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.973693] ? ksys_ioctl+0x81/0xd0 [ 34.977316] __x64_sys_exit_group+0x3e/0x50 [ 34.981635] do_syscall_64+0x1b9/0x820 [ 34.985527] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.990888] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.995830] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.000682] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.005691] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.010702] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.015715] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.020553] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.025744] RIP: 0033:0x43f028 [ 35.028933] Code: Bad RIP value. [ 35.032292] RSP: 002b:00007ffca5557f88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.040024] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 35.047286] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.054566] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.061827] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.069085] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 35.076352] [ 35.076357] ====================================================== [ 35.076363] WARNING: possible circular locking dependency detected [ 35.076367] 4.19.0-rc2+ #224 Not tainted [ 35.076372] ------------------------------------------------------ [ 35.076377] syz-executor808/4621 is trying to acquire lock: [ 35.076380] 00000000d4870c1f ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.076394] [ 35.076398] but task is already holding lock: [ 35.076402] 000000001e981403 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.076416] [ 35.076420] which lock already depends on the new lock. [ 35.076423] [ 35.076425] [ 35.076430] the existing dependency chain (in reverse order) is: [ 35.076432] [ 35.076434] -> #3 (report_lock){....}: [ 35.076449] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.076453] kasan_report+0x8e/0x110 [ 35.076457] __asan_report_load8_noabort+0x14/0x20 [ 35.076461] __schedule+0xf54/0x1df0 [ 35.076465] preempt_schedule_common+0x22/0x60 [ 35.076469] _cond_resched+0x1d/0x30 [ 35.076473] wait_for_completion+0xa5/0x8d0 [ 35.076477] __synchronize_srcu+0x189/0x240 [ 35.076481] synchronize_srcu+0x335/0x56f [ 35.076486] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.076490] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.076500] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.076504] kvm_put_kvm+0x73f/0x1060 [ 35.076508] kvm_vm_release+0x42/0x50 [ 35.076511] __fput+0x38a/0xa40 [ 35.076515] ____fput+0x15/0x20 [ 35.076518] task_work_run+0x1e8/0x2a0 [ 35.076522] do_exit+0x1ae4/0x26e0 [ 35.076526] do_group_exit+0x177/0x440 [ 35.076530] __x64_sys_exit_group+0x3e/0x50 [ 35.076534] do_syscall_64+0x1b9/0x820 [ 35.076539] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.076541] [ 35.076543] -> #2 (&rq->lock){-.-.}: [ 35.076557] _raw_spin_lock+0x2a/0x40 [ 35.076561] task_fork_fair+0x93/0x680 [ 35.076564] sched_fork+0x44b/0xbd0 [ 35.076568] copy_process+0x235e/0x7af0 [ 35.076572] _do_fork+0x1ca/0x1170 [ 35.076576] kernel_thread+0x34/0x40 [ 35.076579] rest_init+0x22/0xe4 [ 35.076583] start_kernel+0x913/0x94e [ 35.076587] x86_64_start_reservations+0x29/0x2b [ 35.076592] x86_64_start_kernel+0x76/0x79 [ 35.076596] secondary_startup_64+0xa4/0xb0 [ 35.076598] [ 35.076600] -> #1 (&p->pi_lock){-.-.}: [ 35.076614] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.076618] try_to_wake_up+0xd2/0x1250 [ 35.076622] wake_up_process+0x10/0x20 [ 35.076626] __up.isra.1+0x1c0/0x2a0 [ 35.076629] up+0x13c/0x1c0 [ 35.076633] __up_console_sem+0xbe/0x1b0 [ 35.076637] console_unlock+0x506/0x10d0 [ 35.076641] vprintk_emit+0x33a/0x910 [ 35.076645] vprintk_default+0x28/0x30 [ 35.076648] vprintk_func+0x7a/0x117 [ 35.076652] printk+0xa7/0xcf [ 35.076656] regdb_fw_cb.cold.35+0x18/0x89 [ 35.076660] request_firmware_work_func+0x15c/0x2e0 [ 35.076664] process_one_work+0xc73/0x1aa0 [ 35.076668] worker_thread+0x189/0x13c0 [ 35.076672] kthread+0x35a/0x420 [ 35.076676] ret_from_fork+0x3a/0x50 [ 35.076678] [ 35.076680] -> #0 ((console_sem).lock){-...}: [ 35.076694] lock_acquire+0x1e4/0x4f0 [ 35.076698] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.076702] down_trylock+0x13/0x70 [ 35.076707] __down_trylock_console_sem+0xae/0x200 [ 35.076710] console_trylock+0x15/0xa0 [ 35.076714] vprintk_emit+0x31f/0x910 [ 35.076718] vprintk_default+0x28/0x30 [ 35.076722] vprintk_func+0x7a/0x117 [ 35.076725] printk+0xa7/0xcf [ 35.076729] kasan_report+0x9e/0x110 [ 35.076733] __asan_report_load8_noabort+0x14/0x20 [ 35.076737] __schedule+0xf54/0x1df0 [ 35.076741] preempt_schedule_common+0x22/0x60 [ 35.076745] _cond_resched+0x1d/0x30 [ 35.076749] wait_for_completion+0xa5/0x8d0 [ 35.076753] __synchronize_srcu+0x189/0x240 [ 35.076757] synchronize_srcu+0x335/0x56f [ 35.076762] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.076766] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.076770] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.076774] kvm_put_kvm+0x73f/0x1060 [ 35.076778] kvm_vm_release+0x42/0x50 [ 35.076781] __fput+0x38a/0xa40 [ 35.076785] ____fput+0x15/0x20 [ 35.076789] task_work_run+0x1e8/0x2a0 [ 35.076792] do_exit+0x1ae4/0x26e0 [ 35.076796] do_group_exit+0x177/0x440 [ 35.076800] __x64_sys_exit_group+0x3e/0x50 [ 35.076804] do_syscall_64+0x1b9/0x820 [ 35.076809] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.076811] [ 35.076816] other info that might help us debug this: [ 35.076818] [ 35.076821] Chain exists of: [ 35.076823] (console_sem).lock --> &rq->lock --> report_lock [ 35.076841] [ 35.076845] Possible unsafe locking scenario: [ 35.076847] [ 35.076851] CPU0 CPU1 [ 35.076855] ---- ---- [ 35.076857] lock(report_lock); [ 35.076866] lock(&rq->lock); [ 35.076875] lock(report_lock); [ 35.076883] lock((console_sem).lock); [ 35.076891] [ 35.076894] *** DEADLOCK *** [ 35.076896] [ 35.076901] 2 locks held by syz-executor808/4621: [ 35.076903] #0: 00000000662cd68f (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.076919] #1: 000000001e981403 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.076936] [ 35.076939] stack backtrace: [ 35.076945] CPU: 0 PID: 4621 Comm: syz-executor808 Not tainted 4.19.0-rc2+ #224 [ 35.076952] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.076955] Call Trace: [ 35.076959] dump_stack+0x1c9/0x2b4 [ 35.076963] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.076967] ? vprintk_func+0x100/0x117 [ 35.076972] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.076975] ? save_trace+0xe0/0x290 [ 35.076979] __lock_acquire+0x3449/0x5020 [ 35.076983] ? mark_held_locks+0x160/0x160 [ 35.076987] ? mark_held_locks+0x160/0x160 [ 35.076992] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.076995] ? is_bpf_text_address+0xd7/0x170 [ 35.077009] ? kernel_text_address+0x79/0xf0 [ 35.077013] ? __kernel_text_address+0xd/0x40 [ 35.077017] ? __save_stack_trace+0x8d/0xf0 [ 35.077021] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.077025] ? save_trace+0x290/0x290 [ 35.077029] ? save_stack_trace+0x1a/0x20 [ 35.077032] ? save_trace+0xe0/0x290 [ 35.077036] ? graph_lock+0x170/0x170 [ 35.077041] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.077045] lock_acquire+0x1e4/0x4f0 [ 35.077048] ? down_trylock+0x13/0x70 [ 35.077052] ? lock_release+0x9f0/0x9f0 [ 35.077056] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.077060] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.077065] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.077068] ? log_store+0x34f/0x4c0 [ 35.077072] ? vprintk_emit+0x31f/0x910 [ 35.077076] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.077080] ? down_trylock+0x13/0x70 [ 35.077083] down_trylock+0x13/0x70 [ 35.077088] __down_trylock_console_sem+0xae/0x200 [ 35.077092] console_trylock+0x15/0xa0 [ 35.077095] vprintk_emit+0x31f/0x910 [ 35.077099] ? wake_up_klogd+0x110/0x110 [ 35.077103] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.077107] ? kasan_check_read+0x11/0x20 [ 35.077111] ? rcu_is_watching+0x8c/0x150 [ 35.077115] ? rcu_pm_notify+0xc0/0xc0 [ 35.077119] ? lock_acquire+0x1e4/0x4f0 [ 35.077123] ? kasan_report+0x8e/0x110 [ 35.077127] ? __schedule+0xf54/0x1df0 [ 35.077130] vprintk_default+0x28/0x30 [ 35.077134] vprintk_func+0x7a/0x117 [ 35.077137] printk+0xa7/0xcf [ 35.077142] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.077146] ? kasan_check_write+0x14/0x20 [ 35.077150] ? do_raw_spin_lock+0xc1/0x200 [ 35.077154] ? do_raw_spin_lock+0xc1/0x200 [ 35.077157] kasan_report+0x9e/0x110 [ 35.077162] __asan_report_load8_noabort+0x14/0x20 [ 35.077166] __schedule+0xf54/0x1df0 [ 35.077170] ? __sched_text_start+0x8/0x8 [ 35.077174] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.077178] ? __call_srcu+0x7e7/0x1040 [ 35.077182] ? check_same_owner+0x340/0x340 [ 35.077186] ? mark_held_locks+0x160/0x160 [ 35.077190] ? find_held_lock+0x36/0x1c0 [ 35.077194] preempt_schedule_common+0x22/0x60 [ 35.077198] _cond_resched+0x1d/0x30 [ 35.077202] wait_for_completion+0xa5/0x8d0 [ 35.077207] ? wait_for_completion_interruptible+0x950/0x950 [ 35.077211] ? __lockdep_init_map+0x105/0x590 [ 35.077215] ? __init_waitqueue_head+0x9e/0x150 [ 35.077219] ? init_wait_entry+0x1c0/0x1c0 [ 35.077224] __synchronize_srcu+0x189/0x240 [ 35.077227] ? call_srcu+0x10/0x10 [ 35.077239] ? rcu_unexpedite_gp+0x20/0x20 [ 35.077243] synchronize_srcu+0x335/0x56f [ 35.077247] ? lock_downgrade+0x8f0/0x8f0 [ 35.077252] ? synchronize_srcu_expedited+0x20/0x20 [ 35.077256] ? kasan_check_read+0x11/0x20 [ 35.077260] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.077264] ? kasan_check_write+0x14/0x20 [ 35.077268] ? do_raw_spin_lock+0xc1/0x200 [ 35.077273] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.077278] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.077281] ? kvfree+0x61/0x70 [ 35.077286] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.077290] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.077294] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.077298] ? kvm_arch_sync_events+0x30/0x30 [ 35.077303] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.077307] ? mmu_notifier_unregister+0x474/0x600 [ 35.077311] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.077315] ? kfree+0x111/0x210 [ 35.077319] ? __mmu_notifier_register+0x30/0x30 [ 35.077323] ? __free_pages+0x10a/0x190 [ 35.077327] ? free_unref_page+0x930/0x930 [ 35.077331] kvm_put_kvm+0x73f/0x1060 [ 35.077335] ? kvm_write_guest_cached+0x40/0x40 [ 35.077339] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.077344] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.077348] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.077352] ? kasan_check_write+0x14/0x20 [ 35.077356] ? do_raw_spin_lock+0xc1/0x200 [ 35.077360] ? kvm_irqfd_release+0xdd/0x120 [ 35.077364] ? kvm_irqfd_release+0xdd/0x120 [ 35.077368] ? kvm_put_kvm+0x1060/0x1060 [ 35.077372] kvm_vm_release+0x42/0x50 [ 35.077375] __fput+0x38a/0xa40 [ 35.077379] ? __alloc_file+0x400/0x400 [ 35.077383] ? check_same_owner+0x340/0x340 [ 35.077387] ? kasan_check_write+0x14/0x20 [ 35.077391] ? do_raw_spin_lock+0xc1/0x200 [ 35.077395] ____fput+0x15/0x20 [ 35.077398] task_work_run+0x1e8/0x2a0 [ 35.077403] ? task_work_cancel+0x240/0x240 [ 35.077407] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.077412] ? switch_task_namespaces+0xa2/0xd0 [ 35.077415] do_exit+0x1ae4/0x26e0 [ 35.077419] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.077424] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.077428] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.077432] ? kfree+0x1d7/0x210 [ 35.077436] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.077440] ? kvm_uevent_notify_change.part.32+0x [ 35.077447] Lost 57 message(s)! [ 36.183286] Shutting down cpus with NMI [ 37.240963] Dumping ftrace buffer: [ 37.244491] (ftrace buffer empty) [ 37.248183] Kernel Offset: disabled [ 37.251787] Rebooting in 86400 seconds..