[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.986013] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 25.190857] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.572468] random: sshd: uninitialized urandom read (32 bytes read) [ 26.150198] random: sshd: uninitialized urandom read (32 bytes read) [ 26.330718] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.11' (ECDSA) to the list of known hosts. [ 31.932759] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.030192] 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. [ 32.055204] ================================================================== [ 32.065134] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.071378] Read of size 8 at addr ffff8801b8748058 by task syz-executor003/4662 [ 32.078917] [ 32.080543] CPU: 0 PID: 4662 Comm: syz-executor003 Not tainted 4.19.0-rc1+ #217 [ 32.087982] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.097339] Call Trace: [ 32.099933] dump_stack+0x1c9/0x2b4 [ 32.103741] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.108946] ? printk+0xa7/0xcf [ 32.112282] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.117033] ? __schedule+0xf54/0x1df0 [ 32.120925] print_address_description+0x6c/0x20b [ 32.125765] ? __schedule+0xf54/0x1df0 [ 32.129651] kasan_report.cold.7+0x242/0x30d [ 32.134056] __asan_report_load8_noabort+0x14/0x20 [ 32.138995] __schedule+0xf54/0x1df0 [ 32.142703] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.147817] ? __sched_text_start+0x8/0x8 [ 32.151981] ? __call_srcu+0x7e7/0x1040 [ 32.155994] ? check_same_owner+0x340/0x340 [ 32.160311] ? mark_held_locks+0x160/0x160 [ 32.164542] ? find_held_lock+0x36/0x1c0 [ 32.168675] preempt_schedule_common+0x22/0x60 [ 32.173255] _cond_resched+0x1d/0x30 [ 32.176966] wait_for_completion+0xa5/0x8d0 [ 32.181286] ? wait_for_completion_interruptible+0x950/0x950 [ 32.187077] ? __lockdep_init_map+0x105/0x590 [ 32.191586] ? __init_waitqueue_head+0x9e/0x150 [ 32.196246] ? init_wait_entry+0x1c0/0x1c0 [ 32.200482] __synchronize_srcu+0x189/0x240 [ 32.204813] ? call_srcu+0x10/0x10 [ 32.208422] ? rcu_unexpedite_gp+0x20/0x20 [ 32.212672] synchronize_srcu+0x335/0x56f [ 32.216813] ? lock_downgrade+0x8f0/0x8f0 [ 32.220951] ? synchronize_srcu_expedited+0x20/0x20 [ 32.225962] ? kasan_check_read+0x11/0x20 [ 32.230122] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.234706] ? kasan_check_write+0x14/0x20 [ 32.238937] ? do_raw_spin_lock+0xc1/0x200 [ 32.243180] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.248888] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.254339] ? kvfree+0x61/0x70 [ 32.257629] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.262639] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.266698] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.271116] ? kvm_arch_sync_events+0x30/0x30 [ 32.275611] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.281147] ? mmu_notifier_unregister+0x474/0x600 [ 32.286074] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.290475] ? kfree+0x111/0x210 [ 32.293839] ? __mmu_notifier_register+0x30/0x30 [ 32.298589] ? __free_pages+0x10a/0x190 [ 32.302573] ? free_unref_page+0x930/0x930 [ 32.306831] kvm_put_kvm+0x73f/0x1060 [ 32.310644] ? kvm_write_guest_cached+0x40/0x40 [ 32.315312] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.319798] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.324286] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.328867] ? kasan_check_write+0x14/0x20 [ 32.333135] ? do_raw_spin_lock+0xc1/0x200 [ 32.337381] ? kvm_irqfd_release+0xdd/0x120 [ 32.341718] ? kvm_irqfd_release+0xdd/0x120 [ 32.346034] ? kvm_put_kvm+0x1060/0x1060 [ 32.350104] kvm_vm_release+0x42/0x50 [ 32.353899] __fput+0x38a/0xa40 [ 32.357228] ? __alloc_file+0x400/0x400 [ 32.361204] ? check_same_owner+0x340/0x340 [ 32.365553] ? kasan_check_write+0x14/0x20 [ 32.369785] ? do_raw_spin_lock+0xc1/0x200 [ 32.374031] ____fput+0x15/0x20 [ 32.377323] task_work_run+0x1e8/0x2a0 [ 32.381220] ? task_work_cancel+0x240/0x240 [ 32.385544] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.391079] ? switch_task_namespaces+0xa2/0xd0 [ 32.395745] do_exit+0x1ae4/0x26e0 [ 32.399321] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.404006] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.408239] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.413252] ? kfree+0x1d7/0x210 [ 32.416633] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.420865] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.426587] ? is_bpf_text_address+0xd7/0x170 [ 32.431123] ? kernel_text_address+0x79/0xf0 [ 32.435522] ? __kernel_text_address+0xd/0x40 [ 32.440016] ? unwind_get_return_address+0x61/0xa0 [ 32.444968] ? __save_stack_trace+0x8d/0xf0 [ 32.449322] ? save_stack+0xa9/0xd0 [ 32.452942] ? save_stack+0x43/0xd0 [ 32.456564] ? __kasan_slab_free+0x11a/0x170 [ 32.460966] ? kasan_slab_free+0xe/0x10 [ 32.464940] ? putname+0xf2/0x130 [ 32.468389] ? __x64_sys_openat+0x9d/0x100 [ 32.472619] ? do_syscall_64+0x1b9/0x820 [ 32.476675] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.482036] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.486443] ? kasan_check_read+0x11/0x20 [ 32.490586] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.494991] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.499401] ? initcall_blacklisted+0x9a/0x1e0 [ 32.503981] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.509085] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.514792] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.520324] ? do_vfs_ioctl+0x201/0x1720 [ 32.524379] ? rcu_is_watching+0x8c/0x150 [ 32.528522] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.532853] ? ioctl_preallocate+0x300/0x300 [ 32.537273] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.542807] ? __fget_light+0x2f7/0x440 [ 32.546784] ? fget_raw+0x20/0x20 [ 32.550232] ? putname+0xf2/0x130 [ 32.553695] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.558705] ? kmem_cache_free+0x246/0x280 [ 32.562951] ? putname+0xf7/0x130 [ 32.566426] do_group_exit+0x177/0x440 [ 32.570311] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.574628] ? __ia32_sys_exit+0x50/0x50 [ 32.578685] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.583792] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.589339] ? ksys_ioctl+0x81/0xd0 [ 32.592974] __x64_sys_exit_group+0x3e/0x50 [ 32.597293] do_syscall_64+0x1b9/0x820 [ 32.601181] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.606541] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.611469] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.616318] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.621333] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.626345] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.631371] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.636217] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.641403] RIP: 0033:0x43ef08 [ 32.644628] Code: Bad RIP value. [ 32.647984] RSP: 002b:00007fff1b603488 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.655700] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.662961] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.670224] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.677485] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.684745] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.692021] [ 32.693643] Allocated by task 4662: [ 32.697301] save_stack+0x43/0xd0 [ 32.700749] kasan_kmalloc+0xc4/0xe0 [ 32.704459] kasan_slab_alloc+0x12/0x20 [ 32.708426] kmem_cache_alloc+0x12e/0x710 [ 32.712569] vmx_create_vcpu+0xcf/0x2830 [ 32.716623] kvm_arch_vcpu_create+0xe5/0x220 [ 32.721027] kvm_vm_ioctl+0x488/0x1d80 [ 32.724919] do_vfs_ioctl+0x1de/0x1720 [ 32.728801] ksys_ioctl+0xa9/0xd0 [ 32.732245] __x64_sys_ioctl+0x73/0xb0 [ 32.736129] do_syscall_64+0x1b9/0x820 [ 32.740030] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.745205] [ 32.746822] Freed by task 4662: [ 32.750092] save_stack+0x43/0xd0 [ 32.753537] __kasan_slab_free+0x11a/0x170 [ 32.757766] kasan_slab_free+0xe/0x10 [ 32.761560] kmem_cache_free+0x86/0x280 [ 32.765544] vmx_free_vcpu+0x26b/0x300 [ 32.769427] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.773833] kvm_put_kvm+0x73f/0x1060 [ 32.777626] kvm_vm_release+0x42/0x50 [ 32.781446] __fput+0x38a/0xa40 [ 32.784716] ____fput+0x15/0x20 [ 32.788010] task_work_run+0x1e8/0x2a0 [ 32.791890] do_exit+0x1ae4/0x26e0 [ 32.795430] do_group_exit+0x177/0x440 [ 32.799313] __x64_sys_exit_group+0x3e/0x50 [ 32.803632] do_syscall_64+0x1b9/0x820 [ 32.807524] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.812695] [ 32.814316] The buggy address belongs to the object at ffff8801b8748040 [ 32.814316] which belongs to the cache kvm_vcpu of size 23872 [ 32.826893] The buggy address is located 24 bytes inside of [ 32.826893] 23872-byte region [ffff8801b8748040, ffff8801b874dd80) [ 32.838863] The buggy address belongs to the page: [ 32.843790] page:ffffea0006e1d200 count:1 mapcount:0 mapping:ffff8801d5338d80 index:0x0 compound_mapcount: 0 [ 32.853755] flags: 0x2fffc0000008100(slab|head) [ 32.858427] raw: 02fffc0000008100 ffff8801d531f548 ffff8801d531f548 ffff8801d5338d80 [ 32.866308] raw: 0000000000000000 ffff8801b8748040 0000000100000001 0000000000000000 [ 32.874179] page dumped because: kasan: bad access detected [ 32.879876] [ 32.881489] Memory state around the buggy address: [ 32.886413] ffff8801b8747f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.893762] ffff8801b8747f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.901115] >ffff8801b8748000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.908461] ^ [ 32.914681] ffff8801b8748080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.922033] ffff8801b8748100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.929389] ================================================================== [ 32.936738] Kernel panic - not syncing: panic_on_warn set ... [ 32.936738] [ 32.944100] CPU: 0 PID: 4662 Comm: syz-executor003 Tainted: G B 4.19.0-rc1+ #217 [ 32.952943] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.962315] Call Trace: [ 32.964916] dump_stack+0x1c9/0x2b4 [ 32.968542] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.973730] ? lock_downgrade+0x8f0/0x8f0 [ 32.977873] ? __schedule+0xf54/0x1df0 [ 32.981753] panic+0x238/0x4e7 [ 32.984954] ? add_taint.cold.5+0x16/0x16 [ 32.989102] ? print_shadow_for_address+0xba/0x116 [ 32.994022] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.998418] ? trace_hardirqs_off+0x77/0x2b0 [ 33.002819] ? __schedule+0xf54/0x1df0 [ 33.006701] kasan_end_report+0x47/0x4f [ 33.010662] kasan_report.cold.7+0x76/0x30d [ 33.015024] __asan_report_load8_noabort+0x14/0x20 [ 33.019959] __schedule+0xf54/0x1df0 [ 33.023666] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.028766] ? __sched_text_start+0x8/0x8 [ 33.032929] ? __call_srcu+0x7e7/0x1040 [ 33.036905] ? check_same_owner+0x340/0x340 [ 33.041229] ? mark_held_locks+0x160/0x160 [ 33.045476] ? find_held_lock+0x36/0x1c0 [ 33.049547] preempt_schedule_common+0x22/0x60 [ 33.054122] _cond_resched+0x1d/0x30 [ 33.057867] wait_for_completion+0xa5/0x8d0 [ 33.062209] ? wait_for_completion_interruptible+0x950/0x950 [ 33.068000] ? __lockdep_init_map+0x105/0x590 [ 33.072492] ? __init_waitqueue_head+0x9e/0x150 [ 33.077152] ? init_wait_entry+0x1c0/0x1c0 [ 33.081391] __synchronize_srcu+0x189/0x240 [ 33.085711] ? call_srcu+0x10/0x10 [ 33.089247] ? rcu_unexpedite_gp+0x20/0x20 [ 33.093484] synchronize_srcu+0x335/0x56f [ 33.097620] ? lock_downgrade+0x8f0/0x8f0 [ 33.101759] ? synchronize_srcu_expedited+0x20/0x20 [ 33.106767] ? kasan_check_read+0x11/0x20 [ 33.110918] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.115508] ? kasan_check_write+0x14/0x20 [ 33.119732] ? do_raw_spin_lock+0xc1/0x200 [ 33.123966] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.129673] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.135121] ? kvfree+0x61/0x70 [ 33.138399] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.143427] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.147484] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.151893] ? kvm_arch_sync_events+0x30/0x30 [ 33.156416] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.161956] ? mmu_notifier_unregister+0x474/0x600 [ 33.166881] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.171289] ? kfree+0x111/0x210 [ 33.174653] ? __mmu_notifier_register+0x30/0x30 [ 33.179410] ? __free_pages+0x10a/0x190 [ 33.183382] ? free_unref_page+0x930/0x930 [ 33.187624] kvm_put_kvm+0x73f/0x1060 [ 33.191425] ? kvm_write_guest_cached+0x40/0x40 [ 33.196097] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.200608] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.205103] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.209687] ? kasan_check_write+0x14/0x20 [ 33.213929] ? do_raw_spin_lock+0xc1/0x200 [ 33.218166] ? kvm_irqfd_release+0xdd/0x120 [ 33.222486] ? kvm_irqfd_release+0xdd/0x120 [ 33.226805] ? kvm_put_kvm+0x1060/0x1060 [ 33.230878] kvm_vm_release+0x42/0x50 [ 33.234681] __fput+0x38a/0xa40 [ 33.237957] ? __alloc_file+0x400/0x400 [ 33.241942] ? check_same_owner+0x340/0x340 [ 33.246262] ? kasan_check_write+0x14/0x20 [ 33.250495] ? do_raw_spin_lock+0xc1/0x200 [ 33.254723] ____fput+0x15/0x20 [ 33.257999] task_work_run+0x1e8/0x2a0 [ 33.261884] ? task_work_cancel+0x240/0x240 [ 33.266240] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.271774] ? switch_task_namespaces+0xa2/0xd0 [ 33.276443] do_exit+0x1ae4/0x26e0 [ 33.279982] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.284648] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.288897] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.293939] ? kfree+0x1d7/0x210 [ 33.297307] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.301584] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.307304] ? is_bpf_text_address+0xd7/0x170 [ 33.311797] ? kernel_text_address+0x79/0xf0 [ 33.316204] ? __kernel_text_address+0xd/0x40 [ 33.320697] ? unwind_get_return_address+0x61/0xa0 [ 33.325652] ? __save_stack_trace+0x8d/0xf0 [ 33.329990] ? save_stack+0xa9/0xd0 [ 33.333611] ? save_stack+0x43/0xd0 [ 33.337260] ? __kasan_slab_free+0x11a/0x170 [ 33.341663] ? kasan_slab_free+0xe/0x10 [ 33.345632] ? putname+0xf2/0x130 [ 33.349083] ? __x64_sys_openat+0x9d/0x100 [ 33.353328] ? do_syscall_64+0x1b9/0x820 [ 33.357383] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.362758] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.367158] ? kasan_check_read+0x11/0x20 [ 33.371307] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.375707] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.380111] ? initcall_blacklisted+0x9a/0x1e0 [ 33.384688] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.389794] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.395546] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.401077] ? do_vfs_ioctl+0x201/0x1720 [ 33.405136] ? rcu_is_watching+0x8c/0x150 [ 33.409275] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.413606] ? ioctl_preallocate+0x300/0x300 [ 33.418036] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.423569] ? __fget_light+0x2f7/0x440 [ 33.427551] ? fget_raw+0x20/0x20 [ 33.431006] ? putname+0xf2/0x130 [ 33.434468] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.439478] ? kmem_cache_free+0x246/0x280 [ 33.443708] ? putname+0xf7/0x130 [ 33.447163] do_group_exit+0x177/0x440 [ 33.451050] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.455363] ? __ia32_sys_exit+0x50/0x50 [ 33.459439] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.464535] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.470064] ? ksys_ioctl+0x81/0xd0 [ 33.473687] __x64_sys_exit_group+0x3e/0x50 [ 33.478020] do_syscall_64+0x1b9/0x820 [ 33.481900] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.487286] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.492209] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.497053] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.502065] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.507075] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.512092] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.516940] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.522138] RIP: 0033:0x43ef08 [ 33.525341] Code: Bad RIP value. [ 33.528696] RSP: 002b:00007fff1b603488 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.536399] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 33.543660] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.550927] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.558190] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.565465] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.572733] [ 33.572738] ====================================================== [ 33.572743] WARNING: possible circular locking dependency detected [ 33.572747] 4.19.0-rc1+ #217 Not tainted [ 33.572752] ------------------------------------------------------ [ 33.572757] syz-executor003/4662 is trying to acquire lock: [ 33.572761] 00000000d6c30f2d ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.572775] [ 33.572779] but task is already holding lock: [ 33.572782] 000000006c68adfb (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.572796] [ 33.572800] which lock already depends on the new lock. [ 33.572803] [ 33.572805] [ 33.572810] the existing dependency chain (in reverse order) is: [ 33.572812] [ 33.572814] -> #3 (report_lock){....}: [ 33.572828] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.572832] kasan_report+0x8e/0x110 [ 33.572836] __asan_report_load8_noabort+0x14/0x20 [ 33.572840] __schedule+0xf54/0x1df0 [ 33.572844] preempt_schedule_common+0x22/0x60 [ 33.572848] _cond_resched+0x1d/0x30 [ 33.572852] wait_for_completion+0xa5/0x8d0 [ 33.572856] __synchronize_srcu+0x189/0x240 [ 33.572860] synchronize_srcu+0x335/0x56f [ 33.572865] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.572869] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.572873] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.572877] kvm_put_kvm+0x73f/0x1060 [ 33.572880] kvm_vm_release+0x42/0x50 [ 33.572884] __fput+0x38a/0xa40 [ 33.572887] ____fput+0x15/0x20 [ 33.572891] task_work_run+0x1e8/0x2a0 [ 33.572895] do_exit+0x1ae4/0x26e0 [ 33.572899] do_group_exit+0x177/0x440 [ 33.572903] __x64_sys_exit_group+0x3e/0x50 [ 33.572907] do_syscall_64+0x1b9/0x820 [ 33.572919] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.572921] [ 33.572923] -> #2 (&rq->lock){-.-.}: [ 33.572937] _raw_spin_lock+0x2a/0x40 [ 33.572941] task_fork_fair+0x93/0x680 [ 33.572944] sched_fork+0x44b/0xbd0 [ 33.572948] copy_process+0x235e/0x7ad0 [ 33.572952] _do_fork+0x1ca/0x1170 [ 33.572956] kernel_thread+0x34/0x40 [ 33.572959] rest_init+0x22/0xe4 [ 33.572963] start_kernel+0x913/0x94e [ 33.572967] x86_64_start_reservations+0x29/0x2b [ 33.572971] x86_64_start_kernel+0x76/0x79 [ 33.572975] secondary_startup_64+0xa4/0xb0 [ 33.572978] [ 33.572994] -> #1 (&p->pi_lock){-.-.}: [ 33.573008] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.573012] try_to_wake_up+0xd2/0x1250 [ 33.573016] wake_up_process+0x10/0x20 [ 33.573019] __up.isra.1+0x1c0/0x2a0 [ 33.573022] up+0x13c/0x1c0 [ 33.573026] __up_console_sem+0xbe/0x1b0 [ 33.573030] console_unlock+0x506/0x10d0 [ 33.573033] vprintk_emit+0x33a/0x910 [ 33.573037] vprintk_default+0x28/0x30 [ 33.573041] vprintk_func+0x7a/0x117 [ 33.573044] printk+0xa7/0xcf [ 33.573047] load_umh+0x51/0xbd [ 33.573051] do_one_initcall+0x127/0x838 [ 33.573055] kernel_init_freeable+0x4bb/0x5ae [ 33.573058] kernel_init+0x11/0x1b3 [ 33.573062] ret_from_fork+0x3a/0x50 [ 33.573064] [ 33.573066] -> #0 ((console_sem).lock){-...}: [ 33.573079] lock_acquire+0x1e4/0x4f0 [ 33.573084] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.573087] down_trylock+0x13/0x70 [ 33.573091] __down_trylock_console_sem+0xae/0x200 [ 33.573095] console_trylock+0x15/0xa0 [ 33.573099] vprintk_emit+0x31f/0x910 [ 33.573102] vprintk_default+0x28/0x30 [ 33.573106] vprintk_func+0x7a/0x117 [ 33.573109] printk+0xa7/0xcf [ 33.573113] kasan_report+0x9e/0x110 [ 33.573117] __asan_report_load8_noabort+0x14/0x20 [ 33.573120] __schedule+0xf54/0x1df0 [ 33.573124] preempt_schedule_common+0x22/0x60 [ 33.573128] _cond_resched+0x1d/0x30 [ 33.573132] wait_for_completion+0xa5/0x8d0 [ 33.573136] __synchronize_srcu+0x189/0x240 [ 33.573140] synchronize_srcu+0x335/0x56f [ 33.573144] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.573148] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.573152] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.573155] kvm_put_kvm+0x73f/0x1060 [ 33.573159] kvm_vm_release+0x42/0x50 [ 33.573162] __fput+0x38a/0xa40 [ 33.573166] ____fput+0x15/0x20 [ 33.573174] task_work_run+0x1e8/0x2a0 [ 33.573178] do_exit+0x1ae4/0x26e0 [ 33.573181] do_group_exit+0x177/0x440 [ 33.573185] __x64_sys_exit_group+0x3e/0x50 [ 33.573189] do_syscall_64+0x1b9/0x820 [ 33.573193] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.573195] [ 33.573199] other info that might help us debug this: [ 33.573202] [ 33.573204] Chain exists of: [ 33.573206] (console_sem).lock --> &rq->lock --> report_lock [ 33.573224] [ 33.573227] Possible unsafe locking scenario: [ 33.573229] [ 33.573233] CPU0 CPU1 [ 33.573237] ---- ---- [ 33.573239] lock(report_lock); [ 33.573248] lock(&rq->lock); [ 33.573257] lock(report_lock); [ 33.573280] lock((console_sem).lock); [ 33.573287] [ 33.573290] *** DEADLOCK *** [ 33.573293] [ 33.573297] 2 locks held by syz-executor003/4662: [ 33.573299] #0: 00000000b58e97a0 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.573316] #1: 000000006c68adfb (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.573332] [ 33.573335] stack backtrace: [ 33.573341] CPU: 0 PID: 4662 Comm: syz-executor003 Not tainted 4.19.0-rc1+ #217 [ 33.573348] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.573351] Call Trace: [ 33.573355] dump_stack+0x1c9/0x2b4 [ 33.573359] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.573363] ? vprintk_func+0x100/0x117 [ 33.573368] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.573372] ? save_trace+0xe0/0x290 [ 33.573376] __lock_acquire+0x3449/0x5020 [ 33.573380] ? mark_held_locks+0x160/0x160 [ 33.573384] ? mark_held_locks+0x160/0x160 [ 33.573388] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.573408] ? is_bpf_text_address+0xd7/0x170 [ 33.573412] ? kernel_text_address+0x79/0xf0 [ 33.573416] ? __kernel_text_address+0xd/0x40 [ 33.573420] ? __save_stack_trace+0x8d/0xf0 [ 33.573425] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.573429] ? save_trace+0x290/0x290 [ 33.573433] ? save_stack_trace+0x1a/0x20 [ 33.573436] ? save_trace+0xe0/0x290 [ 33.573440] ? graph_lock+0x170/0x170 [ 33.573445] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.573449] lock_acquire+0x1e4/0x4f0 [ 33.573453] ? down_trylock+0x13/0x70 [ 33.573457] ? lock_release+0x9f0/0x9f0 [ 33.573461] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.573465] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.573469] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.573473] ? log_store+0x34f/0x4c0 [ 33.573477] ? vprintk_emit+0x31f/0x910 [ 33.573481] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.573485] ? down_trylock+0x13/0x70 [ 33.573488] down_trylock+0x13/0x70 [ 33.573493] __down_trylock_console_sem+0xae/0x200 [ 33.573497] console_trylock+0x15/0xa0 [ 33.573500] vprintk_emit+0x31f/0x910 [ 33.573504] ? wake_up_klogd+0x110/0x110 [ 33.573509] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.573513] ? kasan_check_read+0x11/0x20 [ 33.573517] ? rcu_is_watching+0x8c/0x150 [ 33.573521] ? rcu_pm_notify+0xc0/0xc0 [ 33.573525] ? lock_acquire+0x1e4/0x4f0 [ 33.573528] ? kasan_report+0x8e/0x110 [ 33.573532] ? __schedule+0xf54/0x1df0 [ 33.573536] vprintk_default+0x28/0x30 [ 33.573540] vprintk_func+0x7a/0x117 [ 33.573543] printk+0xa7/0xcf [ 33.573548] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.573552] ? kasan_check_write+0x14/0x20 [ 33.573556] ? do_raw_spin_lock+0xc1/0x200 [ 33.573560] ? do_raw_spin_lock+0xc1/0x200 [ 33.573563] kasan_report+0x9e/0x110 [ 33.573568] __asan_report_load8_noabort+0x14/0x20 [ 33.573572] __schedule+0xf54/0x1df0 [ 33.573576] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.573580] ? __sched_text_start+0x8/0x8 [ 33.573584] ? __call_srcu+0x7e7/0x1040 [ 33.573588] ? check_same_owner+0x340/0x340 [ 33.573592] ? mark_held_locks+0x160/0x160 [ 33.573596] ? find_held_lock+0x36/0x1c0 [ 33.573600] preempt_schedule_common+0x22/0x60 [ 33.573604] _cond_resched+0x1d/0x30 [ 33.573608] wait_for_completion+0xa5/0x8d0 [ 33.573613] ? wait_for_completion_interruptible+0x950/0x950 [ 33.573618] ? __lockdep_init_map+0x105/0x590 [ 33.573622] ? __init_waitqueue_head+0x9e/0x150 [ 33.573626] ? init_wait_entry+0x1c0/0x1c0 [ 33.573630] __synchronize_srcu+0x189/0x240 [ 33.573634] ? call_srcu+0x10/0x10 [ 33.573638] ? rcu_unexpedite_gp+0x20/0x20 [ 33.573642] synchronize_srcu+0x335/0x56f [ 33.573661] ? lock_downgrade+0x8f0/0x8f0 [ 33.573666] ? synchronize_srcu_expedited+0x20/0x20 [ 33.573670] ? kasan_check_read+0x11/0x20 [ 33.573674] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.573678] ? kasan_check_write+0x14/0x20 [ 33.573682] ? do_raw_spin_lock+0xc1/0x200 [ 33.573687] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.573707] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.573710] ? kvfree+0x61/0x70 [ 33.573714] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.573718] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.573722] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.573726] ? kvm_arch_sync_events+0x30/0x30 [ 33.573731] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.573735] ? mmu_notifier_unregister+0x474/0x600 [ 33.573739] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.573742] ? kfree+0x111/0x210 [ 33.573746] ? __mmu_notifier_register+0x30/0x30 [ 33.573750] ? __free_pages+0x10a/0x190 [ 33.573754] ? free_unref_page+0x930/0x930 [ 33.573757] kvm_put_kvm+0x73f/0x1060 [ 33.573761] ? kvm_write_guest_cached+0x40/0x40 [ 33.573765] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.573769] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.573773] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.573777] ? kasan_check_write+0x14/0x20 [ 33.573781] ? do_raw_spin_lock+0xc1/0x200 [ 33.573784] ? kvm_irqfd_release+0xdd/0x120 [ 33.573788] ? kvm_irqfd_release+0xdd/0x120 [ 33.573792] ? kvm_put_kvm+0x1060/0x1060 [ 33.573795] kvm_vm_release+0x42/0x50 [ 33.573814] __fput+0x38a/0xa40 [ 33.573818] ? __alloc_file+0x400/0x400 [ 33.573837] ? check_same_owner+0x340/0x340 [ 33.573841] ? kasan_check_write+0x14/0x20 [ 33.573845] ? do_raw_spin_lock+0xc1/0x200 [ 33.573849] ____fput+0x15/0x20 [ 33.573852] task_work_run+0x1e8/0x2a0 [ 33.573857] ? task_work_cancel+0x240/0x240 [ 33.573861] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.573866] ? switch_task_namespaces+0xa2/0xd0 [ 33.573869] do_exit+0x1ae4/0x26e0 [ 33.573889] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.573892] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.573897] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.573900] ? kfree+0x1d7/0x210 [ 33.573904] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.573915] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.573919] ? is_bpf_text_address+0xd7/0x170 [ 33.573921] ? [ 33.573928] Lost 55 message(s)! [ 34.693512] Shutting down cpus with NMI [ 35.752806] Dumping ftrace buffer: [ 35.756343] (ftrace buffer empty) [ 35.760034] Kernel Offset: disabled [ 35.763647] Rebooting in 86400 seconds..