[....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 30.254705] random: sshd: uninitialized urandom read (32 bytes read) [ 30.760065] audit: type=1400 audit(1536334302.353:6): avc: denied { map } for pid=4362 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 30.802333] random: sshd: uninitialized urandom read (32 bytes read) [ 31.433066] random: sshd: uninitialized urandom read (32 bytes read) [ 31.625605] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.231' (ECDSA) to the list of known hosts. [ 37.314503] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 37.420034] audit: type=1400 audit(1536334309.013:7): avc: denied { map } for pid=4376 comm="syz-executor192" path="/root/syz-executor192043352" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 37.423491] 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. [ 37.478089] ================================================================== [ 37.487888] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 37.494114] Read of size 8 at addr ffff8801d8e40058 by task syz-executor192/4376 [ 37.506164] [ 37.508175] CPU: 1 PID: 4376 Comm: syz-executor192 Not tainted 4.19.0-rc2+ #5 [ 37.515442] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.525265] Call Trace: [ 37.527849] dump_stack+0x1c9/0x2b4 [ 37.531477] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.536663] ? printk+0xa7/0xcf [ 37.539943] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.544695] ? __schedule+0xf54/0x1df0 [ 37.548581] print_address_description+0x6c/0x20b [ 37.553424] ? __schedule+0xf54/0x1df0 [ 37.557307] kasan_report.cold.7+0x242/0x30d [ 37.561718] __asan_report_load8_noabort+0x14/0x20 [ 37.566645] __schedule+0xf54/0x1df0 [ 37.571236] ? __sched_text_start+0x8/0x8 [ 37.575386] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 37.583362] ? __call_srcu+0x7e7/0x1040 [ 37.587346] ? check_same_owner+0x340/0x340 [ 37.592103] ? mark_held_locks+0x160/0x160 [ 37.596335] ? find_held_lock+0x36/0x1c0 [ 37.600403] preempt_schedule_common+0x22/0x60 [ 37.604983] _cond_resched+0x1d/0x30 [ 37.608690] wait_for_completion+0xa5/0x8d0 [ 37.613013] ? wait_for_completion_interruptible+0x950/0x950 [ 37.618806] ? __lockdep_init_map+0x105/0x590 [ 37.623300] ? __init_waitqueue_head+0x9e/0x150 [ 37.627967] ? init_wait_entry+0x1c0/0x1c0 [ 37.632673] __synchronize_srcu+0x189/0x240 [ 37.637496] ? call_srcu+0x10/0x10 [ 37.641034] ? rcu_unexpedite_gp+0x20/0x20 [ 37.645275] synchronize_srcu+0x335/0x56f [ 37.649417] ? lock_downgrade+0x8f0/0x8f0 [ 37.653562] ? synchronize_srcu_expedited+0x20/0x20 [ 37.658578] ? kasan_check_read+0x11/0x20 [ 37.662721] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.669177] ? kasan_check_write+0x14/0x20 [ 37.673833] ? do_raw_spin_lock+0xc1/0x200 [ 37.678067] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.683776] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.689224] ? kvfree+0x61/0x70 [ 37.692504] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.697520] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.701574] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.705976] ? kvm_arch_sync_events+0x30/0x30 [ 37.710471] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.716006] ? mmu_notifier_unregister+0x474/0x600 [ 37.721441] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.725845] ? kfree+0x111/0x210 [ 37.729711] ? __mmu_notifier_register+0x30/0x30 [ 37.734468] ? __free_pages+0x10a/0x190 [ 37.738443] ? free_unref_page+0x930/0x930 [ 37.743560] kvm_put_kvm+0x73f/0x1060 [ 37.749205] ? kvm_write_guest_cached+0x40/0x40 [ 37.754079] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.759195] ? kvm_irqfd_release+0xdd/0x120 [ 37.763512] ? kvm_irqfd_release+0xdd/0x120 [ 37.767831] ? kvm_put_kvm+0x1060/0x1060 [ 37.771891] kvm_vm_release+0x42/0x50 [ 37.775685] __fput+0x38a/0xa40 [ 37.778960] ? __alloc_file+0x400/0x400 [ 37.782942] ? check_same_owner+0x340/0x340 [ 37.787713] ? kasan_check_write+0x14/0x20 [ 37.791949] ? do_raw_spin_lock+0xc1/0x200 [ 37.796632] ____fput+0x15/0x20 [ 37.799905] task_work_run+0x1e8/0x2a0 [ 37.803788] ? task_work_cancel+0x240/0x240 [ 37.808108] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.813666] ? switch_task_namespaces+0xa2/0xd0 [ 37.818335] do_exit+0x1ae4/0x26e0 [ 37.822357] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.827051] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.831286] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.838188] ? kfree+0x1d7/0x210 [ 37.842021] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.846264] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.852547] ? avc_has_extended_perms+0xa97/0x15c0 [ 37.857472] ? kernel_text_address+0x9e/0xf0 [ 37.861883] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 37.866979] ? avc_ss_reset+0x190/0x190 [ 37.871424] ? save_stack+0xa9/0xd0 [ 37.875049] ? save_stack+0x43/0xd0 [ 37.878669] ? __kasan_slab_free+0x11a/0x170 [ 37.883071] ? kasan_slab_free+0xe/0x10 [ 37.887039] ? putname+0xf2/0x130 [ 37.890494] ? __x64_sys_openat+0x9d/0x100 [ 37.894723] ? do_syscall_64+0x1b9/0x820 [ 37.899762] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.905132] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 37.910497] ? __fget_light+0x2f7/0x440 [ 37.916360] ? fget_raw+0x20/0x20 [ 37.919825] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.925536] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.931071] ? do_vfs_ioctl+0x201/0x1720 [ 37.935129] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 37.940810] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 37.945826] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.951844] ? __fdget_pos+0xde/0x200 [ 37.955636] ? path_pts+0x9f/0x1f0 [ 37.959175] ? __fdget_raw+0x20/0x20 [ 37.962943] ? kmem_cache_free+0x246/0x280 [ 37.967633] ? putname+0xf7/0x130 [ 37.971088] do_group_exit+0x177/0x440 [ 37.974974] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.979716] ? __ia32_sys_exit+0x50/0x50 [ 37.983773] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.989361] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.994901] ? ksys_ioctl+0x81/0xd0 [ 37.999021] __x64_sys_exit_group+0x3e/0x50 [ 38.003340] do_syscall_64+0x1b9/0x820 [ 38.008697] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.015326] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.020254] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.025538] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 38.030550] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.035564] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.041070] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.045912] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.051124] RIP: 0033:0x43ee18 [ 38.054333] Code: Bad RIP value. [ 38.057689] RSP: 002b:00007ffe1f8b20f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.065411] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee18 [ 38.072674] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.083061] RBP: 00000000004be708 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.090325] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.097587] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 38.104852] [ 38.106471] Allocated by task 4376: [ 38.110093] save_stack+0x43/0xd0 [ 38.113539] kasan_kmalloc+0xc4/0xe0 [ 38.117250] kasan_slab_alloc+0x12/0x20 [ 38.121219] kmem_cache_alloc+0x12e/0x710 [ 38.125359] vmx_create_vcpu+0xcf/0x2830 [ 38.129883] kvm_arch_vcpu_create+0xe5/0x220 [ 38.134289] kvm_vm_ioctl+0x488/0x1d80 [ 38.138172] do_vfs_ioctl+0x1de/0x1720 [ 38.142531] ksys_ioctl+0xa9/0xd0 [ 38.145978] __x64_sys_ioctl+0x73/0xb0 [ 38.149859] do_syscall_64+0x1b9/0x820 [ 38.154230] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.160954] [ 38.162570] Freed by task 4376: [ 38.165843] save_stack+0x43/0xd0 [ 38.169288] __kasan_slab_free+0x11a/0x170 [ 38.173514] kasan_slab_free+0xe/0x10 [ 38.177306] kmem_cache_free+0x86/0x280 [ 38.181272] vmx_free_vcpu+0x26b/0x300 [ 38.185154] kvm_arch_destroy_vm+0x365/0x7c0 [ 38.190060] kvm_put_kvm+0x73f/0x1060 [ 38.193853] kvm_vm_release+0x42/0x50 [ 38.197648] __fput+0x38a/0xa40 [ 38.200920] ____fput+0x15/0x20 [ 38.204196] task_work_run+0x1e8/0x2a0 [ 38.208075] do_exit+0x1ae4/0x26e0 [ 38.212058] do_group_exit+0x177/0x440 [ 38.215942] __x64_sys_exit_group+0x3e/0x50 [ 38.220256] do_syscall_64+0x1b9/0x820 [ 38.224142] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.229315] [ 38.230939] The buggy address belongs to the object at ffff8801d8e40040 [ 38.230939] which belongs to the cache kvm_vcpu of size 23872 [ 38.244976] The buggy address is located 24 bytes inside of [ 38.244976] 23872-byte region [ffff8801d8e40040, ffff8801d8e45d80) [ 38.256944] The buggy address belongs to the page: [ 38.261871] page:ffffea0007639000 count:1 mapcount:0 mapping:ffff8801d59de600 index:0x0 compound_mapcount: 0 [ 38.271836] flags: 0x2fffc0000008100(slab|head) [ 38.276504] raw: 02fffc0000008100 ffff8801d59df448 ffff8801d59df448 ffff8801d59de600 [ 38.284388] raw: 0000000000000000 ffff8801d8e40040 0000000100000001 0000000000000000 [ 38.292259] page dumped because: kasan: bad access detected [ 38.297956] [ 38.299569] Memory state around the buggy address: [ 38.304492] ffff8801d8e3ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.311847] ffff8801d8e3ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.320318] >ffff8801d8e40000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 38.329268] ^ [ 38.335491] ffff8801d8e40080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.342840] ffff8801d8e40100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.350182] ================================================================== [ 38.357536] Kernel panic - not syncing: panic_on_warn set ... [ 38.357536] [ 38.364899] CPU: 1 PID: 4376 Comm: syz-executor192 Tainted: G B 4.19.0-rc2+ #5 [ 38.373552] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.395666] Call Trace: [ 38.398256] dump_stack+0x1c9/0x2b4 [ 38.401976] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.407882] ? lock_downgrade+0x8f0/0x8f0 [ 38.413061] ? __schedule+0xf54/0x1df0 [ 38.416944] panic+0x238/0x4e7 [ 38.420629] ? add_taint.cold.5+0x16/0x16 [ 38.424779] ? print_shadow_for_address+0xba/0x116 [ 38.430183] ? trace_hardirqs_off+0xaf/0x2c0 [ 38.434587] ? trace_hardirqs_off+0x77/0x2c0 [ 38.438990] ? __schedule+0xf54/0x1df0 [ 38.442877] kasan_end_report+0x47/0x4f [ 38.446848] kasan_report.cold.7+0x76/0x30d [ 38.451176] __asan_report_load8_noabort+0x14/0x20 [ 38.456102] __schedule+0xf54/0x1df0 [ 38.459834] ? __sched_text_start+0x8/0x8 [ 38.463974] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 38.469072] ? __call_srcu+0x7e7/0x1040 [ 38.473066] ? check_same_owner+0x340/0x340 [ 38.477417] ? mark_held_locks+0x160/0x160 [ 38.481649] ? find_held_lock+0x36/0x1c0 [ 38.486161] preempt_schedule_common+0x22/0x60 [ 38.491197] _cond_resched+0x1d/0x30 [ 38.497190] wait_for_completion+0xa5/0x8d0 [ 38.501517] ? wait_for_completion_interruptible+0x950/0x950 [ 38.507755] ? __lockdep_init_map+0x105/0x590 [ 38.512253] ? __init_waitqueue_head+0x9e/0x150 [ 38.516918] ? init_wait_entry+0x1c0/0x1c0 [ 38.521157] __synchronize_srcu+0x189/0x240 [ 38.525473] ? call_srcu+0x10/0x10 [ 38.529025] ? rcu_unexpedite_gp+0x20/0x20 [ 38.533280] synchronize_srcu+0x335/0x56f [ 38.537936] ? lock_downgrade+0x8f0/0x8f0 [ 38.542111] ? synchronize_srcu_expedited+0x20/0x20 [ 38.547633] ? kasan_check_read+0x11/0x20 [ 38.551783] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.556363] ? kasan_check_write+0x14/0x20 [ 38.560602] ? do_raw_spin_lock+0xc1/0x200 [ 38.564839] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.573317] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.578776] ? kvfree+0x61/0x70 [ 38.582068] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.587095] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.591158] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.595596] ? kvm_arch_sync_events+0x30/0x30 [ 38.600094] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.605627] ? mmu_notifier_unregister+0x474/0x600 [ 38.610549] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.614951] ? kfree+0x111/0x210 [ 38.618798] ? __mmu_notifier_register+0x30/0x30 [ 38.623551] ? __free_pages+0x10a/0x190 [ 38.627522] ? free_unref_page+0x930/0x930 [ 38.631765] kvm_put_kvm+0x73f/0x1060 [ 38.635566] ? kvm_write_guest_cached+0x40/0x40 [ 38.640238] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.645472] ? kvm_irqfd_release+0xdd/0x120 [ 38.651317] ? kvm_irqfd_release+0xdd/0x120 [ 38.655636] ? kvm_put_kvm+0x1060/0x1060 [ 38.660152] kvm_vm_release+0x42/0x50 [ 38.664450] __fput+0x38a/0xa40 [ 38.667725] ? __alloc_file+0x400/0x400 [ 38.672192] ? check_same_owner+0x340/0x340 [ 38.676508] ? kasan_check_write+0x14/0x20 [ 38.680741] ? do_raw_spin_lock+0xc1/0x200 [ 38.684970] ____fput+0x15/0x20 [ 38.688244] task_work_run+0x1e8/0x2a0 [ 38.692122] ? task_work_cancel+0x240/0x240 [ 38.696442] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.701978] ? switch_task_namespaces+0xa2/0xd0 [ 38.706644] do_exit+0x1ae4/0x26e0 [ 38.710187] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.714857] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.719118] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.724133] ? kfree+0x1d7/0x210 [ 38.728029] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.734231] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.739943] ? avc_has_extended_perms+0xa97/0x15c0 [ 38.744866] ? kernel_text_address+0x9e/0xf0 [ 38.749724] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 38.754823] ? avc_ss_reset+0x190/0x190 [ 38.759278] ? save_stack+0xa9/0xd0 [ 38.762900] ? save_stack+0x43/0xd0 [ 38.766519] ? __kasan_slab_free+0x11a/0x170 [ 38.770921] ? kasan_slab_free+0xe/0x10 [ 38.774888] ? putname+0xf2/0x130 [ 38.778800] ? __x64_sys_openat+0x9d/0x100 [ 38.783033] ? do_syscall_64+0x1b9/0x820 [ 38.787542] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.792912] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 38.797926] ? __fget_light+0x2f7/0x440 [ 38.801898] ? fget_raw+0x20/0x20 [ 38.805349] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.811309] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.818645] ? do_vfs_ioctl+0x201/0x1720 [ 38.824455] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 38.829648] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 38.834668] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 38.840203] ? __fdget_pos+0xde/0x200 [ 38.844016] ? path_pts+0x9f/0x1f0 [ 38.847555] ? __fdget_raw+0x20/0x20 [ 38.851721] ? kmem_cache_free+0x246/0x280 [ 38.855952] ? putname+0xf7/0x130 [ 38.859412] do_group_exit+0x177/0x440 [ 38.863294] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.867609] ? __ia32_sys_exit+0x50/0x50 [ 38.871671] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.876773] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 38.882790] ? ksys_ioctl+0x81/0xd0 [ 38.886413] __x64_sys_exit_group+0x3e/0x50 [ 38.890733] do_syscall_64+0x1b9/0x820 [ 38.894615] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.902346] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.907897] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.912739] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 38.917752] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.922765] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.928715] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.933559] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.938745] RIP: 0033:0x43ee18 [ 38.942975] Code: Bad RIP value. [ 38.946334] RSP: 002b:00007ffe1f8b20f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.954038] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee18 [ 38.961299] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.968565] RBP: 00000000004be708 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.976186] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.985967] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 38.993240] [ 38.993246] ====================================================== [ 38.993251] WARNING: possible circular locking dependency detected [ 38.993255] 4.19.0-rc2+ #5 Not tainted [ 38.993260] ------------------------------------------------------ [ 38.993265] syz-executor192/4376 is trying to acquire lock: [ 38.993269] 00000000741d0e24 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 38.993284] [ 38.993288] but task is already holding lock: [ 38.993291] 0000000047fed5c7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.993305] [ 38.993310] which lock already depends on the new lock. [ 38.993312] [ 38.993315] [ 38.993320] the existing dependency chain (in reverse order) is: [ 38.993322] [ 38.993324] -> #3 (report_lock){....}: [ 38.993339] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.993343] kasan_report+0x8e/0x110 [ 38.993348] __asan_report_load8_noabort+0x14/0x20 [ 38.993351] __schedule+0xf54/0x1df0 [ 38.993356] preempt_schedule_common+0x22/0x60 [ 38.993360] _cond_resched+0x1d/0x30 [ 38.993364] wait_for_completion+0xa5/0x8d0 [ 38.993368] __synchronize_srcu+0x189/0x240 [ 38.993372] synchronize_srcu+0x335/0x56f [ 38.993386] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.993390] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.993394] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.993398] kvm_put_kvm+0x73f/0x1060 [ 38.993402] kvm_vm_release+0x42/0x50 [ 38.993405] __fput+0x38a/0xa40 [ 38.993409] ____fput+0x15/0x20 [ 38.993413] task_work_run+0x1e8/0x2a0 [ 38.993417] do_exit+0x1ae4/0x26e0 [ 38.993420] do_group_exit+0x177/0x440 [ 38.993425] __x64_sys_exit_group+0x3e/0x50 [ 38.993429] do_syscall_64+0x1b9/0x820 [ 38.993433] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.993436] [ 38.993438] -> #2 (&rq->lock){-.-.}: [ 38.993452] _raw_spin_lock+0x2a/0x40 [ 38.993456] task_fork_fair+0x93/0x680 [ 38.993460] sched_fork+0x44b/0xbd0 [ 38.993464] copy_process+0x235e/0x7af0 [ 38.993468] _do_fork+0x1ca/0x1170 [ 38.993471] kernel_thread+0x34/0x40 [ 38.993475] rest_init+0x22/0xe4 [ 38.993479] start_kernel+0x913/0x94e [ 38.993483] x86_64_start_reservations+0x29/0x2b [ 38.993488] x86_64_start_kernel+0x76/0x79 [ 38.993492] secondary_startup_64+0xa4/0xb0 [ 38.993494] [ 38.993496] -> #1 (&p->pi_lock){-.-.}: [ 38.993511] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.993515] try_to_wake_up+0xd2/0x1250 [ 38.993519] wake_up_process+0x10/0x20 [ 38.993523] __up.isra.1+0x1c0/0x2a0 [ 38.993526] up+0x13c/0x1c0 [ 38.993530] __up_console_sem+0xbe/0x1b0 [ 38.993534] console_unlock+0x506/0x10e0 [ 38.993538] do_con_write+0x1375/0x23d0 [ 38.993542] con_write+0x25/0xc0 [ 38.993545] n_tty_write+0x6c1/0x11a0 [ 38.993549] tty_write+0x3f1/0x880 [ 38.993553] __vfs_write+0x117/0x9d0 [ 38.993557] vfs_write+0x1fc/0x560 [ 38.993560] ksys_write+0x101/0x260 [ 38.993564] __x64_sys_write+0x73/0xb0 [ 38.993568] do_syscall_64+0x1b9/0x820 [ 38.993573] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.993575] [ 38.993577] -> #0 ((console_sem).lock){-...}: [ 38.993592] lock_acquire+0x1e4/0x4f0 [ 38.993596] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.993600] down_trylock+0x13/0x70 [ 38.993604] __down_trylock_console_sem+0xae/0x200 [ 38.993608] console_trylock+0x15/0xa0 [ 38.993612] vprintk_emit+0x31f/0x910 [ 38.993616] vprintk_default+0x28/0x30 [ 38.993620] vprintk_func+0x7a/0x117 [ 38.993623] printk+0xa7/0xcf [ 38.993627] kasan_report+0x9e/0x110 [ 38.993632] __asan_report_load8_noabort+0x14/0x20 [ 38.993636] __schedule+0xf54/0x1df0 [ 38.993640] preempt_schedule_common+0x22/0x60 [ 38.993644] _cond_resched+0x1d/0x30 [ 38.993648] wait_for_completion+0xa5/0x8d0 [ 38.993653] __synchronize_srcu+0x189/0x240 [ 38.993657] synchronize_srcu+0x335/0x56f [ 38.993662] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.993666] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.993670] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.993674] kvm_put_kvm+0x73f/0x1060 [ 38.993678] kvm_vm_release+0x42/0x50 [ 38.993681] __fput+0x38a/0xa40 [ 38.993685] ____fput+0x15/0x20 [ 38.993689] task_work_run+0x1e8/0x2a0 [ 38.993692] do_exit+0x1ae4/0x26e0 [ 38.993696] do_group_exit+0x177/0x440 [ 38.993700] __x64_sys_exit_group+0x3e/0x50 [ 38.993704] do_syscall_64+0x1b9/0x820 [ 38.993709] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.993711] [ 38.993716] other info that might help us debug this: [ 38.993718] [ 38.993721] Chain exists of: [ 38.993723] (console_sem).lock --> &rq->lock --> report_lock [ 38.993756] [ 38.993760] Possible unsafe locking scenario: [ 38.993762] [ 38.993766] CPU0 CPU1 [ 38.993770] ---- ---- [ 38.993773] lock(report_lock); [ 38.993781] lock(&rq->lock); [ 38.993805] lock(report_lock); [ 38.993813] lock((console_sem).lock); [ 38.993821] [ 38.993824] *** DEADLOCK *** [ 38.993827] [ 38.993846] 2 locks held by syz-executor192/4376: [ 38.993848] #0: 00000000d3066e49 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 38.993865] #1: 0000000047fed5c7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.993912] [ 38.993915] stack backtrace: [ 38.993921] CPU: 1 PID: 4376 Comm: syz-executor192 Not tainted 4.19.0-rc2+ #5 [ 38.993928] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.993931] Call Trace: [ 38.993935] dump_stack+0x1c9/0x2b4 [ 38.993939] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.993943] ? vprintk_func+0x100/0x117 [ 38.993948] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 38.993952] ? save_trace+0xe0/0x290 [ 38.993956] __lock_acquire+0x3449/0x5020 [ 38.993960] ? mark_held_locks+0x160/0x160 [ 38.993964] ? mark_held_locks+0x160/0x160 [ 38.993969] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 38.993973] ? is_bpf_text_address+0xd7/0x170 [ 38.993977] ? kernel_text_address+0x79/0xf0 [ 38.993981] ? __kernel_text_address+0xd/0x40 [ 38.993986] ? __save_stack_trace+0x8d/0xf0 [ 38.993990] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 38.993994] ? save_trace+0x290/0x290 [ 38.993998] ? save_stack_trace+0x1a/0x20 [ 38.994002] ? save_trace+0xe0/0x290 [ 38.994006] ? graph_lock+0x170/0x170 [ 38.994010] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.994014] lock_acquire+0x1e4/0x4f0 [ 38.994018] ? down_trylock+0x13/0x70 [ 38.994022] ? lock_release+0x9f0/0x9f0 [ 38.994026] ? trace_hardirqs_off+0xb8/0x2c0 [ 38.994030] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.994034] ? trace_hardirqs_off+0xb8/0x2c0 [ 38.994038] ? log_store+0x34f/0x4c0 [ 38.994042] ? vprintk_emit+0x31f/0x910 [ 38.994046] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.994050] ? down_trylock+0x13/0x70 [ 38.994054] down_trylock+0x13/0x70 [ 38.994058] __down_trylock_console_sem+0xae/0x200 [ 38.994062] console_trylock+0x15/0xa0 [ 38.994066] vprintk_emit+0x31f/0x910 [ 38.994070] ? wake_up_klogd+0x110/0x110 [ 38.994074] ? run_rebalance_domains+0x4c0/0x4c0 [ 38.994078] ? kasan_check_read+0x11/0x20 [ 38.994082] ? rcu_is_watching+0x8c/0x150 [ 38.994086] ? rcu_pm_notify+0xc0/0xc0 [ 38.994090] ? lock_acquire+0x1e4/0x4f0 [ 38.994094] ? kasan_report+0x8e/0x110 [ 38.994098] ? __schedule+0xf54/0x1df0 [ 38.994102] vprintk_default+0x28/0x30 [ 38.994105] vprintk_func+0x7a/0x117 [ 38.994109] printk+0xa7/0xcf [ 38.994113] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.994117] ? kasan_check_write+0x14/0x20 [ 38.994121] ? do_raw_spin_lock+0xc1/0x200 [ 38.994125] ? do_raw_spin_lock+0xc1/0x200 [ 38.994129] kasan_report+0x9e/0x110 [ 38.994134] __asan_report_load8_noabort+0x14/0x20 [ 38.994143] __schedule+0xf54/0x1df0 [ 38.994147] ? __sched_text_start+0x8/0x8 [ 38.994152] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 38.994156] ? __call_srcu+0x7e7/0x1040 [ 38.994160] ? check_same_owner+0x340/0x340 [ 38.994164] ? mark_held_locks+0x160/0x160 [ 38.994168] ? find_held_lock+0x36/0x1c0 [ 38.994172] preempt_schedule_common+0x22/0x60 [ 38.994176] _cond_resched+0x1d/0x30 [ 38.994180] wait_for_completion+0xa5/0x8d0 [ 38.994185] ? wait_for_completion_interruptible+0x950/0x950 [ 38.994189] ? __lockdep_init_map+0x105/0x590 [ 38.994194] ? __init_waitqueue_head+0x9e/0x150 [ 38.994198] ? init_wait_entry+0x1c0/0x1c0 [ 38.994202] __synchronize_srcu+0x189/0x240 [ 38.994205] ? call_srcu+0x10/0x10 [ 38.994210] ? rcu_unexpedite_gp+0x20/0x20 [ 38.994214] synchronize_srcu+0x335/0x56f [ 38.994218] ? lock_downgrade+0x8f0/0x8f0 [ 38.994222] ? synchronize_srcu_expedited+0x20/0x20 [ 38.994226] ? kasan_check_read+0x11/0x20 [ 38.994231] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.994235] ? kasan_check_write+0x14/0x20 [ 38.994239] ? do_raw_spin_lock+0xc1/0x200 [ 38.994244] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.994249] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.994252] ? kvfree+0x61/0x70 [ 38.994257] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.994261] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.994265] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.994269] ? kvm_arch_sync_events+0x30/0x30 [ 38.994274] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.994279] ? mmu_notifier_unregister+0x474/0x600 [ 38.994283] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.994287] ? kfree+0x111/0x210 [ 38.994291] ? __mmu_notifier_register+0x30/0x30 [ 38.994295] ? __free_pages+0x10a/0x190 [ 38.994299] ? free_unref_page+0x930/0x930 [ 38.994303] kvm_put_kvm+0x73f/0x1060 [ 38.994308] ? kvm_write_guest_cached+0x40/0x40 [ 38.994312] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 38.994316] ? kvm_irqfd_release+0xdd/0x120 [ 38.994320] ? kvm_irqfd_release+0xdd/0x120 [ 38.994324] ? kvm_put_kvm+0x1060/0x1060 [ 38.994328] kvm_vm_release+0x42/0x50 [ 38.994332] __fput+0x38a/0xa40 [ 38.994335] ? __alloc_file+0x400/0x400 [ 38.994339] ? check_same_owner+0x340/0x340 [ 38.994344] ? kasan_check_write+0x14/0x20 [ 38.994348] ? do_raw_spin_lock+0xc1/0x200 [ 38.994351] ____fput+0x15/0x20 [ 38.994355] task_work_run+0x1e8/0x2a0 [ 38.994359] ? task_work_cancel+0x240/0x240 [ 38.994364] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.994368] ? switch_task_namespaces+0xa2/0xd0 [ 38.994372] do_exit+0x1ae4/0x26e0 [ 38.994383] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.994387] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.994407] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.994410] ? kfree+0x1d7/0x210 [ 38.994429] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.994434] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.994438] ? avc_has_extended_perms+0xa97/0x15c0 [ 38.994442] ? kernel_text_address+0x9e/0xf0 [ 38.994446] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 38.994449] ? avc_ss_reset [ 38.994455] Lost 47 message(s)! [ 40.119236] Shutting down cpus with NMI [ 41.236818] Dumping ftrace buffer: [ 41.240340] (ftrace buffer empty) [ 41.244027] Kernel Offset: disabled [ 41.247633] Rebooting in 86400 seconds..