[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.724193] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.470065] random: sshd: uninitialized urandom read (32 bytes read) [ 29.851498] random: sshd: uninitialized urandom read (32 bytes read) [ 30.430388] random: sshd: uninitialized urandom read (32 bytes read) [ 30.609693] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.13' (ECDSA) to the list of known hosts. [ 36.094279] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.192580] 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. [ 36.217699] ================================================================== [ 36.227567] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 36.233798] Read of size 8 at addr ffff8801bac68058 by task syz-executor299/4634 [ 36.241320] [ 36.242953] CPU: 0 PID: 4634 Comm: syz-executor299 Not tainted 4.19.0-rc2+ #224 [ 36.250391] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.259741] Call Trace: [ 36.262338] dump_stack+0x1c9/0x2b4 [ 36.265968] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.271164] ? printk+0xa7/0xcf [ 36.274446] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.279208] ? __schedule+0xf54/0x1df0 [ 36.283105] print_address_description+0x6c/0x20b [ 36.287958] ? __schedule+0xf54/0x1df0 [ 36.291846] kasan_report.cold.7+0x242/0x30d [ 36.296260] __asan_report_load8_noabort+0x14/0x20 [ 36.301191] __schedule+0xf54/0x1df0 [ 36.304891] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.309978] ? __sched_text_start+0x8/0x8 [ 36.314125] ? __call_srcu+0x7e7/0x1040 [ 36.318121] ? check_same_owner+0x340/0x340 [ 36.322441] ? mark_held_locks+0x160/0x160 [ 36.326673] ? find_held_lock+0x36/0x1c0 [ 36.330736] preempt_schedule_common+0x22/0x60 [ 36.335320] _cond_resched+0x1d/0x30 [ 36.339045] wait_for_completion+0xa5/0x8d0 [ 36.343383] ? wait_for_completion_interruptible+0x950/0x950 [ 36.349184] ? __lockdep_init_map+0x105/0x590 [ 36.353685] ? __init_waitqueue_head+0x9e/0x150 [ 36.358351] ? init_wait_entry+0x1c0/0x1c0 [ 36.362589] __synchronize_srcu+0x189/0x240 [ 36.366911] ? call_srcu+0x10/0x10 [ 36.370452] ? rcu_unexpedite_gp+0x20/0x20 [ 36.374692] synchronize_srcu+0x335/0x56f [ 36.378839] ? lock_downgrade+0x8f0/0x8f0 [ 36.382984] ? synchronize_srcu_expedited+0x20/0x20 [ 36.388001] ? kasan_check_read+0x11/0x20 [ 36.392149] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.396735] ? kasan_check_write+0x14/0x20 [ 36.400973] ? do_raw_spin_lock+0xc1/0x200 [ 36.405217] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.410928] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.416381] ? kvfree+0x61/0x70 [ 36.419663] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.424680] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.428745] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.433155] ? kvm_arch_sync_events+0x30/0x30 [ 36.437657] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.443196] ? mmu_notifier_unregister+0x474/0x600 [ 36.448124] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.452530] ? kfree+0x111/0x210 [ 36.455896] ? __mmu_notifier_register+0x30/0x30 [ 36.460659] ? __free_pages+0x10a/0x190 [ 36.464640] ? free_unref_page+0x930/0x930 [ 36.468885] kvm_put_kvm+0x73f/0x1060 [ 36.472690] ? kvm_write_guest_cached+0x40/0x40 [ 36.477363] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.481857] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.486354] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.490940] ? kasan_check_write+0x14/0x20 [ 36.495178] ? do_raw_spin_lock+0xc1/0x200 [ 36.499415] ? kvm_irqfd_release+0xdd/0x120 [ 36.503733] ? kvm_irqfd_release+0xdd/0x120 [ 36.508058] ? kvm_put_kvm+0x1060/0x1060 [ 36.512390] kvm_vm_release+0x42/0x50 [ 36.516195] __fput+0x38a/0xa40 [ 36.519477] ? __alloc_file+0x400/0x400 [ 36.523456] ? check_same_owner+0x340/0x340 [ 36.527781] ? kasan_check_write+0x14/0x20 [ 36.532015] ? do_raw_spin_lock+0xc1/0x200 [ 36.536252] ____fput+0x15/0x20 [ 36.539530] task_work_run+0x1e8/0x2a0 [ 36.543416] ? task_work_cancel+0x240/0x240 [ 36.547739] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.553293] ? switch_task_namespaces+0xa2/0xd0 [ 36.557969] do_exit+0x1ae4/0x26e0 [ 36.561517] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.566193] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.570431] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.575456] ? kfree+0x1d7/0x210 [ 36.578858] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.583105] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.588833] ? is_bpf_text_address+0xd7/0x170 [ 36.593331] ? kernel_text_address+0x79/0xf0 [ 36.597746] ? __kernel_text_address+0xd/0x40 [ 36.602250] ? unwind_get_return_address+0x61/0xa0 [ 36.607184] ? __save_stack_trace+0x8d/0xf0 [ 36.611522] ? save_stack+0xa9/0xd0 [ 36.615150] ? save_stack+0x43/0xd0 [ 36.618776] ? __kasan_slab_free+0x11a/0x170 [ 36.623195] ? kasan_slab_free+0xe/0x10 [ 36.627173] ? putname+0xf2/0x130 [ 36.630627] ? __x64_sys_openat+0x9d/0x100 [ 36.634881] ? do_syscall_64+0x1b9/0x820 [ 36.638947] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.644317] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.648863] ? kasan_check_read+0x11/0x20 [ 36.653050] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.657476] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.661890] ? initcall_blacklisted+0x9a/0x1e0 [ 36.666477] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.671583] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.677299] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.682840] ? do_vfs_ioctl+0x201/0x1720 [ 36.686900] ? rcu_is_watching+0x8c/0x150 [ 36.691043] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.695368] ? ioctl_preallocate+0x300/0x300 [ 36.699778] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.705318] ? __fget_light+0x2f7/0x440 [ 36.709294] ? fget_raw+0x20/0x20 [ 36.712766] ? putname+0xf2/0x130 [ 36.716224] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.721240] ? kmem_cache_free+0x246/0x280 [ 36.725471] ? putname+0xf7/0x130 [ 36.728927] do_group_exit+0x177/0x440 [ 36.732818] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.737138] ? __ia32_sys_exit+0x50/0x50 [ 36.741198] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.746304] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.751842] ? ksys_ioctl+0x81/0xd0 [ 36.755468] __x64_sys_exit_group+0x3e/0x50 [ 36.759795] do_syscall_64+0x1b9/0x820 [ 36.763684] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.769052] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.773991] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.778835] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.783861] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.788879] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.793732] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.798917] RIP: 0033:0x43ef08 [ 36.802123] Code: Bad RIP value. [ 36.805509] RSP: 002b:00007ffc173f8bf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.813217] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.820483] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.827751] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.835014] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.842287] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.849558] [ 36.851186] Allocated by task 4634: [ 36.854818] save_stack+0x43/0xd0 [ 36.858273] kasan_kmalloc+0xc4/0xe0 [ 36.861985] kasan_slab_alloc+0x12/0x20 [ 36.865955] kmem_cache_alloc+0x12e/0x710 [ 36.870107] vmx_create_vcpu+0xcf/0x2830 [ 36.874169] kvm_arch_vcpu_create+0xe5/0x220 [ 36.878578] kvm_vm_ioctl+0x488/0x1d80 [ 36.882466] do_vfs_ioctl+0x1de/0x1720 [ 36.886354] ksys_ioctl+0xa9/0xd0 [ 36.889807] __x64_sys_ioctl+0x73/0xb0 [ 36.893696] do_syscall_64+0x1b9/0x820 [ 36.897586] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.902762] [ 36.904383] Freed by task 4634: [ 36.907666] save_stack+0x43/0xd0 [ 36.911121] __kasan_slab_free+0x11a/0x170 [ 36.915372] kasan_slab_free+0xe/0x10 [ 36.919173] kmem_cache_free+0x86/0x280 [ 36.923145] vmx_free_vcpu+0x26b/0x300 [ 36.927035] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.931453] kvm_put_kvm+0x73f/0x1060 [ 36.935254] kvm_vm_release+0x42/0x50 [ 36.939054] __fput+0x38a/0xa40 [ 36.942342] ____fput+0x15/0x20 [ 36.945623] task_work_run+0x1e8/0x2a0 [ 36.949604] do_exit+0x1ae4/0x26e0 [ 36.953148] do_group_exit+0x177/0x440 [ 36.957036] __x64_sys_exit_group+0x3e/0x50 [ 36.961372] do_syscall_64+0x1b9/0x820 [ 36.965278] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.970461] [ 36.972101] The buggy address belongs to the object at ffff8801bac68040 [ 36.972101] which belongs to the cache kvm_vcpu of size 23872 [ 36.984690] The buggy address is located 24 bytes inside of [ 36.984690] 23872-byte region [ffff8801bac68040, ffff8801bac6dd80) [ 36.996667] The buggy address belongs to the page: [ 37.001609] page:ffffea0006eb1a00 count:1 mapcount:0 mapping:ffff8801d518cb40 index:0x0 compound_mapcount: 0 [ 37.011580] flags: 0x2fffc0000008100(slab|head) [ 37.016258] raw: 02fffc0000008100 ffff8801d5182348 ffff8801d5182348 ffff8801d518cb40 [ 37.024139] raw: 0000000000000000 ffff8801bac68040 0000000100000001 0000000000000000 [ 37.032014] page dumped because: kasan: bad access detected [ 37.037713] [ 37.039338] Memory state around the buggy address: [ 37.044266] ffff8801bac67f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.051623] ffff8801bac67f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.058984] >ffff8801bac68000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.066337] ^ [ 37.072594] ffff8801bac68080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.079953] ffff8801bac68100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.087566] ================================================================== [ 37.094919] Kernel panic - not syncing: panic_on_warn set ... [ 37.094919] [ 37.102290] CPU: 0 PID: 4634 Comm: syz-executor299 Tainted: G B 4.19.0-rc2+ #224 [ 37.111120] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.120468] Call Trace: [ 37.123067] dump_stack+0x1c9/0x2b4 [ 37.126708] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.131908] ? lock_downgrade+0x8f0/0x8f0 [ 37.136055] ? __schedule+0xf54/0x1df0 [ 37.139954] panic+0x238/0x4e7 [ 37.143189] ? add_taint.cold.5+0x16/0x16 [ 37.147344] ? print_shadow_for_address+0xba/0x116 [ 37.152271] ? trace_hardirqs_off+0xaf/0x2b0 [ 37.156678] ? trace_hardirqs_off+0x77/0x2b0 [ 37.161098] ? __schedule+0xf54/0x1df0 [ 37.164988] kasan_end_report+0x47/0x4f [ 37.168963] kasan_report.cold.7+0x76/0x30d [ 37.173293] __asan_report_load8_noabort+0x14/0x20 [ 37.178226] __schedule+0xf54/0x1df0 [ 37.181939] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.187046] ? __sched_text_start+0x8/0x8 [ 37.191198] ? __call_srcu+0x7e7/0x1040 [ 37.195185] ? check_same_owner+0x340/0x340 [ 37.199504] ? mark_held_locks+0x160/0x160 [ 37.203761] ? find_held_lock+0x36/0x1c0 [ 37.207828] preempt_schedule_common+0x22/0x60 [ 37.212410] _cond_resched+0x1d/0x30 [ 37.216127] wait_for_completion+0xa5/0x8d0 [ 37.220456] ? wait_for_completion_interruptible+0x950/0x950 [ 37.226255] ? __lockdep_init_map+0x105/0x590 [ 37.230753] ? __init_waitqueue_head+0x9e/0x150 [ 37.235421] ? init_wait_entry+0x1c0/0x1c0 [ 37.239660] __synchronize_srcu+0x189/0x240 [ 37.243981] ? call_srcu+0x10/0x10 [ 37.247523] ? rcu_unexpedite_gp+0x20/0x20 [ 37.251767] synchronize_srcu+0x335/0x56f [ 37.255914] ? lock_downgrade+0x8f0/0x8f0 [ 37.260062] ? synchronize_srcu_expedited+0x20/0x20 [ 37.265101] ? kasan_check_read+0x11/0x20 [ 37.269254] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.273837] ? kasan_check_write+0x14/0x20 [ 37.278074] ? do_raw_spin_lock+0xc1/0x200 [ 37.282326] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.288066] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.293545] ? kvfree+0x61/0x70 [ 37.296848] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.301885] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.305959] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.310379] ? kvm_arch_sync_events+0x30/0x30 [ 37.314888] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.320437] ? mmu_notifier_unregister+0x474/0x600 [ 37.325370] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.329792] ? kfree+0x111/0x210 [ 37.333181] ? __mmu_notifier_register+0x30/0x30 [ 37.337956] ? __free_pages+0x10a/0x190 [ 37.341945] ? free_unref_page+0x930/0x930 [ 37.346196] kvm_put_kvm+0x73f/0x1060 [ 37.350017] ? kvm_write_guest_cached+0x40/0x40 [ 37.354693] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.359195] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.363694] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.368290] ? kasan_check_write+0x14/0x20 [ 37.372527] ? do_raw_spin_lock+0xc1/0x200 [ 37.376768] ? kvm_irqfd_release+0xdd/0x120 [ 37.381096] ? kvm_irqfd_release+0xdd/0x120 [ 37.385427] ? kvm_put_kvm+0x1060/0x1060 [ 37.389491] kvm_vm_release+0x42/0x50 [ 37.393297] __fput+0x38a/0xa40 [ 37.396579] ? __alloc_file+0x400/0x400 [ 37.400560] ? check_same_owner+0x340/0x340 [ 37.404910] ? kasan_check_write+0x14/0x20 [ 37.409151] ? do_raw_spin_lock+0xc1/0x200 [ 37.413391] ____fput+0x15/0x20 [ 37.416676] task_work_run+0x1e8/0x2a0 [ 37.420572] ? task_work_cancel+0x240/0x240 [ 37.424906] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.430465] ? switch_task_namespaces+0xa2/0xd0 [ 37.435145] do_exit+0x1ae4/0x26e0 [ 37.438699] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.443386] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.447636] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.452662] ? kfree+0x1d7/0x210 [ 37.456035] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.460277] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.465997] ? is_bpf_text_address+0xd7/0x170 [ 37.470498] ? kernel_text_address+0x79/0xf0 [ 37.474907] ? __kernel_text_address+0xd/0x40 [ 37.479410] ? unwind_get_return_address+0x61/0xa0 [ 37.484356] ? __save_stack_trace+0x8d/0xf0 [ 37.488679] ? save_stack+0xa9/0xd0 [ 37.492288] ? save_stack+0x43/0xd0 [ 37.495897] ? __kasan_slab_free+0x11a/0x170 [ 37.500299] ? kasan_slab_free+0xe/0x10 [ 37.504261] ? putname+0xf2/0x130 [ 37.507717] ? __x64_sys_openat+0x9d/0x100 [ 37.511959] ? do_syscall_64+0x1b9/0x820 [ 37.516022] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.521391] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.526018] ? kasan_check_read+0x11/0x20 [ 37.530177] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.534590] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.539001] ? initcall_blacklisted+0x9a/0x1e0 [ 37.543588] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.548700] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.554422] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.559967] ? do_vfs_ioctl+0x201/0x1720 [ 37.564033] ? rcu_is_watching+0x8c/0x150 [ 37.568186] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.572517] ? ioctl_preallocate+0x300/0x300 [ 37.576932] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.582478] ? __fget_light+0x2f7/0x440 [ 37.586456] ? fget_raw+0x20/0x20 [ 37.589911] ? putname+0xf2/0x130 [ 37.593373] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.598403] ? kmem_cache_free+0x246/0x280 [ 37.603076] ? putname+0xf7/0x130 [ 37.606557] do_group_exit+0x177/0x440 [ 37.610454] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.614790] ? __ia32_sys_exit+0x50/0x50 [ 37.618867] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.623985] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.629536] ? ksys_ioctl+0x81/0xd0 [ 37.633181] __x64_sys_exit_group+0x3e/0x50 [ 37.637515] do_syscall_64+0x1b9/0x820 [ 37.641410] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.646773] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.651693] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.656639] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.661674] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.666721] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.671585] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.676780] RIP: 0033:0x43ef08 [ 37.679977] Code: Bad RIP value. [ 37.683340] RSP: 002b:00007ffc173f8bf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.691047] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 37.698326] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.705598] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.712870] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.720145] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.727434] [ 37.727440] ====================================================== [ 37.727445] WARNING: possible circular locking dependency detected [ 37.727449] 4.19.0-rc2+ #224 Not tainted [ 37.727454] ------------------------------------------------------ [ 37.727459] syz-executor299/4634 is trying to acquire lock: [ 37.727463] 000000004460eea1 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.727477] [ 37.727481] but task is already holding lock: [ 37.727484] 00000000ba62ab0b (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.727499] [ 37.727503] which lock already depends on the new lock. [ 37.727505] [ 37.727508] [ 37.727513] the existing dependency chain (in reverse order) is: [ 37.727515] [ 37.727517] -> #3 (report_lock){....}: [ 37.727532] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.727535] kasan_report+0x8e/0x110 [ 37.727540] __asan_report_load8_noabort+0x14/0x20 [ 37.727544] __schedule+0xf54/0x1df0 [ 37.727548] preempt_schedule_common+0x22/0x60 [ 37.727552] _cond_resched+0x1d/0x30 [ 37.727556] wait_for_completion+0xa5/0x8d0 [ 37.727560] __synchronize_srcu+0x189/0x240 [ 37.727564] synchronize_srcu+0x335/0x56f [ 37.727569] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.727573] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.727577] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.727581] kvm_put_kvm+0x73f/0x1060 [ 37.727585] kvm_vm_release+0x42/0x50 [ 37.727588] __fput+0x38a/0xa40 [ 37.727592] ____fput+0x15/0x20 [ 37.727596] task_work_run+0x1e8/0x2a0 [ 37.727599] do_exit+0x1ae4/0x26e0 [ 37.727603] do_group_exit+0x177/0x440 [ 37.727607] __x64_sys_exit_group+0x3e/0x50 [ 37.727611] do_syscall_64+0x1b9/0x820 [ 37.727616] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.727618] [ 37.727620] -> #2 (&rq->lock){-.-.}: [ 37.727634] _raw_spin_lock+0x2a/0x40 [ 37.727638] task_fork_fair+0x93/0x680 [ 37.727641] sched_fork+0x44b/0xbd0 [ 37.727645] copy_process+0x235e/0x7af0 [ 37.727649] _do_fork+0x1ca/0x1170 [ 37.727653] kernel_thread+0x34/0x40 [ 37.727657] rest_init+0x22/0xe4 [ 37.727661] start_kernel+0x913/0x94e [ 37.727665] x86_64_start_reservations+0x29/0x2b [ 37.727669] x86_64_start_kernel+0x76/0x79 [ 37.727673] secondary_startup_64+0xa4/0xb0 [ 37.727675] [ 37.727678] -> #1 (&p->pi_lock){-.-.}: [ 37.727692] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.727696] try_to_wake_up+0xd2/0x1250 [ 37.727700] wake_up_process+0x10/0x20 [ 37.727703] __up.isra.1+0x1c0/0x2a0 [ 37.727707] up+0x13c/0x1c0 [ 37.727711] __up_console_sem+0xbe/0x1b0 [ 37.727714] console_unlock+0x506/0x10d0 [ 37.727718] vprintk_emit+0x33a/0x910 [ 37.727722] vprintk_default+0x28/0x30 [ 37.727726] vprintk_func+0x7a/0x117 [ 37.727729] printk+0xa7/0xcf [ 37.727733] load_umh+0x51/0xbd [ 37.727737] do_one_initcall+0x127/0x838 [ 37.727741] kernel_init_freeable+0x4bb/0x5ae [ 37.727745] kernel_init+0x11/0x1b3 [ 37.727748] ret_from_fork+0x3a/0x50 [ 37.727751] [ 37.727753] -> #0 ((console_sem).lock){-...}: [ 37.727767] lock_acquire+0x1e4/0x4f0 [ 37.727772] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.727775] down_trylock+0x13/0x70 [ 37.727780] __down_trylock_console_sem+0xae/0x200 [ 37.727784] console_trylock+0x15/0xa0 [ 37.727788] vprintk_emit+0x31f/0x910 [ 37.727791] vprintk_default+0x28/0x30 [ 37.727795] vprintk_func+0x7a/0x117 [ 37.727799] printk+0xa7/0xcf [ 37.727802] kasan_report+0x9e/0x110 [ 37.727807] __asan_report_load8_noabort+0x14/0x20 [ 37.727810] __schedule+0xf54/0x1df0 [ 37.727815] preempt_schedule_common+0x22/0x60 [ 37.727818] _cond_resched+0x1d/0x30 [ 37.727823] wait_for_completion+0xa5/0x8d0 [ 37.727827] __synchronize_srcu+0x189/0x240 [ 37.727831] synchronize_srcu+0x335/0x56f [ 37.727836] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.727839] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.727844] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.727847] kvm_put_kvm+0x73f/0x1060 [ 37.727851] kvm_vm_release+0x42/0x50 [ 37.727855] __fput+0x38a/0xa40 [ 37.727858] ____fput+0x15/0x20 [ 37.727862] task_work_run+0x1e8/0x2a0 [ 37.727866] do_exit+0x1ae4/0x26e0 [ 37.727869] do_group_exit+0x177/0x440 [ 37.727874] __x64_sys_exit_group+0x3e/0x50 [ 37.727877] do_syscall_64+0x1b9/0x820 [ 37.727882] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.727884] [ 37.727889] other info that might help us debug this: [ 37.727891] [ 37.727894] Chain exists of: [ 37.727896] (console_sem).lock --> &rq->lock --> report_lock [ 37.727914] [ 37.727918] Possible unsafe locking scenario: [ 37.727920] [ 37.727924] CPU0 CPU1 [ 37.727928] ---- ---- [ 37.727931] lock(report_lock); [ 37.727940] lock(&rq->lock); [ 37.727949] lock(report_lock); [ 37.727957] lock((console_sem).lock); [ 37.727965] [ 37.727968] *** DEADLOCK *** [ 37.727970] [ 37.727974] 2 locks held by syz-executor299/4634: [ 37.727976] #0: 00000000af14234f (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.727993] #1: 00000000ba62ab0b (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.728010] [ 37.728013] stack backtrace: [ 37.728019] CPU: 0 PID: 4634 Comm: syz-executor299 Not tainted 4.19.0-rc2+ #224 [ 37.728026] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.728029] Call Trace: [ 37.728032] dump_stack+0x1c9/0x2b4 [ 37.728037] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.728041] ? vprintk_func+0x100/0x117 [ 37.728046] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.728049] ? save_trace+0xe0/0x290 [ 37.728053] __lock_acquire+0x3449/0x5020 [ 37.728057] ? mark_held_locks+0x160/0x160 [ 37.728061] ? mark_held_locks+0x160/0x160 [ 37.728065] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.728070] ? is_bpf_text_address+0xd7/0x170 [ 37.728074] ? kernel_text_address+0x79/0xf0 [ 37.728078] ? __kernel_text_address+0xd/0x40 [ 37.728091] ? __save_stack_trace+0x8d/0xf0 [ 37.728095] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.728099] ? save_trace+0x290/0x290 [ 37.728103] ? save_stack_trace+0x1a/0x20 [ 37.728107] ? save_trace+0xe0/0x290 [ 37.728110] ? graph_lock+0x170/0x170 [ 37.728115] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.728119] lock_acquire+0x1e4/0x4f0 [ 37.728123] ? down_trylock+0x13/0x70 [ 37.728126] ? lock_release+0x9f0/0x9f0 [ 37.728130] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.728134] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.728139] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.728142] ? log_store+0x34f/0x4c0 [ 37.728146] ? vprintk_emit+0x31f/0x910 [ 37.728156] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.728159] ? down_trylock+0x13/0x70 [ 37.728163] down_trylock+0x13/0x70 [ 37.728167] __down_trylock_console_sem+0xae/0x200 [ 37.728171] console_trylock+0x15/0xa0 [ 37.728175] vprintk_emit+0x31f/0x910 [ 37.728179] ? wake_up_klogd+0x110/0x110 [ 37.728183] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.728187] ? kasan_check_read+0x11/0x20 [ 37.728191] ? rcu_is_watching+0x8c/0x150 [ 37.728195] ? rcu_pm_notify+0xc0/0xc0 [ 37.728199] ? lock_acquire+0x1e4/0x4f0 [ 37.728202] ? kasan_report+0x8e/0x110 [ 37.728206] ? __schedule+0xf54/0x1df0 [ 37.728210] vprintk_default+0x28/0x30 [ 37.728214] vprintk_func+0x7a/0x117 [ 37.728217] printk+0xa7/0xcf [ 37.728221] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.728225] ? kasan_check_write+0x14/0x20 [ 37.728229] ? do_raw_spin_lock+0xc1/0x200 [ 37.728234] ? do_raw_spin_lock+0xc1/0x200 [ 37.728237] kasan_report+0x9e/0x110 [ 37.728242] __asan_report_load8_noabort+0x14/0x20 [ 37.728245] __schedule+0xf54/0x1df0 [ 37.728250] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.728254] ? __sched_text_start+0x8/0x8 [ 37.728258] ? __call_srcu+0x7e7/0x1040 [ 37.728262] ? check_same_owner+0x340/0x340 [ 37.728266] ? mark_held_locks+0x160/0x160 [ 37.728270] ? find_held_lock+0x36/0x1c0 [ 37.728274] preempt_schedule_common+0x22/0x60 [ 37.728278] _cond_resched+0x1d/0x30 [ 37.728282] wait_for_completion+0xa5/0x8d0 [ 37.728287] ? wait_for_completion_interruptible+0x950/0x950 [ 37.728291] ? __lockdep_init_map+0x105/0x590 [ 37.728295] ? __init_waitqueue_head+0x9e/0x150 [ 37.728299] ? init_wait_entry+0x1c0/0x1c0 [ 37.728303] __synchronize_srcu+0x189/0x240 [ 37.728307] ? call_srcu+0x10/0x10 [ 37.728311] ? rcu_unexpedite_gp+0x20/0x20 [ 37.728315] synchronize_srcu+0x335/0x56f [ 37.728319] ? lock_downgrade+0x8f0/0x8f0 [ 37.728324] ? synchronize_srcu_expedited+0x20/0x20 [ 37.728328] ? kasan_check_read+0x11/0x20 [ 37.728332] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.728336] ? kasan_check_write+0x14/0x20 [ 37.728340] ? do_raw_spin_lock+0xc1/0x200 [ 37.728345] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.728349] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.728353] ? kvfree+0x61/0x70 [ 37.728357] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.728361] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.728365] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.728369] ? kvm_arch_sync_events+0x30/0x30 [ 37.728374] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.728378] ? mmu_notifier_unregister+0x474/0x600 [ 37.728383] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.728386] ? kfree+0x111/0x210 [ 37.728390] ? __mmu_notifier_register+0x30/0x30 [ 37.728394] ? __free_pages+0x10a/0x190 [ 37.728398] ? free_unref_page+0x930/0x930 [ 37.728402] kvm_put_kvm+0x73f/0x1060 [ 37.728406] ? kvm_write_guest_cached+0x40/0x40 [ 37.728410] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.728414] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.728418] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.728422] ? kasan_check_write+0x14/0x20 [ 37.728426] ? do_raw_spin_lock+0xc1/0x200 [ 37.728430] ? kvm_irqfd_release+0xdd/0x120 [ 37.728434] ? kvm_irqfd_release+0xdd/0x120 [ 37.728438] ? kvm_put_kvm+0x1060/0x1060 [ 37.728442] kvm_vm_release+0x42/0x50 [ 37.728445] __fput+0x38a/0xa40 [ 37.728449] ? __alloc_file+0x400/0x400 [ 37.728453] ? check_same_owner+0x340/0x340 [ 37.728457] ? kasan_check_write+0x14/0x20 [ 37.728461] ? do_raw_spin_lock+0xc1/0x200 [ 37.728465] ____fput+0x15/0x20 [ 37.728469] task_work_run+0x1e8/0x2a0 [ 37.728473] ? task_work_cancel+0x240/0x240 [ 37.728477] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.728481] ? switch_task_namespaces+0xa2/0xd0 [ 37.728485] do_exit+0x1ae4/0x26e0 [ 37.728489] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.728493] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.728498] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.728501] ? kfree+0x1d7/0x210 [ 37.728505] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.728510] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.728514] ? is_bpf_text_address+0xd7/0x170 [ 37.728516] ? [ 37.728525] Lost 54 message(s)! [ 38.793525] Shutting down cpus with NMI [ 39.853060] Dumping ftrace buffer: [ 39.856609] (ftrace buffer empty) [ 39.860303] Kernel Offset: disabled [ 39.863912] Rebooting in 86400 seconds..