[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.527849] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.868837] random: sshd: uninitialized urandom read (32 bytes read) [ 27.361300] random: sshd: uninitialized urandom read (32 bytes read) [ 27.913983] random: sshd: uninitialized urandom read (32 bytes read) [ 28.090229] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.31' (ECDSA) to the list of known hosts. [ 33.904283] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.002899] 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. [ 34.028088] ================================================================== [ 34.037970] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.044200] Read of size 8 at addr ffff8801ce290058 by task syz-executor343/4656 [ 34.051733] [ 34.053361] CPU: 1 PID: 4656 Comm: syz-executor343 Not tainted 4.19.0-rc1+ #215 [ 34.060801] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.070146] Call Trace: [ 34.072735] dump_stack+0x1c9/0x2b4 [ 34.076360] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.081548] ? printk+0xa7/0xcf [ 34.084825] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.089582] ? __schedule+0xf54/0x1df0 [ 34.093470] print_address_description+0x6c/0x20b [ 34.098311] ? __schedule+0xf54/0x1df0 [ 34.102194] kasan_report.cold.7+0x242/0x30d [ 34.106603] __asan_report_load8_noabort+0x14/0x20 [ 34.111526] __schedule+0xf54/0x1df0 [ 34.115237] ? __sched_text_start+0x8/0x8 [ 34.119386] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.124489] ? __call_srcu+0x7e7/0x1040 [ 34.128469] ? check_same_owner+0x340/0x340 [ 34.132783] ? mark_held_locks+0x160/0x160 [ 34.137015] ? find_held_lock+0x36/0x1c0 [ 34.141075] preempt_schedule_common+0x22/0x60 [ 34.145651] _cond_resched+0x1d/0x30 [ 34.149386] wait_for_completion+0xa5/0x8d0 [ 34.153726] ? wait_for_completion_interruptible+0x950/0x950 [ 34.159520] ? __lockdep_init_map+0x105/0x590 [ 34.164012] ? __init_waitqueue_head+0x9e/0x150 [ 34.168677] ? init_wait_entry+0x1c0/0x1c0 [ 34.172913] __synchronize_srcu+0x189/0x240 [ 34.177232] ? call_srcu+0x10/0x10 [ 34.180767] ? rcu_unexpedite_gp+0x20/0x20 [ 34.185018] synchronize_srcu+0x335/0x56f [ 34.189163] ? lock_downgrade+0x8f0/0x8f0 [ 34.193307] ? synchronize_srcu_expedited+0x20/0x20 [ 34.198820] ? kasan_check_read+0x11/0x20 [ 34.202973] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.207551] ? kasan_check_write+0x14/0x20 [ 34.211782] ? do_raw_spin_lock+0xc1/0x200 [ 34.216020] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.221731] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.227178] ? kvfree+0x61/0x70 [ 34.230458] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.235471] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.239548] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.243954] ? kvm_arch_sync_events+0x30/0x30 [ 34.248451] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.253984] ? mmu_notifier_unregister+0x474/0x600 [ 34.258910] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.263313] ? kfree+0x111/0x210 [ 34.266676] ? __mmu_notifier_register+0x30/0x30 [ 34.271441] ? __free_pages+0x10a/0x190 [ 34.275428] ? free_unref_page+0x930/0x930 [ 34.279666] kvm_put_kvm+0x73f/0x1060 [ 34.283467] ? kvm_write_guest_cached+0x40/0x40 [ 34.288138] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.292641] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.297129] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.301710] ? kasan_check_write+0x14/0x20 [ 34.305942] ? do_raw_spin_lock+0xc1/0x200 [ 34.310175] ? kvm_irqfd_release+0xdd/0x120 [ 34.314489] ? kvm_irqfd_release+0xdd/0x120 [ 34.318811] ? kvm_put_kvm+0x1060/0x1060 [ 34.322874] kvm_vm_release+0x42/0x50 [ 34.326674] __fput+0x38a/0xa40 [ 34.329948] ? __alloc_file+0x400/0x400 [ 34.333926] ? check_same_owner+0x340/0x340 [ 34.338248] ? kasan_check_write+0x14/0x20 [ 34.342476] ? do_raw_spin_lock+0xc1/0x200 [ 34.346705] ____fput+0x15/0x20 [ 34.349984] task_work_run+0x1e8/0x2a0 [ 34.353875] ? task_work_cancel+0x240/0x240 [ 34.358199] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.363737] ? switch_task_namespaces+0xa2/0xd0 [ 34.368404] do_exit+0x1ae4/0x26e0 [ 34.371942] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.376609] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.380842] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.386389] ? kfree+0x1d7/0x210 [ 34.389752] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.393983] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.399691] ? is_bpf_text_address+0xd7/0x170 [ 34.404180] ? kernel_text_address+0x79/0xf0 [ 34.408580] ? __kernel_text_address+0xd/0x40 [ 34.413080] ? unwind_get_return_address+0x61/0xa0 [ 34.418005] ? __save_stack_trace+0x8d/0xf0 [ 34.422326] ? save_stack+0xa9/0xd0 [ 34.425946] ? save_stack+0x43/0xd0 [ 34.429564] ? __kasan_slab_free+0x11a/0x170 [ 34.433968] ? kasan_slab_free+0xe/0x10 [ 34.437938] ? putname+0xf2/0x130 [ 34.441397] ? __x64_sys_openat+0x9d/0x100 [ 34.445627] ? do_syscall_64+0x1b9/0x820 [ 34.449683] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.455042] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.459443] ? kasan_check_read+0x11/0x20 [ 34.463584] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.467987] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.472394] ? initcall_blacklisted+0x9a/0x1e0 [ 34.476978] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.482080] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.487798] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.493330] ? do_vfs_ioctl+0x201/0x1720 [ 34.497407] ? rcu_is_watching+0x8c/0x150 [ 34.501547] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.505871] ? ioctl_preallocate+0x300/0x300 [ 34.510279] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.515808] ? __fget_light+0x2f7/0x440 [ 34.519778] ? fget_raw+0x20/0x20 [ 34.523286] ? putname+0xf2/0x130 [ 34.526736] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.531748] ? kmem_cache_free+0x246/0x280 [ 34.535976] ? putname+0xf7/0x130 [ 34.539427] do_group_exit+0x177/0x440 [ 34.543310] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.547624] ? __ia32_sys_exit+0x50/0x50 [ 34.551678] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.556776] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.562310] ? ksys_ioctl+0x81/0xd0 [ 34.565938] __x64_sys_exit_group+0x3e/0x50 [ 34.570255] do_syscall_64+0x1b9/0x820 [ 34.574136] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.579497] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.584420] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.589260] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.594273] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.599289] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.604132] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.609311] RIP: 0033:0x43ecc8 [ 34.612500] Code: Bad RIP value. [ 34.615862] RSP: 002b:00007fff18bd2e18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.623564] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 34.630828] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.638096] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.645445] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.652709] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.659978] [ 34.661599] Allocated by task 4656: [ 34.665224] save_stack+0x43/0xd0 [ 34.668669] kasan_kmalloc+0xc4/0xe0 [ 34.672383] kasan_slab_alloc+0x12/0x20 [ 34.676358] kmem_cache_alloc+0x12e/0x710 [ 34.680504] vmx_create_vcpu+0xcf/0x2830 [ 34.684557] kvm_arch_vcpu_create+0xe5/0x220 [ 34.688962] kvm_vm_ioctl+0x488/0x1d80 [ 34.692857] do_vfs_ioctl+0x1de/0x1720 [ 34.696748] ksys_ioctl+0xa9/0xd0 [ 34.700194] __x64_sys_ioctl+0x73/0xb0 [ 34.704077] do_syscall_64+0x1b9/0x820 [ 34.707958] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.713132] [ 34.714750] Freed by task 4656: [ 34.718024] save_stack+0x43/0xd0 [ 34.721470] __kasan_slab_free+0x11a/0x170 [ 34.725699] kasan_slab_free+0xe/0x10 [ 34.729489] kmem_cache_free+0x86/0x280 [ 34.733458] vmx_free_vcpu+0x26b/0x300 [ 34.737339] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.741744] kvm_put_kvm+0x73f/0x1060 [ 34.745539] kvm_vm_release+0x42/0x50 [ 34.749330] __fput+0x38a/0xa40 [ 34.752598] ____fput+0x15/0x20 [ 34.755878] task_work_run+0x1e8/0x2a0 [ 34.759761] do_exit+0x1ae4/0x26e0 [ 34.763294] do_group_exit+0x177/0x440 [ 34.767174] __x64_sys_exit_group+0x3e/0x50 [ 34.771494] do_syscall_64+0x1b9/0x820 [ 34.775383] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.780562] [ 34.782184] The buggy address belongs to the object at ffff8801ce290040 [ 34.782184] which belongs to the cache kvm_vcpu of size 23872 [ 34.794757] The buggy address is located 24 bytes inside of [ 34.794757] 23872-byte region [ffff8801ce290040, ffff8801ce295d80) [ 34.806723] The buggy address belongs to the page: [ 34.811649] page:ffffea000738a400 count:1 mapcount:0 mapping:ffff8801d51f6b40 index:0x0 compound_mapcount: 0 [ 34.821618] flags: 0x2fffc0000008100(slab|head) [ 34.826291] raw: 02fffc0000008100 ffff8801d51f1748 ffff8801d51f1748 ffff8801d51f6b40 [ 34.834184] raw: 0000000000000000 ffff8801ce290040 0000000100000001 0000000000000000 [ 34.842054] page dumped because: kasan: bad access detected [ 34.847751] [ 34.849363] Memory state around the buggy address: [ 34.854294] ffff8801ce28ff00: fb fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb [ 34.861651] ffff8801ce28ff80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 34.869004] >ffff8801ce290000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.876350] ^ [ 34.882580] ffff8801ce290080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.889933] ffff8801ce290100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.897279] ================================================================== [ 34.904628] Kernel panic - not syncing: panic_on_warn set ... [ 34.904628] [ 34.911993] CPU: 1 PID: 4656 Comm: syz-executor343 Tainted: G B 4.19.0-rc1+ #215 [ 34.920818] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.930165] Call Trace: [ 34.932753] dump_stack+0x1c9/0x2b4 [ 34.936384] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.941571] ? lock_downgrade+0x8f0/0x8f0 [ 34.945713] ? __schedule+0xf54/0x1df0 [ 34.949599] panic+0x238/0x4e7 [ 34.952787] ? add_taint.cold.5+0x16/0x16 [ 34.956938] ? print_shadow_for_address+0xba/0x116 [ 34.961869] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.966272] ? trace_hardirqs_off+0x77/0x2b0 [ 34.970682] ? __schedule+0xf54/0x1df0 [ 34.974566] kasan_end_report+0x47/0x4f [ 34.978552] kasan_report.cold.7+0x76/0x30d [ 34.982883] __asan_report_load8_noabort+0x14/0x20 [ 34.987814] __schedule+0xf54/0x1df0 [ 34.991526] ? __sched_text_start+0x8/0x8 [ 34.995669] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.000774] ? __call_srcu+0x7e7/0x1040 [ 35.004751] ? check_same_owner+0x340/0x340 [ 35.009068] ? mark_held_locks+0x160/0x160 [ 35.013300] ? find_held_lock+0x36/0x1c0 [ 35.017378] preempt_schedule_common+0x22/0x60 [ 35.021969] _cond_resched+0x1d/0x30 [ 35.025686] wait_for_completion+0xa5/0x8d0 [ 35.030011] ? wait_for_completion_interruptible+0x950/0x950 [ 35.035811] ? __lockdep_init_map+0x105/0x590 [ 35.040304] ? __init_waitqueue_head+0x9e/0x150 [ 35.044971] ? init_wait_entry+0x1c0/0x1c0 [ 35.049205] __synchronize_srcu+0x189/0x240 [ 35.053522] ? call_srcu+0x10/0x10 [ 35.057059] ? rcu_unexpedite_gp+0x20/0x20 [ 35.061298] synchronize_srcu+0x335/0x56f [ 35.065606] ? lock_downgrade+0x8f0/0x8f0 [ 35.069744] ? synchronize_srcu_expedited+0x20/0x20 [ 35.074759] ? kasan_check_read+0x11/0x20 [ 35.078910] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.083487] ? kasan_check_write+0x14/0x20 [ 35.087718] ? do_raw_spin_lock+0xc1/0x200 [ 35.091953] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.097662] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.103109] ? kvfree+0x61/0x70 [ 35.106397] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.111414] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.115472] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.119887] ? kvm_arch_sync_events+0x30/0x30 [ 35.124403] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.129943] ? mmu_notifier_unregister+0x474/0x600 [ 35.134876] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.139284] ? kfree+0x111/0x210 [ 35.142674] ? __mmu_notifier_register+0x30/0x30 [ 35.147434] ? __free_pages+0x10a/0x190 [ 35.151413] ? free_unref_page+0x930/0x930 [ 35.155658] kvm_put_kvm+0x73f/0x1060 [ 35.159462] ? kvm_write_guest_cached+0x40/0x40 [ 35.164129] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.168618] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.173113] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.177697] ? kasan_check_write+0x14/0x20 [ 35.181931] ? do_raw_spin_lock+0xc1/0x200 [ 35.186165] ? kvm_irqfd_release+0xdd/0x120 [ 35.190485] ? kvm_irqfd_release+0xdd/0x120 [ 35.194807] ? kvm_put_kvm+0x1060/0x1060 [ 35.199347] kvm_vm_release+0x42/0x50 [ 35.203151] __fput+0x38a/0xa40 [ 35.206429] ? __alloc_file+0x400/0x400 [ 35.210406] ? check_same_owner+0x340/0x340 [ 35.214728] ? kasan_check_write+0x14/0x20 [ 35.218972] ? do_raw_spin_lock+0xc1/0x200 [ 35.223210] ____fput+0x15/0x20 [ 35.226495] task_work_run+0x1e8/0x2a0 [ 35.230387] ? task_work_cancel+0x240/0x240 [ 35.234708] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.240243] ? switch_task_namespaces+0xa2/0xd0 [ 35.244913] do_exit+0x1ae4/0x26e0 [ 35.248488] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.253158] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.257398] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.262410] ? kfree+0x1d7/0x210 [ 35.265773] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.270022] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.275733] ? is_bpf_text_address+0xd7/0x170 [ 35.280227] ? kernel_text_address+0x79/0xf0 [ 35.284632] ? __kernel_text_address+0xd/0x40 [ 35.289123] ? unwind_get_return_address+0x61/0xa0 [ 35.294051] ? __save_stack_trace+0x8d/0xf0 [ 35.298378] ? save_stack+0xa9/0xd0 [ 35.302003] ? save_stack+0x43/0xd0 [ 35.305624] ? __kasan_slab_free+0x11a/0x170 [ 35.310030] ? kasan_slab_free+0xe/0x10 [ 35.314003] ? putname+0xf2/0x130 [ 35.317460] ? __x64_sys_openat+0x9d/0x100 [ 35.321692] ? do_syscall_64+0x1b9/0x820 [ 35.325752] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.331116] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.335518] ? kasan_check_read+0x11/0x20 [ 35.339671] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.344077] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.348483] ? initcall_blacklisted+0x9a/0x1e0 [ 35.353063] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.358166] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.363885] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.369417] ? do_vfs_ioctl+0x201/0x1720 [ 35.373473] ? rcu_is_watching+0x8c/0x150 [ 35.377635] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.381958] ? ioctl_preallocate+0x300/0x300 [ 35.386386] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.391920] ? __fget_light+0x2f7/0x440 [ 35.395891] ? fget_raw+0x20/0x20 [ 35.399338] ? putname+0xf2/0x130 [ 35.402791] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.407806] ? kmem_cache_free+0x246/0x280 [ 35.412042] ? putname+0xf7/0x130 [ 35.415501] do_group_exit+0x177/0x440 [ 35.419393] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.423716] ? __ia32_sys_exit+0x50/0x50 [ 35.427779] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.432890] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.438427] ? ksys_ioctl+0x81/0xd0 [ 35.442054] __x64_sys_exit_group+0x3e/0x50 [ 35.446382] do_syscall_64+0x1b9/0x820 [ 35.450269] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.455632] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.460556] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.465399] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.470415] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.475430] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.480274] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.485461] RIP: 0033:0x43ecc8 [ 35.488652] Code: Bad RIP value. [ 35.492059] RSP: 002b:00007fff18bd2e18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.499768] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.507034] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.514314] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.521582] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.528857] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.536138] [ 35.536144] ====================================================== [ 35.536150] WARNING: possible circular locking dependency detected [ 35.536153] 4.19.0-rc1+ #215 Not tainted [ 35.536159] ------------------------------------------------------ [ 35.536164] syz-executor343/4656 is trying to acquire lock: [ 35.536167] 000000005663e6da ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.536182] [ 35.536187] but task is already holding lock: [ 35.536190] 00000000b7d95ec3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.536204] [ 35.536209] which lock already depends on the new lock. [ 35.536211] [ 35.536213] [ 35.536218] the existing dependency chain (in reverse order) is: [ 35.536221] [ 35.536223] -> #3 (report_lock){....}: [ 35.536238] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.536241] kasan_report+0x8e/0x110 [ 35.536246] __asan_report_load8_noabort+0x14/0x20 [ 35.536250] __schedule+0xf54/0x1df0 [ 35.536254] preempt_schedule_common+0x22/0x60 [ 35.536258] _cond_resched+0x1d/0x30 [ 35.536262] wait_for_completion+0xa5/0x8d0 [ 35.536267] __synchronize_srcu+0x189/0x240 [ 35.536271] synchronize_srcu+0x335/0x56f [ 35.536276] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.536280] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.536284] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.536288] kvm_put_kvm+0x73f/0x1060 [ 35.536292] kvm_vm_release+0x42/0x50 [ 35.536295] __fput+0x38a/0xa40 [ 35.536299] ____fput+0x15/0x20 [ 35.536303] task_work_run+0x1e8/0x2a0 [ 35.536307] do_exit+0x1ae4/0x26e0 [ 35.536311] do_group_exit+0x177/0x440 [ 35.536315] __x64_sys_exit_group+0x3e/0x50 [ 35.536319] do_syscall_64+0x1b9/0x820 [ 35.536323] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.536326] [ 35.536328] -> #2 (&rq->lock){-.-.}: [ 35.536342] _raw_spin_lock+0x2a/0x40 [ 35.536346] task_fork_fair+0x93/0x680 [ 35.536350] sched_fork+0x44b/0xbd0 [ 35.536354] copy_process+0x235e/0x7ad0 [ 35.536357] _do_fork+0x1ca/0x1170 [ 35.536361] kernel_thread+0x34/0x40 [ 35.536365] rest_init+0x22/0xe4 [ 35.536374] start_kernel+0x913/0x94e [ 35.536379] x86_64_start_reservations+0x29/0x2b [ 35.536383] x86_64_start_kernel+0x76/0x79 [ 35.536387] secondary_startup_64+0xa4/0xb0 [ 35.536389] [ 35.536392] -> #1 (&p->pi_lock){-.-.}: [ 35.536406] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.536410] try_to_wake_up+0xd2/0x1250 [ 35.536414] wake_up_process+0x10/0x20 [ 35.536418] __up.isra.1+0x1c0/0x2a0 [ 35.536421] up+0x13c/0x1c0 [ 35.536425] __up_console_sem+0xbe/0x1b0 [ 35.536429] console_unlock+0x506/0x10d0 [ 35.536433] vprintk_emit+0x33a/0x910 [ 35.536437] vprintk_default+0x28/0x30 [ 35.536441] vprintk_func+0x7a/0x117 [ 35.536444] printk+0xa7/0xcf [ 35.536448] load_umh+0x51/0xbd [ 35.536452] do_one_initcall+0x127/0x838 [ 35.536456] kernel_init_freeable+0x4bb/0x5ae [ 35.536460] kernel_init+0x11/0x1b3 [ 35.536464] ret_from_fork+0x3a/0x50 [ 35.536466] [ 35.536469] -> #0 ((console_sem).lock){-...}: [ 35.536483] lock_acquire+0x1e4/0x4f0 [ 35.536488] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.536491] down_trylock+0x13/0x70 [ 35.536496] __down_trylock_console_sem+0xae/0x200 [ 35.536500] console_trylock+0x15/0xa0 [ 35.536504] vprintk_emit+0x31f/0x910 [ 35.536508] vprintk_default+0x28/0x30 [ 35.536511] vprintk_func+0x7a/0x117 [ 35.536515] printk+0xa7/0xcf [ 35.536519] kasan_report+0x9e/0x110 [ 35.536523] __asan_report_load8_noabort+0x14/0x20 [ 35.536527] __schedule+0xf54/0x1df0 [ 35.536531] preempt_schedule_common+0x22/0x60 [ 35.536535] _cond_resched+0x1d/0x30 [ 35.536539] wait_for_completion+0xa5/0x8d0 [ 35.536544] __synchronize_srcu+0x189/0x240 [ 35.536548] synchronize_srcu+0x335/0x56f [ 35.536553] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.536557] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.536561] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.536565] kvm_put_kvm+0x73f/0x1060 [ 35.536569] kvm_vm_release+0x42/0x50 [ 35.536572] __fput+0x38a/0xa40 [ 35.536576] ____fput+0x15/0x20 [ 35.536580] task_work_run+0x1e8/0x2a0 [ 35.536583] do_exit+0x1ae4/0x26e0 [ 35.536587] do_group_exit+0x177/0x440 [ 35.536591] __x64_sys_exit_group+0x3e/0x50 [ 35.536595] do_syscall_64+0x1b9/0x820 [ 35.536600] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.536602] [ 35.536607] other info that might help us debug this: [ 35.536609] [ 35.536612] Chain exists of: [ 35.536614] (console_sem).lock --> &rq->lock --> report_lock [ 35.536633] [ 35.536637] Possible unsafe locking scenario: [ 35.536639] [ 35.536643] CPU0 CPU1 [ 35.536647] ---- ---- [ 35.536650] lock(report_lock); [ 35.536659] lock(&rq->lock); [ 35.536668] lock(report_lock); [ 35.536676] lock((console_sem).lock); [ 35.536685] [ 35.536688] *** DEADLOCK *** [ 35.536690] [ 35.536694] 2 locks held by syz-executor343/4656: [ 35.536697] #0: 00000000bcbdc12f (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.536714] #1: 00000000b7d95ec3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.536731] [ 35.536734] stack backtrace: [ 35.536740] CPU: 1 PID: 4656 Comm: syz-executor343 Not tainted 4.19.0-rc1+ #215 [ 35.536747] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.536750] Call Trace: [ 35.536754] dump_stack+0x1c9/0x2b4 [ 35.536759] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.536763] ? vprintk_func+0x100/0x117 [ 35.536767] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.536771] ? save_trace+0xe0/0x290 [ 35.536775] __lock_acquire+0x3449/0x5020 [ 35.536779] ? mark_held_locks+0x160/0x160 [ 35.536783] ? mark_held_locks+0x160/0x160 [ 35.536788] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.536792] ? is_bpf_text_address+0xd7/0x170 [ 35.536796] ? kernel_text_address+0x79/0xf0 [ 35.536801] ? __kernel_text_address+0xd/0x40 [ 35.536805] ? __save_stack_trace+0x8d/0xf0 [ 35.536809] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.536813] ? save_trace+0x290/0x290 [ 35.536817] ? save_stack_trace+0x1a/0x20 [ 35.536821] ? save_trace+0xe0/0x290 [ 35.536825] ? graph_lock+0x170/0x170 [ 35.536830] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.536833] lock_acquire+0x1e4/0x4f0 [ 35.536837] ? down_trylock+0x13/0x70 [ 35.536841] ? lock_release+0x9f0/0x9f0 [ 35.536845] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.536858] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.536862] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.536866] ? log_store+0x34f/0x4c0 [ 35.536870] ? vprintk_emit+0x31f/0x910 [ 35.536875] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.536879] ? down_trylock+0x13/0x70 [ 35.536882] down_trylock+0x13/0x70 [ 35.536887] __down_trylock_console_sem+0xae/0x200 [ 35.536891] console_trylock+0x15/0xa0 [ 35.536894] vprintk_emit+0x31f/0x910 [ 35.536898] ? wake_up_klogd+0x110/0x110 [ 35.536903] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.536907] ? kasan_check_read+0x11/0x20 [ 35.536911] ? rcu_is_watching+0x8c/0x150 [ 35.536915] ? rcu_pm_notify+0xc0/0xc0 [ 35.536919] ? lock_acquire+0x1e4/0x4f0 [ 35.536922] ? kasan_report+0x8e/0x110 [ 35.536926] ? __schedule+0xf54/0x1df0 [ 35.536930] vprintk_default+0x28/0x30 [ 35.536934] vprintk_func+0x7a/0x117 [ 35.536937] printk+0xa7/0xcf [ 35.536942] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.536946] ? kasan_check_write+0x14/0x20 [ 35.536950] ? do_raw_spin_lock+0xc1/0x200 [ 35.536954] ? do_raw_spin_lock+0xc1/0x200 [ 35.536958] kasan_report+0x9e/0x110 [ 35.536962] __asan_report_load8_noabort+0x14/0x20 [ 35.536966] __schedule+0xf54/0x1df0 [ 35.536970] ? __sched_text_start+0x8/0x8 [ 35.536975] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.536979] ? __call_srcu+0x7e7/0x1040 [ 35.536983] ? check_same_owner+0x340/0x340 [ 35.536987] ? mark_held_locks+0x160/0x160 [ 35.536991] ? find_held_lock+0x36/0x1c0 [ 35.536995] preempt_schedule_common+0x22/0x60 [ 35.536999] _cond_resched+0x1d/0x30 [ 35.537003] wait_for_completion+0xa5/0x8d0 [ 35.537008] ? wait_for_completion_interruptible+0x950/0x950 [ 35.537012] ? __lockdep_init_map+0x105/0x590 [ 35.537016] ? __init_waitqueue_head+0x9e/0x150 [ 35.537021] ? init_wait_entry+0x1c0/0x1c0 [ 35.537025] __synchronize_srcu+0x189/0x240 [ 35.537028] ? call_srcu+0x10/0x10 [ 35.537033] ? rcu_unexpedite_gp+0x20/0x20 [ 35.537037] synchronize_srcu+0x335/0x56f [ 35.537041] ? lock_downgrade+0x8f0/0x8f0 [ 35.537045] ? synchronize_srcu_expedited+0x20/0x20 [ 35.537049] ? kasan_check_read+0x11/0x20 [ 35.537054] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.537058] ? kasan_check_write+0x14/0x20 [ 35.537062] ? do_raw_spin_lock+0xc1/0x200 [ 35.537067] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.537071] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.537075] ? kvfree+0x61/0x70 [ 35.537080] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.537084] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.537088] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.537092] ? kvm_arch_sync_events+0x30/0x30 [ 35.537097] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.537101] ? mmu_notifier_unregister+0x474/0x600 [ 35.537106] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.537109] ? kfree+0x111/0x210 [ 35.537114] ? __mmu_notifier_register+0x30/0x30 [ 35.537117] ? __free_pages+0x10a/0x190 [ 35.537122] ? free_unref_page+0x930/0x930 [ 35.537125] kvm_put_kvm+0x73f/0x1060 [ 35.537130] ? kvm_write_guest_cached+0x40/0x40 [ 35.537134] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.537138] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.537142] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.537147] ? kasan_check_write+0x14/0x20 [ 35.537151] ? do_raw_spin_lock+0xc1/0x200 [ 35.537155] ? kvm_irqfd_release+0xdd/0x120 [ 35.537159] ? kvm_irqfd_release+0xdd/0x120 [ 35.537163] ? kvm_put_kvm+0x1060/0x1060 [ 35.537167] kvm_vm_release+0x42/0x50 [ 35.537170] __fput+0x38a/0xa40 [ 35.537174] ? __alloc_file+0x400/0x400 [ 35.537178] ? check_same_owner+0x340/0x340 [ 35.537182] ? kasan_check_write+0x14/0x20 [ 35.537186] ? do_raw_spin_lock+0xc1/0x200 [ 35.537190] ____fput+0x15/0x20 [ 35.537194] task_work_run+0x1e8/0x2a0 [ 35.537198] ? task_work_cancel+0x240/0x240 [ 35.537203] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.537207] ? switch_task_namespaces+0xa2/0xd0 [ 35.537211] do_exit+0x1ae4/0x26e0 [ 35.537215] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.537219] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.537224] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.537227] ? kfree+0x1d7/0x210 [ 35.537231] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.537236] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.537241] ? is_bpf_text_address+0xd7/0x170 [ 35.537243] ? [ 35.537250] Lost 54 message(s)! [ 36.617713] Shutting down cpus with NMI [ 37.677225] Dumping ftrace buffer: [ 37.680743] (ftrace buffer empty) [ 37.684430] Kernel Offset: disabled [ 37.688038] Rebooting in 86400 seconds..