[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.045744] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.521334] random: sshd: uninitialized urandom read (32 bytes read) [ 27.789970] random: sshd: uninitialized urandom read (32 bytes read) [ 28.315097] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.51' (ECDSA) to the list of known hosts. [ 34.312070] urandom_read: 1 callbacks suppressed [ 34.312077] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.412526] 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.434554] ================================================================== [ 34.443391] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.449625] Read of size 8 at addr ffff8801b16b0058 by task syz-executor054/4405 [ 34.457147] [ 34.458841] CPU: 0 PID: 4405 Comm: syz-executor054 Not tainted 4.18.0+ #210 [ 34.465935] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.475281] Call Trace: [ 34.477915] dump_stack+0x1c9/0x2b4 [ 34.481535] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.486708] ? printk+0xa7/0xcf [ 34.489975] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.494880] ? __schedule+0xf54/0x1df0 [ 34.498762] print_address_description+0x6c/0x20b [ 34.503595] ? __schedule+0xf54/0x1df0 [ 34.507476] kasan_report.cold.7+0x242/0x30d [ 34.511872] __asan_report_load8_noabort+0x14/0x20 [ 34.516946] __schedule+0xf54/0x1df0 [ 34.520648] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.525741] ? __sched_text_start+0x8/0x8 [ 34.529980] ? __call_srcu+0x7e7/0x1040 [ 34.533951] ? check_same_owner+0x340/0x340 [ 34.538260] ? mark_held_locks+0x160/0x160 [ 34.542585] ? find_held_lock+0x36/0x1c0 [ 34.546782] preempt_schedule_common+0x22/0x60 [ 34.551395] _cond_resched+0x1d/0x30 [ 34.555098] wait_for_completion+0xa5/0x8d0 [ 34.559411] ? wait_for_completion_interruptible+0x950/0x950 [ 34.565202] ? __lockdep_init_map+0x105/0x590 [ 34.569691] ? __init_waitqueue_head+0x9e/0x150 [ 34.574426] ? init_wait_entry+0x1c0/0x1c0 [ 34.578811] __synchronize_srcu+0x189/0x240 [ 34.583120] ? call_srcu+0x10/0x10 [ 34.586644] ? rcu_unexpedite_gp+0x20/0x20 [ 34.590877] synchronize_srcu+0x335/0x56f [ 34.595017] ? lock_downgrade+0x8f0/0x8f0 [ 34.599152] ? synchronize_srcu_expedited+0x20/0x20 [ 34.604157] ? kasan_check_read+0x11/0x20 [ 34.608290] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.612859] ? kasan_check_write+0x14/0x20 [ 34.617121] ? do_raw_spin_lock+0xc1/0x200 [ 34.621351] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.627120] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.632561] ? kvfree+0x61/0x70 [ 34.635899] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.640914] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.644965] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.649372] ? kvm_arch_sync_events+0x30/0x30 [ 34.653976] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.659512] ? mmu_notifier_unregister+0x474/0x600 [ 34.664430] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.668823] ? kfree+0x111/0x210 [ 34.672282] ? __mmu_notifier_register+0x30/0x30 [ 34.677028] ? __free_pages+0x10a/0x190 [ 34.680987] ? free_unref_page+0x930/0x930 [ 34.685214] kvm_put_kvm+0x73f/0x1060 [ 34.689001] ? kvm_write_guest_cached+0x40/0x40 [ 34.693661] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.698150] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.702680] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.707259] ? kasan_check_write+0x14/0x20 [ 34.711478] ? do_raw_spin_lock+0xc1/0x200 [ 34.715753] ? kvm_irqfd_release+0xdd/0x120 [ 34.720065] ? kvm_irqfd_release+0xdd/0x120 [ 34.724382] ? kvm_put_kvm+0x1060/0x1060 [ 34.728431] kvm_vm_release+0x42/0x50 [ 34.732219] __fput+0x36e/0x8c0 [ 34.735485] ? __alloc_file+0x400/0x400 [ 34.739511] ? check_same_owner+0x340/0x340 [ 34.743822] ? kasan_check_write+0x14/0x20 [ 34.748038] ? do_raw_spin_lock+0xc1/0x200 [ 34.752260] ____fput+0x15/0x20 [ 34.755523] task_work_run+0x1e8/0x2a0 [ 34.759392] ? task_work_cancel+0x240/0x240 [ 34.763702] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.769474] ? switch_task_namespaces+0xa2/0xd0 [ 34.774136] do_exit+0x1ae4/0x26e0 [ 34.777763] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.782420] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.786646] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.791650] ? kfree+0x1d7/0x210 [ 34.795003] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.799228] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.804938] ? is_bpf_text_address+0xd7/0x170 [ 34.809418] ? kernel_text_address+0x79/0xf0 [ 34.813808] ? __kernel_text_address+0xd/0x40 [ 34.818292] ? unwind_get_return_address+0x61/0xa0 [ 34.823207] ? __save_stack_trace+0x8d/0xf0 [ 34.827515] ? save_stack+0xa9/0xd0 [ 34.831124] ? save_stack+0x43/0xd0 [ 34.834769] ? __kasan_slab_free+0x11a/0x170 [ 34.839260] ? kasan_slab_free+0xe/0x10 [ 34.843224] ? putname+0xf2/0x130 [ 34.846670] ? __x64_sys_openat+0x9d/0x100 [ 34.850892] ? do_syscall_64+0x1b9/0x820 [ 34.854947] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.860296] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.864687] ? kasan_check_read+0x11/0x20 [ 34.868979] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.873370] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.877770] ? initcall_blacklisted+0x9a/0x1e0 [ 34.882345] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.887441] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.893196] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.898728] ? do_vfs_ioctl+0x201/0x1720 [ 34.902782] ? rcu_is_watching+0x8c/0x150 [ 34.906935] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.911244] ? ioctl_preallocate+0x300/0x300 [ 34.915646] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.921217] ? __fget_light+0x2f7/0x440 [ 34.925218] ? fget_raw+0x20/0x20 [ 34.928662] ? putname+0xf2/0x130 [ 34.932105] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.937109] ? kmem_cache_free+0x246/0x280 [ 34.941328] ? putname+0xf7/0x130 [ 34.944775] do_group_exit+0x177/0x440 [ 34.948717] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.953026] ? __ia32_sys_exit+0x50/0x50 [ 34.957066] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.962199] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.967736] ? ksys_ioctl+0x81/0xd0 [ 34.971348] __x64_sys_exit_group+0x3e/0x50 [ 34.975652] do_syscall_64+0x1b9/0x820 [ 34.979527] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.984880] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.989805] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.994628] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.999626] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.004629] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.009723] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.014555] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.019871] RIP: 0033:0x43ef08 [ 35.023055] Code: Bad RIP value. [ 35.026403] RSP: 002b:00007ffc76c7d758 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.034093] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.041342] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.048592] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.055857] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.063107] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.070368] [ 35.071979] Allocated by task 4405: [ 35.075592] save_stack+0x43/0xd0 [ 35.079035] kasan_kmalloc+0xc4/0xe0 [ 35.082729] kasan_slab_alloc+0x12/0x20 [ 35.086680] kmem_cache_alloc+0x12e/0x710 [ 35.090811] vmx_create_vcpu+0xcf/0x2830 [ 35.094847] kvm_arch_vcpu_create+0xe5/0x220 [ 35.099247] kvm_vm_ioctl+0x488/0x1d80 [ 35.103228] do_vfs_ioctl+0x1de/0x1720 [ 35.107102] ksys_ioctl+0xa9/0xd0 [ 35.110536] __x64_sys_ioctl+0x73/0xb0 [ 35.114527] do_syscall_64+0x1b9/0x820 [ 35.118399] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.123641] [ 35.125263] Freed by task 4405: [ 35.128525] save_stack+0x43/0xd0 [ 35.131961] __kasan_slab_free+0x11a/0x170 [ 35.136176] kasan_slab_free+0xe/0x10 [ 35.140048] kmem_cache_free+0x86/0x280 [ 35.144010] vmx_free_vcpu+0x26b/0x300 [ 35.147883] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.152275] kvm_put_kvm+0x73f/0x1060 [ 35.156056] kvm_vm_release+0x42/0x50 [ 35.159833] __fput+0x36e/0x8c0 [ 35.163094] ____fput+0x15/0x20 [ 35.166351] task_work_run+0x1e8/0x2a0 [ 35.170218] do_exit+0x1ae4/0x26e0 [ 35.173744] do_group_exit+0x177/0x440 [ 35.177622] __x64_sys_exit_group+0x3e/0x50 [ 35.181927] do_syscall_64+0x1b9/0x820 [ 35.185797] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.190958] [ 35.192564] The buggy address belongs to the object at ffff8801b16b0040 [ 35.192564] which belongs to the cache kvm_vcpu of size 23872 [ 35.205112] The buggy address is located 24 bytes inside of [ 35.205112] 23872-byte region [ffff8801b16b0040, ffff8801b16b5d80) [ 35.217051] The buggy address belongs to the page: [ 35.221974] page:ffffea0006c5ac00 count:1 mapcount:0 mapping:ffff8801d4c90a80 index:0x0 compound_mapcount: 0 [ 35.232249] flags: 0x2fffc0000008100(slab|head) [ 35.236986] raw: 02fffc0000008100 ffff8801d4c85248 ffff8801d4c85248 ffff8801d4c90a80 [ 35.244865] raw: 0000000000000000 ffff8801b16b0040 0000000100000001 0000000000000000 [ 35.252727] page dumped because: kasan: bad access detected [ 35.258413] [ 35.260023] Memory state around the buggy address: [ 35.265018] ffff8801b16aff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.272405] ffff8801b16aff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.279987] >ffff8801b16b0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.287323] ^ [ 35.293536] ffff8801b16b0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.300986] ffff8801b16b0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.308432] ================================================================== [ 35.315774] Kernel panic - not syncing: panic_on_warn set ... [ 35.315774] [ 35.323122] CPU: 0 PID: 4405 Comm: syz-executor054 Tainted: G B 4.18.0+ #210 [ 35.331590] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.341082] Call Trace: [ 35.343671] dump_stack+0x1c9/0x2b4 [ 35.347288] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.352458] ? lock_downgrade+0x8f0/0x8f0 [ 35.356592] ? __schedule+0xf54/0x1df0 [ 35.360479] panic+0x238/0x4e7 [ 35.363862] ? add_taint.cold.5+0x16/0x16 [ 35.368004] ? print_shadow_for_address+0xba/0x116 [ 35.372920] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.377419] ? trace_hardirqs_off+0x77/0x2b0 [ 35.381823] ? __schedule+0xf54/0x1df0 [ 35.385704] kasan_end_report+0x47/0x4f [ 35.389775] kasan_report.cold.7+0x76/0x30d [ 35.394156] __asan_report_load8_noabort+0x14/0x20 [ 35.399081] __schedule+0xf54/0x1df0 [ 35.402882] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.407967] ? __sched_text_start+0x8/0x8 [ 35.412098] ? __call_srcu+0x7e7/0x1040 [ 35.416057] ? check_same_owner+0x340/0x340 [ 35.420362] ? mark_held_locks+0x160/0x160 [ 35.424657] ? find_held_lock+0x36/0x1c0 [ 35.428711] preempt_schedule_common+0x22/0x60 [ 35.433279] _cond_resched+0x1d/0x30 [ 35.436981] wait_for_completion+0xa5/0x8d0 [ 35.441295] ? wait_for_completion_interruptible+0x950/0x950 [ 35.447118] ? __lockdep_init_map+0x105/0x590 [ 35.451610] ? __init_waitqueue_head+0x9e/0x150 [ 35.456258] ? init_wait_entry+0x1c0/0x1c0 [ 35.460474] __synchronize_srcu+0x189/0x240 [ 35.464805] ? call_srcu+0x10/0x10 [ 35.468325] ? rcu_unexpedite_gp+0x20/0x20 [ 35.472594] synchronize_srcu+0x335/0x56f [ 35.476739] ? lock_downgrade+0x8f0/0x8f0 [ 35.481013] ? synchronize_srcu_expedited+0x20/0x20 [ 35.486015] ? kasan_check_read+0x11/0x20 [ 35.490143] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.494710] ? kasan_check_write+0x14/0x20 [ 35.498928] ? do_raw_spin_lock+0xc1/0x200 [ 35.503197] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.508903] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.514337] ? kvfree+0x61/0x70 [ 35.517613] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.522624] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.526668] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.531060] ? kvm_arch_sync_events+0x30/0x30 [ 35.535539] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.541068] ? mmu_notifier_unregister+0x474/0x600 [ 35.545981] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.550373] ? kfree+0x111/0x210 [ 35.553722] ? __mmu_notifier_register+0x30/0x30 [ 35.558580] ? __free_pages+0x10a/0x190 [ 35.562546] ? free_unref_page+0x930/0x930 [ 35.566773] kvm_put_kvm+0x73f/0x1060 [ 35.570560] ? kvm_write_guest_cached+0x40/0x40 [ 35.575213] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.579693] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.584177] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.588748] ? kasan_check_write+0x14/0x20 [ 35.592968] ? do_raw_spin_lock+0xc1/0x200 [ 35.597186] ? kvm_irqfd_release+0xdd/0x120 [ 35.601486] ? kvm_irqfd_release+0xdd/0x120 [ 35.605792] ? kvm_put_kvm+0x1060/0x1060 [ 35.609840] kvm_vm_release+0x42/0x50 [ 35.613627] __fput+0x36e/0x8c0 [ 35.616893] ? __alloc_file+0x400/0x400 [ 35.620856] ? check_same_owner+0x340/0x340 [ 35.625162] ? kasan_check_write+0x14/0x20 [ 35.629379] ? do_raw_spin_lock+0xc1/0x200 [ 35.633595] ____fput+0x15/0x20 [ 35.636864] task_work_run+0x1e8/0x2a0 [ 35.640738] ? task_work_cancel+0x240/0x240 [ 35.645050] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.650578] ? switch_task_namespaces+0xa2/0xd0 [ 35.655232] do_exit+0x1ae4/0x26e0 [ 35.658756] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.663408] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.667630] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.672636] ? kfree+0x1d7/0x210 [ 35.675985] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.680203] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.685952] ? is_bpf_text_address+0xd7/0x170 [ 35.690440] ? kernel_text_address+0x79/0xf0 [ 35.694833] ? __kernel_text_address+0xd/0x40 [ 35.699310] ? unwind_get_return_address+0x61/0xa0 [ 35.704222] ? __save_stack_trace+0x8d/0xf0 [ 35.708531] ? save_stack+0xa9/0xd0 [ 35.712135] ? save_stack+0x43/0xd0 [ 35.715740] ? __kasan_slab_free+0x11a/0x170 [ 35.720135] ? kasan_slab_free+0xe/0x10 [ 35.724098] ? putname+0xf2/0x130 [ 35.727535] ? __x64_sys_openat+0x9d/0x100 [ 35.731757] ? do_syscall_64+0x1b9/0x820 [ 35.735849] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.741201] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.745588] ? kasan_check_read+0x11/0x20 [ 35.749722] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.754180] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.758576] ? initcall_blacklisted+0x9a/0x1e0 [ 35.763150] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.768244] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.773939] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.779538] ? do_vfs_ioctl+0x201/0x1720 [ 35.783632] ? rcu_is_watching+0x8c/0x150 [ 35.787760] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.792086] ? ioctl_preallocate+0x300/0x300 [ 35.796481] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.802004] ? __fget_light+0x2f7/0x440 [ 35.805961] ? fget_raw+0x20/0x20 [ 35.809393] ? putname+0xf2/0x130 [ 35.812828] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.817890] ? kmem_cache_free+0x246/0x280 [ 35.822117] ? putname+0xf7/0x130 [ 35.825562] do_group_exit+0x177/0x440 [ 35.829433] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.833737] ? __ia32_sys_exit+0x50/0x50 [ 35.837776] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.842913] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.848449] ? ksys_ioctl+0x81/0xd0 [ 35.852069] __x64_sys_exit_group+0x3e/0x50 [ 35.856485] do_syscall_64+0x1b9/0x820 [ 35.860360] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.865710] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.870623] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.875520] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.880525] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.885521] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.890527] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.895364] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.900541] RIP: 0033:0x43ef08 [ 35.903722] Code: Bad RIP value. [ 35.907064] RSP: 002b:00007ffc76c7d758 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.914881] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.922137] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.929392] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.936644] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.943894] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.951154] [ 35.951158] ====================================================== [ 35.951161] WARNING: possible circular locking dependency detected [ 35.951163] 4.18.0+ #210 Not tainted [ 35.951166] ------------------------------------------------------ [ 35.951169] syz-executor054/4405 is trying to acquire lock: [ 35.951171] 000000003746e31c ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.951179] [ 35.951182] but task is already holding lock: [ 35.951183] 00000000c021f20c (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.951191] [ 35.951194] which lock already depends on the new lock. [ 35.951195] [ 35.951196] [ 35.951199] the existing dependency chain (in reverse order) is: [ 35.951200] [ 35.951201] -> #3 (report_lock){....}: [ 35.951209] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.951212] kasan_report+0x8e/0x110 [ 35.951214] __asan_report_load8_noabort+0x14/0x20 [ 35.951216] __schedule+0xf54/0x1df0 [ 35.951219] preempt_schedule_common+0x22/0x60 [ 35.951221] _cond_resched+0x1d/0x30 [ 35.951224] wait_for_completion+0xa5/0x8d0 [ 35.951226] __synchronize_srcu+0x189/0x240 [ 35.951228] synchronize_srcu+0x335/0x56f [ 35.951231] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.951234] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.951236] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.951238] kvm_put_kvm+0x73f/0x1060 [ 35.951240] kvm_vm_release+0x42/0x50 [ 35.951242] __fput+0x36e/0x8c0 [ 35.951244] ____fput+0x15/0x20 [ 35.951247] task_work_run+0x1e8/0x2a0 [ 35.951249] do_exit+0x1ae4/0x26e0 [ 35.951251] do_group_exit+0x177/0x440 [ 35.951253] __x64_sys_exit_group+0x3e/0x50 [ 35.951255] do_syscall_64+0x1b9/0x820 [ 35.951258] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.951259] [ 35.951261] -> #2 (&rq->lock){-.-.}: [ 35.951268] _raw_spin_lock+0x2a/0x40 [ 35.951270] task_fork_fair+0x93/0x680 [ 35.951272] sched_fork+0x44b/0xbd0 [ 35.951275] copy_process+0x235e/0x7ad0 [ 35.951277] _do_fork+0x1ca/0x1170 [ 35.951279] kernel_thread+0x34/0x40 [ 35.951281] rest_init+0x22/0xe4 [ 35.951283] start_kernel+0x913/0x94e [ 35.951285] x86_64_start_reservations+0x29/0x2b [ 35.951288] x86_64_start_kernel+0x76/0x79 [ 35.951290] secondary_startup_64+0xa4/0xb0 [ 35.951291] [ 35.951293] -> #1 (&p->pi_lock){-.-.}: [ 35.951300] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.951303] try_to_wake_up+0xd2/0x1250 [ 35.951305] wake_up_process+0x10/0x20 [ 35.951307] __up.isra.1+0x1c0/0x2a0 [ 35.951309] up+0x13c/0x1c0 [ 35.951311] __up_console_sem+0xbe/0x1b0 [ 35.951313] console_unlock+0x506/0x10d0 [ 35.951316] do_con_write+0x1375/0x23d0 [ 35.951318] con_write+0x25/0xc0 [ 35.951320] n_tty_write+0x6c1/0x11a0 [ 35.951322] tty_write+0x3f1/0x880 [ 35.951324] __vfs_write+0x117/0x9d0 [ 35.951326] vfs_write+0x1fc/0x560 [ 35.951328] ksys_write+0x101/0x260 [ 35.951330] __x64_sys_write+0x73/0xb0 [ 35.951333] do_syscall_64+0x1b9/0x820 [ 35.951335] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.951337] [ 35.951338] -> #0 ((console_sem).lock){-...}: [ 35.951345] lock_acquire+0x1e4/0x4f0 [ 35.951348] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.951350] down_trylock+0x13/0x70 [ 35.951353] __down_trylock_console_sem+0xae/0x200 [ 35.951355] console_trylock+0x15/0xa0 [ 35.951357] vprintk_emit+0x31f/0x910 [ 35.951359] vprintk_default+0x28/0x30 [ 35.951361] vprintk_func+0x7a/0x117 [ 35.951363] printk+0xa7/0xcf [ 35.951365] kasan_report+0x9e/0x110 [ 35.951368] __asan_report_load8_noabort+0x14/0x20 [ 35.951370] __schedule+0xf54/0x1df0 [ 35.951373] preempt_schedule_common+0x22/0x60 [ 35.951375] _cond_resched+0x1d/0x30 [ 35.951377] wait_for_completion+0xa5/0x8d0 [ 35.951380] __synchronize_srcu+0x189/0x240 [ 35.951382] synchronize_srcu+0x335/0x56f [ 35.951385] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.951387] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.951390] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.951392] kvm_put_kvm+0x73f/0x1060 [ 35.951394] kvm_vm_release+0x42/0x50 [ 35.951396] __fput+0x36e/0x8c0 [ 35.951398] ____fput+0x15/0x20 [ 35.951400] task_work_run+0x1e8/0x2a0 [ 35.951402] do_exit+0x1ae4/0x26e0 [ 35.951404] do_group_exit+0x177/0x440 [ 35.951407] __x64_sys_exit_group+0x3e/0x50 [ 35.951411] do_syscall_64+0x1b9/0x820 [ 35.951414] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.951415] [ 35.951417] other info that might help us debug this: [ 35.951419] [ 35.951420] Chain exists of: [ 35.951421] (console_sem).lock --> &rq->lock --> report_lock [ 35.951431] [ 35.951433] Possible unsafe locking scenario: [ 35.951435] [ 35.951437] CPU0 CPU1 [ 35.951439] ---- ---- [ 35.951441] lock(report_lock); [ 35.951446] lock(&rq->lock); [ 35.951451] lock(report_lock); [ 35.951455] lock((console_sem).lock); [ 35.951459] [ 35.951461] *** DEADLOCK *** [ 35.951462] [ 35.951465] 2 locks held by syz-executor054/4405: [ 35.951466] #0: 000000004614c0ca (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.951475] #1: 00000000c021f20c (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.951484] [ 35.951486] stack backtrace: [ 35.951489] CPU: 0 PID: 4405 Comm: syz-executor054 Not tainted 4.18.0+ #210 [ 35.951493] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.951495] Call Trace: [ 35.951497] dump_stack+0x1c9/0x2b4 [ 35.951500] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.951502] ? vprintk_func+0x100/0x117 [ 35.951505] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.951507] ? save_trace+0xe0/0x290 [ 35.951509] __lock_acquire+0x3449/0x5020 [ 35.951511] ? mark_held_locks+0x160/0x160 [ 35.951514] ? mark_held_locks+0x160/0x160 [ 35.951516] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.951519] ? is_bpf_text_address+0xd7/0x170 [ 35.951521] ? kernel_text_address+0x79/0xf0 [ 35.951523] ? __kernel_text_address+0xd/0x40 [ 35.951526] ? __save_stack_trace+0x8d/0xf0 [ 35.951528] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.951530] ? save_trace+0x290/0x290 [ 35.951532] ? save_stack_trace+0x1a/0x20 [ 35.951535] ? save_trace+0xe0/0x290 [ 35.951537] ? graph_lock+0x170/0x170 [ 35.951539] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.951542] lock_acquire+0x1e4/0x4f0 [ 35.951544] ? down_trylock+0x13/0x70 [ 35.951546] ? lock_release+0x9f0/0x9f0 [ 35.951548] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.951551] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.951553] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.951555] ? log_store+0x34f/0x4c0 [ 35.951557] ? vprintk_emit+0x31f/0x910 [ 35.951559] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.951562] ? down_trylock+0x13/0x70 [ 35.951564] down_trylock+0x13/0x70 [ 35.951566] __down_trylock_console_sem+0xae/0x200 [ 35.951568] console_trylock+0x15/0xa0 [ 35.951570] vprintk_emit+0x31f/0x910 [ 35.951573] ? wake_up_klogd+0x110/0x110 [ 35.951575] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.951577] ? kasan_check_read+0x11/0x20 [ 35.951580] ? rcu_is_watching+0x8c/0x150 [ 35.951582] ? rcu_pm_notify+0xc0/0xc0 [ 35.951584] ? lock_acquire+0x1e4/0x4f0 [ 35.951586] ? kasan_report+0x8e/0x110 [ 35.951588] ? __schedule+0xf54/0x1df0 [ 35.951590] vprintk_default+0x28/0x30 [ 35.951592] vprintk_func+0x7a/0x117 [ 35.951594] printk+0xa7/0xcf [ 35.951597] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.951599] ? kasan_check_write+0x14/0x20 [ 35.951608] ? do_raw_spin_lock+0xc1/0x200 [ 35.951610] ? do_raw_spin_lock+0xc1/0x200 [ 35.951612] kasan_report+0x9e/0x110 [ 35.951615] __asan_report_load8_noabort+0x14/0x20 [ 35.951617] __schedule+0xf54/0x1df0 [ 35.951620] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.951622] ? __sched_text_start+0x8/0x8 [ 35.951624] ? __call_srcu+0x7e7/0x1040 [ 35.951627] ? check_same_owner+0x340/0x340 [ 35.951629] ? mark_held_locks+0x160/0x160 [ 35.951631] ? find_held_lock+0x36/0x1c0 [ 35.951634] preempt_schedule_common+0x22/0x60 [ 35.951636] _cond_resched+0x1d/0x30 [ 35.951638] wait_for_completion+0xa5/0x8d0 [ 35.951641] ? wait_for_completion_interruptible+0x950/0x950 [ 35.951643] ? __lockdep_init_map+0x105/0x590 [ 35.951646] ? __init_waitqueue_head+0x9e/0x150 [ 35.951648] ? init_wait_entry+0x1c0/0x1c0 [ 35.951651] __synchronize_srcu+0x189/0x240 [ 35.951653] ? call_srcu+0x10/0x10 [ 35.951655] ? rcu_unexpedite_gp+0x20/0x20 [ 35.951657] synchronize_srcu+0x335/0x56f [ 35.951659] ? lock_downgrade+0x8f0/0x8f0 [ 35.951662] ? synchronize_srcu_expedited+0x20/0x20 [ 35.951664] ? kasan_check_read+0x11/0x20 [ 35.951667] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.951669] ? kasan_check_write+0x14/0x20 [ 35.951671] ? do_raw_spin_lock+0xc1/0x200 [ 35.951674] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.951677] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.951679] ? kvfree+0x61/0x70 [ 35.951681] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.951684] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.951686] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.951688] ? kvm_arch_sync_events+0x30/0x30 [ 35.951691] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.951694] ? mmu_notifier_unregister+0x474/0x600 [ 35.951696] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.951698] ? kfree+0x111/0x210 [ 35.951700] ? __mmu_notifier_register+0x30/0x30 [ 35.951703] ? __free_pages+0x10a/0x190 [ 35.951705] ? free_unref_page+0x930/0x930 [ 35.951707] kvm_put_kvm+0x73f/0x1060 [ 35.951709] ? kvm_write_guest_cached+0x40/0x40 [ 35.951712] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.951714] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.951716] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.951719] ? kasan_check_write+0x14/0x20 [ 35.951721] ? do_raw_spin_lock+0xc1/0x200 [ 35.951723] ? kvm_irqfd_release+0xdd/0x120 [ 35.951726] ? kvm_irqfd_release+0xdd/0x120 [ 35.951728] ? kvm_put_kvm+0x1060/0x1060 [ 35.951730] kvm_vm_release+0x42/0x50 [ 35.951732] __fput+0x36e/0x8c0 [ 35.951734] ? __alloc_file+0x400/0x400 [ 35.951736] ? check_same_owner+0x340/0x340 [ 35.951739] ? kasan_check_write+0x14/0x20 [ 35.951741] ? do_raw_spin_lock+0xc1/0x200 [ 35.951743] ____fput+0x15/0x20 [ 35.951745] task_work_run+0x1e8/0x2a0 [ 35.951747] ? task_work_cancel+0x240/0x240 [ 35.951750] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.951752] ? switch_task_namespaces+0xa2/0xd0 [ 35.951754] do_exit+0x1ae4/0x26e0 [ 35.951757] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.951759] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.951762] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.951764] ? kfree+0x1d7/0x210 [ 35.951766] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.951769] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.951770] ? [ 35.951775] Lost 56 message(s)! [ 37.023553] Shutting down cpus with NMI [ 38.083178] Dumping ftrace buffer: [ 38.086829] (ftrace buffer empty) [ 38.090520] Kernel Offset: disabled [ 38.094130] Rebooting in 86400 seconds..