[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.723806] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.172211] random: sshd: uninitialized urandom read (32 bytes read) [ 26.546863] random: sshd: uninitialized urandom read (32 bytes read) [ 27.132725] random: sshd: uninitialized urandom read (32 bytes read) [ 27.310166] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.48' (ECDSA) to the list of known hosts. [ 32.877737] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.981344] 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.006360] ================================================================== [ 33.016320] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.022553] Read of size 8 at addr ffff8801c26e0058 by task syz-executor303/4648 [ 33.030078] [ 33.031710] CPU: 1 PID: 4648 Comm: syz-executor303 Not tainted 4.19.0-rc2+ #224 [ 33.039148] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.048499] Call Trace: [ 33.051097] dump_stack+0x1c9/0x2b4 [ 33.054726] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.059918] ? printk+0xa7/0xcf [ 33.063199] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.067959] ? __schedule+0xf54/0x1df0 [ 33.071852] print_address_description+0x6c/0x20b [ 33.076694] ? __schedule+0xf54/0x1df0 [ 33.080578] kasan_report.cold.7+0x242/0x30d [ 33.084986] __asan_report_load8_noabort+0x14/0x20 [ 33.089922] __schedule+0xf54/0x1df0 [ 33.093644] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.098754] ? __sched_text_start+0x8/0x8 [ 33.102907] ? __call_srcu+0x7e7/0x1040 [ 33.106899] ? check_same_owner+0x340/0x340 [ 33.111223] ? mark_held_locks+0x160/0x160 [ 33.115464] preempt_schedule_common+0x22/0x60 [ 33.120065] _cond_resched+0x1d/0x30 [ 33.123796] wait_for_completion+0xa5/0x8d0 [ 33.128132] ? wait_for_completion_interruptible+0x950/0x950 [ 33.133937] ? __lockdep_init_map+0x105/0x590 [ 33.138457] ? __init_waitqueue_head+0x9e/0x150 [ 33.143136] ? init_wait_entry+0x1c0/0x1c0 [ 33.147378] __synchronize_srcu+0x189/0x240 [ 33.151707] ? call_srcu+0x10/0x10 [ 33.155258] ? rcu_unexpedite_gp+0x20/0x20 [ 33.159506] synchronize_srcu+0x335/0x56f [ 33.163668] ? lock_downgrade+0x8f0/0x8f0 [ 33.167829] ? synchronize_srcu_expedited+0x20/0x20 [ 33.172865] ? kasan_check_read+0x11/0x20 [ 33.177039] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.181645] ? kasan_check_write+0x14/0x20 [ 33.185886] ? do_raw_spin_lock+0xc1/0x200 [ 33.190129] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.195842] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.201297] ? kvfree+0x61/0x70 [ 33.204580] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.209603] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.213665] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.218076] ? kvm_arch_sync_events+0x30/0x30 [ 33.222578] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.228117] ? mmu_notifier_unregister+0x474/0x600 [ 33.233046] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.237462] ? kfree+0x111/0x210 [ 33.240832] ? __mmu_notifier_register+0x30/0x30 [ 33.245590] ? __free_pages+0x10a/0x190 [ 33.249564] ? free_unref_page+0x930/0x930 [ 33.253808] kvm_put_kvm+0x73f/0x1060 [ 33.257624] ? kvm_write_guest_cached+0x40/0x40 [ 33.262302] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.266794] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.271296] ? kasan_check_write+0x14/0x20 [ 33.275533] ? do_raw_spin_lock+0xc1/0x200 [ 33.279768] ? kvm_irqfd_release+0xdd/0x120 [ 33.284093] ? kvm_irqfd_release+0xdd/0x120 [ 33.288433] ? kvm_put_kvm+0x1060/0x1060 [ 33.292504] kvm_vm_release+0x42/0x50 [ 33.296314] __fput+0x38a/0xa40 [ 33.299595] ? __alloc_file+0x400/0x400 [ 33.303577] ? check_same_owner+0x340/0x340 [ 33.307896] ? kasan_check_write+0x14/0x20 [ 33.312133] ? do_raw_spin_lock+0xc1/0x200 [ 33.316366] ____fput+0x15/0x20 [ 33.319647] task_work_run+0x1e8/0x2a0 [ 33.323533] ? task_work_cancel+0x240/0x240 [ 33.327861] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.333397] ? switch_task_namespaces+0xa2/0xd0 [ 33.338076] do_exit+0x1ae4/0x26e0 [ 33.341614] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.346195] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.350862] ? profiling_store+0xd0/0xd0 [ 33.354921] ? kasan_check_write+0x14/0x20 [ 33.359152] ? do_raw_spin_lock+0xc1/0x200 [ 33.363385] ? do_coredump+0x477/0x3fff [ 33.367361] ? kasan_check_write+0x14/0x20 [ 33.371596] ? do_raw_spin_lock+0xc1/0x200 [ 33.375830] ? _raw_spin_unlock_irqrestore+0x10/0xc0 [ 33.380936] ? dump_align+0xa0/0xa0 [ 33.384568] ? save_stack+0xa9/0xd0 [ 33.388198] ? save_stack+0x43/0xd0 [ 33.391825] ? __kasan_slab_free+0x11a/0x170 [ 33.396229] ? kasan_slab_free+0xe/0x10 [ 33.400199] ? kmem_cache_free+0x86/0x280 [ 33.404344] ? __sigqueue_free.part.29+0x7d/0xa0 [ 33.409098] ? __dequeue_signal+0x530/0x7d0 [ 33.413417] ? dequeue_signal+0xbc/0x620 [ 33.417485] ? get_signal+0x3f0/0x18e0 [ 33.421368] ? do_signal+0x9c/0x21c0 [ 33.425085] ? exit_to_usermode_loop+0x2e5/0x380 [ 33.429837] ? prepare_exit_to_usermode+0x342/0x3b0 [ 33.434857] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.439262] ? kasan_check_read+0x11/0x20 [ 33.443413] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.447828] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.452237] ? kasan_check_write+0x14/0x20 [ 33.456467] ? graph_lock+0x170/0x170 [ 33.460265] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.464671] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.469775] ? __lock_is_held+0xb5/0x140 [ 33.473838] ? __sigqueue_free.part.29+0x7d/0xa0 [ 33.478590] ? graph_lock+0x170/0x170 [ 33.482399] ? __sigqueue_free.part.29+0x7d/0xa0 [ 33.487175] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.492205] ? kmem_cache_free+0x246/0x280 [ 33.496466] ? __sigqueue_free.part.29+0x7d/0xa0 [ 33.501239] ? find_held_lock+0x36/0x1c0 [ 33.505312] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.510860] ? proc_coredump_connector+0x4d0/0x610 [ 33.515801] ? proc_comm_connector+0x500/0x500 [ 33.520397] do_group_exit+0x177/0x440 [ 33.524309] ? __ia32_sys_exit+0x50/0x50 [ 33.528385] get_signal+0x851/0x18e0 [ 33.532108] ? ptrace_notify+0x130/0x130 [ 33.536169] ? force_sig_info+0x281/0x310 [ 33.540370] ? force_sig_info_fault.constprop.32+0x2b7/0x4a0 [ 33.546657] ? is_prefetch.isra.30+0x530/0x530 [ 33.551240] do_signal+0x9c/0x21c0 [ 33.554782] ? setup_sigcontext+0x7d0/0x7d0 [ 33.559105] ? bad_area+0x69/0x80 [ 33.562558] ? __do_page_fault+0x449/0xe50 [ 33.566792] ? exit_to_usermode_loop+0x8c/0x380 [ 33.571465] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.575872] exit_to_usermode_loop+0x2e5/0x380 [ 33.580454] ? syscall_slow_exit_work+0x490/0x490 [ 33.585293] ? trace_hardirqs_off_caller+0xbb/0x2b0 [ 33.590305] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.595231] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.600071] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.604915] prepare_exit_to_usermode+0x342/0x3b0 [ 33.609756] ? perf_trace_sys_enter+0xb10/0xb10 [ 33.614429] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.619275] ? page_fault+0x8/0x30 [ 33.622813] retint_user+0x8/0x18 [ 33.626262] RIP: 0033:0x4009c1 [ 33.629461] Code: Bad RIP value. [ 33.632820] RSP: 002b:00007fff31de3fe8 EFLAGS: 00010216 [ 33.638181] RAX: 0000000000000000 RBX: 00000000004002c8 RCX: 0000000000440489 [ 33.645449] RDX: 0000000000000010 RSI: 0000000000000000 RDI: 00007fff31de3ff0 [ 33.652715] RBP: 00000000006ca018 R08: 000000000000000f R09: 00000000004002c8 [ 33.659980] R10: 0000000020000240 R11: 0000000000000286 R12: 0000000000401d10 [ 33.667250] R13: 0000000000401da0 R14: 0000000000000000 R15: 0000000000000000 [ 33.674520] [ 33.676142] Allocated by task 4648: [ 33.679773] save_stack+0x43/0xd0 [ 33.683222] kasan_kmalloc+0xc4/0xe0 [ 33.686931] kasan_slab_alloc+0x12/0x20 [ 33.690899] kmem_cache_alloc+0x12e/0x710 [ 33.695041] vmx_create_vcpu+0xcf/0x2830 [ 33.699096] kvm_arch_vcpu_create+0xe5/0x220 [ 33.703505] kvm_vm_ioctl+0x488/0x1d80 [ 33.707389] do_vfs_ioctl+0x1de/0x1720 [ 33.711281] ksys_ioctl+0xa9/0xd0 [ 33.714730] __x64_sys_ioctl+0x73/0xb0 [ 33.718615] do_syscall_64+0x1b9/0x820 [ 33.722501] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.727681] [ 33.729298] Freed by task 4648: [ 33.732596] save_stack+0x43/0xd0 [ 33.736045] __kasan_slab_free+0x11a/0x170 [ 33.740277] kasan_slab_free+0xe/0x10 [ 33.744074] kmem_cache_free+0x86/0x280 [ 33.748044] vmx_free_vcpu+0x26b/0x300 [ 33.751927] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.756335] kvm_put_kvm+0x73f/0x1060 [ 33.760136] kvm_vm_release+0x42/0x50 [ 33.763935] __fput+0x38a/0xa40 [ 33.767208] ____fput+0x15/0x20 [ 33.770486] task_work_run+0x1e8/0x2a0 [ 33.774368] do_exit+0x1ae4/0x26e0 [ 33.777905] do_group_exit+0x177/0x440 [ 33.781789] get_signal+0x851/0x18e0 [ 33.785501] do_signal+0x9c/0x21c0 [ 33.789043] exit_to_usermode_loop+0x2e5/0x380 [ 33.793625] prepare_exit_to_usermode+0x342/0x3b0 [ 33.798465] retint_user+0x8/0x18 [ 33.801907] [ 33.803533] The buggy address belongs to the object at ffff8801c26e0040 [ 33.803533] which belongs to the cache kvm_vcpu of size 23872 [ 33.816108] The buggy address is located 24 bytes inside of [ 33.816108] 23872-byte region [ffff8801c26e0040, ffff8801c26e5d80) [ 33.828064] The buggy address belongs to the page: [ 33.832995] page:ffffea000709b800 count:1 mapcount:0 mapping:ffff8801d6e98300 index:0x0 compound_mapcount: 0 [ 33.842963] flags: 0x2fffc0000008100(slab|head) [ 33.847636] raw: 02fffc0000008100 ffff8801d5303a48 ffff8801d5303a48 ffff8801d6e98300 [ 33.855519] raw: 0000000000000000 ffff8801c26e0040 0000000100000001 0000000000000000 [ 33.863386] page dumped because: kasan: bad access detected [ 33.869080] [ 33.870698] Memory state around the buggy address: [ 33.875623] ffff8801c26dff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.882974] ffff8801c26dff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.890329] >ffff8801c26e0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.897678] ^ [ 33.903903] ffff8801c26e0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.911255] ffff8801c26e0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.918705] ================================================================== [ 33.926054] Kernel panic - not syncing: panic_on_warn set ... [ 33.926054] [ 33.933453] CPU: 1 PID: 4648 Comm: syz-executor303 Tainted: G B 4.19.0-rc2+ #224 [ 33.942288] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.951637] Call Trace: [ 33.954235] dump_stack+0x1c9/0x2b4 [ 33.957864] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.963052] ? lock_downgrade+0x8f0/0x8f0 [ 33.967197] ? __schedule+0xf54/0x1df0 [ 33.971085] panic+0x238/0x4e7 [ 33.974271] ? add_taint.cold.5+0x16/0x16 [ 33.978431] ? print_shadow_for_address+0xba/0x116 [ 33.983359] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.987763] ? trace_hardirqs_off+0x77/0x2b0 [ 33.992167] ? __schedule+0xf54/0x1df0 [ 33.996055] kasan_end_report+0x47/0x4f [ 34.000027] kasan_report.cold.7+0x76/0x30d [ 34.004351] __asan_report_load8_noabort+0x14/0x20 [ 34.009281] __schedule+0xf54/0x1df0 [ 34.012998] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.018100] ? __sched_text_start+0x8/0x8 [ 34.022248] ? __call_srcu+0x7e7/0x1040 [ 34.026227] ? check_same_owner+0x340/0x340 [ 34.030547] ? mark_held_locks+0x160/0x160 [ 34.034811] preempt_schedule_common+0x22/0x60 [ 34.039392] _cond_resched+0x1d/0x30 [ 34.043112] wait_for_completion+0xa5/0x8d0 [ 34.047443] ? wait_for_completion_interruptible+0x950/0x950 [ 34.053240] ? __lockdep_init_map+0x105/0x590 [ 34.057735] ? __init_waitqueue_head+0x9e/0x150 [ 34.062398] ? init_wait_entry+0x1c0/0x1c0 [ 34.066646] __synchronize_srcu+0x189/0x240 [ 34.070960] ? call_srcu+0x10/0x10 [ 34.074544] ? rcu_unexpedite_gp+0x20/0x20 [ 34.078794] synchronize_srcu+0x335/0x56f [ 34.082948] ? lock_downgrade+0x8f0/0x8f0 [ 34.087092] ? synchronize_srcu_expedited+0x20/0x20 [ 34.092114] ? kasan_check_read+0x11/0x20 [ 34.096260] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.100840] ? kasan_check_write+0x14/0x20 [ 34.105085] ? do_raw_spin_lock+0xc1/0x200 [ 34.109322] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.115038] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.120492] ? kvfree+0x61/0x70 [ 34.123778] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.128801] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.132863] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.137270] ? kvm_arch_sync_events+0x30/0x30 [ 34.141768] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.147311] ? mmu_notifier_unregister+0x474/0x600 [ 34.152238] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.156643] ? kfree+0x111/0x210 [ 34.160011] ? __mmu_notifier_register+0x30/0x30 [ 34.164768] ? __free_pages+0x10a/0x190 [ 34.168743] ? free_unref_page+0x930/0x930 [ 34.172983] kvm_put_kvm+0x73f/0x1060 [ 34.176793] ? kvm_write_guest_cached+0x40/0x40 [ 34.181465] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.185958] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.190468] ? kasan_check_write+0x14/0x20 [ 34.194704] ? do_raw_spin_lock+0xc1/0x200 [ 34.198941] ? kvm_irqfd_release+0xdd/0x120 [ 34.203261] ? kvm_irqfd_release+0xdd/0x120 [ 34.207590] ? kvm_put_kvm+0x1060/0x1060 [ 34.211650] kvm_vm_release+0x42/0x50 [ 34.215454] __fput+0x38a/0xa40 [ 34.218734] ? __alloc_file+0x400/0x400 [ 34.222710] ? check_same_owner+0x340/0x340 [ 34.227030] ? kasan_check_write+0x14/0x20 [ 34.231266] ? do_raw_spin_lock+0xc1/0x200 [ 34.235498] ____fput+0x15/0x20 [ 34.238774] task_work_run+0x1e8/0x2a0 [ 34.242662] ? task_work_cancel+0x240/0x240 [ 34.246982] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.252524] ? switch_task_namespaces+0xa2/0xd0 [ 34.257194] do_exit+0x1ae4/0x26e0 [ 34.260733] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.265318] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.269982] ? profiling_store+0xd0/0xd0 [ 34.274051] ? kasan_check_write+0x14/0x20 [ 34.278282] ? do_raw_spin_lock+0xc1/0x200 [ 34.282530] ? do_coredump+0x477/0x3fff [ 34.286507] ? kasan_check_write+0x14/0x20 [ 34.290747] ? do_raw_spin_lock+0xc1/0x200 [ 34.294984] ? _raw_spin_unlock_irqrestore+0x10/0xc0 [ 34.300092] ? dump_align+0xa0/0xa0 [ 34.303718] ? save_stack+0xa9/0xd0 [ 34.307340] ? save_stack+0x43/0xd0 [ 34.310962] ? __kasan_slab_free+0x11a/0x170 [ 34.315372] ? kasan_slab_free+0xe/0x10 [ 34.319342] ? kmem_cache_free+0x86/0x280 [ 34.323491] ? __sigqueue_free.part.29+0x7d/0xa0 [ 34.328247] ? __dequeue_signal+0x530/0x7d0 [ 34.332579] ? dequeue_signal+0xbc/0x620 [ 34.336648] ? get_signal+0x3f0/0x18e0 [ 34.340539] ? do_signal+0x9c/0x21c0 [ 34.344252] ? exit_to_usermode_loop+0x2e5/0x380 [ 34.349008] ? prepare_exit_to_usermode+0x342/0x3b0 [ 34.354028] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.358441] ? kasan_check_read+0x11/0x20 [ 34.362586] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.367000] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.371407] ? kasan_check_write+0x14/0x20 [ 34.375648] ? graph_lock+0x170/0x170 [ 34.379451] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.383858] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.388964] ? __lock_is_held+0xb5/0x140 [ 34.393030] ? __sigqueue_free.part.29+0x7d/0xa0 [ 34.397786] ? graph_lock+0x170/0x170 [ 34.401587] ? __sigqueue_free.part.29+0x7d/0xa0 [ 34.406347] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.411360] ? kmem_cache_free+0x246/0x280 [ 34.415825] ? __sigqueue_free.part.29+0x7d/0xa0 [ 34.420580] ? find_held_lock+0x36/0x1c0 [ 34.424646] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.430185] ? proc_coredump_connector+0x4d0/0x610 [ 34.435116] ? proc_comm_connector+0x500/0x500 [ 34.439697] do_group_exit+0x177/0x440 [ 34.443593] ? __ia32_sys_exit+0x50/0x50 [ 34.447657] get_signal+0x851/0x18e0 [ 34.451372] ? ptrace_notify+0x130/0x130 [ 34.455440] ? force_sig_info+0x281/0x310 [ 34.459593] ? force_sig_info_fault.constprop.32+0x2b7/0x4a0 [ 34.465394] ? is_prefetch.isra.30+0x530/0x530 [ 34.469986] do_signal+0x9c/0x21c0 [ 34.473534] ? setup_sigcontext+0x7d0/0x7d0 [ 34.477855] ? bad_area+0x69/0x80 [ 34.481306] ? __do_page_fault+0x449/0xe50 [ 34.485541] ? exit_to_usermode_loop+0x8c/0x380 [ 34.490214] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.494626] exit_to_usermode_loop+0x2e5/0x380 [ 34.499208] ? syscall_slow_exit_work+0x490/0x490 [ 34.504053] ? trace_hardirqs_off_caller+0xbb/0x2b0 [ 34.509066] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.514002] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.518841] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.523775] prepare_exit_to_usermode+0x342/0x3b0 [ 34.528626] ? perf_trace_sys_enter+0xb10/0xb10 [ 34.533295] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.538144] ? page_fault+0x8/0x30 [ 34.541683] retint_user+0x8/0x18 [ 34.545628] RIP: 0033:0x4009c1 [ 34.548821] Code: Bad RIP value. [ 34.552181] RSP: 002b:00007fff31de3fe8 EFLAGS: 00010216 [ 34.557544] RAX: 0000000000000000 RBX: 00000000004002c8 RCX: 0000000000440489 [ 34.564808] RDX: 0000000000000010 RSI: 0000000000000000 RDI: 00007fff31de3ff0 [ 34.572086] RBP: 00000000006ca018 R08: 000000000000000f R09: 00000000004002c8 [ 34.579361] R10: 0000000020000240 R11: 0000000000000286 R12: 0000000000401d10 [ 34.586637] R13: 0000000000401da0 R14: 0000000000000000 R15: 0000000000000000 [ 34.593926] [ 34.593932] ====================================================== [ 34.593937] WARNING: possible circular locking dependency detected [ 34.593941] 4.19.0-rc2+ #224 Not tainted [ 34.593946] ------------------------------------------------------ [ 34.593951] syz-executor303/4648 is trying to acquire lock: [ 34.593955] 000000003da0443e ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.593970] [ 34.593974] but task is already holding lock: [ 34.593977] 00000000e7854a8d (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.593997] [ 34.594002] which lock already depends on the new lock. [ 34.594004] [ 34.594006] [ 34.594011] the existing dependency chain (in reverse order) is: [ 34.594014] [ 34.594016] -> #3 (report_lock){....}: [ 34.594030] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.594034] kasan_report+0x8e/0x110 [ 34.594038] __asan_report_load8_noabort+0x14/0x20 [ 34.594042] __schedule+0xf54/0x1df0 [ 34.594047] preempt_schedule_common+0x22/0x60 [ 34.594050] _cond_resched+0x1d/0x30 [ 34.594055] wait_for_completion+0xa5/0x8d0 [ 34.594059] __synchronize_srcu+0x189/0x240 [ 34.594063] synchronize_srcu+0x335/0x56f [ 34.594068] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.594072] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.594076] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.594079] kvm_put_kvm+0x73f/0x1060 [ 34.594083] kvm_vm_release+0x42/0x50 [ 34.594087] __fput+0x38a/0xa40 [ 34.594090] ____fput+0x15/0x20 [ 34.594094] task_work_run+0x1e8/0x2a0 [ 34.594098] do_exit+0x1ae4/0x26e0 [ 34.594101] do_group_exit+0x177/0x440 [ 34.594105] get_signal+0x851/0x18e0 [ 34.594109] do_signal+0x9c/0x21c0 [ 34.594113] exit_to_usermode_loop+0x2e5/0x380 [ 34.594117] prepare_exit_to_usermode+0x342/0x3b0 [ 34.594121] retint_user+0x8/0x18 [ 34.594123] [ 34.594125] -> #2 (&rq->lock){-.-.}: [ 34.594139] _raw_spin_lock+0x2a/0x40 [ 34.594143] task_fork_fair+0x93/0x680 [ 34.594147] sched_fork+0x44b/0xbd0 [ 34.594151] copy_process+0x235e/0x7af0 [ 34.594154] _do_fork+0x1ca/0x1170 [ 34.594158] kernel_thread+0x34/0x40 [ 34.594161] rest_init+0x22/0xe4 [ 34.594165] start_kernel+0x913/0x94e [ 34.594170] x86_64_start_reservations+0x29/0x2b [ 34.594174] x86_64_start_kernel+0x76/0x79 [ 34.594178] secondary_startup_64+0xa4/0xb0 [ 34.594180] [ 34.594182] -> #1 (&p->pi_lock){-.-.}: [ 34.594197] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.594200] try_to_wake_up+0xd2/0x1250 [ 34.594204] wake_up_process+0x10/0x20 [ 34.594208] __up.isra.1+0x1c0/0x2a0 [ 34.594211] up+0x13c/0x1c0 [ 34.594215] __up_console_sem+0xbe/0x1b0 [ 34.594219] console_unlock+0x506/0x10d0 [ 34.594223] vprintk_emit+0x33a/0x910 [ 34.594227] vprintk_default+0x28/0x30 [ 34.594230] vprintk_func+0x7a/0x117 [ 34.594234] printk+0xa7/0xcf [ 34.594237] load_umh+0x51/0xbd [ 34.594241] do_one_initcall+0x127/0x838 [ 34.594245] kernel_init_freeable+0x4bb/0x5ae [ 34.594249] kernel_init+0x11/0x1b3 [ 34.594253] ret_from_fork+0x3a/0x50 [ 34.594255] [ 34.594257] -> #0 ((console_sem).lock){-...}: [ 34.594272] lock_acquire+0x1e4/0x4f0 [ 34.594276] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.594279] down_trylock+0x13/0x70 [ 34.594284] __down_trylock_console_sem+0xae/0x200 [ 34.594288] console_trylock+0x15/0xa0 [ 34.594292] vprintk_emit+0x31f/0x910 [ 34.594295] vprintk_default+0x28/0x30 [ 34.594299] vprintk_func+0x7a/0x117 [ 34.594303] printk+0xa7/0xcf [ 34.594306] kasan_report+0x9e/0x110 [ 34.594311] __asan_report_load8_noabort+0x14/0x20 [ 34.594315] __schedule+0xf54/0x1df0 [ 34.594319] preempt_schedule_common+0x22/0x60 [ 34.594323] _cond_resched+0x1d/0x30 [ 34.594327] wait_for_completion+0xa5/0x8d0 [ 34.594331] __synchronize_srcu+0x189/0x240 [ 34.594335] synchronize_srcu+0x335/0x56f [ 34.594340] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.594344] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.594348] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.594352] kvm_put_kvm+0x73f/0x1060 [ 34.594356] kvm_vm_release+0x42/0x50 [ 34.594359] __fput+0x38a/0xa40 [ 34.594363] ____fput+0x15/0x20 [ 34.594366] task_work_run+0x1e8/0x2a0 [ 34.594370] do_exit+0x1ae4/0x26e0 [ 34.594374] do_group_exit+0x177/0x440 [ 34.594378] get_signal+0x851/0x18e0 [ 34.594381] do_signal+0x9c/0x21c0 [ 34.594386] exit_to_usermode_loop+0x2e5/0x380 [ 34.594390] prepare_exit_to_usermode+0x342/0x3b0 [ 34.594394] retint_user+0x8/0x18 [ 34.594396] [ 34.594400] other info that might help us debug this: [ 34.594402] [ 34.594405] Chain exists of: [ 34.594407] (console_sem).lock --> &rq->lock --> report_lock [ 34.594433] [ 34.594436] Possible unsafe locking scenario: [ 34.594439] [ 34.594443] CPU0 CPU1 [ 34.594447] ---- ---- [ 34.594449] lock(report_lock); [ 34.594458] lock(&rq->lock); [ 34.594467] lock(report_lock); [ 34.594475] lock((console_sem).lock); [ 34.594483] [ 34.594486] *** DEADLOCK *** [ 34.594488] [ 34.594493] 2 locks held by syz-executor303/4648: [ 34.594496] #0: 000000007d242712 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.594512] #1: 00000000e7854a8d (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.594529] [ 34.594532] stack backtrace: [ 34.594538] CPU: 1 PID: 4648 Comm: syz-executor303 Not tainted 4.19.0-rc2+ #224 [ 34.594545] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.594548] Call Trace: [ 34.594552] dump_stack+0x1c9/0x2b4 [ 34.594556] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.594560] ? vprintk_func+0x100/0x117 [ 34.594565] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.594569] ? save_trace+0xe0/0x290 [ 34.594573] __lock_acquire+0x3449/0x5020 [ 34.594577] ? mark_held_locks+0x160/0x160 [ 34.594581] ? mark_held_locks+0x160/0x160 [ 34.594585] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.594589] ? is_bpf_text_address+0xd7/0x170 [ 34.594593] ? kernel_text_address+0x79/0xf0 [ 34.594597] ? __kernel_text_address+0xd/0x40 [ 34.594601] ? __save_stack_trace+0x8d/0xf0 [ 34.594606] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.594610] ? save_trace+0x290/0x290 [ 34.594614] ? save_stack_trace+0x1a/0x20 [ 34.594617] ? save_trace+0xe0/0x290 [ 34.594621] ? graph_lock+0x170/0x170 [ 34.594626] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.594630] lock_acquire+0x1e4/0x4f0 [ 34.594633] ? down_trylock+0x13/0x70 [ 34.594637] ? lock_release+0x9f0/0x9f0 [ 34.594641] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.594645] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.594649] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.594653] ? log_store+0x34f/0x4c0 [ 34.594657] ? vprintk_emit+0x31f/0x910 [ 34.594661] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.594665] ? down_trylock+0x13/0x70 [ 34.594668] down_trylock+0x13/0x70 [ 34.594673] __down_trylock_console_sem+0xae/0x200 [ 34.594676] console_trylock+0x15/0xa0 [ 34.594680] vprintk_emit+0x31f/0x910 [ 34.594684] ? wake_up_klogd+0x110/0x110 [ 34.594689] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.594693] ? kasan_check_read+0x11/0x20 [ 34.594697] ? rcu_is_watching+0x8c/0x150 [ 34.594700] ? rcu_pm_notify+0xc0/0xc0 [ 34.594704] ? lock_acquire+0x1e4/0x4f0 [ 34.594708] ? kasan_report+0x8e/0x110 [ 34.594712] ? __schedule+0xf54/0x1df0 [ 34.594716] vprintk_default+0x28/0x30 [ 34.594719] vprintk_func+0x7a/0x117 [ 34.594723] printk+0xa7/0xcf [ 34.594727] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.594731] ? kasan_check_write+0x14/0x20 [ 34.594735] ? do_raw_spin_lock+0xc1/0x200 [ 34.594739] ? do_raw_spin_lock+0xc1/0x200 [ 34.594743] kasan_report+0x9e/0x110 [ 34.594747] __asan_report_load8_noabort+0x14/0x20 [ 34.594751] __schedule+0xf54/0x1df0 [ 34.594756] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.594760] ? __sched_text_start+0x8/0x8 [ 34.594763] ? __call_srcu+0x7e7/0x1040 [ 34.594767] ? check_same_owner+0x340/0x340 [ 34.594771] ? mark_held_locks+0x160/0x160 [ 34.594776] preempt_schedule_common+0x22/0x60 [ 34.594779] _cond_resched+0x1d/0x30 [ 34.594783] wait_for_completion+0xa5/0x8d0 [ 34.594788] ? wait_for_completion_interruptible+0x950/0x950 [ 34.594792] ? __lockdep_init_map+0x105/0x590 [ 34.594797] ? __init_waitqueue_head+0x9e/0x150 [ 34.594801] ? init_wait_entry+0x1c0/0x1c0 [ 34.594805] __synchronize_srcu+0x189/0x240 [ 34.594808] ? call_srcu+0x10/0x10 [ 34.594812] ? rcu_unexpedite_gp+0x20/0x20 [ 34.594816] synchronize_srcu+0x335/0x56f [ 34.594820] ? lock_downgrade+0x8f0/0x8f0 [ 34.594825] ? synchronize_srcu_expedited+0x20/0x20 [ 34.594829] ? kasan_check_read+0x11/0x20 [ 34.594833] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.594837] ? kasan_check_write+0x14/0x20 [ 34.594841] ? do_raw_spin_lock+0xc1/0x200 [ 34.594846] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.594850] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.594854] ? kvfree+0x61/0x70 [ 34.594858] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.594862] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.594866] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.594870] ? kvm_arch_sync_events+0x30/0x30 [ 34.594875] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.594879] ? mmu_notifier_unregister+0x474/0x600 [ 34.594883] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.594887] ? kfree+0x111/0x210 [ 34.594891] ? __mmu_notifier_register+0x30/0x30 [ 34.594895] ? __free_pages+0x10a/0x190 [ 34.594899] ? free_unref_page+0x930/0x930 [ 34.594903] kvm_put_kvm+0x73f/0x1060 [ 34.594907] ? kvm_write_guest_cached+0x40/0x40 [ 34.594911] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.594915] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.594919] ? kasan_check_write+0x14/0x20 [ 34.594923] ? do_raw_spin_lock+0xc1/0x200 [ 34.594927] ? kvm_irqfd_release+0xdd/0x120 [ 34.594931] ? kvm_irqfd_release+0xdd/0x120 [ 34.594935] ? kvm_put_kvm+0x1060/0x1060 [ 34.594939] kvm_vm_release+0x42/0x50 [ 34.594942] __fput+0x38a/0xa40 [ 34.594946] ? __alloc_file+0x400/0x400 [ 34.594950] ? check_same_owner+0x340/0x340 [ 34.594954] ? kasan_check_write+0x14/0x20 [ 34.594958] ? do_raw_spin_lock+0xc1/0x200 [ 34.594962] ____fput+0x15/0x20 [ 34.594965] task_work_run+0x1e8/0x2a0 [ 34.594969] ? task_work_cancel+0x240/0x240 [ 34.594974] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.594978] ? switch_task_namespaces+0xa2/0xd0 [ 34.594982] do_exit+0x1ae4/0x26e0 [ 34.594991] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.594996] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.595000] ? profiling_store+0xd0/0xd0 [ 34.595003] ? kasan_check_write+0x14/0x20 [ 34.595007] ? do_raw_spin_lock+0xc1/0x200 [ 34.595011] ? do_coredump+0x477/0x3fff [ 34.595014] ? kasan_check_ [ 34.595023] Lost 67 message(s)! [ 35.663585] Shutting down cpus with NMI [ 36.725590] Dumping ftrace buffer: [ 36.729124] (ftrace buffer empty) [ 36.732816] Kernel Offset: disabled [ 36.736435] Rebooting in 86400 seconds..