[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 21.687955] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.053791] random: sshd: uninitialized urandom read (32 bytes read) [ 27.288520] random: sshd: uninitialized urandom read (32 bytes read) [ 27.830675] random: sshd: uninitialized urandom read (32 bytes read) [ 28.173113] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.10' (ECDSA) to the list of known hosts. [ 33.720665] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.816288] 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. [ 33.842564] ================================================================== [ 33.852575] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.858808] Read of size 8 at addr ffff8801bbe80058 by task syz-executor957/4365 [ 33.866333] [ 33.867964] CPU: 1 PID: 4365 Comm: syz-executor957 Not tainted 4.18.0+ #208 [ 33.875056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.884408] Call Trace: [ 33.887000] dump_stack+0x1c9/0x2b4 [ 33.890646] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.895837] ? printk+0xa7/0xcf [ 33.899126] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.903917] ? __schedule+0xf54/0x1df0 [ 33.907843] print_address_description+0x6c/0x20b [ 33.912712] ? __schedule+0xf54/0x1df0 [ 33.916609] kasan_report.cold.7+0x242/0x30d [ 33.921028] __asan_report_load8_noabort+0x14/0x20 [ 33.925963] __schedule+0xf54/0x1df0 [ 33.929679] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.934794] ? __sched_text_start+0x8/0x8 [ 33.938955] ? __call_srcu+0x7e7/0x1040 [ 33.942964] ? check_same_owner+0x340/0x340 [ 33.947286] ? mark_held_locks+0x160/0x160 [ 33.951528] ? find_held_lock+0x36/0x1c0 [ 33.955600] preempt_schedule_common+0x22/0x60 [ 33.960190] _cond_resched+0x1d/0x30 [ 33.964009] wait_for_completion+0xa5/0x8d0 [ 33.968336] ? wait_for_completion_interruptible+0x950/0x950 [ 33.974133] ? __lockdep_init_map+0x105/0x590 [ 33.978633] ? __init_waitqueue_head+0x9e/0x150 [ 33.983307] ? init_wait_entry+0x1c0/0x1c0 [ 33.987553] __synchronize_srcu+0x189/0x240 [ 33.991888] ? call_srcu+0x10/0x10 [ 33.995447] ? rcu_unexpedite_gp+0x20/0x20 [ 33.999709] synchronize_srcu+0x335/0x56f [ 34.003899] ? lock_downgrade+0x8f0/0x8f0 [ 34.008060] ? synchronize_srcu_expedited+0x20/0x20 [ 34.013096] ? kasan_check_read+0x11/0x20 [ 34.017261] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.021852] ? kasan_check_write+0x14/0x20 [ 34.026095] ? do_raw_spin_lock+0xc1/0x200 [ 34.030336] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.036054] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.041508] ? kvfree+0x61/0x70 [ 34.044792] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.049808] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.053891] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.058323] ? kvm_arch_sync_events+0x30/0x30 [ 34.062833] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.068401] ? mmu_notifier_unregister+0x474/0x600 [ 34.073333] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.077747] ? kfree+0x111/0x210 [ 34.081121] ? __mmu_notifier_register+0x30/0x30 [ 34.085888] ? __free_pages+0x10a/0x190 [ 34.089899] ? free_unref_page+0x930/0x930 [ 34.094156] kvm_put_kvm+0x73f/0x1060 [ 34.097982] ? kvm_write_guest_cached+0x40/0x40 [ 34.102653] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.107144] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.111809] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.116395] ? kasan_check_write+0x14/0x20 [ 34.120625] ? do_raw_spin_lock+0xc1/0x200 [ 34.124861] ? kvm_irqfd_release+0xdd/0x120 [ 34.129194] ? kvm_irqfd_release+0xdd/0x120 [ 34.133523] ? kvm_put_kvm+0x1060/0x1060 [ 34.137832] kvm_vm_release+0x42/0x50 [ 34.141633] __fput+0x36e/0x8c0 [ 34.144925] ? __alloc_file+0x400/0x400 [ 34.148917] ? check_same_owner+0x340/0x340 [ 34.153248] ? kasan_check_write+0x14/0x20 [ 34.157481] ? do_raw_spin_lock+0xc1/0x200 [ 34.161712] ____fput+0x15/0x20 [ 34.165002] task_work_run+0x1e8/0x2a0 [ 34.168892] ? task_work_cancel+0x240/0x240 [ 34.173218] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.178763] ? switch_task_namespaces+0xa2/0xd0 [ 34.183428] do_exit+0x1ae4/0x26e0 [ 34.186969] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.191641] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.195905] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.200920] ? kfree+0x1d7/0x210 [ 34.204286] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.208538] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.214261] ? kasan_check_write+0x14/0x20 [ 34.218491] ? finish_task_switch+0x2ca/0x870 [ 34.222988] ? preempt_notifier_register+0x200/0x200 [ 34.228091] ? __switch_to_asm+0x34/0x70 [ 34.232157] ? __switch_to_asm+0x34/0x70 [ 34.236217] ? __switch_to_asm+0x40/0x70 [ 34.240275] ? __switch_to_asm+0x34/0x70 [ 34.244802] ? __switch_to_asm+0x40/0x70 [ 34.248865] ? __switch_to_asm+0x34/0x70 [ 34.252937] ? __switch_to_asm+0x40/0x70 [ 34.257014] ? __switch_to_asm+0x34/0x70 [ 34.261075] ? __switch_to_asm+0x34/0x70 [ 34.265132] ? __switch_to_asm+0x40/0x70 [ 34.269204] ? __switch_to_asm+0x34/0x70 [ 34.273264] ? __switch_to_asm+0x40/0x70 [ 34.277326] ? __switch_to_asm+0x34/0x70 [ 34.281395] ? __switch_to_asm+0x40/0x70 [ 34.285464] ? __sched_text_start+0x8/0x8 [ 34.289618] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.294024] ? kasan_check_read+0x11/0x20 [ 34.298175] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.302582] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.306991] ? initcall_blacklisted+0x9a/0x1e0 [ 34.311596] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.316701] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.322421] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.327959] ? do_vfs_ioctl+0x201/0x1720 [ 34.332024] ? ioctl_preallocate+0x300/0x300 [ 34.336461] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.342004] ? __fget_light+0x2f7/0x440 [ 34.345976] ? __schedule+0x1df0/0x1df0 [ 34.349948] ? fget_raw+0x20/0x20 [ 34.353401] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.357805] ? kmem_cache_free+0x246/0x280 [ 34.362045] ? do_syscall_64+0x6be/0x820 [ 34.366103] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.370506] ? putname+0xf7/0x130 [ 34.373959] do_group_exit+0x177/0x440 [ 34.377845] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.382171] ? __ia32_sys_exit+0x50/0x50 [ 34.386230] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.391336] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.396880] ? ksys_ioctl+0x81/0xd0 [ 34.400535] __x64_sys_exit_group+0x3e/0x50 [ 34.404857] do_syscall_64+0x1b9/0x820 [ 34.408753] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.414116] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.419045] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.423904] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.428925] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.433940] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.438983] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.443833] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.449022] RIP: 0033:0x43ecc8 [ 34.452218] Code: Bad RIP value. [ 34.455578] RSP: 002b:00007ffd3d287ad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.463287] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 34.470552] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.477827] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.485090] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.492357] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.499649] [ 34.501272] Allocated by task 4365: [ 34.504909] save_stack+0x43/0xd0 [ 34.508369] kasan_kmalloc+0xc4/0xe0 [ 34.512081] kasan_slab_alloc+0x12/0x20 [ 34.516051] kmem_cache_alloc+0x12e/0x710 [ 34.520196] vmx_create_vcpu+0xcf/0x2830 [ 34.524252] kvm_arch_vcpu_create+0xe5/0x220 [ 34.528659] kvm_vm_ioctl+0x488/0x1d80 [ 34.532547] do_vfs_ioctl+0x1de/0x1720 [ 34.536433] ksys_ioctl+0xa9/0xd0 [ 34.539889] __x64_sys_ioctl+0x73/0xb0 [ 34.543775] do_syscall_64+0x1b9/0x820 [ 34.547662] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.552845] [ 34.554495] Freed by task 4365: [ 34.557773] save_stack+0x43/0xd0 [ 34.561222] __kasan_slab_free+0x11a/0x170 [ 34.565461] kasan_slab_free+0xe/0x10 [ 34.569255] kmem_cache_free+0x86/0x280 [ 34.573228] vmx_free_vcpu+0x26b/0x300 [ 34.577110] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.581517] kvm_put_kvm+0x73f/0x1060 [ 34.585311] kvm_vm_release+0x42/0x50 [ 34.589109] __fput+0x36e/0x8c0 [ 34.592391] ____fput+0x15/0x20 [ 34.595664] task_work_run+0x1e8/0x2a0 [ 34.599546] do_exit+0x1ae4/0x26e0 [ 34.603081] do_group_exit+0x177/0x440 [ 34.606965] __x64_sys_exit_group+0x3e/0x50 [ 34.611298] do_syscall_64+0x1b9/0x820 [ 34.615186] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.620364] [ 34.621994] The buggy address belongs to the object at ffff8801bbe80040 [ 34.621994] which belongs to the cache kvm_vcpu of size 23872 [ 34.634563] The buggy address is located 24 bytes inside of [ 34.634563] 23872-byte region [ffff8801bbe80040, ffff8801bbe85d80) [ 34.646515] The buggy address belongs to the page: [ 34.651449] page:ffffea0006efa000 count:1 mapcount:0 mapping:ffff8801d5707900 index:0x0 compound_mapcount: 0 [ 34.661421] flags: 0x2fffc0000008100(slab|head) [ 34.666092] raw: 02fffc0000008100 ffff8801d4b91c48 ffff8801d4b91c48 ffff8801d5707900 [ 34.673974] raw: 0000000000000000 ffff8801bbe80040 0000000100000001 0000000000000000 [ 34.681843] page dumped because: kasan: bad access detected [ 34.687545] [ 34.689160] Memory state around the buggy address: [ 34.694085] ffff8801bbe7ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.701442] ffff8801bbe7ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.708799] >ffff8801bbe80000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.716150] ^ [ 34.722378] ffff8801bbe80080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.729741] ffff8801bbe80100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.737091] ================================================================== [ 34.744468] Kernel panic - not syncing: panic_on_warn set ... [ 34.744468] [ 34.751850] CPU: 1 PID: 4365 Comm: syz-executor957 Tainted: G B 4.18.0+ #208 [ 34.760355] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.769706] Call Trace: [ 34.772300] dump_stack+0x1c9/0x2b4 [ 34.775928] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.781123] ? lock_downgrade+0x8f0/0x8f0 [ 34.785271] ? __schedule+0xf54/0x1df0 [ 34.789160] panic+0x238/0x4e7 [ 34.792351] ? add_taint.cold.5+0x16/0x16 [ 34.796508] ? print_shadow_for_address+0xba/0x116 [ 34.801445] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.805850] ? trace_hardirqs_off+0x77/0x2b0 [ 34.810273] ? __schedule+0xf54/0x1df0 [ 34.814159] kasan_end_report+0x47/0x4f [ 34.818134] kasan_report.cold.7+0x76/0x30d [ 34.822458] __asan_report_load8_noabort+0x14/0x20 [ 34.827391] __schedule+0xf54/0x1df0 [ 34.831133] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.836235] ? __sched_text_start+0x8/0x8 [ 34.840388] ? __call_srcu+0x7e7/0x1040 [ 34.844366] ? check_same_owner+0x340/0x340 [ 34.848687] ? mark_held_locks+0x160/0x160 [ 34.852923] ? find_held_lock+0x36/0x1c0 [ 34.856990] preempt_schedule_common+0x22/0x60 [ 34.861573] _cond_resched+0x1d/0x30 [ 34.865284] wait_for_completion+0xa5/0x8d0 [ 34.869606] ? wait_for_completion_interruptible+0x950/0x950 [ 34.875404] ? __lockdep_init_map+0x105/0x590 [ 34.879907] ? __init_waitqueue_head+0x9e/0x150 [ 34.884577] ? init_wait_entry+0x1c0/0x1c0 [ 34.888815] __synchronize_srcu+0x189/0x240 [ 34.893138] ? call_srcu+0x10/0x10 [ 34.896675] ? rcu_unexpedite_gp+0x20/0x20 [ 34.900952] synchronize_srcu+0x335/0x56f [ 34.905098] ? lock_downgrade+0x8f0/0x8f0 [ 34.909245] ? synchronize_srcu_expedited+0x20/0x20 [ 34.914263] ? kasan_check_read+0x11/0x20 [ 34.918417] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.922997] ? kasan_check_write+0x14/0x20 [ 34.927230] ? do_raw_spin_lock+0xc1/0x200 [ 34.931466] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.937177] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.942623] ? kvfree+0x61/0x70 [ 34.945911] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.950929] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.954988] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.959403] ? kvm_arch_sync_events+0x30/0x30 [ 34.963912] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.969449] ? mmu_notifier_unregister+0x474/0x600 [ 34.974378] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.978792] ? kfree+0x111/0x210 [ 34.982158] ? __mmu_notifier_register+0x30/0x30 [ 34.986917] ? __free_pages+0x10a/0x190 [ 34.990902] ? free_unref_page+0x930/0x930 [ 34.995157] kvm_put_kvm+0x73f/0x1060 [ 34.998970] ? kvm_write_guest_cached+0x40/0x40 [ 35.003651] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.008151] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.012651] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.017240] ? kasan_check_write+0x14/0x20 [ 35.021476] ? do_raw_spin_lock+0xc1/0x200 [ 35.025740] ? kvm_irqfd_release+0xdd/0x120 [ 35.030059] ? kvm_irqfd_release+0xdd/0x120 [ 35.034389] ? kvm_put_kvm+0x1060/0x1060 [ 35.038451] kvm_vm_release+0x42/0x50 [ 35.042262] __fput+0x36e/0x8c0 [ 35.045543] ? __alloc_file+0x400/0x400 [ 35.049538] ? check_same_owner+0x340/0x340 [ 35.053874] ? kasan_check_write+0x14/0x20 [ 35.058124] ? do_raw_spin_lock+0xc1/0x200 [ 35.062374] ____fput+0x15/0x20 [ 35.065661] task_work_run+0x1e8/0x2a0 [ 35.069551] ? task_work_cancel+0x240/0x240 [ 35.073883] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.079427] ? switch_task_namespaces+0xa2/0xd0 [ 35.084534] do_exit+0x1ae4/0x26e0 [ 35.088111] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.092787] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.097027] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.102043] ? kfree+0x1d7/0x210 [ 35.105415] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.109664] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.115396] ? kasan_check_write+0x14/0x20 [ 35.119673] ? finish_task_switch+0x2ca/0x870 [ 35.124175] ? preempt_notifier_register+0x200/0x200 [ 35.129281] ? __switch_to_asm+0x34/0x70 [ 35.133365] ? __switch_to_asm+0x34/0x70 [ 35.137433] ? __switch_to_asm+0x40/0x70 [ 35.141492] ? __switch_to_asm+0x34/0x70 [ 35.145561] ? __switch_to_asm+0x40/0x70 [ 35.149619] ? __switch_to_asm+0x34/0x70 [ 35.153691] ? __switch_to_asm+0x40/0x70 [ 35.157766] ? __switch_to_asm+0x34/0x70 [ 35.161830] ? __switch_to_asm+0x34/0x70 [ 35.165905] ? __switch_to_asm+0x40/0x70 [ 35.169976] ? __switch_to_asm+0x34/0x70 [ 35.174039] ? __switch_to_asm+0x40/0x70 [ 35.178105] ? __switch_to_asm+0x34/0x70 [ 35.182167] ? __switch_to_asm+0x40/0x70 [ 35.186233] ? __sched_text_start+0x8/0x8 [ 35.190388] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.194802] ? kasan_check_read+0x11/0x20 [ 35.198948] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.203364] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.207775] ? initcall_blacklisted+0x9a/0x1e0 [ 35.212361] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.217482] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.223203] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.228738] ? do_vfs_ioctl+0x201/0x1720 [ 35.232802] ? ioctl_preallocate+0x300/0x300 [ 35.237214] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.242749] ? __fget_light+0x2f7/0x440 [ 35.247171] ? __schedule+0x1df0/0x1df0 [ 35.251146] ? fget_raw+0x20/0x20 [ 35.254597] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.259004] ? kmem_cache_free+0x246/0x280 [ 35.263240] ? do_syscall_64+0x6be/0x820 [ 35.267296] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.271700] ? putname+0xf7/0x130 [ 35.275168] do_group_exit+0x177/0x440 [ 35.279072] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.283429] ? __ia32_sys_exit+0x50/0x50 [ 35.287499] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.292607] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.298148] ? ksys_ioctl+0x81/0xd0 [ 35.301784] __x64_sys_exit_group+0x3e/0x50 [ 35.306110] do_syscall_64+0x1b9/0x820 [ 35.310003] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.315373] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.320310] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.325158] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.330179] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.335202] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.340228] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.345083] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.350274] RIP: 0033:0x43ecc8 [ 35.353497] Code: Bad RIP value. [ 35.356859] RSP: 002b:00007ffd3d287ad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.364583] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.371855] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.379136] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.386415] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.393690] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.400976] [ 35.400982] ====================================================== [ 35.400988] WARNING: possible circular locking dependency detected [ 35.400991] 4.18.0+ #208 Not tainted [ 35.400997] ------------------------------------------------------ [ 35.401001] syz-executor957/4365 is trying to acquire lock: [ 35.401005] 00000000fc8ec74a ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.401020] [ 35.401024] but task is already holding lock: [ 35.401027] 00000000a530b7ae (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.401041] [ 35.401045] which lock already depends on the new lock. [ 35.401048] [ 35.401050] [ 35.401055] the existing dependency chain (in reverse order) is: [ 35.401057] [ 35.401059] -> #3 (report_lock){....}: [ 35.401074] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.401078] kasan_report+0x8e/0x110 [ 35.401082] __asan_report_load8_noabort+0x14/0x20 [ 35.401086] __schedule+0xf54/0x1df0 [ 35.401090] preempt_schedule_common+0x22/0x60 [ 35.401094] _cond_resched+0x1d/0x30 [ 35.401098] wait_for_completion+0xa5/0x8d0 [ 35.401102] __synchronize_srcu+0x189/0x240 [ 35.401106] synchronize_srcu+0x335/0x56f [ 35.401111] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.401115] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.401119] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.401123] kvm_put_kvm+0x73f/0x1060 [ 35.401127] kvm_vm_release+0x42/0x50 [ 35.401130] __fput+0x36e/0x8c0 [ 35.401134] ____fput+0x15/0x20 [ 35.401137] task_work_run+0x1e8/0x2a0 [ 35.401141] do_exit+0x1ae4/0x26e0 [ 35.401145] do_group_exit+0x177/0x440 [ 35.401149] __x64_sys_exit_group+0x3e/0x50 [ 35.401153] do_syscall_64+0x1b9/0x820 [ 35.401157] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.401160] [ 35.401162] -> #2 (&rq->lock){-.-.}: [ 35.401176] _raw_spin_lock+0x2a/0x40 [ 35.401180] task_fork_fair+0x93/0x680 [ 35.401183] sched_fork+0x44b/0xbd0 [ 35.401187] copy_process+0x235e/0x7ad0 [ 35.401191] _do_fork+0x1ca/0x1170 [ 35.401195] kernel_thread+0x34/0x40 [ 35.401198] rest_init+0x22/0xe4 [ 35.401202] start_kernel+0x913/0x94e [ 35.401206] x86_64_start_reservations+0x29/0x2b [ 35.401211] x86_64_start_kernel+0x76/0x79 [ 35.401215] secondary_startup_64+0xa4/0xb0 [ 35.401217] [ 35.401219] -> #1 (&p->pi_lock){-.-.}: [ 35.401233] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.401237] try_to_wake_up+0xd2/0x1250 [ 35.401241] wake_up_process+0x10/0x20 [ 35.401245] __up.isra.1+0x1c0/0x2a0 [ 35.401248] up+0x13c/0x1c0 [ 35.401252] __up_console_sem+0xbe/0x1b0 [ 35.401256] console_unlock+0x506/0x10d0 [ 35.401260] do_con_write+0x1375/0x23d0 [ 35.401264] con_write+0x25/0xc0 [ 35.401267] n_tty_write+0x6c1/0x11a0 [ 35.401271] tty_write+0x3f1/0x880 [ 35.401275] __vfs_write+0x117/0x9d0 [ 35.401278] vfs_write+0x1fc/0x560 [ 35.401282] ksys_write+0x101/0x260 [ 35.401286] __x64_sys_write+0x73/0xb0 [ 35.401290] do_syscall_64+0x1b9/0x820 [ 35.401294] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.401297] [ 35.401299] -> #0 ((console_sem).lock){-...}: [ 35.401313] lock_acquire+0x1e4/0x4f0 [ 35.401317] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.401334] down_trylock+0x13/0x70 [ 35.401339] __down_trylock_console_sem+0xae/0x200 [ 35.401342] console_trylock+0x15/0xa0 [ 35.401346] vprintk_emit+0x31f/0x910 [ 35.401350] vprintk_default+0x28/0x30 [ 35.401369] vprintk_func+0x7a/0x117 [ 35.401372] printk+0xa7/0xcf [ 35.401376] kasan_report+0x9e/0x110 [ 35.401398] __asan_report_load8_noabort+0x14/0x20 [ 35.401401] __schedule+0xf54/0x1df0 [ 35.401405] preempt_schedule_common+0x22/0x60 [ 35.401408] _cond_resched+0x1d/0x30 [ 35.401412] wait_for_completion+0xa5/0x8d0 [ 35.401416] __synchronize_srcu+0x189/0x240 [ 35.401420] synchronize_srcu+0x335/0x56f [ 35.401424] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.401428] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.401431] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.401435] kvm_put_kvm+0x73f/0x1060 [ 35.401438] kvm_vm_release+0x42/0x50 [ 35.401442] __fput+0x36e/0x8c0 [ 35.401445] ____fput+0x15/0x20 [ 35.401448] task_work_run+0x1e8/0x2a0 [ 35.401452] do_exit+0x1ae4/0x26e0 [ 35.401455] do_group_exit+0x177/0x440 [ 35.401459] __x64_sys_exit_group+0x3e/0x50 [ 35.401462] do_syscall_64+0x1b9/0x820 [ 35.401467] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.401469] [ 35.401472] other info that might help us debug this: [ 35.401474] [ 35.401477] Chain exists of: [ 35.401479] (console_sem).lock --> &rq->lock --> report_lock [ 35.401495] [ 35.401499] Possible unsafe locking scenario: [ 35.401501] [ 35.401505] CPU0 CPU1 [ 35.401520] ---- ---- [ 35.401523] lock(report_lock); [ 35.401531] lock(&rq->lock); [ 35.401540] lock(report_lock); [ 35.401559] lock((console_sem).lock); [ 35.401567] [ 35.401570] *** DEADLOCK *** [ 35.401572] [ 35.401576] 2 locks held by syz-executor957/4365: [ 35.401578] #0: 00000000f01e1583 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.401607] #1: 00000000a530b7ae (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.401623] [ 35.401626] stack backtrace: [ 35.401632] CPU: 1 PID: 4365 Comm: syz-executor957 Not tainted 4.18.0+ #208 [ 35.401639] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.401642] Call Trace: [ 35.401646] dump_stack+0x1c9/0x2b4 [ 35.401650] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.401654] ? vprintk_func+0x100/0x117 [ 35.401659] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.401663] ? save_trace+0xe0/0x290 [ 35.401667] __lock_acquire+0x3449/0x5020 [ 35.401671] ? mark_held_locks+0x160/0x160 [ 35.401675] ? mark_held_locks+0x160/0x160 [ 35.401679] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.401683] ? is_bpf_text_address+0xd7/0x170 [ 35.401687] ? kernel_text_address+0x79/0xf0 [ 35.401692] ? __kernel_text_address+0xd/0x40 [ 35.401696] ? __save_stack_trace+0x8d/0xf0 [ 35.401700] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.401704] ? save_trace+0x290/0x290 [ 35.401708] ? save_stack_trace+0x1a/0x20 [ 35.401712] ? save_trace+0xe0/0x290 [ 35.401715] ? graph_lock+0x170/0x170 [ 35.401720] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.401724] lock_acquire+0x1e4/0x4f0 [ 35.401728] ? down_trylock+0x13/0x70 [ 35.401731] ? lock_release+0x9f0/0x9f0 [ 35.401736] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.401740] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.401744] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.401748] ? log_store+0x34f/0x4c0 [ 35.401751] ? vprintk_emit+0x31f/0x910 [ 35.401755] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.401759] ? down_trylock+0x13/0x70 [ 35.401763] down_trylock+0x13/0x70 [ 35.401767] __down_trylock_console_sem+0xae/0x200 [ 35.401771] console_trylock+0x15/0xa0 [ 35.401775] vprintk_emit+0x31f/0x910 [ 35.401779] ? wake_up_klogd+0x110/0x110 [ 35.401783] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.401787] ? kasan_check_read+0x11/0x20 [ 35.401791] ? rcu_is_watching+0x8c/0x150 [ 35.401795] ? rcu_pm_notify+0xc0/0xc0 [ 35.401799] ? lock_acquire+0x1e4/0x4f0 [ 35.401802] ? kasan_report+0x8e/0x110 [ 35.401806] ? __schedule+0xf54/0x1df0 [ 35.401810] vprintk_default+0x28/0x30 [ 35.401814] vprintk_func+0x7a/0x117 [ 35.401817] printk+0xa7/0xcf [ 35.401821] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.401825] ? kasan_check_write+0x14/0x20 [ 35.401829] ? do_raw_spin_lock+0xc1/0x200 [ 35.401833] ? do_raw_spin_lock+0xc1/0x200 [ 35.401837] kasan_report+0x9e/0x110 [ 35.401841] __asan_report_load8_noabort+0x14/0x20 [ 35.401845] __schedule+0xf54/0x1df0 [ 35.401850] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.401854] ? __sched_text_start+0x8/0x8 [ 35.401858] ? __call_srcu+0x7e7/0x1040 [ 35.401862] ? check_same_owner+0x340/0x340 [ 35.401880] ? mark_held_locks+0x160/0x160 [ 35.401885] ? find_held_lock+0x36/0x1c0 [ 35.401889] preempt_schedule_common+0x22/0x60 [ 35.401893] _cond_resched+0x1d/0x30 [ 35.401897] wait_for_completion+0xa5/0x8d0 [ 35.401902] ? wait_for_completion_interruptible+0x950/0x950 [ 35.401906] ? __lockdep_init_map+0x105/0x590 [ 35.401910] ? __init_waitqueue_head+0x9e/0x150 [ 35.401914] ? init_wait_entry+0x1c0/0x1c0 [ 35.401918] __synchronize_srcu+0x189/0x240 [ 35.401922] ? call_srcu+0x10/0x10 [ 35.401926] ? rcu_unexpedite_gp+0x20/0x20 [ 35.401930] synchronize_srcu+0x335/0x56f [ 35.401934] ? lock_downgrade+0x8f0/0x8f0 [ 35.401939] ? synchronize_srcu_expedited+0x20/0x20 [ 35.401943] ? kasan_check_read+0x11/0x20 [ 35.401947] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.401951] ? kasan_check_write+0x14/0x20 [ 35.401955] ? do_raw_spin_lock+0xc1/0x200 [ 35.401960] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.401965] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.401968] ? kvfree+0x61/0x70 [ 35.401972] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.401976] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.401980] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.401985] ? kvm_arch_sync_events+0x30/0x30 [ 35.401989] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.401994] ? mmu_notifier_unregister+0x474/0x600 [ 35.401998] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.402001] ? kfree+0x111/0x210 [ 35.402006] ? __mmu_notifier_register+0x30/0x30 [ 35.402010] ? __free_pages+0x10a/0x190 [ 35.402014] ? free_unref_page+0x930/0x930 [ 35.402017] kvm_put_kvm+0x73f/0x1060 [ 35.402022] ? kvm_write_guest_cached+0x40/0x40 [ 35.402026] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.402030] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.402034] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.402038] ? kasan_check_write+0x14/0x20 [ 35.402042] ? do_raw_spin_lock+0xc1/0x200 [ 35.402046] ? kvm_irqfd_release+0xdd/0x120 [ 35.402050] ? kvm_irqfd_release+0xdd/0x120 [ 35.402054] ? kvm_put_kvm+0x1060/0x1060 [ 35.402058] kvm_vm_release+0x42/0x50 [ 35.402061] __fput+0x36e/0x8c0 [ 35.402065] ? __alloc_file+0x400/0x400 [ 35.402069] ? check_same_owner+0x340/0x340 [ 35.402073] ? kasan_check_write+0x14/0x20 [ 35.402077] ? do_raw_spin_lock+0xc1/0x200 [ 35.402081] ____fput+0x15/0x20 [ 35.402084] task_work_run+0x1e8/0x2a0 [ 35.402089] ? task_work_cancel+0x240/0x240 [ 35.402093] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.402098] ? switch_task_namespaces+0xa2/0xd0 [ 35.402101] do_exit+0x1ae4/0x26e0 [ 35.402105] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.402109] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.402114] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.402117] ? kfree+0x1d7/0x210 [ 35.402121] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.402126] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.402128] ? [ 35.402136] Lost 61 message(s)! [ 36.495026] Shutting down cpus with NMI [ 37.555033] Dumping ftrace buffer: [ 37.558566] (ftrace buffer empty) [ 37.562263] Kernel Offset: disabled [ 37.565884] Rebooting in 86400 seconds..