[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.789994] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.019474] random: sshd: uninitialized urandom read (32 bytes read) [ 28.347233] random: sshd: uninitialized urandom read (32 bytes read) [ 28.903926] random: sshd: uninitialized urandom read (32 bytes read) [ 29.081633] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.27' (ECDSA) to the list of known hosts. [ 34.739958] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.838877] 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.864691] ================================================================== [ 34.874621] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.880861] Read of size 8 at addr ffff8801ac3c8058 by task syz-executor260/4456 [ 34.888393] [ 34.890032] CPU: 0 PID: 4456 Comm: syz-executor260 Not tainted 4.19.0-rc1+ #212 [ 34.897469] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.906816] Call Trace: [ 34.909411] dump_stack+0x1c9/0x2b4 [ 34.913039] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.918229] ? printk+0xa7/0xcf [ 34.921506] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.926260] ? __schedule+0xf54/0x1df0 [ 34.930151] print_address_description+0x6c/0x20b [ 34.934996] ? __schedule+0xf54/0x1df0 [ 34.938884] kasan_report.cold.7+0x242/0x30d [ 34.943307] __asan_report_load8_noabort+0x14/0x20 [ 34.948231] __schedule+0xf54/0x1df0 [ 34.951944] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.957051] ? __sched_text_start+0x8/0x8 [ 34.961210] ? __call_srcu+0x7e7/0x1040 [ 34.965193] ? check_same_owner+0x340/0x340 [ 34.969515] ? mark_held_locks+0x160/0x160 [ 34.973748] ? find_held_lock+0x36/0x1c0 [ 34.977812] preempt_schedule_common+0x22/0x60 [ 34.982395] _cond_resched+0x1d/0x30 [ 34.986108] wait_for_completion+0xa5/0x8d0 [ 34.990438] ? wait_for_completion_interruptible+0x950/0x950 [ 34.996232] ? __lockdep_init_map+0x105/0x590 [ 35.000731] ? __init_waitqueue_head+0x9e/0x150 [ 35.005400] ? init_wait_entry+0x1c0/0x1c0 [ 35.009652] __synchronize_srcu+0x189/0x240 [ 35.013981] ? call_srcu+0x10/0x10 [ 35.017525] ? rcu_unexpedite_gp+0x20/0x20 [ 35.021768] synchronize_srcu+0x335/0x56f [ 35.025916] ? lock_downgrade+0x8f0/0x8f0 [ 35.030070] ? synchronize_srcu_expedited+0x20/0x20 [ 35.035089] ? kasan_check_read+0x11/0x20 [ 35.039236] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.043819] ? kasan_check_write+0x14/0x20 [ 35.048053] ? do_raw_spin_lock+0xc1/0x200 [ 35.052296] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.058013] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.063466] ? kvfree+0x61/0x70 [ 35.066755] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.071776] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.075839] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.080247] ? kvm_arch_sync_events+0x30/0x30 [ 35.084747] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.090290] ? mmu_notifier_unregister+0x474/0x600 [ 35.095223] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.099629] ? kfree+0x111/0x210 [ 35.103014] ? __mmu_notifier_register+0x30/0x30 [ 35.107778] ? __free_pages+0x10a/0x190 [ 35.111796] ? free_unref_page+0x930/0x930 [ 35.116042] kvm_put_kvm+0x73f/0x1060 [ 35.119851] ? kvm_write_guest_cached+0x40/0x40 [ 35.124530] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.129031] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.133525] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.138113] ? kasan_check_write+0x14/0x20 [ 35.142346] ? do_raw_spin_lock+0xc1/0x200 [ 35.146582] ? kvm_irqfd_release+0xdd/0x120 [ 35.150902] ? kvm_irqfd_release+0xdd/0x120 [ 35.155227] ? kvm_put_kvm+0x1060/0x1060 [ 35.159295] kvm_vm_release+0x42/0x50 [ 35.163109] __fput+0x36e/0x8c0 [ 35.166403] ? __alloc_file+0x400/0x400 [ 35.170393] ? check_same_owner+0x340/0x340 [ 35.174731] ? kasan_check_write+0x14/0x20 [ 35.178977] ? do_raw_spin_lock+0xc1/0x200 [ 35.183229] ____fput+0x15/0x20 [ 35.186522] task_work_run+0x1e8/0x2a0 [ 35.190427] ? task_work_cancel+0x240/0x240 [ 35.194764] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.200324] ? switch_task_namespaces+0xa2/0xd0 [ 35.205010] do_exit+0x1ae4/0x26e0 [ 35.208566] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.213261] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.217514] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.222551] ? kfree+0x1d7/0x210 [ 35.225930] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.230185] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.235923] ? is_bpf_text_address+0xd7/0x170 [ 35.240434] ? kernel_text_address+0x79/0xf0 [ 35.244862] ? __kernel_text_address+0xd/0x40 [ 35.249376] ? unwind_get_return_address+0x61/0xa0 [ 35.254328] ? __save_stack_trace+0x8d/0xf0 [ 35.258693] ? save_stack+0xa9/0xd0 [ 35.262335] ? save_stack+0x43/0xd0 [ 35.265973] ? __kasan_slab_free+0x11a/0x170 [ 35.270392] ? kasan_slab_free+0xe/0x10 [ 35.274389] ? putname+0xf2/0x130 [ 35.277852] ? __x64_sys_openat+0x9d/0x100 [ 35.282106] ? do_syscall_64+0x1b9/0x820 [ 35.286190] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.291576] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.295986] ? kasan_check_read+0x11/0x20 [ 35.300133] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.304536] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.308948] ? initcall_blacklisted+0x9a/0x1e0 [ 35.313534] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.318663] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.324439] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.329985] ? do_vfs_ioctl+0x201/0x1720 [ 35.334049] ? rcu_is_watching+0x8c/0x150 [ 35.338198] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.342523] ? ioctl_preallocate+0x300/0x300 [ 35.346940] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.352483] ? __fget_light+0x2f7/0x440 [ 35.356458] ? fget_raw+0x20/0x20 [ 35.359936] ? putname+0xf2/0x130 [ 35.363397] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.368414] ? kmem_cache_free+0x246/0x280 [ 35.372662] ? putname+0xf7/0x130 [ 35.376131] do_group_exit+0x177/0x440 [ 35.380023] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.384353] ? __ia32_sys_exit+0x50/0x50 [ 35.388415] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.393526] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.399067] ? ksys_ioctl+0x81/0xd0 [ 35.402703] __x64_sys_exit_group+0x3e/0x50 [ 35.407028] do_syscall_64+0x1b9/0x820 [ 35.410920] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.416282] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.421211] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.426051] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.431068] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.436087] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.441107] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.445963] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.451154] RIP: 0033:0x43ecc8 [ 35.454352] Code: Bad RIP value. [ 35.457711] RSP: 002b:00007ffcc97b7cc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.465424] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.472704] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.479979] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.487249] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.494518] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.501792] [ 35.503419] Allocated by task 4456: [ 35.507054] save_stack+0x43/0xd0 [ 35.510506] kasan_kmalloc+0xc4/0xe0 [ 35.514219] kasan_slab_alloc+0x12/0x20 [ 35.518214] kmem_cache_alloc+0x12e/0x710 [ 35.522361] vmx_create_vcpu+0xcf/0x2830 [ 35.526419] kvm_arch_vcpu_create+0xe5/0x220 [ 35.530833] kvm_vm_ioctl+0x488/0x1d80 [ 35.534724] do_vfs_ioctl+0x1de/0x1720 [ 35.538610] ksys_ioctl+0xa9/0xd0 [ 35.542072] __x64_sys_ioctl+0x73/0xb0 [ 35.545960] do_syscall_64+0x1b9/0x820 [ 35.549853] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.555031] [ 35.556657] Freed by task 4456: [ 35.559945] save_stack+0x43/0xd0 [ 35.563395] __kasan_slab_free+0x11a/0x170 [ 35.567625] kasan_slab_free+0xe/0x10 [ 35.571430] kmem_cache_free+0x86/0x280 [ 35.575403] vmx_free_vcpu+0x26b/0x300 [ 35.579287] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.583700] kvm_put_kvm+0x73f/0x1060 [ 35.587518] kvm_vm_release+0x42/0x50 [ 35.591314] __fput+0x36e/0x8c0 [ 35.594588] ____fput+0x15/0x20 [ 35.597868] task_work_run+0x1e8/0x2a0 [ 35.601753] do_exit+0x1ae4/0x26e0 [ 35.605294] do_group_exit+0x177/0x440 [ 35.609179] __x64_sys_exit_group+0x3e/0x50 [ 35.613500] do_syscall_64+0x1b9/0x820 [ 35.617391] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.622568] [ 35.624195] The buggy address belongs to the object at ffff8801ac3c8040 [ 35.624195] which belongs to the cache kvm_vcpu of size 23872 [ 35.636789] The buggy address is located 24 bytes inside of [ 35.636789] 23872-byte region [ffff8801ac3c8040, ffff8801ac3cdd80) [ 35.648762] The buggy address belongs to the page: [ 35.653707] page:ffffea0006b0f200 count:1 mapcount:0 mapping:ffff8801d5705a80 index:0x0 compound_mapcount: 0 [ 35.663725] flags: 0x2fffc0000008100(slab|head) [ 35.668423] raw: 02fffc0000008100 ffff8801d5703b48 ffff8801d5703b48 ffff8801d5705a80 [ 35.676317] raw: 0000000000000000 ffff8801ac3c8040 0000000100000001 0000000000000000 [ 35.684610] page dumped because: kasan: bad access detected [ 35.690316] [ 35.691935] Memory state around the buggy address: [ 35.696871] ffff8801ac3c7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.704224] ffff8801ac3c7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.711576] >ffff8801ac3c8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.718936] ^ [ 35.725169] ffff8801ac3c8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.732539] ffff8801ac3c8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.739890] ================================================================== [ 35.747248] Kernel panic - not syncing: panic_on_warn set ... [ 35.747248] [ 35.754623] CPU: 0 PID: 4456 Comm: syz-executor260 Tainted: G B 4.19.0-rc1+ #212 [ 35.763471] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.772848] Call Trace: [ 35.775450] dump_stack+0x1c9/0x2b4 [ 35.779081] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.784270] ? lock_downgrade+0x8f0/0x8f0 [ 35.788420] ? __schedule+0xf54/0x1df0 [ 35.792333] panic+0x238/0x4e7 [ 35.795524] ? add_taint.cold.5+0x16/0x16 [ 35.799688] ? print_shadow_for_address+0xba/0x116 [ 35.804623] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.809033] ? trace_hardirqs_off+0x77/0x2b0 [ 35.813441] ? __schedule+0xf54/0x1df0 [ 35.817331] kasan_end_report+0x47/0x4f [ 35.821302] kasan_report.cold.7+0x76/0x30d [ 35.825654] __asan_report_load8_noabort+0x14/0x20 [ 35.830584] __schedule+0xf54/0x1df0 [ 35.834293] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.839396] ? __sched_text_start+0x8/0x8 [ 35.843572] ? __call_srcu+0x7e7/0x1040 [ 35.847552] ? check_same_owner+0x340/0x340 [ 35.851897] ? mark_held_locks+0x160/0x160 [ 35.856130] ? find_held_lock+0x36/0x1c0 [ 35.860196] preempt_schedule_common+0x22/0x60 [ 35.864797] _cond_resched+0x1d/0x30 [ 35.868508] wait_for_completion+0xa5/0x8d0 [ 35.872831] ? wait_for_completion_interruptible+0x950/0x950 [ 35.878633] ? __lockdep_init_map+0x105/0x590 [ 35.883144] ? __init_waitqueue_head+0x9e/0x150 [ 35.887809] ? init_wait_entry+0x1c0/0x1c0 [ 35.892058] __synchronize_srcu+0x189/0x240 [ 35.896377] ? call_srcu+0x10/0x10 [ 35.899931] ? rcu_unexpedite_gp+0x20/0x20 [ 35.904165] synchronize_srcu+0x335/0x56f [ 35.908312] ? lock_downgrade+0x8f0/0x8f0 [ 35.912456] ? synchronize_srcu_expedited+0x20/0x20 [ 35.917473] ? kasan_check_read+0x11/0x20 [ 35.921616] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.926214] ? kasan_check_write+0x14/0x20 [ 35.930454] ? do_raw_spin_lock+0xc1/0x200 [ 35.934709] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.940445] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.945913] ? kvfree+0x61/0x70 [ 35.949195] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.954219] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.958280] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.962690] ? kvm_arch_sync_events+0x30/0x30 [ 35.967192] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.972730] ? mmu_notifier_unregister+0x474/0x600 [ 35.977661] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.982072] ? kfree+0x111/0x210 [ 35.985433] ? __mmu_notifier_register+0x30/0x30 [ 35.990190] ? __free_pages+0x10a/0x190 [ 35.994160] ? free_unref_page+0x930/0x930 [ 35.998403] kvm_put_kvm+0x73f/0x1060 [ 36.002205] ? kvm_write_guest_cached+0x40/0x40 [ 36.006881] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.011369] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.015859] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.020458] ? kasan_check_write+0x14/0x20 [ 36.024703] ? do_raw_spin_lock+0xc1/0x200 [ 36.028941] ? kvm_irqfd_release+0xdd/0x120 [ 36.033259] ? kvm_irqfd_release+0xdd/0x120 [ 36.037594] ? kvm_put_kvm+0x1060/0x1060 [ 36.041681] kvm_vm_release+0x42/0x50 [ 36.045491] __fput+0x36e/0x8c0 [ 36.048789] ? __alloc_file+0x400/0x400 [ 36.052768] ? check_same_owner+0x340/0x340 [ 36.057088] ? kasan_check_write+0x14/0x20 [ 36.061322] ? do_raw_spin_lock+0xc1/0x200 [ 36.065553] ____fput+0x15/0x20 [ 36.068843] task_work_run+0x1e8/0x2a0 [ 36.072733] ? task_work_cancel+0x240/0x240 [ 36.077059] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.082600] ? switch_task_namespaces+0xa2/0xd0 [ 36.087296] do_exit+0x1ae4/0x26e0 [ 36.090838] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.095516] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.099752] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.104779] ? kfree+0x1d7/0x210 [ 36.108146] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.112407] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.118120] ? is_bpf_text_address+0xd7/0x170 [ 36.122614] ? kernel_text_address+0x79/0xf0 [ 36.127027] ? __kernel_text_address+0xd/0x40 [ 36.131528] ? unwind_get_return_address+0x61/0xa0 [ 36.136468] ? __save_stack_trace+0x8d/0xf0 [ 36.140818] ? save_stack+0xa9/0xd0 [ 36.144443] ? save_stack+0x43/0xd0 [ 36.148069] ? __kasan_slab_free+0x11a/0x170 [ 36.152472] ? kasan_slab_free+0xe/0x10 [ 36.156463] ? putname+0xf2/0x130 [ 36.159922] ? __x64_sys_openat+0x9d/0x100 [ 36.164155] ? do_syscall_64+0x1b9/0x820 [ 36.168219] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.173587] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.178008] ? kasan_check_read+0x11/0x20 [ 36.182155] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.186589] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.191001] ? initcall_blacklisted+0x9a/0x1e0 [ 36.195587] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.200698] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.206413] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.211955] ? do_vfs_ioctl+0x201/0x1720 [ 36.216018] ? rcu_is_watching+0x8c/0x150 [ 36.220162] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.224487] ? ioctl_preallocate+0x300/0x300 [ 36.228900] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.234440] ? __fget_light+0x2f7/0x440 [ 36.238419] ? fget_raw+0x20/0x20 [ 36.241877] ? putname+0xf2/0x130 [ 36.245333] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.250356] ? kmem_cache_free+0x246/0x280 [ 36.254597] ? putname+0xf7/0x130 [ 36.258058] do_group_exit+0x177/0x440 [ 36.261950] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.266277] ? __ia32_sys_exit+0x50/0x50 [ 36.270341] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.275450] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.280995] ? ksys_ioctl+0x81/0xd0 [ 36.284630] __x64_sys_exit_group+0x3e/0x50 [ 36.288974] do_syscall_64+0x1b9/0x820 [ 36.292864] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.298234] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.303158] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.308048] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.313064] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.318083] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.323104] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.327956] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.333156] RIP: 0033:0x43ecc8 [ 36.336352] Code: Bad RIP value. [ 36.339713] RSP: 002b:00007ffcc97b7cc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.347420] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.354692] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.361963] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.369232] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.376502] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.383782] [ 36.383788] ====================================================== [ 36.383793] WARNING: possible circular locking dependency detected [ 36.383797] 4.19.0-rc1+ #212 Not tainted [ 36.383802] ------------------------------------------------------ [ 36.383807] syz-executor260/4456 is trying to acquire lock: [ 36.383811] 00000000e9f7ab49 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.383825] [ 36.383829] but task is already holding lock: [ 36.383832] 00000000a9eb3b49 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.383846] [ 36.383851] which lock already depends on the new lock. [ 36.383853] [ 36.383855] [ 36.383860] the existing dependency chain (in reverse order) is: [ 36.383862] [ 36.383865] -> #3 (report_lock){....}: [ 36.383879] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.383883] kasan_report+0x8e/0x110 [ 36.383887] __asan_report_load8_noabort+0x14/0x20 [ 36.383891] __schedule+0xf54/0x1df0 [ 36.383895] preempt_schedule_common+0x22/0x60 [ 36.383899] _cond_resched+0x1d/0x30 [ 36.383903] wait_for_completion+0xa5/0x8d0 [ 36.383907] __synchronize_srcu+0x189/0x240 [ 36.383911] synchronize_srcu+0x335/0x56f [ 36.383916] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.383919] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.383924] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.383927] kvm_put_kvm+0x73f/0x1060 [ 36.383931] kvm_vm_release+0x42/0x50 [ 36.383934] __fput+0x36e/0x8c0 [ 36.383938] ____fput+0x15/0x20 [ 36.383941] task_work_run+0x1e8/0x2a0 [ 36.383945] do_exit+0x1ae4/0x26e0 [ 36.383949] do_group_exit+0x177/0x440 [ 36.383953] __x64_sys_exit_group+0x3e/0x50 [ 36.383957] do_syscall_64+0x1b9/0x820 [ 36.383961] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.383963] [ 36.383966] -> #2 (&rq->lock){-.-.}: [ 36.383979] _raw_spin_lock+0x2a/0x40 [ 36.383983] task_fork_fair+0x93/0x680 [ 36.383986] sched_fork+0x44b/0xbd0 [ 36.383990] copy_process+0x235e/0x7ad0 [ 36.383994] _do_fork+0x1ca/0x1170 [ 36.383998] kernel_thread+0x34/0x40 [ 36.384001] rest_init+0x22/0xe4 [ 36.384018] start_kernel+0x913/0x94e [ 36.384022] x86_64_start_reservations+0x29/0x2b [ 36.384026] x86_64_start_kernel+0x76/0x79 [ 36.384030] secondary_startup_64+0xa4/0xb0 [ 36.384032] [ 36.384034] -> #1 (&p->pi_lock){-.-.}: [ 36.384048] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.384051] try_to_wake_up+0xd2/0x1250 [ 36.384055] wake_up_process+0x10/0x20 [ 36.384058] __up.isra.1+0x1c0/0x2a0 [ 36.384062] up+0x13c/0x1c0 [ 36.384065] __up_console_sem+0xbe/0x1b0 [ 36.384069] console_unlock+0x506/0x10d0 [ 36.384072] vprintk_emit+0x33a/0x910 [ 36.384076] vprintk_default+0x28/0x30 [ 36.384080] vprintk_func+0x7a/0x117 [ 36.384083] printk+0xa7/0xcf [ 36.384086] load_umh+0x51/0xbd [ 36.384090] do_one_initcall+0x127/0x838 [ 36.384094] kernel_init_freeable+0x4bb/0x5ae [ 36.384097] kernel_init+0x11/0x1b3 [ 36.384101] ret_from_fork+0x3a/0x50 [ 36.384103] [ 36.384105] -> #0 ((console_sem).lock){-...}: [ 36.384119] lock_acquire+0x1e4/0x4f0 [ 36.384123] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.384126] down_trylock+0x13/0x70 [ 36.384130] __down_trylock_console_sem+0xae/0x200 [ 36.384134] console_trylock+0x15/0xa0 [ 36.384138] vprintk_emit+0x31f/0x910 [ 36.384141] vprintk_default+0x28/0x30 [ 36.384145] vprintk_func+0x7a/0x117 [ 36.384148] printk+0xa7/0xcf [ 36.384152] kasan_report+0x9e/0x110 [ 36.384156] __asan_report_load8_noabort+0x14/0x20 [ 36.384159] __schedule+0xf54/0x1df0 [ 36.384163] preempt_schedule_common+0x22/0x60 [ 36.384167] _cond_resched+0x1d/0x30 [ 36.384171] wait_for_completion+0xa5/0x8d0 [ 36.384176] __synchronize_srcu+0x189/0x240 [ 36.384179] synchronize_srcu+0x335/0x56f [ 36.384184] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.384188] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.384192] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.384195] kvm_put_kvm+0x73f/0x1060 [ 36.384199] kvm_vm_release+0x42/0x50 [ 36.384203] __fput+0x36e/0x8c0 [ 36.384206] ____fput+0x15/0x20 [ 36.384210] task_work_run+0x1e8/0x2a0 [ 36.384213] do_exit+0x1ae4/0x26e0 [ 36.384217] do_group_exit+0x177/0x440 [ 36.384221] __x64_sys_exit_group+0x3e/0x50 [ 36.384224] do_syscall_64+0x1b9/0x820 [ 36.384229] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.384231] [ 36.384235] other info that might help us debug this: [ 36.384237] [ 36.384240] Chain exists of: [ 36.384242] (console_sem).lock --> &rq->lock --> report_lock [ 36.384259] [ 36.384263] Possible unsafe locking scenario: [ 36.384265] [ 36.384269] CPU0 CPU1 [ 36.384273] ---- ---- [ 36.384275] lock(report_lock); [ 36.384284] lock(&rq->lock); [ 36.384293] lock(report_lock); [ 36.384300] lock((console_sem).lock); [ 36.384307] [ 36.384310] *** DEADLOCK *** [ 36.384312] [ 36.384316] 2 locks held by syz-executor260/4456: [ 36.384319] #0: 00000000df55e8e2 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.384334] #1: 00000000a9eb3b49 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.384350] [ 36.384353] stack backtrace: [ 36.384359] CPU: 0 PID: 4456 Comm: syz-executor260 Not tainted 4.19.0-rc1+ #212 [ 36.384365] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.384368] Call Trace: [ 36.384372] dump_stack+0x1c9/0x2b4 [ 36.384376] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.384380] ? vprintk_func+0x100/0x117 [ 36.384384] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.384388] ? save_trace+0xe0/0x290 [ 36.384391] __lock_acquire+0x3449/0x5020 [ 36.384395] ? mark_held_locks+0x160/0x160 [ 36.384399] ? mark_held_locks+0x160/0x160 [ 36.384403] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.384407] ? is_bpf_text_address+0xd7/0x170 [ 36.384411] ? kernel_text_address+0x79/0xf0 [ 36.384415] ? __kernel_text_address+0xd/0x40 [ 36.384419] ? __save_stack_trace+0x8d/0xf0 [ 36.384423] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.384426] ? save_trace+0x290/0x290 [ 36.384430] ? save_stack_trace+0x1a/0x20 [ 36.384434] ? save_trace+0xe0/0x290 [ 36.384437] ? graph_lock+0x170/0x170 [ 36.384442] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.384445] lock_acquire+0x1e4/0x4f0 [ 36.384449] ? down_trylock+0x13/0x70 [ 36.384452] ? lock_release+0x9f0/0x9f0 [ 36.384456] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.384460] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.384464] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.384468] ? log_store+0x34f/0x4c0 [ 36.384471] ? vprintk_emit+0x31f/0x910 [ 36.384475] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.384479] ? down_trylock+0x13/0x70 [ 36.384482] down_trylock+0x13/0x70 [ 36.384486] __down_trylock_console_sem+0xae/0x200 [ 36.384490] console_trylock+0x15/0xa0 [ 36.384493] vprintk_emit+0x31f/0x910 [ 36.384497] ? wake_up_klogd+0x110/0x110 [ 36.384501] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.384505] ? kasan_check_read+0x11/0x20 [ 36.384509] ? rcu_is_watching+0x8c/0x150 [ 36.384512] ? rcu_pm_notify+0xc0/0xc0 [ 36.384516] ? lock_acquire+0x1e4/0x4f0 [ 36.384519] ? kasan_report+0x8e/0x110 [ 36.384523] ? __schedule+0xf54/0x1df0 [ 36.384526] vprintk_default+0x28/0x30 [ 36.384530] vprintk_func+0x7a/0x117 [ 36.384545] printk+0xa7/0xcf [ 36.384549] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.384553] ? kasan_check_write+0x14/0x20 [ 36.384557] ? do_raw_spin_lock+0xc1/0x200 [ 36.384561] ? do_raw_spin_lock+0xc1/0x200 [ 36.384564] kasan_report+0x9e/0x110 [ 36.384569] __asan_report_load8_noabort+0x14/0x20 [ 36.384572] __schedule+0xf54/0x1df0 [ 36.384577] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.384580] ? __sched_text_start+0x8/0x8 [ 36.384584] ? __call_srcu+0x7e7/0x1040 [ 36.384588] ? check_same_owner+0x340/0x340 [ 36.384592] ? mark_held_locks+0x160/0x160 [ 36.384596] ? find_held_lock+0x36/0x1c0 [ 36.384612] preempt_schedule_common+0x22/0x60 [ 36.384615] _cond_resched+0x1d/0x30 [ 36.384619] wait_for_completion+0xa5/0x8d0 [ 36.384636] ? wait_for_completion_interruptible+0x950/0x950 [ 36.384648] ? __lockdep_init_map+0x105/0x590 [ 36.384653] ? __init_waitqueue_head+0x9e/0x150 [ 36.384657] ? init_wait_entry+0x1c0/0x1c0 [ 36.384661] __synchronize_srcu+0x189/0x240 [ 36.384664] ? call_srcu+0x10/0x10 [ 36.384674] ? rcu_unexpedite_gp+0x20/0x20 [ 36.384678] synchronize_srcu+0x335/0x56f [ 36.384682] ? lock_downgrade+0x8f0/0x8f0 [ 36.384686] ? synchronize_srcu_expedited+0x20/0x20 [ 36.384690] ? kasan_check_read+0x11/0x20 [ 36.384694] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.384698] ? kasan_check_write+0x14/0x20 [ 36.384702] ? do_raw_spin_lock+0xc1/0x200 [ 36.384707] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.384712] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.384716] ? kvfree+0x61/0x70 [ 36.384720] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.384724] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.384728] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.384732] ? kvm_arch_sync_events+0x30/0x30 [ 36.384737] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.384741] ? mmu_notifier_unregister+0x474/0x600 [ 36.384745] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.384749] ? kfree+0x111/0x210 [ 36.384753] ? __mmu_notifier_register+0x30/0x30 [ 36.384757] ? __free_pages+0x10a/0x190 [ 36.384761] ? free_unref_page+0x930/0x930 [ 36.384764] kvm_put_kvm+0x73f/0x1060 [ 36.384769] ? kvm_write_guest_cached+0x40/0x40 [ 36.384773] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.384777] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.384781] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.384785] ? kasan_check_write+0x14/0x20 [ 36.384789] ? do_raw_spin_lock+0xc1/0x200 [ 36.384793] ? kvm_irqfd_release+0xdd/0x120 [ 36.384797] ? kvm_irqfd_release+0xdd/0x120 [ 36.384800] ? kvm_put_kvm+0x1060/0x1060 [ 36.384804] kvm_vm_release+0x42/0x50 [ 36.384808] __fput+0x36e/0x8c0 [ 36.384811] ? __alloc_file+0x400/0x400 [ 36.384815] ? check_same_owner+0x340/0x340 [ 36.384819] ? kasan_check_write+0x14/0x20 [ 36.384823] ? do_raw_spin_lock+0xc1/0x200 [ 36.384826] ____fput+0x15/0x20 [ 36.384830] task_work_run+0x1e8/0x2a0 [ 36.384834] ? task_work_cancel+0x240/0x240 [ 36.384839] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.384843] ? switch_task_namespaces+0xa2/0xd0 [ 36.384846] do_exit+0x1ae4/0x26e0 [ 36.384851] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.384854] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.384859] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.384862] ? kfree+0x1d7/0x210 [ 36.384866] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.384871] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.384875] ? is_bpf_text_address+0xd7/0x170 [ 36.384877] ? [ 36.384886] Lost 55 message(s)! [ 37.474875] Shutting down cpus with NMI [ 38.536416] Dumping ftrace buffer: [ 38.539975] (ftrace buffer empty) [ 38.543690] Kernel Offset: disabled [ 38.547308] Rebooting in 86400 seconds..