[....] Starting OpenBSD Secure Shell server: sshd[ 23.934429] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.383649] random: sshd: uninitialized urandom read (32 bytes read) [ 29.792104] sshd (4641) used greatest stack depth: 16856 bytes left [ 29.815657] random: sshd: uninitialized urandom read (32 bytes read) [ 30.382783] random: sshd: uninitialized urandom read (32 bytes read) [ 30.563106] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.46' (ECDSA) to the list of known hosts. [ 36.097770] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.197213] 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.222706] ================================================================== [ 36.232562] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 36.238821] Read of size 8 at addr ffff8801bad58058 by task syz-executor870/4657 [ 36.246893] [ 36.248534] CPU: 1 PID: 4657 Comm: syz-executor870 Not tainted 4.19.0-rc1+ #216 [ 36.255988] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.265343] Call Trace: [ 36.267948] dump_stack+0x1c9/0x2b4 [ 36.271587] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.276782] ? printk+0xa7/0xcf [ 36.280075] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.284836] ? __schedule+0xf54/0x1df0 [ 36.288746] print_address_description+0x6c/0x20b [ 36.293591] ? __schedule+0xf54/0x1df0 [ 36.297477] kasan_report.cold.7+0x242/0x30d [ 36.301890] __asan_report_load8_noabort+0x14/0x20 [ 36.306824] __schedule+0xf54/0x1df0 [ 36.310536] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.315645] ? __sched_text_start+0x8/0x8 [ 36.319802] ? __call_srcu+0x7e7/0x1040 [ 36.323785] ? check_same_owner+0x340/0x340 [ 36.328113] ? mark_held_locks+0x160/0x160 [ 36.332344] ? find_held_lock+0x36/0x1c0 [ 36.336410] preempt_schedule_common+0x22/0x60 [ 36.340993] _cond_resched+0x1d/0x30 [ 36.344704] wait_for_completion+0xa5/0x8d0 [ 36.349029] ? wait_for_completion_interruptible+0x950/0x950 [ 36.354825] ? __lockdep_init_map+0x105/0x590 [ 36.359335] ? __init_waitqueue_head+0x9e/0x150 [ 36.364000] ? init_wait_entry+0x1c0/0x1c0 [ 36.368237] __synchronize_srcu+0x189/0x240 [ 36.372560] ? call_srcu+0x10/0x10 [ 36.376101] ? rcu_unexpedite_gp+0x20/0x20 [ 36.380341] synchronize_srcu+0x335/0x56f [ 36.384488] ? lock_downgrade+0x8f0/0x8f0 [ 36.388641] ? synchronize_srcu_expedited+0x20/0x20 [ 36.393681] ? kasan_check_read+0x11/0x20 [ 36.397920] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.402501] ? kasan_check_write+0x14/0x20 [ 36.406736] ? do_raw_spin_lock+0xc1/0x200 [ 36.410977] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.416692] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.422140] ? kvfree+0x61/0x70 [ 36.425420] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.430433] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.434496] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.438905] ? kvm_arch_sync_events+0x30/0x30 [ 36.443402] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.448939] ? mmu_notifier_unregister+0x474/0x600 [ 36.453868] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.458274] ? kfree+0x111/0x210 [ 36.461645] ? __mmu_notifier_register+0x30/0x30 [ 36.466400] ? __free_pages+0x10a/0x190 [ 36.470396] ? free_unref_page+0x930/0x930 [ 36.474639] kvm_put_kvm+0x73f/0x1060 [ 36.478442] ? kvm_write_guest_cached+0x40/0x40 [ 36.483113] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.487605] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.492120] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.496707] ? kasan_check_write+0x14/0x20 [ 36.500940] ? do_raw_spin_lock+0xc1/0x200 [ 36.505175] ? kvm_irqfd_release+0xdd/0x120 [ 36.509496] ? kvm_irqfd_release+0xdd/0x120 [ 36.513826] ? kvm_put_kvm+0x1060/0x1060 [ 36.517886] kvm_vm_release+0x42/0x50 [ 36.521686] __fput+0x38a/0xa40 [ 36.524966] ? __alloc_file+0x400/0x400 [ 36.528942] ? check_same_owner+0x340/0x340 [ 36.533261] ? kasan_check_write+0x14/0x20 [ 36.537494] ? do_raw_spin_lock+0xc1/0x200 [ 36.541725] ____fput+0x15/0x20 [ 36.545006] task_work_run+0x1e8/0x2a0 [ 36.548893] ? task_work_cancel+0x240/0x240 [ 36.553218] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.558752] ? switch_task_namespaces+0xa2/0xd0 [ 36.563422] do_exit+0x1ae4/0x26e0 [ 36.566977] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.571651] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.575888] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.580909] ? kfree+0x1d7/0x210 [ 36.584286] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.588522] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.594238] ? is_bpf_text_address+0xd7/0x170 [ 36.598731] ? kernel_text_address+0x79/0xf0 [ 36.603156] ? __kernel_text_address+0xd/0x40 [ 36.607673] ? unwind_get_return_address+0x61/0xa0 [ 36.612602] ? __save_stack_trace+0x8d/0xf0 [ 36.616929] ? save_stack+0xa9/0xd0 [ 36.620898] ? save_stack+0x43/0xd0 [ 36.624518] ? __kasan_slab_free+0x11a/0x170 [ 36.628925] ? kasan_slab_free+0xe/0x10 [ 36.632900] ? putname+0xf2/0x130 [ 36.636351] ? __x64_sys_openat+0x9d/0x100 [ 36.640584] ? do_syscall_64+0x1b9/0x820 [ 36.644654] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.650012] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.654425] ? kasan_check_read+0x11/0x20 [ 36.658576] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.662985] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.667393] ? initcall_blacklisted+0x9a/0x1e0 [ 36.671980] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.677091] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.682813] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.688352] ? do_vfs_ioctl+0x201/0x1720 [ 36.692412] ? rcu_is_watching+0x8c/0x150 [ 36.696564] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.700893] ? ioctl_preallocate+0x300/0x300 [ 36.705300] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.710838] ? __fget_light+0x2f7/0x440 [ 36.714817] ? fget_raw+0x20/0x20 [ 36.718271] ? putname+0xf2/0x130 [ 36.721723] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.726734] ? kmem_cache_free+0x246/0x280 [ 36.730968] ? putname+0xf7/0x130 [ 36.734427] do_group_exit+0x177/0x440 [ 36.738315] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.742633] ? __ia32_sys_exit+0x50/0x50 [ 36.746695] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.751807] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.757345] ? ksys_ioctl+0x81/0xd0 [ 36.760972] __x64_sys_exit_group+0x3e/0x50 [ 36.765294] do_syscall_64+0x1b9/0x820 [ 36.769183] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.774549] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.779485] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.784328] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.789344] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.794359] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.799206] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.804390] RIP: 0033:0x43ecd8 [ 36.807587] Code: Bad RIP value. [ 36.810944] RSP: 002b:00007ffe522d7148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.818649] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 36.825912] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.833178] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.840444] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.847707] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.854977] [ 36.856597] Allocated by task 4657: [ 36.860224] save_stack+0x43/0xd0 [ 36.863673] kasan_kmalloc+0xc4/0xe0 [ 36.867384] kasan_slab_alloc+0x12/0x20 [ 36.871352] kmem_cache_alloc+0x12e/0x710 [ 36.875494] vmx_create_vcpu+0xcf/0x2830 [ 36.879549] kvm_arch_vcpu_create+0xe5/0x220 [ 36.883959] kvm_vm_ioctl+0x488/0x1d80 [ 36.887841] do_vfs_ioctl+0x1de/0x1720 [ 36.891724] ksys_ioctl+0xa9/0xd0 [ 36.895174] __x64_sys_ioctl+0x73/0xb0 [ 36.899062] do_syscall_64+0x1b9/0x820 [ 36.902950] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.908129] [ 36.909750] Freed by task 4657: [ 36.913027] save_stack+0x43/0xd0 [ 36.916474] __kasan_slab_free+0x11a/0x170 [ 36.920705] kasan_slab_free+0xe/0x10 [ 36.924501] kmem_cache_free+0x86/0x280 [ 36.928473] vmx_free_vcpu+0x26b/0x300 [ 36.932361] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.936774] kvm_put_kvm+0x73f/0x1060 [ 36.940583] kvm_vm_release+0x42/0x50 [ 36.944379] __fput+0x38a/0xa40 [ 36.947656] ____fput+0x15/0x20 [ 36.950929] task_work_run+0x1e8/0x2a0 [ 36.954817] do_exit+0x1ae4/0x26e0 [ 36.958351] do_group_exit+0x177/0x440 [ 36.962234] __x64_sys_exit_group+0x3e/0x50 [ 36.966562] do_syscall_64+0x1b9/0x820 [ 36.970447] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.975623] [ 36.977295] The buggy address belongs to the object at ffff8801bad58040 [ 36.977295] which belongs to the cache kvm_vcpu of size 23872 [ 36.989871] The buggy address is located 24 bytes inside of [ 36.989871] 23872-byte region [ffff8801bad58040, ffff8801bad5dd80) [ 37.001835] The buggy address belongs to the page: [ 37.006770] page:ffffea0006eb5600 count:1 mapcount:0 mapping:ffff8801d8011000 index:0x0 compound_mapcount: 0 [ 37.016752] flags: 0x2fffc0000008100(slab|head) [ 37.021423] raw: 02fffc0000008100 ffff8801d512ad48 ffff8801d512ad48 ffff8801d8011000 [ 37.029304] raw: 0000000000000000 ffff8801bad58040 0000000100000001 0000000000000000 [ 37.037178] page dumped because: kasan: bad access detected [ 37.042875] [ 37.044490] Memory state around the buggy address: [ 37.049416] ffff8801bad57f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.056777] ffff8801bad57f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.064147] >ffff8801bad58000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.071498] ^ [ 37.077753] ffff8801bad58080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.085109] ffff8801bad58100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.092459] ================================================================== [ 37.099821] Kernel panic - not syncing: panic_on_warn set ... [ 37.099821] [ 37.107186] CPU: 1 PID: 4657 Comm: syz-executor870 Tainted: G B 4.19.0-rc1+ #216 [ 37.116014] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.125361] Call Trace: [ 37.127956] dump_stack+0x1c9/0x2b4 [ 37.131605] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.137136] ? lock_downgrade+0x8f0/0x8f0 [ 37.141284] ? __schedule+0xf54/0x1df0 [ 37.145167] panic+0x238/0x4e7 [ 37.148355] ? add_taint.cold.5+0x16/0x16 [ 37.152514] ? print_shadow_for_address+0xba/0x116 [ 37.157440] ? trace_hardirqs_off+0xaf/0x2b0 [ 37.161841] ? trace_hardirqs_off+0x77/0x2b0 [ 37.166248] ? __schedule+0xf54/0x1df0 [ 37.170136] kasan_end_report+0x47/0x4f [ 37.174109] kasan_report.cold.7+0x76/0x30d [ 37.178461] __asan_report_load8_noabort+0x14/0x20 [ 37.183391] __schedule+0xf54/0x1df0 [ 37.187100] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.192220] ? __sched_text_start+0x8/0x8 [ 37.196374] ? __call_srcu+0x7e7/0x1040 [ 37.200353] ? check_same_owner+0x340/0x340 [ 37.204681] ? mark_held_locks+0x160/0x160 [ 37.208927] ? find_held_lock+0x36/0x1c0 [ 37.212988] preempt_schedule_common+0x22/0x60 [ 37.217573] _cond_resched+0x1d/0x30 [ 37.221287] wait_for_completion+0xa5/0x8d0 [ 37.225620] ? wait_for_completion_interruptible+0x950/0x950 [ 37.231413] ? __lockdep_init_map+0x105/0x590 [ 37.235912] ? __init_waitqueue_head+0x9e/0x150 [ 37.241057] ? init_wait_entry+0x1c0/0x1c0 [ 37.245297] __synchronize_srcu+0x189/0x240 [ 37.249634] ? call_srcu+0x10/0x10 [ 37.253173] ? rcu_unexpedite_gp+0x20/0x20 [ 37.257416] synchronize_srcu+0x335/0x56f [ 37.261566] ? lock_downgrade+0x8f0/0x8f0 [ 37.265709] ? synchronize_srcu_expedited+0x20/0x20 [ 37.270722] ? kasan_check_read+0x11/0x20 [ 37.274868] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.279445] ? kasan_check_write+0x14/0x20 [ 37.283674] ? do_raw_spin_lock+0xc1/0x200 [ 37.287917] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.293625] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.299072] ? kvfree+0x61/0x70 [ 37.302352] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.307370] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.311430] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.315849] ? kvm_arch_sync_events+0x30/0x30 [ 37.320347] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.325906] ? mmu_notifier_unregister+0x474/0x600 [ 37.330835] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.335237] ? kfree+0x111/0x210 [ 37.338601] ? __mmu_notifier_register+0x30/0x30 [ 37.343361] ? __free_pages+0x10a/0x190 [ 37.347347] ? free_unref_page+0x930/0x930 [ 37.351593] kvm_put_kvm+0x73f/0x1060 [ 37.355407] ? kvm_write_guest_cached+0x40/0x40 [ 37.360077] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.364572] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.369063] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.373652] ? kasan_check_write+0x14/0x20 [ 37.377908] ? do_raw_spin_lock+0xc1/0x200 [ 37.382142] ? kvm_irqfd_release+0xdd/0x120 [ 37.386458] ? kvm_irqfd_release+0xdd/0x120 [ 37.390780] ? kvm_put_kvm+0x1060/0x1060 [ 37.394852] kvm_vm_release+0x42/0x50 [ 37.398661] __fput+0x38a/0xa40 [ 37.401952] ? __alloc_file+0x400/0x400 [ 37.405925] ? check_same_owner+0x340/0x340 [ 37.410245] ? kasan_check_write+0x14/0x20 [ 37.414479] ? do_raw_spin_lock+0xc1/0x200 [ 37.418737] ____fput+0x15/0x20 [ 37.422017] task_work_run+0x1e8/0x2a0 [ 37.425902] ? task_work_cancel+0x240/0x240 [ 37.430228] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.435762] ? switch_task_namespaces+0xa2/0xd0 [ 37.440440] do_exit+0x1ae4/0x26e0 [ 37.443983] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.448658] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.452895] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.457909] ? kfree+0x1d7/0x210 [ 37.461277] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.465512] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.471222] ? is_bpf_text_address+0xd7/0x170 [ 37.475716] ? kernel_text_address+0x79/0xf0 [ 37.480121] ? __kernel_text_address+0xd/0x40 [ 37.484617] ? unwind_get_return_address+0x61/0xa0 [ 37.489562] ? __save_stack_trace+0x8d/0xf0 [ 37.493908] ? save_stack+0xa9/0xd0 [ 37.497532] ? save_stack+0x43/0xd0 [ 37.501156] ? __kasan_slab_free+0x11a/0x170 [ 37.505565] ? kasan_slab_free+0xe/0x10 [ 37.509538] ? putname+0xf2/0x130 [ 37.512994] ? __x64_sys_openat+0x9d/0x100 [ 37.517226] ? do_syscall_64+0x1b9/0x820 [ 37.521283] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.526660] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.531063] ? kasan_check_read+0x11/0x20 [ 37.535212] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.539620] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.544028] ? initcall_blacklisted+0x9a/0x1e0 [ 37.548612] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.553715] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.559426] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.564964] ? do_vfs_ioctl+0x201/0x1720 [ 37.569022] ? rcu_is_watching+0x8c/0x150 [ 37.573166] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.577486] ? ioctl_preallocate+0x300/0x300 [ 37.581895] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.587430] ? __fget_light+0x2f7/0x440 [ 37.591403] ? fget_raw+0x20/0x20 [ 37.594853] ? putname+0xf2/0x130 [ 37.598309] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.603323] ? kmem_cache_free+0x246/0x280 [ 37.607563] ? putname+0xf7/0x130 [ 37.611018] do_group_exit+0x177/0x440 [ 37.614919] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.619236] ? __ia32_sys_exit+0x50/0x50 [ 37.623294] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.628395] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.633935] ? ksys_ioctl+0x81/0xd0 [ 37.637570] __x64_sys_exit_group+0x3e/0x50 [ 37.641897] do_syscall_64+0x1b9/0x820 [ 37.645783] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.651164] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.656091] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.660930] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.665944] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.670960] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.675814] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.681004] RIP: 0033:0x43ecd8 [ 37.684197] Code: Bad RIP value. [ 37.687559] RSP: 002b:00007ffe522d7148 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.695291] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 37.702565] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.709830] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.717097] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.724364] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.731663] [ 37.731668] ====================================================== [ 37.731674] WARNING: possible circular locking dependency detected [ 37.731677] 4.19.0-rc1+ #216 Not tainted [ 37.731682] ------------------------------------------------------ [ 37.731687] syz-executor870/4657 is trying to acquire lock: [ 37.731691] 000000007cf293d5 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.731706] [ 37.731709] but task is already holding lock: [ 37.731712] 00000000278decbf (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.731726] [ 37.731731] which lock already depends on the new lock. [ 37.731733] [ 37.731736] [ 37.731740] the existing dependency chain (in reverse order) is: [ 37.731742] [ 37.731745] -> #3 (report_lock){....}: [ 37.731759] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.731762] kasan_report+0x8e/0x110 [ 37.731767] __asan_report_load8_noabort+0x14/0x20 [ 37.731771] __schedule+0xf54/0x1df0 [ 37.731775] preempt_schedule_common+0x22/0x60 [ 37.731778] _cond_resched+0x1d/0x30 [ 37.731783] wait_for_completion+0xa5/0x8d0 [ 37.731795] __synchronize_srcu+0x189/0x240 [ 37.731799] synchronize_srcu+0x335/0x56f [ 37.731804] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.731808] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.731812] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.731816] kvm_put_kvm+0x73f/0x1060 [ 37.731820] kvm_vm_release+0x42/0x50 [ 37.731823] __fput+0x38a/0xa40 [ 37.731826] ____fput+0x15/0x20 [ 37.731830] task_work_run+0x1e8/0x2a0 [ 37.731834] do_exit+0x1ae4/0x26e0 [ 37.731838] do_group_exit+0x177/0x440 [ 37.731842] __x64_sys_exit_group+0x3e/0x50 [ 37.731846] do_syscall_64+0x1b9/0x820 [ 37.731850] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.731852] [ 37.731855] -> #2 (&rq->lock){-.-.}: [ 37.731869] _raw_spin_lock+0x2a/0x40 [ 37.731872] task_fork_fair+0x93/0x680 [ 37.731876] sched_fork+0x44b/0xbd0 [ 37.731880] copy_process+0x235e/0x7ad0 [ 37.731883] _do_fork+0x1ca/0x1170 [ 37.731887] kernel_thread+0x34/0x40 [ 37.731891] rest_init+0x22/0xe4 [ 37.731894] start_kernel+0x913/0x94e [ 37.731898] x86_64_start_reservations+0x29/0x2b [ 37.731903] x86_64_start_kernel+0x76/0x79 [ 37.731907] secondary_startup_64+0xa4/0xb0 [ 37.731909] [ 37.731911] -> #1 (&p->pi_lock){-.-.}: [ 37.731925] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.731929] try_to_wake_up+0xd2/0x1250 [ 37.731933] wake_up_process+0x10/0x20 [ 37.731937] __up.isra.1+0x1c0/0x2a0 [ 37.731940] up+0x13c/0x1c0 [ 37.731944] __up_console_sem+0xbe/0x1b0 [ 37.731948] console_unlock+0x506/0x10d0 [ 37.731951] vprintk_emit+0x33a/0x910 [ 37.731955] vprintk_default+0x28/0x30 [ 37.731959] vprintk_func+0x7a/0x117 [ 37.731962] printk+0xa7/0xcf [ 37.731966] load_umh+0x51/0xbd [ 37.731969] do_one_initcall+0x127/0x838 [ 37.731974] kernel_init_freeable+0x4bb/0x5ae [ 37.731977] kernel_init+0x11/0x1b3 [ 37.731981] ret_from_fork+0x3a/0x50 [ 37.731983] [ 37.731985] -> #0 ((console_sem).lock){-...}: [ 37.732000] lock_acquire+0x1e4/0x4f0 [ 37.732004] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.732007] down_trylock+0x13/0x70 [ 37.732012] __down_trylock_console_sem+0xae/0x200 [ 37.732016] console_trylock+0x15/0xa0 [ 37.732019] vprintk_emit+0x31f/0x910 [ 37.732023] vprintk_default+0x28/0x30 [ 37.732027] vprintk_func+0x7a/0x117 [ 37.732030] printk+0xa7/0xcf [ 37.732034] kasan_report+0x9e/0x110 [ 37.732038] __asan_report_load8_noabort+0x14/0x20 [ 37.732042] __schedule+0xf54/0x1df0 [ 37.732046] preempt_schedule_common+0x22/0x60 [ 37.732050] _cond_resched+0x1d/0x30 [ 37.732054] wait_for_completion+0xa5/0x8d0 [ 37.732059] __synchronize_srcu+0x189/0x240 [ 37.732063] synchronize_srcu+0x335/0x56f [ 37.732067] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.732071] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.732075] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.732079] kvm_put_kvm+0x73f/0x1060 [ 37.732083] kvm_vm_release+0x42/0x50 [ 37.732086] __fput+0x38a/0xa40 [ 37.732090] ____fput+0x15/0x20 [ 37.732093] task_work_run+0x1e8/0x2a0 [ 37.732097] do_exit+0x1ae4/0x26e0 [ 37.732101] do_group_exit+0x177/0x440 [ 37.732105] __x64_sys_exit_group+0x3e/0x50 [ 37.732109] do_syscall_64+0x1b9/0x820 [ 37.732113] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.732115] [ 37.732120] other info that might help us debug this: [ 37.732122] [ 37.732125] Chain exists of: [ 37.732127] (console_sem).lock --> &rq->lock --> report_lock [ 37.732145] [ 37.732149] Possible unsafe locking scenario: [ 37.732151] [ 37.732155] CPU0 CPU1 [ 37.732159] ---- ---- [ 37.732162] lock(report_lock); [ 37.732171] lock(&rq->lock); [ 37.732180] lock(report_lock); [ 37.732188] lock((console_sem).lock); [ 37.732196] [ 37.732199] *** DEADLOCK *** [ 37.732201] [ 37.732205] 2 locks held by syz-executor870/4657: [ 37.732208] #0: 00000000cddd79da (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.732224] #1: 00000000278decbf (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.732241] [ 37.732244] stack backtrace: [ 37.732250] CPU: 1 PID: 4657 Comm: syz-executor870 Not tainted 4.19.0-rc1+ #216 [ 37.732257] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.732260] Call Trace: [ 37.732263] dump_stack+0x1c9/0x2b4 [ 37.732268] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.732271] ? vprintk_func+0x100/0x117 [ 37.732276] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.732280] ? save_trace+0xe0/0x290 [ 37.732284] __lock_acquire+0x3449/0x5020 [ 37.732288] ? mark_held_locks+0x160/0x160 [ 37.732292] ? mark_held_locks+0x160/0x160 [ 37.732296] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.732300] ? is_bpf_text_address+0xd7/0x170 [ 37.732304] ? kernel_text_address+0x79/0xf0 [ 37.732308] ? __kernel_text_address+0xd/0x40 [ 37.732312] ? __save_stack_trace+0x8d/0xf0 [ 37.732316] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.732320] ? save_trace+0x290/0x290 [ 37.732324] ? save_stack_trace+0x1a/0x20 [ 37.732327] ? save_trace+0xe0/0x290 [ 37.732331] ? graph_lock+0x170/0x170 [ 37.732336] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.732339] lock_acquire+0x1e4/0x4f0 [ 37.732343] ? down_trylock+0x13/0x70 [ 37.732347] ? lock_release+0x9f0/0x9f0 [ 37.732351] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.732355] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.732359] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.732363] ? log_store+0x34f/0x4c0 [ 37.732366] ? vprintk_emit+0x31f/0x910 [ 37.732370] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.732374] ? down_trylock+0x13/0x70 [ 37.732378] down_trylock+0x13/0x70 [ 37.732382] __down_trylock_console_sem+0xae/0x200 [ 37.732386] console_trylock+0x15/0xa0 [ 37.732389] vprintk_emit+0x31f/0x910 [ 37.732393] ? wake_up_klogd+0x110/0x110 [ 37.732397] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.732401] ? kasan_check_read+0x11/0x20 [ 37.732405] ? rcu_is_watching+0x8c/0x150 [ 37.732409] ? rcu_pm_notify+0xc0/0xc0 [ 37.732413] ? lock_acquire+0x1e4/0x4f0 [ 37.732417] ? kasan_report+0x8e/0x110 [ 37.732420] ? __schedule+0xf54/0x1df0 [ 37.732424] vprintk_default+0x28/0x30 [ 37.732428] vprintk_func+0x7a/0x117 [ 37.732431] printk+0xa7/0xcf [ 37.732435] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.732439] ? kasan_check_write+0x14/0x20 [ 37.732443] ? do_raw_spin_lock+0xc1/0x200 [ 37.732447] ? do_raw_spin_lock+0xc1/0x200 [ 37.732450] kasan_report+0x9e/0x110 [ 37.732455] __asan_report_load8_noabort+0x14/0x20 [ 37.732458] __schedule+0xf54/0x1df0 [ 37.732463] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.732467] ? __sched_text_start+0x8/0x8 [ 37.732471] ? __call_srcu+0x7e7/0x1040 [ 37.732474] ? check_same_owner+0x340/0x340 [ 37.732478] ? mark_held_locks+0x160/0x160 [ 37.732482] ? find_held_lock+0x36/0x1c0 [ 37.732486] preempt_schedule_common+0x22/0x60 [ 37.732490] _cond_resched+0x1d/0x30 [ 37.732494] wait_for_completion+0xa5/0x8d0 [ 37.732499] ? wait_for_completion_interruptible+0x950/0x950 [ 37.732503] ? __lockdep_init_map+0x105/0x590 [ 37.732507] ? __init_waitqueue_head+0x9e/0x150 [ 37.732511] ? init_wait_entry+0x1c0/0x1c0 [ 37.732515] __synchronize_srcu+0x189/0x240 [ 37.732518] ? call_srcu+0x10/0x10 [ 37.732522] ? rcu_unexpedite_gp+0x20/0x20 [ 37.732526] synchronize_srcu+0x335/0x56f [ 37.732530] ? lock_downgrade+0x8f0/0x8f0 [ 37.732535] ? synchronize_srcu_expedited+0x20/0x20 [ 37.732539] ? kasan_check_read+0x11/0x20 [ 37.732543] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.732547] ? kasan_check_write+0x14/0x20 [ 37.732557] ? do_raw_spin_lock+0xc1/0x200 [ 37.732561] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.732566] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.732569] ? kvfree+0x61/0x70 [ 37.732574] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.732578] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.732582] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.732586] ? kvm_arch_sync_events+0x30/0x30 [ 37.732590] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.732595] ? mmu_notifier_unregister+0x474/0x600 [ 37.732599] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.732602] ? kfree+0x111/0x210 [ 37.732606] ? __mmu_notifier_register+0x30/0x30 [ 37.732610] ? __free_pages+0x10a/0x190 [ 37.732614] ? free_unref_page+0x930/0x930 [ 37.732618] kvm_put_kvm+0x73f/0x1060 [ 37.732622] ? kvm_write_guest_cached+0x40/0x40 [ 37.732626] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.732630] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.732634] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.732638] ? kasan_check_write+0x14/0x20 [ 37.732642] ? do_raw_spin_lock+0xc1/0x200 [ 37.732646] ? kvm_irqfd_release+0xdd/0x120 [ 37.732650] ? kvm_irqfd_release+0xdd/0x120 [ 37.732654] ? kvm_put_kvm+0x1060/0x1060 [ 37.732657] kvm_vm_release+0x42/0x50 [ 37.732661] __fput+0x38a/0xa40 [ 37.732665] ? __alloc_file+0x400/0x400 [ 37.732669] ? check_same_owner+0x340/0x340 [ 37.732673] ? kasan_check_write+0x14/0x20 [ 37.732676] ? do_raw_spin_lock+0xc1/0x200 [ 37.732680] ____fput+0x15/0x20 [ 37.732684] task_work_run+0x1e8/0x2a0 [ 37.732688] ? task_work_cancel+0x240/0x240 [ 37.732692] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.732696] ? switch_task_namespaces+0xa2/0xd0 [ 37.732700] do_exit+0x1ae4/0x26e0 [ 37.732704] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.732708] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.732712] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.732716] ? kfree+0x1d7/0x210 [ 37.732720] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.732724] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.732728] ? is_bpf_text_address+0xd7/0x170 [ 37.732731] ? [ 37.732738] Lost 54 message(s)! [ 38.804378] Shutting down cpus with NMI [ 39.865218] Dumping ftrace buffer: [ 39.868756] (ftrace buffer empty) [ 39.872448] Kernel Offset: disabled [ 39.876060] Rebooting in 86400 seconds..