[....] 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[ 23.950048] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.781329] random: sshd: uninitialized urandom read (32 bytes read) [ 29.006329] random: sshd: uninitialized urandom read (32 bytes read) [ 29.545825] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.4' (ECDSA) to the list of known hosts. [ 35.472291] urandom_read: 1 callbacks suppressed [ 35.472296] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.575650] 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. [ 35.600592] ================================================================== [ 35.610368] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 35.616597] Read of size 8 at addr ffff8801c4288058 by task syz-executor661/4666 [ 35.624120] [ 35.625758] CPU: 0 PID: 4666 Comm: syz-executor661 Not tainted 4.19.0-rc1+ #214 [ 35.633201] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.642547] Call Trace: [ 35.645135] dump_stack+0x1c9/0x2b4 [ 35.648761] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.653958] ? printk+0xa7/0xcf [ 35.657255] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.662012] ? __schedule+0xf54/0x1df0 [ 35.665900] print_address_description+0x6c/0x20b [ 35.670755] ? __schedule+0xf54/0x1df0 [ 35.674639] kasan_report.cold.7+0x242/0x30d [ 35.679050] __asan_report_load8_noabort+0x14/0x20 [ 35.683975] __schedule+0xf54/0x1df0 [ 35.687684] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.692789] ? __sched_text_start+0x8/0x8 [ 35.696950] ? __call_srcu+0x7e7/0x1040 [ 35.700945] ? check_same_owner+0x340/0x340 [ 35.705271] ? mark_held_locks+0x160/0x160 [ 35.709504] ? find_held_lock+0x36/0x1c0 [ 35.713567] preempt_schedule_common+0x22/0x60 [ 35.718142] _cond_resched+0x1d/0x30 [ 35.721868] wait_for_completion+0xa5/0x8d0 [ 35.726209] ? wait_for_completion_interruptible+0x950/0x950 [ 35.732009] ? __lockdep_init_map+0x105/0x590 [ 35.736502] ? __init_waitqueue_head+0x9e/0x150 [ 35.741167] ? init_wait_entry+0x1c0/0x1c0 [ 35.745401] __synchronize_srcu+0x189/0x240 [ 35.749718] ? call_srcu+0x10/0x10 [ 35.753279] ? rcu_unexpedite_gp+0x20/0x20 [ 35.757518] synchronize_srcu+0x335/0x56f [ 35.761660] ? lock_downgrade+0x8f0/0x8f0 [ 35.765802] ? synchronize_srcu_expedited+0x20/0x20 [ 35.770821] ? kasan_check_read+0x11/0x20 [ 35.774969] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.779549] ? kasan_check_write+0x14/0x20 [ 35.783781] ? do_raw_spin_lock+0xc1/0x200 [ 35.788019] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.793728] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.799173] ? kvfree+0x61/0x70 [ 35.802452] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.807480] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.811540] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.815949] ? kvm_arch_sync_events+0x30/0x30 [ 35.820447] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.825987] ? mmu_notifier_unregister+0x474/0x600 [ 35.830912] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.835688] ? __mmu_notifier_register+0x30/0x30 [ 35.840447] ? __free_pages+0x10a/0x190 [ 35.844432] ? free_unref_page+0x930/0x930 [ 35.848678] kvm_put_kvm+0x73f/0x1060 [ 35.852488] ? kvm_write_guest_cached+0x40/0x40 [ 35.857171] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.861671] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.866165] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.870766] ? kasan_check_write+0x14/0x20 [ 35.875001] ? do_raw_spin_lock+0xc1/0x200 [ 35.879246] ? kvm_irqfd_release+0xdd/0x120 [ 35.883566] ? kvm_irqfd_release+0xdd/0x120 [ 35.887886] ? kvm_put_kvm+0x1060/0x1060 [ 35.891946] kvm_vm_release+0x42/0x50 [ 35.895742] __fput+0x38a/0xa40 [ 35.899019] ? __alloc_file+0x400/0x400 [ 35.902996] ? check_same_owner+0x340/0x340 [ 35.907334] ? kasan_check_write+0x14/0x20 [ 35.911568] ? do_raw_spin_lock+0xc1/0x200 [ 35.915800] ____fput+0x15/0x20 [ 35.919079] task_work_run+0x1e8/0x2a0 [ 35.922963] ? task_work_cancel+0x240/0x240 [ 35.927288] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.932825] ? switch_task_namespaces+0xa2/0xd0 [ 35.937496] do_exit+0x1ae4/0x26e0 [ 35.941040] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.945712] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.949948] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.954959] ? kfree+0x1d7/0x210 [ 35.958326] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.962561] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.968271] ? is_bpf_text_address+0xd7/0x170 [ 35.973224] ? kernel_text_address+0x79/0xf0 [ 35.977628] ? __kernel_text_address+0xd/0x40 [ 35.982123] ? unwind_get_return_address+0x61/0xa0 [ 35.987053] ? __save_stack_trace+0x8d/0xf0 [ 35.991377] ? save_stack+0xa9/0xd0 [ 35.995004] ? save_stack+0x43/0xd0 [ 35.998627] ? __kasan_slab_free+0x11a/0x170 [ 36.003051] ? kasan_slab_free+0xe/0x10 [ 36.007024] ? putname+0xf2/0x130 [ 36.010481] ? __x64_sys_openat+0x9d/0x100 [ 36.014714] ? do_syscall_64+0x1b9/0x820 [ 36.018772] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.024137] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.028554] ? kasan_check_read+0x11/0x20 [ 36.032707] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.037113] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.041523] ? initcall_blacklisted+0x9a/0x1e0 [ 36.046106] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.051212] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.056921] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.062454] ? do_vfs_ioctl+0x201/0x1720 [ 36.066522] ? rcu_is_watching+0x8c/0x150 [ 36.070669] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.074995] ? ioctl_preallocate+0x300/0x300 [ 36.079402] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.084942] ? __fget_light+0x2f7/0x440 [ 36.088917] ? fget_raw+0x20/0x20 [ 36.092366] ? putname+0xf2/0x130 [ 36.095818] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.100833] ? kmem_cache_free+0x246/0x280 [ 36.105067] ? putname+0xf7/0x130 [ 36.108524] do_group_exit+0x177/0x440 [ 36.112410] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.116727] ? __ia32_sys_exit+0x50/0x50 [ 36.120782] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.125883] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.131416] ? ksys_ioctl+0x81/0xd0 [ 36.135042] __x64_sys_exit_group+0x3e/0x50 [ 36.139365] do_syscall_64+0x1b9/0x820 [ 36.143253] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.148619] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.153549] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.158387] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.163402] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.168417] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.173260] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.178447] RIP: 0033:0x43f028 [ 36.181649] Code: Bad RIP value. [ 36.185007] RSP: 002b:00007ffd56bb1f38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.192711] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 36.199975] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.207240] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.214504] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.221768] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 36.229037] [ 36.230657] Allocated by task 4666: [ 36.234281] save_stack+0x43/0xd0 [ 36.237730] kasan_kmalloc+0xc4/0xe0 [ 36.241441] kasan_slab_alloc+0x12/0x20 [ 36.245416] kmem_cache_alloc+0x12e/0x710 [ 36.249559] vmx_create_vcpu+0xcf/0x2830 [ 36.253613] kvm_arch_vcpu_create+0xe5/0x220 [ 36.258016] kvm_vm_ioctl+0x488/0x1d80 [ 36.261896] do_vfs_ioctl+0x1de/0x1720 [ 36.265780] ksys_ioctl+0xa9/0xd0 [ 36.269233] __x64_sys_ioctl+0x73/0xb0 [ 36.273115] do_syscall_64+0x1b9/0x820 [ 36.277002] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.282174] [ 36.283794] Freed by task 4666: [ 36.287066] save_stack+0x43/0xd0 [ 36.290514] __kasan_slab_free+0x11a/0x170 [ 36.294742] kasan_slab_free+0xe/0x10 [ 36.298538] kmem_cache_free+0x86/0x280 [ 36.302506] vmx_free_vcpu+0x26b/0x300 [ 36.306388] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.310790] kvm_put_kvm+0x73f/0x1060 [ 36.314586] kvm_vm_release+0x42/0x50 [ 36.318382] __fput+0x38a/0xa40 [ 36.321654] ____fput+0x15/0x20 [ 36.324932] task_work_run+0x1e8/0x2a0 [ 36.328844] do_exit+0x1ae4/0x26e0 [ 36.332378] do_group_exit+0x177/0x440 [ 36.336257] __x64_sys_exit_group+0x3e/0x50 [ 36.340578] do_syscall_64+0x1b9/0x820 [ 36.344472] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.349650] [ 36.351278] The buggy address belongs to the object at ffff8801c4288040 [ 36.351278] which belongs to the cache kvm_vcpu of size 23872 [ 36.363854] The buggy address is located 24 bytes inside of [ 36.363854] 23872-byte region [ffff8801c4288040, ffff8801c428dd80) [ 36.375815] The buggy address belongs to the page: [ 36.380740] page:ffffea000710a200 count:1 mapcount:0 mapping:ffff8801d51d4c00 index:0x0 compound_mapcount: 0 [ 36.390711] flags: 0x2fffc0000008100(slab|head) [ 36.395383] raw: 02fffc0000008100 ffff8801d51ce548 ffff8801d51ce548 ffff8801d51d4c00 [ 36.403265] raw: 0000000000000000 ffff8801c4288040 0000000100000001 0000000000000000 [ 36.411162] page dumped because: kasan: bad access detected [ 36.416870] [ 36.418488] Memory state around the buggy address: [ 36.423412] ffff8801c4287f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.430771] ffff8801c4287f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.438122] >ffff8801c4288000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.445474] ^ [ 36.451704] ffff8801c4288080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.459055] ffff8801c4288100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.466399] ================================================================== [ 36.473747] Kernel panic - not syncing: panic_on_warn set ... [ 36.473747] [ 36.481131] CPU: 0 PID: 4666 Comm: syz-executor661 Tainted: G B 4.19.0-rc1+ #214 [ 36.489960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.499313] Call Trace: [ 36.501907] dump_stack+0x1c9/0x2b4 [ 36.505541] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.510727] ? lock_downgrade+0x8f0/0x8f0 [ 36.514871] ? __schedule+0xf54/0x1df0 [ 36.518766] panic+0x238/0x4e7 [ 36.521952] ? add_taint.cold.5+0x16/0x16 [ 36.526103] ? print_shadow_for_address+0xba/0x116 [ 36.531026] ? trace_hardirqs_off+0xaf/0x2b0 [ 36.535445] ? trace_hardirqs_off+0x77/0x2b0 [ 36.539873] ? __schedule+0xf54/0x1df0 [ 36.543787] kasan_end_report+0x47/0x4f [ 36.547758] kasan_report.cold.7+0x76/0x30d [ 36.552079] __asan_report_load8_noabort+0x14/0x20 [ 36.557015] __schedule+0xf54/0x1df0 [ 36.560726] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.565828] ? __sched_text_start+0x8/0x8 [ 36.569975] ? __call_srcu+0x7e7/0x1040 [ 36.573961] ? check_same_owner+0x340/0x340 [ 36.578280] ? mark_held_locks+0x160/0x160 [ 36.582512] ? find_held_lock+0x36/0x1c0 [ 36.586575] preempt_schedule_common+0x22/0x60 [ 36.591158] _cond_resched+0x1d/0x30 [ 36.594872] wait_for_completion+0xa5/0x8d0 [ 36.599194] ? wait_for_completion_interruptible+0x950/0x950 [ 36.605009] ? __lockdep_init_map+0x105/0x590 [ 36.609517] ? __init_waitqueue_head+0x9e/0x150 [ 36.614197] ? init_wait_entry+0x1c0/0x1c0 [ 36.618457] __synchronize_srcu+0x189/0x240 [ 36.622804] ? call_srcu+0x10/0x10 [ 36.626355] ? rcu_unexpedite_gp+0x20/0x20 [ 36.630627] synchronize_srcu+0x335/0x56f [ 36.634785] ? lock_downgrade+0x8f0/0x8f0 [ 36.638944] ? synchronize_srcu_expedited+0x20/0x20 [ 36.643976] ? kasan_check_read+0x11/0x20 [ 36.648134] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.652748] ? kasan_check_write+0x14/0x20 [ 36.656987] ? do_raw_spin_lock+0xc1/0x200 [ 36.661228] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.666941] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.672394] ? kvfree+0x61/0x70 [ 36.675675] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.680715] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.684776] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.689210] ? kvm_arch_sync_events+0x30/0x30 [ 36.693723] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.699262] ? mmu_notifier_unregister+0x474/0x600 [ 36.704194] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.708964] ? __mmu_notifier_register+0x30/0x30 [ 36.713720] ? __free_pages+0x10a/0x190 [ 36.717707] ? free_unref_page+0x930/0x930 [ 36.721952] kvm_put_kvm+0x73f/0x1060 [ 36.725759] ? kvm_write_guest_cached+0x40/0x40 [ 36.730433] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.734989] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.739500] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.744092] ? kasan_check_write+0x14/0x20 [ 36.748327] ? do_raw_spin_lock+0xc1/0x200 [ 36.752563] ? kvm_irqfd_release+0xdd/0x120 [ 36.756886] ? kvm_irqfd_release+0xdd/0x120 [ 36.761210] ? kvm_put_kvm+0x1060/0x1060 [ 36.765269] kvm_vm_release+0x42/0x50 [ 36.769078] __fput+0x38a/0xa40 [ 36.772358] ? __alloc_file+0x400/0x400 [ 36.776344] ? check_same_owner+0x340/0x340 [ 36.780679] ? kasan_check_write+0x14/0x20 [ 36.784924] ? do_raw_spin_lock+0xc1/0x200 [ 36.789187] ____fput+0x15/0x20 [ 36.792472] task_work_run+0x1e8/0x2a0 [ 36.796375] ? task_work_cancel+0x240/0x240 [ 36.800695] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.806233] ? switch_task_namespaces+0xa2/0xd0 [ 36.810905] do_exit+0x1ae4/0x26e0 [ 36.814447] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.819127] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.823362] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.828379] ? kfree+0x1d7/0x210 [ 36.831746] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.835980] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.841691] ? is_bpf_text_address+0xd7/0x170 [ 36.846191] ? kernel_text_address+0x79/0xf0 [ 36.850619] ? __kernel_text_address+0xd/0x40 [ 36.855115] ? unwind_get_return_address+0x61/0xa0 [ 36.860047] ? __save_stack_trace+0x8d/0xf0 [ 36.864373] ? save_stack+0xa9/0xd0 [ 36.867993] ? save_stack+0x43/0xd0 [ 36.871630] ? __kasan_slab_free+0x11a/0x170 [ 36.876078] ? kasan_slab_free+0xe/0x10 [ 36.880080] ? putname+0xf2/0x130 [ 36.883535] ? __x64_sys_openat+0x9d/0x100 [ 36.887768] ? do_syscall_64+0x1b9/0x820 [ 36.891828] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.897195] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.901599] ? kasan_check_read+0x11/0x20 [ 36.905746] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.910149] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.914561] ? initcall_blacklisted+0x9a/0x1e0 [ 36.919144] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.924248] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.929960] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.935502] ? do_vfs_ioctl+0x201/0x1720 [ 36.939563] ? rcu_is_watching+0x8c/0x150 [ 36.943707] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.948032] ? ioctl_preallocate+0x300/0x300 [ 36.952442] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.958009] ? __fget_light+0x2f7/0x440 [ 36.962007] ? fget_raw+0x20/0x20 [ 36.965457] ? putname+0xf2/0x130 [ 36.968926] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.974451] ? kmem_cache_free+0x246/0x280 [ 36.978691] ? putname+0xf7/0x130 [ 36.982143] do_group_exit+0x177/0x440 [ 36.986031] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.990352] ? __ia32_sys_exit+0x50/0x50 [ 36.994413] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.999542] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.005077] ? ksys_ioctl+0x81/0xd0 [ 37.008709] __x64_sys_exit_group+0x3e/0x50 [ 37.013029] do_syscall_64+0x1b9/0x820 [ 37.016917] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.022292] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.027239] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.032103] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.037136] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.042180] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.047029] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.052217] RIP: 0033:0x43f028 [ 37.055409] Code: Bad RIP value. [ 37.058764] RSP: 002b:00007ffd56bb1f38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.066493] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 37.073786] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.081397] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.088661] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.095924] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 37.103198] [ 37.103204] ====================================================== [ 37.103209] WARNING: possible circular locking dependency detected [ 37.103213] 4.19.0-rc1+ #214 Not tainted [ 37.103218] ------------------------------------------------------ [ 37.103222] syz-executor661/4666 is trying to acquire lock: [ 37.103226] 0000000095ba0894 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.103241] [ 37.103244] but task is already holding lock: [ 37.103247] 000000000eb61d75 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.103261] [ 37.103265] which lock already depends on the new lock. [ 37.103268] [ 37.103270] [ 37.103275] the existing dependency chain (in reverse order) is: [ 37.103277] [ 37.103279] -> #3 (report_lock){....}: [ 37.103294] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.103297] kasan_report+0x8e/0x110 [ 37.103302] __asan_report_load8_noabort+0x14/0x20 [ 37.103305] __schedule+0xf54/0x1df0 [ 37.103309] preempt_schedule_common+0x22/0x60 [ 37.103313] _cond_resched+0x1d/0x30 [ 37.103317] wait_for_completion+0xa5/0x8d0 [ 37.103321] __synchronize_srcu+0x189/0x240 [ 37.103325] synchronize_srcu+0x335/0x56f [ 37.103330] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.103334] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.103338] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.103342] kvm_put_kvm+0x73f/0x1060 [ 37.103345] kvm_vm_release+0x42/0x50 [ 37.103349] __fput+0x38a/0xa40 [ 37.103352] ____fput+0x15/0x20 [ 37.103356] task_work_run+0x1e8/0x2a0 [ 37.103360] do_exit+0x1ae4/0x26e0 [ 37.103363] do_group_exit+0x177/0x440 [ 37.103367] __x64_sys_exit_group+0x3e/0x50 [ 37.103371] do_syscall_64+0x1b9/0x820 [ 37.103376] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.103378] [ 37.103380] -> #2 (&rq->lock){-.-.}: [ 37.103394] _raw_spin_lock+0x2a/0x40 [ 37.103398] task_fork_fair+0x93/0x680 [ 37.103401] sched_fork+0x44b/0xbd0 [ 37.103405] copy_process+0x235e/0x7ad0 [ 37.103409] _do_fork+0x1ca/0x1170 [ 37.103412] kernel_thread+0x34/0x40 [ 37.103416] rest_init+0x22/0xe4 [ 37.103419] start_kernel+0x913/0x94e [ 37.103424] x86_64_start_reservations+0x29/0x2b [ 37.103428] x86_64_start_kernel+0x76/0x79 [ 37.103432] secondary_startup_64+0xa4/0xb0 [ 37.103434] [ 37.103436] -> #1 (&p->pi_lock){-.-.}: [ 37.103450] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.103454] try_to_wake_up+0xd2/0x1250 [ 37.103458] wake_up_process+0x10/0x20 [ 37.103461] __up.isra.1+0x1c0/0x2a0 [ 37.103471] up+0x13c/0x1c0 [ 37.103475] __up_console_sem+0xbe/0x1b0 [ 37.103479] console_unlock+0x506/0x10d0 [ 37.103482] vprintk_emit+0x33a/0x910 [ 37.103486] vprintk_default+0x28/0x30 [ 37.103490] vprintk_func+0x7a/0x117 [ 37.103493] printk+0xa7/0xcf [ 37.103497] load_umh+0x51/0xbd [ 37.103500] do_one_initcall+0x127/0x838 [ 37.103505] kernel_init_freeable+0x4bb/0x5ae [ 37.103508] kernel_init+0x11/0x1b3 [ 37.103512] ret_from_fork+0x3a/0x50 [ 37.103514] [ 37.103516] -> #0 ((console_sem).lock){-...}: [ 37.103530] lock_acquire+0x1e4/0x4f0 [ 37.103535] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.103538] down_trylock+0x13/0x70 [ 37.103543] __down_trylock_console_sem+0xae/0x200 [ 37.103547] console_trylock+0x15/0xa0 [ 37.103550] vprintk_emit+0x31f/0x910 [ 37.103554] vprintk_default+0x28/0x30 [ 37.103558] vprintk_func+0x7a/0x117 [ 37.103561] printk+0xa7/0xcf [ 37.103565] kasan_report+0x9e/0x110 [ 37.103569] __asan_report_load8_noabort+0x14/0x20 [ 37.103573] __schedule+0xf54/0x1df0 [ 37.103577] preempt_schedule_common+0x22/0x60 [ 37.103581] _cond_resched+0x1d/0x30 [ 37.103585] wait_for_completion+0xa5/0x8d0 [ 37.103589] __synchronize_srcu+0x189/0x240 [ 37.103593] synchronize_srcu+0x335/0x56f [ 37.103598] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.103602] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.103606] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.103610] kvm_put_kvm+0x73f/0x1060 [ 37.103613] kvm_vm_release+0x42/0x50 [ 37.103617] __fput+0x38a/0xa40 [ 37.103620] ____fput+0x15/0x20 [ 37.103624] task_work_run+0x1e8/0x2a0 [ 37.103628] do_exit+0x1ae4/0x26e0 [ 37.103631] do_group_exit+0x177/0x440 [ 37.103635] __x64_sys_exit_group+0x3e/0x50 [ 37.103639] do_syscall_64+0x1b9/0x820 [ 37.103644] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.103646] [ 37.103650] other info that might help us debug this: [ 37.103652] [ 37.103655] Chain exists of: [ 37.103657] (console_sem).lock --> &rq->lock --> report_lock [ 37.103675] [ 37.103679] Possible unsafe locking scenario: [ 37.103681] [ 37.103685] CPU0 CPU1 [ 37.103689] ---- ---- [ 37.103691] lock(report_lock); [ 37.103700] lock(&rq->lock); [ 37.103709] lock(report_lock); [ 37.103717] lock((console_sem).lock); [ 37.103725] [ 37.103728] *** DEADLOCK *** [ 37.103730] [ 37.103734] 2 locks held by syz-executor661/4666: [ 37.103736] #0: 0000000036d6aee6 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.103753] #1: 000000000eb61d75 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.103769] [ 37.103772] stack backtrace: [ 37.103778] CPU: 0 PID: 4666 Comm: syz-executor661 Not tainted 4.19.0-rc1+ #214 [ 37.103785] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.103788] Call Trace: [ 37.103791] dump_stack+0x1c9/0x2b4 [ 37.103796] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.103800] ? vprintk_func+0x100/0x117 [ 37.103804] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.103808] ? save_trace+0xe0/0x290 [ 37.103812] __lock_acquire+0x3449/0x5020 [ 37.103816] ? mark_held_locks+0x160/0x160 [ 37.103819] ? mark_held_locks+0x160/0x160 [ 37.103824] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.103828] ? is_bpf_text_address+0xd7/0x170 [ 37.103832] ? kernel_text_address+0x79/0xf0 [ 37.103836] ? __kernel_text_address+0xd/0x40 [ 37.103840] ? __save_stack_trace+0x8d/0xf0 [ 37.103844] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.103848] ? save_trace+0x290/0x290 [ 37.103851] ? save_stack_trace+0x1a/0x20 [ 37.103855] ? save_trace+0xe0/0x290 [ 37.103859] ? graph_lock+0x170/0x170 [ 37.103863] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.103867] lock_acquire+0x1e4/0x4f0 [ 37.103871] ? down_trylock+0x13/0x70 [ 37.103875] ? lock_release+0x9f0/0x9f0 [ 37.103878] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.103882] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.103886] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.103890] ? log_store+0x34f/0x4c0 [ 37.103894] ? vprintk_emit+0x31f/0x910 [ 37.103898] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.103902] ? down_trylock+0x13/0x70 [ 37.103905] down_trylock+0x13/0x70 [ 37.103909] __down_trylock_console_sem+0xae/0x200 [ 37.103913] console_trylock+0x15/0xa0 [ 37.103917] vprintk_emit+0x31f/0x910 [ 37.103921] ? wake_up_klogd+0x110/0x110 [ 37.103925] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.103929] ? kasan_check_read+0x11/0x20 [ 37.103933] ? rcu_is_watching+0x8c/0x150 [ 37.103936] ? rcu_pm_notify+0xc0/0xc0 [ 37.103940] ? lock_acquire+0x1e4/0x4f0 [ 37.103944] ? kasan_report+0x8e/0x110 [ 37.103947] ? __schedule+0xf54/0x1df0 [ 37.103951] vprintk_default+0x28/0x30 [ 37.103955] vprintk_func+0x7a/0x117 [ 37.103958] printk+0xa7/0xcf [ 37.103962] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.103966] ? kasan_check_write+0x14/0x20 [ 37.103971] ? do_raw_spin_lock+0xc1/0x200 [ 37.103975] ? do_raw_spin_lock+0xc1/0x200 [ 37.103978] kasan_report+0x9e/0x110 [ 37.103983] __asan_report_load8_noabort+0x14/0x20 [ 37.103986] __schedule+0xf54/0x1df0 [ 37.103991] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.103995] ? __sched_text_start+0x8/0x8 [ 37.103998] ? __call_srcu+0x7e7/0x1040 [ 37.104002] ? check_same_owner+0x340/0x340 [ 37.104006] ? mark_held_locks+0x160/0x160 [ 37.104010] ? find_held_lock+0x36/0x1c0 [ 37.104014] preempt_schedule_common+0x22/0x60 [ 37.104018] _cond_resched+0x1d/0x30 [ 37.104022] wait_for_completion+0xa5/0x8d0 [ 37.104026] ? wait_for_completion_interruptible+0x950/0x950 [ 37.104030] ? __lockdep_init_map+0x105/0x590 [ 37.104034] ? __init_waitqueue_head+0x9e/0x150 [ 37.104038] ? init_wait_entry+0x1c0/0x1c0 [ 37.104042] __synchronize_srcu+0x189/0x240 [ 37.104046] ? call_srcu+0x10/0x10 [ 37.104050] ? rcu_unexpedite_gp+0x20/0x20 [ 37.104054] synchronize_srcu+0x335/0x56f [ 37.104058] ? lock_downgrade+0x8f0/0x8f0 [ 37.104062] ? synchronize_srcu_expedited+0x20/0x20 [ 37.104066] ? kasan_check_read+0x11/0x20 [ 37.104070] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.104074] ? kasan_check_write+0x14/0x20 [ 37.104078] ? do_raw_spin_lock+0xc1/0x200 [ 37.104083] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.104087] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.104091] ? kvfree+0x61/0x70 [ 37.104095] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.104099] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.104103] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.104107] ? kvm_arch_sync_events+0x30/0x30 [ 37.104112] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.104116] ? mmu_notifier_unregister+0x474/0x600 [ 37.104120] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.104124] ? __mmu_notifier_register+0x30/0x30 [ 37.104128] ? __free_pages+0x10a/0x190 [ 37.104132] ? free_unref_page+0x930/0x930 [ 37.104136] kvm_put_kvm+0x73f/0x1060 [ 37.104140] ? kvm_write_guest_cached+0x40/0x40 [ 37.104144] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.104148] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.104152] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.104156] ? kasan_check_write+0x14/0x20 [ 37.104160] ? do_raw_spin_lock+0xc1/0x200 [ 37.104164] ? kvm_irqfd_release+0xdd/0x120 [ 37.104168] ? kvm_irqfd_release+0xdd/0x120 [ 37.104172] ? kvm_put_kvm+0x1060/0x1060 [ 37.104175] kvm_vm_release+0x42/0x50 [ 37.104179] __fput+0x38a/0xa40 [ 37.104182] ? __alloc_file+0x400/0x400 [ 37.104186] ? check_same_owner+0x340/0x340 [ 37.104190] ? kasan_check_write+0x14/0x20 [ 37.104194] ? do_raw_spin_lock+0xc1/0x200 [ 37.104198] ____fput+0x15/0x20 [ 37.104201] task_work_run+0x1e8/0x2a0 [ 37.104205] ? task_work_cancel+0x240/0x240 [ 37.104210] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.104214] ? switch_task_namespaces+0xa2/0xd0 [ 37.104217] do_exit+0x1ae4/0x26e0 [ 37.104222] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.104226] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.104230] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.104246] ? kfree+0x1d7/0x210 [ 37.104250] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.104255] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.104258] ? is_bpf_text_address+0xd7/0x170 [ 37.104262] ? kernel_text_addres [ 37.104268] Lost 54 message(s)! [ 38.188897] Shutting down cpus with NMI [ 39.247448] Dumping ftrace buffer: [ 39.250988] (ftrace buffer empty) [ 39.254682] Kernel Offset: disabled [ 39.258302] Rebooting in 86400 seconds..