[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 20.881663] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.561962] random: sshd: uninitialized urandom read (32 bytes read) [ 24.797263] random: sshd: uninitialized urandom read (32 bytes read) [ 25.348757] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.12' (ECDSA) to the list of known hosts. [ 31.171209] urandom_read: 1 callbacks suppressed [ 31.171215] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.272010] 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. [ 31.294677] ================================================================== [ 31.303567] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.309779] Read of size 8 at addr ffff8801cb138058 by task syz-executor657/4287 [ 31.317286] [ 31.318981] CPU: 1 PID: 4287 Comm: syz-executor657 Not tainted 4.19.0-rc2+ #226 [ 31.326435] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.335765] Call Trace: [ 31.338337] dump_stack+0x1c9/0x2b4 [ 31.341950] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.347119] ? printk+0xa7/0xcf [ 31.350386] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.355140] ? __schedule+0xf54/0x1df0 [ 31.359029] print_address_description+0x6c/0x20b [ 31.363912] ? __schedule+0xf54/0x1df0 [ 31.367795] kasan_report.cold.7+0x242/0x30d [ 31.372190] __asan_report_load8_noabort+0x14/0x20 [ 31.377101] __schedule+0xf54/0x1df0 [ 31.380797] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.385886] ? __sched_text_start+0x8/0x8 [ 31.390029] ? __call_srcu+0x7e7/0x1040 [ 31.393999] ? check_same_owner+0x340/0x340 [ 31.398303] ? mark_held_locks+0x160/0x160 [ 31.402520] ? find_held_lock+0x36/0x1c0 [ 31.406572] preempt_schedule_common+0x22/0x60 [ 31.411139] _cond_resched+0x1d/0x30 [ 31.414839] wait_for_completion+0xa5/0x8d0 [ 31.419174] ? wait_for_completion_interruptible+0x950/0x950 [ 31.424957] ? __lockdep_init_map+0x105/0x590 [ 31.429441] ? __init_waitqueue_head+0x9e/0x150 [ 31.434175] ? init_wait_entry+0x1c0/0x1c0 [ 31.438402] __synchronize_srcu+0x189/0x240 [ 31.442710] ? call_srcu+0x10/0x10 [ 31.446262] ? rcu_unexpedite_gp+0x20/0x20 [ 31.450485] synchronize_srcu+0x335/0x56f [ 31.454616] ? lock_downgrade+0x8f0/0x8f0 [ 31.458767] ? synchronize_srcu_expedited+0x20/0x20 [ 31.463771] ? kasan_check_read+0x11/0x20 [ 31.467906] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.472470] ? kasan_check_write+0x14/0x20 [ 31.476722] ? do_raw_spin_lock+0xc1/0x200 [ 31.480943] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.486649] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.492087] ? kvfree+0x61/0x70 [ 31.495354] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.500352] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.504543] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.508941] ? kvm_arch_sync_events+0x30/0x30 [ 31.513484] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.519018] ? mmu_notifier_unregister+0x474/0x600 [ 31.523951] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.528455] ? kfree+0x111/0x210 [ 31.531806] ? __mmu_notifier_register+0x30/0x30 [ 31.536552] ? __free_pages+0x10a/0x190 [ 31.540513] ? free_unref_page+0x930/0x930 [ 31.544747] kvm_put_kvm+0x73f/0x1060 [ 31.548581] ? kvm_write_guest_cached+0x40/0x40 [ 31.553350] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.557831] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.562317] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.566910] ? kasan_check_write+0x14/0x20 [ 31.571129] ? do_raw_spin_lock+0xc1/0x200 [ 31.575352] ? kvm_irqfd_release+0xdd/0x120 [ 31.579657] ? kvm_irqfd_release+0xdd/0x120 [ 31.583965] ? kvm_put_kvm+0x1060/0x1060 [ 31.588012] kvm_vm_release+0x42/0x50 [ 31.591906] __fput+0x38a/0xa40 [ 31.595170] ? __alloc_file+0x400/0x400 [ 31.599155] ? check_same_owner+0x340/0x340 [ 31.603461] ? kasan_check_write+0x14/0x20 [ 31.607720] ? do_raw_spin_lock+0xc1/0x200 [ 31.611944] ____fput+0x15/0x20 [ 31.615204] task_work_run+0x1e8/0x2a0 [ 31.619079] ? task_work_cancel+0x240/0x240 [ 31.623394] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.628919] ? switch_task_namespaces+0xa2/0xd0 [ 31.633578] do_exit+0x1ae4/0x26e0 [ 31.637108] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.641805] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.646040] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.651100] ? kfree+0x1d7/0x210 [ 31.654458] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.658696] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.664398] ? is_bpf_text_address+0xd7/0x170 [ 31.668955] ? kernel_text_address+0x79/0xf0 [ 31.673351] ? __kernel_text_address+0xd/0x40 [ 31.677831] ? unwind_get_return_address+0x61/0xa0 [ 31.682904] ? __save_stack_trace+0x8d/0xf0 [ 31.687219] ? save_stack+0xa9/0xd0 [ 31.690843] ? save_stack+0x43/0xd0 [ 31.694456] ? __kasan_slab_free+0x11a/0x170 [ 31.698851] ? kasan_slab_free+0xe/0x10 [ 31.702814] ? putname+0xf2/0x130 [ 31.706251] ? __x64_sys_openat+0x9d/0x100 [ 31.710465] ? do_syscall_64+0x1b9/0x820 [ 31.714510] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.719871] ? trace_hardirqs_off+0xb8/0x2c0 [ 31.724274] ? kasan_check_read+0x11/0x20 [ 31.728405] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.732795] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.737295] ? initcall_blacklisted+0x9a/0x1e0 [ 31.741864] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 31.746956] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.752661] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.758182] ? do_vfs_ioctl+0x201/0x1720 [ 31.762223] ? rcu_is_watching+0x8c/0x150 [ 31.766356] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.770662] ? ioctl_preallocate+0x300/0x300 [ 31.775052] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.780570] ? __fget_light+0x2f7/0x440 [ 31.784535] ? fget_raw+0x20/0x20 [ 31.787982] ? putname+0xf2/0x130 [ 31.791511] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.796515] ? kmem_cache_free+0x246/0x280 [ 31.800741] ? putname+0xf7/0x130 [ 31.804215] do_group_exit+0x177/0x440 [ 31.808090] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.812442] ? __ia32_sys_exit+0x50/0x50 [ 31.816489] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.821575] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.827095] ? ksys_ioctl+0x81/0xd0 [ 31.830772] __x64_sys_exit_group+0x3e/0x50 [ 31.835097] do_syscall_64+0x1b9/0x820 [ 31.839016] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 31.844370] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.849283] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.854221] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 31.859226] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 31.864226] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.869313] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.874197] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.879374] RIP: 0033:0x43ecd8 [ 31.882556] Code: Bad RIP value. [ 31.885902] RSP: 002b:00007ffca7265c28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.893658] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 31.900919] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.908174] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.915427] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 31.922679] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 31.929995] [ 31.931614] Allocated by task 4287: [ 31.935294] save_stack+0x43/0xd0 [ 31.938780] kasan_kmalloc+0xc4/0xe0 [ 31.942479] kasan_slab_alloc+0x12/0x20 [ 31.946437] kmem_cache_alloc+0x12e/0x710 [ 31.950570] vmx_create_vcpu+0xcf/0x2830 [ 31.954615] kvm_arch_vcpu_create+0xe5/0x220 [ 31.959057] kvm_vm_ioctl+0x488/0x1d80 [ 31.962936] do_vfs_ioctl+0x1de/0x1720 [ 31.966805] ksys_ioctl+0xa9/0xd0 [ 31.970245] __x64_sys_ioctl+0x73/0xb0 [ 31.974126] do_syscall_64+0x1b9/0x820 [ 31.978086] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.983256] [ 31.984902] Freed by task 4287: [ 31.988230] save_stack+0x43/0xd0 [ 31.991674] __kasan_slab_free+0x11a/0x170 [ 31.995893] kasan_slab_free+0xe/0x10 [ 31.999675] kmem_cache_free+0x86/0x280 [ 32.003758] vmx_free_vcpu+0x26b/0x300 [ 32.007634] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.012090] kvm_put_kvm+0x73f/0x1060 [ 32.015881] kvm_vm_release+0x42/0x50 [ 32.019668] __fput+0x38a/0xa40 [ 32.022924] ____fput+0x15/0x20 [ 32.026190] task_work_run+0x1e8/0x2a0 [ 32.030062] do_exit+0x1ae4/0x26e0 [ 32.033584] do_group_exit+0x177/0x440 [ 32.037455] __x64_sys_exit_group+0x3e/0x50 [ 32.041766] do_syscall_64+0x1b9/0x820 [ 32.045644] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.050855] [ 32.052474] The buggy address belongs to the object at ffff8801cb138040 [ 32.052474] which belongs to the cache kvm_vcpu of size 23872 [ 32.065029] The buggy address is located 24 bytes inside of [ 32.065029] 23872-byte region [ffff8801cb138040, ffff8801cb13dd80) [ 32.077153] The buggy address belongs to the page: [ 32.082065] page:ffffea00072c4e00 count:1 mapcount:0 mapping:ffff8801d8539180 index:0x0 compound_mapcount: 0 [ 32.092026] flags: 0x2fffc0000008100(slab|head) [ 32.096883] raw: 02fffc0000008100 ffff8801d6f17c48 ffff8801d6f17c48 ffff8801d8539180 [ 32.104750] raw: 0000000000000000 ffff8801cb138040 0000000100000001 0000000000000000 [ 32.112609] page dumped because: kasan: bad access detected [ 32.118296] [ 32.119921] Memory state around the buggy address: [ 32.124834] ffff8801cb137f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.132172] ffff8801cb137f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.139512] >ffff8801cb138000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.146856] ^ [ 32.153069] ffff8801cb138080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.160414] ffff8801cb138100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.167754] ================================================================== [ 32.175095] Kernel panic - not syncing: panic_on_warn set ... [ 32.175095] [ 32.182444] CPU: 1 PID: 4287 Comm: syz-executor657 Tainted: G B 4.19.0-rc2+ #226 [ 32.191304] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.200644] Call Trace: [ 32.203274] dump_stack+0x1c9/0x2b4 [ 32.206892] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.212077] ? lock_downgrade+0x8f0/0x8f0 [ 32.216211] ? __schedule+0xf54/0x1df0 [ 32.220088] panic+0x238/0x4e7 [ 32.223267] ? add_taint.cold.5+0x16/0x16 [ 32.227445] ? print_shadow_for_address+0xba/0x116 [ 32.232368] ? trace_hardirqs_off+0xaf/0x2c0 [ 32.236931] ? trace_hardirqs_off+0x77/0x2c0 [ 32.241322] ? __schedule+0xf54/0x1df0 [ 32.245195] kasan_end_report+0x47/0x4f [ 32.249164] kasan_report.cold.7+0x76/0x30d [ 32.253477] __asan_report_load8_noabort+0x14/0x20 [ 32.258396] __schedule+0xf54/0x1df0 [ 32.262098] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.267311] ? __sched_text_start+0x8/0x8 [ 32.271557] ? __call_srcu+0x7e7/0x1040 [ 32.275536] ? check_same_owner+0x340/0x340 [ 32.279846] ? mark_held_locks+0x160/0x160 [ 32.284064] ? find_held_lock+0x36/0x1c0 [ 32.288117] preempt_schedule_common+0x22/0x60 [ 32.292733] _cond_resched+0x1d/0x30 [ 32.296486] wait_for_completion+0xa5/0x8d0 [ 32.300844] ? wait_for_completion_interruptible+0x950/0x950 [ 32.306676] ? __lockdep_init_map+0x105/0x590 [ 32.311181] ? __init_waitqueue_head+0x9e/0x150 [ 32.315834] ? init_wait_entry+0x1c0/0x1c0 [ 32.320063] __synchronize_srcu+0x189/0x240 [ 32.324379] ? call_srcu+0x10/0x10 [ 32.327909] ? rcu_unexpedite_gp+0x20/0x20 [ 32.332131] synchronize_srcu+0x335/0x56f [ 32.336265] ? lock_downgrade+0x8f0/0x8f0 [ 32.340442] ? synchronize_srcu_expedited+0x20/0x20 [ 32.345448] ? kasan_check_read+0x11/0x20 [ 32.349578] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.354141] ? kasan_check_write+0x14/0x20 [ 32.358361] ? do_raw_spin_lock+0xc1/0x200 [ 32.362586] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.368353] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.373872] ? kvfree+0x61/0x70 [ 32.377145] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.382190] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.386238] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.390631] ? kvm_arch_sync_events+0x30/0x30 [ 32.395125] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.400649] ? mmu_notifier_unregister+0x474/0x600 [ 32.405569] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.409973] ? kfree+0x111/0x210 [ 32.413320] ? __mmu_notifier_register+0x30/0x30 [ 32.418059] ? __free_pages+0x10a/0x190 [ 32.422023] ? free_unref_page+0x930/0x930 [ 32.426243] kvm_put_kvm+0x73f/0x1060 [ 32.430039] ? kvm_write_guest_cached+0x40/0x40 [ 32.434700] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.439183] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.443666] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.448240] ? kasan_check_write+0x14/0x20 [ 32.452459] ? do_raw_spin_lock+0xc1/0x200 [ 32.456680] ? kvm_irqfd_release+0xdd/0x120 [ 32.461047] ? kvm_irqfd_release+0xdd/0x120 [ 32.465359] ? kvm_put_kvm+0x1060/0x1060 [ 32.469595] kvm_vm_release+0x42/0x50 [ 32.473390] __fput+0x38a/0xa40 [ 32.476734] ? __alloc_file+0x400/0x400 [ 32.480699] ? check_same_owner+0x340/0x340 [ 32.485018] ? kasan_check_write+0x14/0x20 [ 32.489242] ? do_raw_spin_lock+0xc1/0x200 [ 32.493456] ____fput+0x15/0x20 [ 32.496951] task_work_run+0x1e8/0x2a0 [ 32.500829] ? task_work_cancel+0x240/0x240 [ 32.505152] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.510673] ? switch_task_namespaces+0xa2/0xd0 [ 32.515334] do_exit+0x1ae4/0x26e0 [ 32.518855] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.523534] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.527775] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.532775] ? kfree+0x1d7/0x210 [ 32.536129] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.540348] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.546047] ? is_bpf_text_address+0xd7/0x170 [ 32.550620] ? kernel_text_address+0x79/0xf0 [ 32.555038] ? __kernel_text_address+0xd/0x40 [ 32.559619] ? unwind_get_return_address+0x61/0xa0 [ 32.564543] ? __save_stack_trace+0x8d/0xf0 [ 32.568856] ? save_stack+0xa9/0xd0 [ 32.572467] ? save_stack+0x43/0xd0 [ 32.576136] ? __kasan_slab_free+0x11a/0x170 [ 32.580541] ? kasan_slab_free+0xe/0x10 [ 32.584658] ? putname+0xf2/0x130 [ 32.588101] ? __x64_sys_openat+0x9d/0x100 [ 32.592323] ? do_syscall_64+0x1b9/0x820 [ 32.596372] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.601836] ? trace_hardirqs_off+0xb8/0x2c0 [ 32.606227] ? kasan_check_read+0x11/0x20 [ 32.610360] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.614764] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.619156] ? initcall_blacklisted+0x9a/0x1e0 [ 32.623723] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.628815] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.634513] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.640041] ? do_vfs_ioctl+0x201/0x1720 [ 32.644102] ? rcu_is_watching+0x8c/0x150 [ 32.648235] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.652554] ? ioctl_preallocate+0x300/0x300 [ 32.656953] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.662478] ? __fget_light+0x2f7/0x440 [ 32.666482] ? fget_raw+0x20/0x20 [ 32.669921] ? putname+0xf2/0x130 [ 32.673360] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.678358] ? kmem_cache_free+0x246/0x280 [ 32.682582] ? putname+0xf7/0x130 [ 32.686096] do_group_exit+0x177/0x440 [ 32.690018] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.694337] ? __ia32_sys_exit+0x50/0x50 [ 32.698386] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.703477] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.709046] ? ksys_ioctl+0x81/0xd0 [ 32.712773] __x64_sys_exit_group+0x3e/0x50 [ 32.717077] do_syscall_64+0x1b9/0x820 [ 32.720990] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.726342] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.731256] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.736151] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 32.741217] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.746227] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.751232] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.756065] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.761244] RIP: 0033:0x43ecd8 [ 32.764488] Code: Bad RIP value. [ 32.767880] RSP: 002b:00007ffca7265c28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.775673] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 32.782921] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.790176] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.797425] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.804678] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.811998] [ 32.812002] ====================================================== [ 32.812005] WARNING: possible circular locking dependency detected [ 32.812007] 4.19.0-rc2+ #226 Not tainted [ 32.812010] ------------------------------------------------------ [ 32.812013] syz-executor657/4287 is trying to acquire lock: [ 32.812015] 000000003792f0ff ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 32.812023] [ 32.812025] but task is already holding lock: [ 32.812027] 0000000017d85142 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.812035] [ 32.812037] which lock already depends on the new lock. [ 32.812039] [ 32.812040] [ 32.812043] the existing dependency chain (in reverse order) is: [ 32.812044] [ 32.812045] -> #3 (report_lock){....}: [ 32.812053] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.812055] kasan_report+0x8e/0x110 [ 32.812058] __asan_report_load8_noabort+0x14/0x20 [ 32.812060] __schedule+0xf54/0x1df0 [ 32.812062] preempt_schedule_common+0x22/0x60 [ 32.812065] _cond_resched+0x1d/0x30 [ 32.812067] wait_for_completion+0xa5/0x8d0 [ 32.812070] __synchronize_srcu+0x189/0x240 [ 32.812072] synchronize_srcu+0x335/0x56f [ 32.812075] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.812077] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.812079] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.812082] kvm_put_kvm+0x73f/0x1060 [ 32.812084] kvm_vm_release+0x42/0x50 [ 32.812086] __fput+0x38a/0xa40 [ 32.812088] ____fput+0x15/0x20 [ 32.812090] task_work_run+0x1e8/0x2a0 [ 32.812092] do_exit+0x1ae4/0x26e0 [ 32.812094] do_group_exit+0x177/0x440 [ 32.812096] __x64_sys_exit_group+0x3e/0x50 [ 32.812098] do_syscall_64+0x1b9/0x820 [ 32.812101] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.812102] [ 32.812103] -> #2 (&rq->lock){-.-.}: [ 32.812111] _raw_spin_lock+0x2a/0x40 [ 32.812113] task_fork_fair+0x93/0x680 [ 32.812115] sched_fork+0x44b/0xbd0 [ 32.812117] copy_process+0x235e/0x7af0 [ 32.812119] _do_fork+0x1ca/0x1170 [ 32.812121] kernel_thread+0x34/0x40 [ 32.812123] rest_init+0x22/0xe4 [ 32.812125] start_kernel+0x913/0x94e [ 32.812128] x86_64_start_reservations+0x29/0x2b [ 32.812130] x86_64_start_kernel+0x76/0x79 [ 32.812132] secondary_startup_64+0xa4/0xb0 [ 32.812133] [ 32.812135] -> #1 (&p->pi_lock){-.-.}: [ 32.812142] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.812145] try_to_wake_up+0xd2/0x1250 [ 32.812147] wake_up_process+0x10/0x20 [ 32.812149] __up.isra.1+0x1c0/0x2a0 [ 32.812152] up+0x13c/0x1c0 [ 32.812156] __up_console_sem+0xbe/0x1b0 [ 32.812158] console_unlock+0x506/0x10e0 [ 32.812160] vprintk_emit+0x33a/0x910 [ 32.812162] vprintk_default+0x28/0x30 [ 32.812165] vprintk_func+0x7a/0x117 [ 32.812166] printk+0xa7/0xcf [ 32.812168] load_umh+0x51/0xbd [ 32.812171] do_one_initcall+0x127/0x838 [ 32.812173] kernel_init_freeable+0x4bb/0x5ae [ 32.812175] kernel_init+0x11/0x1b3 [ 32.812177] ret_from_fork+0x3a/0x50 [ 32.812178] [ 32.812179] -> #0 ((console_sem).lock){-...}: [ 32.812187] lock_acquire+0x1e4/0x4f0 [ 32.812190] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.812192] down_trylock+0x13/0x70 [ 32.812194] __down_trylock_console_sem+0xae/0x200 [ 32.812196] console_trylock+0x15/0xa0 [ 32.812198] vprintk_emit+0x31f/0x910 [ 32.812200] vprintk_default+0x28/0x30 [ 32.812203] vprintk_func+0x7a/0x117 [ 32.812204] printk+0xa7/0xcf [ 32.812207] kasan_report+0x9e/0x110 [ 32.812209] __asan_report_load8_noabort+0x14/0x20 [ 32.812211] __schedule+0xf54/0x1df0 [ 32.812214] preempt_schedule_common+0x22/0x60 [ 32.812216] _cond_resched+0x1d/0x30 [ 32.812218] wait_for_completion+0xa5/0x8d0 [ 32.812221] __synchronize_srcu+0x189/0x240 [ 32.812223] synchronize_srcu+0x335/0x56f [ 32.812226] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.812228] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.812231] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.812233] kvm_put_kvm+0x73f/0x1060 [ 32.812235] kvm_vm_release+0x42/0x50 [ 32.812237] __fput+0x38a/0xa40 [ 32.812239] ____fput+0x15/0x20 [ 32.812241] task_work_run+0x1e8/0x2a0 [ 32.812243] do_exit+0x1ae4/0x26e0 [ 32.812245] do_group_exit+0x177/0x440 [ 32.812248] __x64_sys_exit_group+0x3e/0x50 [ 32.812250] do_syscall_64+0x1b9/0x820 [ 32.812253] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.812254] [ 32.812257] other info that might help us debug this: [ 32.812258] [ 32.812260] Chain exists of: [ 32.812261] (console_sem).lock --> &rq->lock --> report_lock [ 32.812270] [ 32.812273] Possible unsafe locking scenario: [ 32.812274] [ 32.812276] CPU0 CPU1 [ 32.812278] ---- ---- [ 32.812280] lock(report_lock); [ 32.812285] lock(&rq->lock); [ 32.812290] lock(report_lock); [ 32.812294] lock((console_sem).lock); [ 32.812298] [ 32.812300] *** DEADLOCK *** [ 32.812301] [ 32.812304] 2 locks held by syz-executor657/4287: [ 32.812305] #0: 000000008e9cd31c (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 32.812314] #1: 0000000017d85142 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.812323] [ 32.812324] stack backtrace: [ 32.812328] CPU: 1 PID: 4287 Comm: syz-executor657 Not tainted 4.19.0-rc2+ #226 [ 32.812332] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.812334] Call Trace: [ 32.812336] dump_stack+0x1c9/0x2b4 [ 32.812338] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.812340] ? vprintk_func+0x100/0x117 [ 32.812343] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 32.812345] ? save_trace+0xe0/0x290 [ 32.812347] __lock_acquire+0x3449/0x5020 [ 32.812350] ? mark_held_locks+0x160/0x160 [ 32.812352] ? mark_held_locks+0x160/0x160 [ 32.812354] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.812357] ? is_bpf_text_address+0xd7/0x170 [ 32.812359] ? kernel_text_address+0x79/0xf0 [ 32.812361] ? __kernel_text_address+0xd/0x40 [ 32.812363] ? __save_stack_trace+0x8d/0xf0 [ 32.812366] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 32.812368] ? save_trace+0x290/0x290 [ 32.812370] ? save_stack_trace+0x1a/0x20 [ 32.812372] ? save_trace+0xe0/0x290 [ 32.812374] ? graph_lock+0x170/0x170 [ 32.812377] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.812379] lock_acquire+0x1e4/0x4f0 [ 32.812381] ? down_trylock+0x13/0x70 [ 32.812383] ? lock_release+0x9f0/0x9f0 [ 32.812386] ? trace_hardirqs_off+0xb8/0x2c0 [ 32.812388] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.812390] ? trace_hardirqs_off+0xb8/0x2c0 [ 32.812392] ? log_store+0x34f/0x4c0 [ 32.812394] ? vprintk_emit+0x31f/0x910 [ 32.812397] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.812399] ? down_trylock+0x13/0x70 [ 32.812401] down_trylock+0x13/0x70 [ 32.812403] __down_trylock_console_sem+0xae/0x200 [ 32.812405] console_trylock+0x15/0xa0 [ 32.812407] vprintk_emit+0x31f/0x910 [ 32.812409] ? wake_up_klogd+0x110/0x110 [ 32.812412] ? run_rebalance_domains+0x4c0/0x4c0 [ 32.812414] ? kasan_check_read+0x11/0x20 [ 32.812416] ? rcu_is_watching+0x8c/0x150 [ 32.812418] ? rcu_pm_notify+0xc0/0xc0 [ 32.812420] ? lock_acquire+0x1e4/0x4f0 [ 32.812423] ? kasan_report+0x8e/0x110 [ 32.812425] ? __schedule+0xf54/0x1df0 [ 32.812427] vprintk_default+0x28/0x30 [ 32.812429] vprintk_func+0x7a/0x117 [ 32.812431] printk+0xa7/0xcf [ 32.812433] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.812435] ? kasan_check_write+0x14/0x20 [ 32.812437] ? do_raw_spin_lock+0xc1/0x200 [ 32.812440] ? do_raw_spin_lock+0xc1/0x200 [ 32.812442] kasan_report+0x9e/0x110 [ 32.812444] __asan_report_load8_noabort+0x14/0x20 [ 32.812446] __schedule+0xf54/0x1df0 [ 32.812449] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.812451] ? __sched_text_start+0x8/0x8 [ 32.812453] ? __call_srcu+0x7e7/0x1040 [ 32.812455] ? check_same_owner+0x340/0x340 [ 32.812457] ? mark_held_locks+0x160/0x160 [ 32.812460] ? find_held_lock+0x36/0x1c0 [ 32.812462] preempt_schedule_common+0x22/0x60 [ 32.812464] _cond_resched+0x1d/0x30 [ 32.812466] wait_for_completion+0xa5/0x8d0 [ 32.812469] ? wait_for_completion_interruptible+0x950/0x950 [ 32.812472] ? __lockdep_init_map+0x105/0x590 [ 32.812474] ? __init_waitqueue_head+0x9e/0x150 [ 32.812476] ? init_wait_entry+0x1c0/0x1c0 [ 32.812479] __synchronize_srcu+0x189/0x240 [ 32.812481] ? call_srcu+0x10/0x10 [ 32.812483] ? rcu_unexpedite_gp+0x20/0x20 [ 32.812485] synchronize_srcu+0x335/0x56f [ 32.812488] ? lock_downgrade+0x8f0/0x8f0 [ 32.812490] ? synchronize_srcu_expedited+0x20/0x20 [ 32.812493] ? kasan_check_read+0x11/0x20 [ 32.812495] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.812497] ? kasan_check_write+0x14/0x20 [ 32.812500] ? do_raw_spin_lock+0xc1/0x200 [ 32.812503] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.812505] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.812507] ? kvfree+0x61/0x70 [ 32.812510] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.812512] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.812514] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.812516] ? kvm_arch_sync_events+0x30/0x30 [ 32.812519] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.812522] ? mmu_notifier_unregister+0x474/0x600 [ 32.812533] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.812536] ? kfree+0x111/0x210 [ 32.812538] ? __mmu_notifier_register+0x30/0x30 [ 32.812540] ? __free_pages+0x10a/0x190 [ 32.812542] ? free_unref_page+0x930/0x930 [ 32.812545] kvm_put_kvm+0x73f/0x1060 [ 32.812547] ? kvm_write_guest_cached+0x40/0x40 [ 32.812549] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.812552] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.812554] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.812556] ? kasan_check_write+0x14/0x20 [ 32.812559] ? do_raw_spin_lock+0xc1/0x200 [ 32.812561] ? kvm_irqfd_release+0xdd/0x120 [ 32.812563] ? kvm_irqfd_release+0xdd/0x120 [ 32.812566] ? kvm_put_kvm+0x1060/0x1060 [ 32.812568] kvm_vm_release+0x42/0x50 [ 32.812570] __fput+0x38a/0xa40 [ 32.812572] ? __alloc_file+0x400/0x400 [ 32.812575] ? check_same_owner+0x340/0x340 [ 32.812577] ? kasan_check_write+0x14/0x20 [ 32.812579] ? do_raw_spin_lock+0xc1/0x200 [ 32.812581] ____fput+0x15/0x20 [ 32.812583] task_work_run+0x1e8/0x2a0 [ 32.812586] ? task_work_cancel+0x240/0x240 [ 32.812589] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.812591] ? switch_task_namespaces+0xa2/0xd0 [ 32.812593] do_exit+0x1ae4/0x26e0 [ 32.812596] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.812598] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.812600] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.812602] ? kfree+0x1d7/0x210 [ 32.812605] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.812607] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.812610] ? is_bpf_text_address+0xd7/0x170 [ 32.812611] ? [ 32.812616] Lost 55 message(s)! [ 33.878342] Shutting down cpus with NMI [ 34.938106] Dumping ftrace buffer: [ 34.941639] (ftrace buffer empty) [ 34.945330] Kernel Offset: disabled [ 34.948951] Rebooting in 86400 seconds..