[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.192770] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.732926] random: sshd: uninitialized urandom read (32 bytes read) [ 28.038092] random: sshd: uninitialized urandom read (32 bytes read) [ 28.571145] random: sshd: uninitialized urandom read (32 bytes read) [ 28.752145] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.53' (ECDSA) to the list of known hosts. [ 34.338454] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.437080] 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.463031] ================================================================== [ 34.472856] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.479080] Read of size 8 at addr ffff8801d9930058 by task syz-executor195/4696 [ 34.486597] [ 34.488223] CPU: 0 PID: 4696 Comm: syz-executor195 Not tainted 4.19.0-rc1+ #217 [ 34.495676] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.505059] Call Trace: [ 34.507645] dump_stack+0x1c9/0x2b4 [ 34.511280] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.516465] ? printk+0xa7/0xcf [ 34.519750] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.524513] ? __schedule+0xf54/0x1df0 [ 34.528399] print_address_description+0x6c/0x20b [ 34.533243] ? __schedule+0xf54/0x1df0 [ 34.537138] kasan_report.cold.7+0x242/0x30d [ 34.541554] __asan_report_load8_noabort+0x14/0x20 [ 34.546480] __schedule+0xf54/0x1df0 [ 34.550244] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.555343] ? __sched_text_start+0x8/0x8 [ 34.559733] ? __call_srcu+0x7e7/0x1040 [ 34.563698] ? check_same_owner+0x340/0x340 [ 34.568052] ? mark_held_locks+0x160/0x160 [ 34.572280] ? find_held_lock+0x36/0x1c0 [ 34.576328] preempt_schedule_common+0x22/0x60 [ 34.580892] _cond_resched+0x1d/0x30 [ 34.584896] wait_for_completion+0xa5/0x8d0 [ 34.589218] ? wait_for_completion_interruptible+0x950/0x950 [ 34.595048] ? __lockdep_init_map+0x105/0x590 [ 34.599531] ? __init_waitqueue_head+0x9e/0x150 [ 34.604185] ? init_wait_entry+0x1c0/0x1c0 [ 34.608583] __synchronize_srcu+0x189/0x240 [ 34.612887] ? call_srcu+0x10/0x10 [ 34.616412] ? rcu_unexpedite_gp+0x20/0x20 [ 34.620630] synchronize_srcu+0x335/0x56f [ 34.624831] ? lock_downgrade+0x8f0/0x8f0 [ 34.628975] ? synchronize_srcu_expedited+0x20/0x20 [ 34.633978] ? kasan_check_read+0x11/0x20 [ 34.638107] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.642685] ? kasan_check_write+0x14/0x20 [ 34.646954] ? do_raw_spin_lock+0xc1/0x200 [ 34.651200] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.656896] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.662331] ? kvfree+0x61/0x70 [ 34.665595] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.670796] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.674845] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.679243] ? kvm_arch_sync_events+0x30/0x30 [ 34.683739] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.689320] ? mmu_notifier_unregister+0x474/0x600 [ 34.694243] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.698632] ? kfree+0x111/0x210 [ 34.702007] ? __mmu_notifier_register+0x30/0x30 [ 34.706746] ? __free_pages+0x10a/0x190 [ 34.710699] ? free_unref_page+0x930/0x930 [ 34.714918] kvm_put_kvm+0x73f/0x1060 [ 34.718707] ? kvm_write_guest_cached+0x40/0x40 [ 34.723554] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.728042] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.732525] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.737096] ? kasan_check_write+0x14/0x20 [ 34.741432] ? do_raw_spin_lock+0xc1/0x200 [ 34.745662] ? kvm_irqfd_release+0xdd/0x120 [ 34.750013] ? kvm_irqfd_release+0xdd/0x120 [ 34.754324] ? kvm_put_kvm+0x1060/0x1060 [ 34.758384] kvm_vm_release+0x42/0x50 [ 34.762216] __fput+0x38a/0xa40 [ 34.765482] ? __alloc_file+0x400/0x400 [ 34.769443] ? check_same_owner+0x340/0x340 [ 34.773824] ? kasan_check_write+0x14/0x20 [ 34.778159] ? do_raw_spin_lock+0xc1/0x200 [ 34.782421] ____fput+0x15/0x20 [ 34.785687] task_work_run+0x1e8/0x2a0 [ 34.789554] ? task_work_cancel+0x240/0x240 [ 34.793862] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.799444] ? switch_task_namespaces+0xa2/0xd0 [ 34.804100] do_exit+0x1ae4/0x26e0 [ 34.807667] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.812327] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.816546] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.821544] ? kfree+0x1d7/0x210 [ 34.824934] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.829173] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.834868] ? is_bpf_text_address+0xd7/0x170 [ 34.839346] ? kernel_text_address+0x79/0xf0 [ 34.843737] ? __kernel_text_address+0xd/0x40 [ 34.848216] ? unwind_get_return_address+0x61/0xa0 [ 34.853142] ? __save_stack_trace+0x8d/0xf0 [ 34.857455] ? save_stack+0xa9/0xd0 [ 34.861072] ? save_stack+0x43/0xd0 [ 34.864686] ? __kasan_slab_free+0x11a/0x170 [ 34.869074] ? kasan_slab_free+0xe/0x10 [ 34.873029] ? putname+0xf2/0x130 [ 34.876464] ? __x64_sys_openat+0x9d/0x100 [ 34.880682] ? do_syscall_64+0x1b9/0x820 [ 34.884723] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.890097] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.894555] ? kasan_check_read+0x11/0x20 [ 34.898690] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.903081] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.907474] ? initcall_blacklisted+0x9a/0x1e0 [ 34.912042] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.917146] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.922921] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.928494] ? do_vfs_ioctl+0x201/0x1720 [ 34.932546] ? rcu_is_watching+0x8c/0x150 [ 34.936774] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.941077] ? ioctl_preallocate+0x300/0x300 [ 34.945466] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.951049] ? __fget_light+0x2f7/0x440 [ 34.955007] ? fget_raw+0x20/0x20 [ 34.958445] ? putname+0xf2/0x130 [ 34.961887] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.966888] ? kmem_cache_free+0x246/0x280 [ 34.971107] ? putname+0xf7/0x130 [ 34.974579] do_group_exit+0x177/0x440 [ 34.978454] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.982762] ? __ia32_sys_exit+0x50/0x50 [ 34.986898] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.992002] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.997521] ? ksys_ioctl+0x81/0xd0 [ 35.001138] __x64_sys_exit_group+0x3e/0x50 [ 35.005443] do_syscall_64+0x1b9/0x820 [ 35.009311] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.014661] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.019567] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.024567] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.029573] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.034575] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.039401] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.044574] RIP: 0033:0x43f028 [ 35.047758] Code: Bad RIP value. [ 35.051133] RSP: 002b:00007fffc3f11af8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.058829] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 35.066153] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.073452] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.080707] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.087962] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 35.095218] [ 35.096829] Allocated by task 4696: [ 35.100442] save_stack+0x43/0xd0 [ 35.103893] kasan_kmalloc+0xc4/0xe0 [ 35.107626] kasan_slab_alloc+0x12/0x20 [ 35.111647] kmem_cache_alloc+0x12e/0x710 [ 35.115778] vmx_create_vcpu+0xcf/0x2830 [ 35.119828] kvm_arch_vcpu_create+0xe5/0x220 [ 35.124222] kvm_vm_ioctl+0x488/0x1d80 [ 35.128097] do_vfs_ioctl+0x1de/0x1720 [ 35.132011] ksys_ioctl+0xa9/0xd0 [ 35.135452] __x64_sys_ioctl+0x73/0xb0 [ 35.139375] do_syscall_64+0x1b9/0x820 [ 35.143249] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.148414] [ 35.150029] Freed by task 4696: [ 35.153296] save_stack+0x43/0xd0 [ 35.156730] __kasan_slab_free+0x11a/0x170 [ 35.160959] kasan_slab_free+0xe/0x10 [ 35.164735] kmem_cache_free+0x86/0x280 [ 35.168692] vmx_free_vcpu+0x26b/0x300 [ 35.172579] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.176973] kvm_put_kvm+0x73f/0x1060 [ 35.180813] kvm_vm_release+0x42/0x50 [ 35.184707] __fput+0x38a/0xa40 [ 35.188077] ____fput+0x15/0x20 [ 35.191401] task_work_run+0x1e8/0x2a0 [ 35.195279] do_exit+0x1ae4/0x26e0 [ 35.198802] do_group_exit+0x177/0x440 [ 35.202790] __x64_sys_exit_group+0x3e/0x50 [ 35.207110] do_syscall_64+0x1b9/0x820 [ 35.211178] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.216350] [ 35.217961] The buggy address belongs to the object at ffff8801d9930040 [ 35.217961] which belongs to the cache kvm_vcpu of size 23872 [ 35.230616] The buggy address is located 24 bytes inside of [ 35.230616] 23872-byte region [ffff8801d9930040, ffff8801d9935d80) [ 35.242560] The buggy address belongs to the page: [ 35.247474] page:ffffea0007664c00 count:1 mapcount:0 mapping:ffff8801d52c36c0 index:0x0 compound_mapcount: 0 [ 35.257423] flags: 0x2fffc0000008100(slab|head) [ 35.262173] raw: 02fffc0000008100 ffff8801d52cbd48 ffff8801d52cbd48 ffff8801d52c36c0 [ 35.270047] raw: 0000000000000000 ffff8801d9930040 0000000100000001 0000000000000000 [ 35.277975] page dumped because: kasan: bad access detected [ 35.283663] [ 35.285267] Memory state around the buggy address: [ 35.290177] ffff8801d992ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.297516] ffff8801d992ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.304871] >ffff8801d9930000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.312212] ^ [ 35.318428] ffff8801d9930080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.325878] ffff8801d9930100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.333291] ================================================================== [ 35.340749] Kernel panic - not syncing: panic_on_warn set ... [ 35.340749] [ 35.348097] CPU: 0 PID: 4696 Comm: syz-executor195 Tainted: G B 4.19.0-rc1+ #217 [ 35.356912] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.366248] Call Trace: [ 35.368832] dump_stack+0x1c9/0x2b4 [ 35.372450] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.377624] ? lock_downgrade+0x8f0/0x8f0 [ 35.381755] ? __schedule+0xf54/0x1df0 [ 35.385630] panic+0x238/0x4e7 [ 35.388889] ? add_taint.cold.5+0x16/0x16 [ 35.393028] ? print_shadow_for_address+0xba/0x116 [ 35.397943] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.402338] ? trace_hardirqs_off+0x77/0x2b0 [ 35.407368] ? __schedule+0xf54/0x1df0 [ 35.411245] kasan_end_report+0x47/0x4f [ 35.415217] kasan_report.cold.7+0x76/0x30d [ 35.419520] __asan_report_load8_noabort+0x14/0x20 [ 35.424434] __schedule+0xf54/0x1df0 [ 35.428143] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.433233] ? __sched_text_start+0x8/0x8 [ 35.437363] ? __call_srcu+0x7e7/0x1040 [ 35.441322] ? check_same_owner+0x340/0x340 [ 35.445632] ? mark_held_locks+0x160/0x160 [ 35.449862] ? find_held_lock+0x36/0x1c0 [ 35.453916] preempt_schedule_common+0x22/0x60 [ 35.458482] _cond_resched+0x1d/0x30 [ 35.462180] wait_for_completion+0xa5/0x8d0 [ 35.466484] ? wait_for_completion_interruptible+0x950/0x950 [ 35.472263] ? __lockdep_init_map+0x105/0x590 [ 35.476742] ? __init_waitqueue_head+0x9e/0x150 [ 35.481517] ? init_wait_entry+0x1c0/0x1c0 [ 35.485738] __synchronize_srcu+0x189/0x240 [ 35.490049] ? call_srcu+0x10/0x10 [ 35.493571] ? rcu_unexpedite_gp+0x20/0x20 [ 35.497862] synchronize_srcu+0x335/0x56f [ 35.502105] ? lock_downgrade+0x8f0/0x8f0 [ 35.506241] ? synchronize_srcu_expedited+0x20/0x20 [ 35.511305] ? kasan_check_read+0x11/0x20 [ 35.515440] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.520018] ? kasan_check_write+0x14/0x20 [ 35.524231] ? do_raw_spin_lock+0xc1/0x200 [ 35.528447] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.534162] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.539596] ? kvfree+0x61/0x70 [ 35.542860] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.547864] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.552015] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.556410] ? kvm_arch_sync_events+0x30/0x30 [ 35.560887] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.566412] ? mmu_notifier_unregister+0x474/0x600 [ 35.571437] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.575842] ? kfree+0x111/0x210 [ 35.579194] ? __mmu_notifier_register+0x30/0x30 [ 35.583937] ? __free_pages+0x10a/0x190 [ 35.587894] ? free_unref_page+0x930/0x930 [ 35.592117] kvm_put_kvm+0x73f/0x1060 [ 35.595993] ? kvm_write_guest_cached+0x40/0x40 [ 35.600706] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.605192] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.609687] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.614261] ? kasan_check_write+0x14/0x20 [ 35.618476] ? do_raw_spin_lock+0xc1/0x200 [ 35.622695] ? kvm_irqfd_release+0xdd/0x120 [ 35.627071] ? kvm_irqfd_release+0xdd/0x120 [ 35.631380] ? kvm_put_kvm+0x1060/0x1060 [ 35.635482] kvm_vm_release+0x42/0x50 [ 35.639274] __fput+0x38a/0xa40 [ 35.642534] ? __alloc_file+0x400/0x400 [ 35.646500] ? check_same_owner+0x340/0x340 [ 35.650805] ? kasan_check_write+0x14/0x20 [ 35.655102] ? do_raw_spin_lock+0xc1/0x200 [ 35.659336] ____fput+0x15/0x20 [ 35.662598] task_work_run+0x1e8/0x2a0 [ 35.666473] ? task_work_cancel+0x240/0x240 [ 35.670848] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.676372] ? switch_task_namespaces+0xa2/0xd0 [ 35.681028] do_exit+0x1ae4/0x26e0 [ 35.684564] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.689225] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.693448] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.698451] ? kfree+0x1d7/0x210 [ 35.701798] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.706020] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.711726] ? is_bpf_text_address+0xd7/0x170 [ 35.716212] ? kernel_text_address+0x79/0xf0 [ 35.720650] ? __kernel_text_address+0xd/0x40 [ 35.725148] ? unwind_get_return_address+0x61/0xa0 [ 35.730067] ? __save_stack_trace+0x8d/0xf0 [ 35.734374] ? save_stack+0xa9/0xd0 [ 35.738025] ? save_stack+0x43/0xd0 [ 35.741641] ? __kasan_slab_free+0x11a/0x170 [ 35.746036] ? kasan_slab_free+0xe/0x10 [ 35.749994] ? putname+0xf2/0x130 [ 35.753540] ? __x64_sys_openat+0x9d/0x100 [ 35.757760] ? do_syscall_64+0x1b9/0x820 [ 35.761802] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.767150] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.771538] ? kasan_check_read+0x11/0x20 [ 35.775669] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.780101] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.784507] ? initcall_blacklisted+0x9a/0x1e0 [ 35.789121] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.794228] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.799928] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.805452] ? do_vfs_ioctl+0x201/0x1720 [ 35.809497] ? rcu_is_watching+0x8c/0x150 [ 35.813627] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.817978] ? ioctl_preallocate+0x300/0x300 [ 35.822377] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.827896] ? __fget_light+0x2f7/0x440 [ 35.831849] ? fget_raw+0x20/0x20 [ 35.835283] ? putname+0xf2/0x130 [ 35.838729] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.843728] ? kmem_cache_free+0x246/0x280 [ 35.847941] ? putname+0xf7/0x130 [ 35.851378] do_group_exit+0x177/0x440 [ 35.855247] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.859547] ? __ia32_sys_exit+0x50/0x50 [ 35.863592] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.868681] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.874198] ? ksys_ioctl+0x81/0xd0 [ 35.877810] __x64_sys_exit_group+0x3e/0x50 [ 35.882219] do_syscall_64+0x1b9/0x820 [ 35.886107] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.891464] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.896485] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.901316] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.906320] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.911321] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.916153] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.921331] RIP: 0033:0x43f028 [ 35.924522] Code: Bad RIP value. [ 35.927870] RSP: 002b:00007fffc3f11af8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.935660] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 35.942921] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.950179] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.957560] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.964811] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 35.972069] [ 35.972073] ====================================================== [ 35.972076] WARNING: possible circular locking dependency detected [ 35.972078] 4.19.0-rc1+ #217 Not tainted [ 35.972082] ------------------------------------------------------ [ 35.972085] syz-executor195/4696 is trying to acquire lock: [ 35.972087] 00000000f2b88eda ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.972095] [ 35.972098] but task is already holding lock: [ 35.972099] 0000000073c6bb18 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.972107] [ 35.972110] which lock already depends on the new lock. [ 35.972111] [ 35.972112] [ 35.972115] the existing dependency chain (in reverse order) is: [ 35.972117] [ 35.972118] -> #3 (report_lock){....}: [ 35.972135] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.972137] kasan_report+0x8e/0x110 [ 35.972140] __asan_report_load8_noabort+0x14/0x20 [ 35.972142] __schedule+0xf54/0x1df0 [ 35.972145] preempt_schedule_common+0x22/0x60 [ 35.972147] _cond_resched+0x1d/0x30 [ 35.972149] wait_for_completion+0xa5/0x8d0 [ 35.972152] __synchronize_srcu+0x189/0x240 [ 35.972154] synchronize_srcu+0x335/0x56f [ 35.972158] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.972160] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.972162] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.972165] kvm_put_kvm+0x73f/0x1060 [ 35.972167] kvm_vm_release+0x42/0x50 [ 35.972169] __fput+0x38a/0xa40 [ 35.972171] ____fput+0x15/0x20 [ 35.972174] task_work_run+0x1e8/0x2a0 [ 35.972176] do_exit+0x1ae4/0x26e0 [ 35.972178] do_group_exit+0x177/0x440 [ 35.972181] __x64_sys_exit_group+0x3e/0x50 [ 35.972183] do_syscall_64+0x1b9/0x820 [ 35.972186] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.972188] [ 35.972189] -> #2 (&rq->lock){-.-.}: [ 35.972196] _raw_spin_lock+0x2a/0x40 [ 35.972199] task_fork_fair+0x93/0x680 [ 35.972201] sched_fork+0x44b/0xbd0 [ 35.972203] copy_process+0x235e/0x7ad0 [ 35.972205] _do_fork+0x1ca/0x1170 [ 35.972207] kernel_thread+0x34/0x40 [ 35.972210] rest_init+0x22/0xe4 [ 35.972212] start_kernel+0x913/0x94e [ 35.972215] x86_64_start_reservations+0x29/0x2b [ 35.972217] x86_64_start_kernel+0x76/0x79 [ 35.972219] secondary_startup_64+0xa4/0xb0 [ 35.972221] [ 35.972222] -> #1 (&p->pi_lock){-.-.}: [ 35.972230] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.972232] try_to_wake_up+0xd2/0x1250 [ 35.972234] wake_up_process+0x10/0x20 [ 35.972236] __up.isra.1+0x1c0/0x2a0 [ 35.972238] up+0x13c/0x1c0 [ 35.972241] __up_console_sem+0xbe/0x1b0 [ 35.972243] console_unlock+0x506/0x10d0 [ 35.972245] vprintk_emit+0x33a/0x910 [ 35.972248] vprintk_default+0x28/0x30 [ 35.972250] vprintk_func+0x7a/0x117 [ 35.972252] printk+0xa7/0xcf [ 35.972254] do_exit.cold.22+0x120/0x21f [ 35.972256] do_group_exit+0x177/0x440 [ 35.972259] __x64_sys_exit_group+0x3e/0x50 [ 35.972261] do_syscall_64+0x1b9/0x820 [ 35.972264] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.972265] [ 35.972266] -> #0 ((console_sem).lock){-...}: [ 35.972274] lock_acquire+0x1e4/0x4f0 [ 35.972277] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.972279] down_trylock+0x13/0x70 [ 35.972282] __down_trylock_console_sem+0xae/0x200 [ 35.972284] console_trylock+0x15/0xa0 [ 35.972286] vprintk_emit+0x31f/0x910 [ 35.972288] vprintk_default+0x28/0x30 [ 35.972291] vprintk_func+0x7a/0x117 [ 35.972293] printk+0xa7/0xcf [ 35.972295] kasan_report+0x9e/0x110 [ 35.972298] __asan_report_load8_noabort+0x14/0x20 [ 35.972300] __schedule+0xf54/0x1df0 [ 35.972302] preempt_schedule_common+0x22/0x60 [ 35.972305] _cond_resched+0x1d/0x30 [ 35.972307] wait_for_completion+0xa5/0x8d0 [ 35.972310] __synchronize_srcu+0x189/0x240 [ 35.972312] synchronize_srcu+0x335/0x56f [ 35.972315] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.972317] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.972320] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.972322] kvm_put_kvm+0x73f/0x1060 [ 35.972324] kvm_vm_release+0x42/0x50 [ 35.972326] __fput+0x38a/0xa40 [ 35.972328] ____fput+0x15/0x20 [ 35.972331] task_work_run+0x1e8/0x2a0 [ 35.972333] do_exit+0x1ae4/0x26e0 [ 35.972335] do_group_exit+0x177/0x440 [ 35.972337] __x64_sys_exit_group+0x3e/0x50 [ 35.972340] do_syscall_64+0x1b9/0x820 [ 35.972343] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.972344] [ 35.972346] other info that might help us debug this: [ 35.972348] [ 35.972349] Chain exists of: [ 35.972350] (console_sem).lock --> &rq->lock --> report_lock [ 35.972360] [ 35.972363] Possible unsafe locking scenario: [ 35.972364] [ 35.972366] CPU0 CPU1 [ 35.972369] ---- ---- [ 35.972370] lock(report_lock); [ 35.972375] lock(&rq->lock); [ 35.972381] lock(report_lock); [ 35.972385] lock((console_sem).lock); [ 35.972389] [ 35.972391] *** DEADLOCK *** [ 35.972393] [ 35.972395] 2 locks held by syz-executor195/4696: [ 35.972396] #0: 000000008ba16d3e (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.972406] #1: 0000000073c6bb18 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.972415] [ 35.972417] stack backtrace: [ 35.972420] CPU: 0 PID: 4696 Comm: syz-executor195 Not tainted 4.19.0-rc1+ #217 [ 35.972425] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.972426] Call Trace: [ 35.972429] dump_stack+0x1c9/0x2b4 [ 35.972431] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.972433] ? vprintk_func+0x100/0x117 [ 35.972436] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.972438] ? save_trace+0xe0/0x290 [ 35.972441] __lock_acquire+0x3449/0x5020 [ 35.972443] ? mark_held_locks+0x160/0x160 [ 35.972445] ? mark_held_locks+0x160/0x160 [ 35.972448] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.972450] ? is_bpf_text_address+0xd7/0x170 [ 35.972453] ? kernel_text_address+0x79/0xf0 [ 35.972455] ? __kernel_text_address+0xd/0x40 [ 35.972457] ? __save_stack_trace+0x8d/0xf0 [ 35.972460] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.972462] ? save_trace+0x290/0x290 [ 35.972464] ? save_stack_trace+0x1a/0x20 [ 35.972466] ? save_trace+0xe0/0x290 [ 35.972469] ? graph_lock+0x170/0x170 [ 35.972471] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.972474] lock_acquire+0x1e4/0x4f0 [ 35.972476] ? down_trylock+0x13/0x70 [ 35.972478] ? lock_release+0x9f0/0x9f0 [ 35.972480] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.972483] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.972485] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.972487] ? log_store+0x34f/0x4c0 [ 35.972489] ? vprintk_emit+0x31f/0x910 [ 35.972492] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.972494] ? down_trylock+0x13/0x70 [ 35.972496] down_trylock+0x13/0x70 [ 35.972499] __down_trylock_console_sem+0xae/0x200 [ 35.972501] console_trylock+0x15/0xa0 [ 35.972503] vprintk_emit+0x31f/0x910 [ 35.972505] ? wake_up_klogd+0x110/0x110 [ 35.972508] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.972510] ? kasan_check_read+0x11/0x20 [ 35.972512] ? rcu_is_watching+0x8c/0x150 [ 35.972514] ? rcu_pm_notify+0xc0/0xc0 [ 35.972517] ? lock_acquire+0x1e4/0x4f0 [ 35.972519] ? kasan_report+0x8e/0x110 [ 35.972521] ? __schedule+0xf54/0x1df0 [ 35.972523] vprintk_default+0x28/0x30 [ 35.972525] vprintk_func+0x7a/0x117 [ 35.972527] printk+0xa7/0xcf [ 35.972530] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.972532] ? kasan_check_write+0x14/0x20 [ 35.972534] ? do_raw_spin_lock+0xc1/0x200 [ 35.972536] ? do_raw_spin_lock+0xc1/0x200 [ 35.972539] kasan_report+0x9e/0x110 [ 35.972541] __asan_report_load8_noabort+0x14/0x20 [ 35.972543] __schedule+0xf54/0x1df0 [ 35.972546] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.972548] ? __sched_text_start+0x8/0x8 [ 35.972551] ? __call_srcu+0x7e7/0x1040 [ 35.972553] ? check_same_owner+0x340/0x340 [ 35.972555] ? mark_held_locks+0x160/0x160 [ 35.972557] ? find_held_lock+0x36/0x1c0 [ 35.972560] preempt_schedule_common+0x22/0x60 [ 35.972562] _cond_resched+0x1d/0x30 [ 35.972564] wait_for_completion+0xa5/0x8d0 [ 35.972567] ? wait_for_completion_interruptible+0x950/0x950 [ 35.972570] ? __lockdep_init_map+0x105/0x590 [ 35.972572] ? __init_waitqueue_head+0x9e/0x150 [ 35.972574] ? init_wait_entry+0x1c0/0x1c0 [ 35.972577] __synchronize_srcu+0x189/0x240 [ 35.972579] ? call_srcu+0x10/0x10 [ 35.972581] ? rcu_unexpedite_gp+0x20/0x20 [ 35.972584] synchronize_srcu+0x335/0x56f [ 35.972586] ? lock_downgrade+0x8f0/0x8f0 [ 35.972589] ? synchronize_srcu_expedited+0x20/0x20 [ 35.972591] ? kasan_check_read+0x11/0x20 [ 35.972594] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.972596] ? kasan_check_write+0x14/0x20 [ 35.972598] ? do_raw_spin_lock+0xc1/0x200 [ 35.972601] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.972604] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.972606] ? kvfree+0x61/0x70 [ 35.972609] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.972611] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.972614] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.972616] ? kvm_arch_sync_events+0x30/0x30 [ 35.972619] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.972622] ? mmu_notifier_unregister+0x474/0x600 [ 35.972624] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.972628] ? kfree+0x111/0x210 [ 35.972630] ? __mmu_notifier_register+0x30/0x30 [ 35.972632] ? __free_pages+0x10a/0x190 [ 35.972635] ? free_unref_page+0x930/0x930 [ 35.972637] kvm_put_kvm+0x73f/0x1060 [ 35.972639] ? kvm_write_guest_cached+0x40/0x40 [ 35.972641] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.972644] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.972646] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.972649] ? kasan_check_write+0x14/0x20 [ 35.972651] ? do_raw_spin_lock+0xc1/0x200 [ 35.972653] ? kvm_irqfd_release+0xdd/0x120 [ 35.972656] ? kvm_irqfd_release+0xdd/0x120 [ 35.972658] ? kvm_put_kvm+0x1060/0x1060 [ 35.972660] kvm_vm_release+0x42/0x50 [ 35.972662] __fput+0x38a/0xa40 [ 35.972664] ? __alloc_file+0x400/0x400 [ 35.972667] ? check_same_owner+0x340/0x340 [ 35.972669] ? kasan_check_write+0x14/0x20 [ 35.972671] ? do_raw_spin_lock+0xc1/0x200 [ 35.972674] ____fput+0x15/0x20 [ 35.972676] task_work_run+0x1e8/0x2a0 [ 35.972678] ? task_work_cancel+0x240/0x240 [ 35.972681] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.972683] ? switch_task_namespaces+0xa2/0xd0 [ 35.972685] do_exit+0x1ae4/0x26e0 [ 35.972688] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.972690] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.972693] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.972695] ? kfree+0x1d7/0x210 [ 35.972697] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.972700] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.972701] ? is_bpf_tex [ 35.972707] Lost 55 message(s)! [ 37.038915] Shutting down cpus with NMI [ 38.098910] Dumping ftrace buffer: [ 38.102438] (ftrace buffer empty) [ 38.106132] Kernel Offset: disabled [ 38.109739] Rebooting in 86400 seconds..