[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.069458] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.702755] random: sshd: uninitialized urandom read (32 bytes read) [ 29.140212] random: sshd: uninitialized urandom read (32 bytes read) [ 29.715845] random: sshd: uninitialized urandom read (32 bytes read) [ 29.901786] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.229' (ECDSA) to the list of known hosts. [ 35.662114] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.758993] 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. [ 35.785724] ================================================================== [ 35.795566] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 35.801790] Read of size 8 at addr ffff8801d8e48058 by task syz-executor976/4700 [ 35.809307] [ 35.810937] CPU: 0 PID: 4700 Comm: syz-executor976 Not tainted 4.19.0-rc2+ #225 [ 35.818394] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.827755] Call Trace: [ 35.830354] dump_stack+0x1c9/0x2b4 [ 35.833996] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.839182] ? printk+0xa7/0xcf [ 35.842461] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.847217] ? __schedule+0xf54/0x1df0 [ 35.851130] print_address_description+0x6c/0x20b [ 35.856184] ? __schedule+0xf54/0x1df0 [ 35.860073] kasan_report.cold.7+0x242/0x30d [ 35.864484] __asan_report_load8_noabort+0x14/0x20 [ 35.869411] __schedule+0xf54/0x1df0 [ 35.873128] ? __sched_text_start+0x8/0x8 [ 35.877283] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.882392] ? __call_srcu+0x7e7/0x1040 [ 35.886380] ? check_same_owner+0x340/0x340 [ 35.890711] ? mark_held_locks+0x160/0x160 [ 35.894944] ? find_held_lock+0x36/0x1c0 [ 35.899008] preempt_schedule_common+0x22/0x60 [ 35.903585] _cond_resched+0x1d/0x30 [ 35.907314] wait_for_completion+0xa5/0x8d0 [ 35.911654] ? wait_for_completion_interruptible+0x950/0x950 [ 35.917449] ? __lockdep_init_map+0x105/0x590 [ 35.921942] ? __init_waitqueue_head+0x9e/0x150 [ 35.926629] ? init_wait_entry+0x1c0/0x1c0 [ 35.930877] __synchronize_srcu+0x189/0x240 [ 35.935194] ? call_srcu+0x10/0x10 [ 35.938734] ? rcu_unexpedite_gp+0x20/0x20 [ 35.942975] synchronize_srcu+0x335/0x56f [ 35.947118] ? lock_downgrade+0x8f0/0x8f0 [ 35.951264] ? synchronize_srcu_expedited+0x20/0x20 [ 35.956280] ? kasan_check_read+0x11/0x20 [ 35.960429] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.965279] ? kasan_check_write+0x14/0x20 [ 35.969512] ? do_raw_spin_lock+0xc1/0x200 [ 35.973752] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.979481] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.984930] ? kvfree+0x61/0x70 [ 35.988212] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.993227] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.997284] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.001691] ? kvm_arch_sync_events+0x30/0x30 [ 36.006192] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.011730] ? mmu_notifier_unregister+0x474/0x600 [ 36.016659] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.021063] ? kfree+0x111/0x210 [ 36.024447] ? __mmu_notifier_register+0x30/0x30 [ 36.029204] ? __free_pages+0x10a/0x190 [ 36.033177] ? free_unref_page+0x930/0x930 [ 36.037533] kvm_put_kvm+0x73f/0x1060 [ 36.041335] ? kvm_write_guest_cached+0x40/0x40 [ 36.046006] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.050501] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.054997] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.059581] ? kasan_check_write+0x14/0x20 [ 36.063825] ? do_raw_spin_lock+0xc1/0x200 [ 36.068058] ? kvm_irqfd_release+0xdd/0x120 [ 36.072371] ? kvm_irqfd_release+0xdd/0x120 [ 36.076704] ? kvm_put_kvm+0x1060/0x1060 [ 36.080760] kvm_vm_release+0x42/0x50 [ 36.084557] __fput+0x38a/0xa40 [ 36.087856] ? __alloc_file+0x400/0x400 [ 36.091855] ? check_same_owner+0x340/0x340 [ 36.096179] ? kasan_check_write+0x14/0x20 [ 36.100410] ? do_raw_spin_lock+0xc1/0x200 [ 36.104640] ____fput+0x15/0x20 [ 36.107927] task_work_run+0x1e8/0x2a0 [ 36.111814] ? task_work_cancel+0x240/0x240 [ 36.116155] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.121699] ? switch_task_namespaces+0xa2/0xd0 [ 36.126377] do_exit+0x1ae4/0x26e0 [ 36.129919] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.134590] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.138840] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.143858] ? kfree+0x1d7/0x210 [ 36.147229] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.151467] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.157178] ? is_bpf_text_address+0xd7/0x170 [ 36.161668] ? kernel_text_address+0x79/0xf0 [ 36.166071] ? __kernel_text_address+0xd/0x40 [ 36.170563] ? unwind_get_return_address+0x61/0xa0 [ 36.175496] ? __save_stack_trace+0x8d/0xf0 [ 36.179818] ? save_stack+0xa9/0xd0 [ 36.183445] ? save_stack+0x43/0xd0 [ 36.187068] ? __kasan_slab_free+0x11a/0x170 [ 36.191470] ? kasan_slab_free+0xe/0x10 [ 36.195440] ? putname+0xf2/0x130 [ 36.198893] ? __x64_sys_openat+0x9d/0x100 [ 36.203146] ? do_syscall_64+0x1b9/0x820 [ 36.207204] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.212569] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.216969] ? kasan_check_read+0x11/0x20 [ 36.221109] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.225511] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.229941] ? initcall_blacklisted+0x9a/0x1e0 [ 36.234522] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.239633] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.245369] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.250908] ? do_vfs_ioctl+0x201/0x1720 [ 36.254966] ? rcu_is_watching+0x8c/0x150 [ 36.259108] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.263427] ? ioctl_preallocate+0x300/0x300 [ 36.267836] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.273379] ? __fget_light+0x2f7/0x440 [ 36.277362] ? fget_raw+0x20/0x20 [ 36.280809] ? putname+0xf2/0x130 [ 36.284263] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.289275] ? kmem_cache_free+0x246/0x280 [ 36.293518] ? putname+0xf7/0x130 [ 36.296983] do_group_exit+0x177/0x440 [ 36.300866] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.305194] ? __ia32_sys_exit+0x50/0x50 [ 36.309280] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.314395] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.319929] ? ksys_ioctl+0x81/0xd0 [ 36.323555] __x64_sys_exit_group+0x3e/0x50 [ 36.327895] do_syscall_64+0x1b9/0x820 [ 36.331784] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.337144] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.342070] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.346908] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 36.351927] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.356944] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.361791] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.366975] RIP: 0033:0x43ef08 [ 36.370190] Code: Bad RIP value. [ 36.373573] RSP: 002b:00007fffc1217e28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.381297] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.388590] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.395879] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.403141] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.410408] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.417680] [ 36.419301] Allocated by task 4700: [ 36.422929] save_stack+0x43/0xd0 [ 36.426377] kasan_kmalloc+0xc4/0xe0 [ 36.430087] kasan_slab_alloc+0x12/0x20 [ 36.434059] kmem_cache_alloc+0x12e/0x710 [ 36.438201] vmx_create_vcpu+0xcf/0x2830 [ 36.442254] kvm_arch_vcpu_create+0xe5/0x220 [ 36.446668] kvm_vm_ioctl+0x488/0x1d80 [ 36.450553] do_vfs_ioctl+0x1de/0x1720 [ 36.454434] ksys_ioctl+0xa9/0xd0 [ 36.457901] __x64_sys_ioctl+0x73/0xb0 [ 36.461788] do_syscall_64+0x1b9/0x820 [ 36.465687] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.470896] [ 36.472510] Freed by task 4700: [ 36.475783] save_stack+0x43/0xd0 [ 36.479228] __kasan_slab_free+0x11a/0x170 [ 36.483454] kasan_slab_free+0xe/0x10 [ 36.487246] kmem_cache_free+0x86/0x280 [ 36.491216] vmx_free_vcpu+0x26b/0x300 [ 36.495107] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.499513] kvm_put_kvm+0x73f/0x1060 [ 36.503338] kvm_vm_release+0x42/0x50 [ 36.507154] __fput+0x38a/0xa40 [ 36.510429] ____fput+0x15/0x20 [ 36.513701] task_work_run+0x1e8/0x2a0 [ 36.517586] do_exit+0x1ae4/0x26e0 [ 36.521134] do_group_exit+0x177/0x440 [ 36.525020] __x64_sys_exit_group+0x3e/0x50 [ 36.529339] do_syscall_64+0x1b9/0x820 [ 36.533222] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.538400] [ 36.540038] The buggy address belongs to the object at ffff8801d8e48040 [ 36.540038] which belongs to the cache kvm_vcpu of size 23872 [ 36.552625] The buggy address is located 24 bytes inside of [ 36.552625] 23872-byte region [ffff8801d8e48040, ffff8801d8e4dd80) [ 36.564584] The buggy address belongs to the page: [ 36.569517] page:ffffea0007639200 count:1 mapcount:0 mapping:ffff8801d5381d80 index:0x0 compound_mapcount: 0 [ 36.579489] flags: 0x2fffc0000008100(slab|head) [ 36.584160] raw: 02fffc0000008100 ffff8801d537ce48 ffff8801d537ce48 ffff8801d5381d80 [ 36.592056] raw: 0000000000000000 ffff8801d8e48040 0000000100000001 0000000000000000 [ 36.599953] page dumped because: kasan: bad access detected [ 36.605660] [ 36.607279] Memory state around the buggy address: [ 36.612202] ffff8801d8e47f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.619582] ffff8801d8e47f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.626977] >ffff8801d8e48000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.634347] ^ [ 36.640581] ffff8801d8e48080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.647950] ffff8801d8e48100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.655297] ================================================================== [ 36.662648] Kernel panic - not syncing: panic_on_warn set ... [ 36.662648] [ 36.670013] CPU: 0 PID: 4700 Comm: syz-executor976 Tainted: G B 4.19.0-rc2+ #225 [ 36.678837] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.688181] Call Trace: [ 36.690784] dump_stack+0x1c9/0x2b4 [ 36.694430] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.699625] ? lock_downgrade+0x8f0/0x8f0 [ 36.703776] ? __schedule+0xf54/0x1df0 [ 36.707662] panic+0x238/0x4e7 [ 36.710851] ? add_taint.cold.5+0x16/0x16 [ 36.715016] ? print_shadow_for_address+0xba/0x116 [ 36.719943] ? trace_hardirqs_off+0xaf/0x2c0 [ 36.724383] ? trace_hardirqs_off+0x77/0x2c0 [ 36.728792] ? __schedule+0xf54/0x1df0 [ 36.732676] kasan_end_report+0x47/0x4f [ 36.736649] kasan_report.cold.7+0x76/0x30d [ 36.740970] __asan_report_load8_noabort+0x14/0x20 [ 36.745905] __schedule+0xf54/0x1df0 [ 36.749630] ? __sched_text_start+0x8/0x8 [ 36.753778] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 36.758885] ? __call_srcu+0x7e7/0x1040 [ 36.762869] ? check_same_owner+0x340/0x340 [ 36.767192] ? mark_held_locks+0x160/0x160 [ 36.771453] ? find_held_lock+0x36/0x1c0 [ 36.775527] preempt_schedule_common+0x22/0x60 [ 36.780110] _cond_resched+0x1d/0x30 [ 36.783827] wait_for_completion+0xa5/0x8d0 [ 36.788153] ? wait_for_completion_interruptible+0x950/0x950 [ 36.793947] ? __lockdep_init_map+0x105/0x590 [ 36.798456] ? __init_waitqueue_head+0x9e/0x150 [ 36.803118] ? init_wait_entry+0x1c0/0x1c0 [ 36.807364] __synchronize_srcu+0x189/0x240 [ 36.811681] ? call_srcu+0x10/0x10 [ 36.815240] ? rcu_unexpedite_gp+0x20/0x20 [ 36.819478] synchronize_srcu+0x335/0x56f [ 36.823654] ? lock_downgrade+0x8f0/0x8f0 [ 36.827797] ? synchronize_srcu_expedited+0x20/0x20 [ 36.832817] ? kasan_check_read+0x11/0x20 [ 36.836975] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.841567] ? kasan_check_write+0x14/0x20 [ 36.845798] ? do_raw_spin_lock+0xc1/0x200 [ 36.850058] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.856029] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.861482] ? kvfree+0x61/0x70 [ 36.864763] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.869790] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.873850] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.878261] ? kvm_arch_sync_events+0x30/0x30 [ 36.882771] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.888307] ? mmu_notifier_unregister+0x474/0x600 [ 36.893255] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.897661] ? kfree+0x111/0x210 [ 36.901027] ? __mmu_notifier_register+0x30/0x30 [ 36.905786] ? __free_pages+0x10a/0x190 [ 36.909761] ? free_unref_page+0x930/0x930 [ 36.914005] kvm_put_kvm+0x73f/0x1060 [ 36.917808] ? kvm_write_guest_cached+0x40/0x40 [ 36.922517] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.927020] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.931527] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.936114] ? kasan_check_write+0x14/0x20 [ 36.940346] ? do_raw_spin_lock+0xc1/0x200 [ 36.944585] ? kvm_irqfd_release+0xdd/0x120 [ 36.948913] ? kvm_irqfd_release+0xdd/0x120 [ 36.953236] ? kvm_put_kvm+0x1060/0x1060 [ 36.957294] kvm_vm_release+0x42/0x50 [ 36.961096] __fput+0x38a/0xa40 [ 36.964378] ? __alloc_file+0x400/0x400 [ 36.968359] ? check_same_owner+0x340/0x340 [ 36.972687] ? kasan_check_write+0x14/0x20 [ 36.976924] ? do_raw_spin_lock+0xc1/0x200 [ 36.981165] ____fput+0x15/0x20 [ 36.984448] task_work_run+0x1e8/0x2a0 [ 36.988335] ? task_work_cancel+0x240/0x240 [ 36.992671] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.998221] ? switch_task_namespaces+0xa2/0xd0 [ 37.002913] do_exit+0x1ae4/0x26e0 [ 37.006456] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.011129] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.015366] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.020380] ? kfree+0x1d7/0x210 [ 37.023749] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.028007] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.033721] ? is_bpf_text_address+0xd7/0x170 [ 37.038219] ? kernel_text_address+0x79/0xf0 [ 37.042651] ? __kernel_text_address+0xd/0x40 [ 37.047147] ? unwind_get_return_address+0x61/0xa0 [ 37.052083] ? __save_stack_trace+0x8d/0xf0 [ 37.056427] ? save_stack+0xa9/0xd0 [ 37.060049] ? save_stack+0x43/0xd0 [ 37.063676] ? __kasan_slab_free+0x11a/0x170 [ 37.068087] ? kasan_slab_free+0xe/0x10 [ 37.072075] ? putname+0xf2/0x130 [ 37.075535] ? __x64_sys_openat+0x9d/0x100 [ 37.079794] ? do_syscall_64+0x1b9/0x820 [ 37.083858] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.089235] ? trace_hardirqs_off+0xb8/0x2c0 [ 37.093658] ? kasan_check_read+0x11/0x20 [ 37.097824] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.102236] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.106649] ? initcall_blacklisted+0x9a/0x1e0 [ 37.111238] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.116356] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.122067] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.127620] ? do_vfs_ioctl+0x201/0x1720 [ 37.131680] ? rcu_is_watching+0x8c/0x150 [ 37.135835] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.140155] ? ioctl_preallocate+0x300/0x300 [ 37.144562] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.150098] ? __fget_light+0x2f7/0x440 [ 37.154076] ? fget_raw+0x20/0x20 [ 37.157529] ? putname+0xf2/0x130 [ 37.160997] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.166041] ? kmem_cache_free+0x246/0x280 [ 37.170302] ? putname+0xf7/0x130 [ 37.173780] do_group_exit+0x177/0x440 [ 37.177675] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.182001] ? __ia32_sys_exit+0x50/0x50 [ 37.186068] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.191184] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.196723] ? ksys_ioctl+0x81/0xd0 [ 37.200378] __x64_sys_exit_group+0x3e/0x50 [ 37.204708] do_syscall_64+0x1b9/0x820 [ 37.208596] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.213969] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.218908] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.223751] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 37.228771] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.233791] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.238661] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.243850] RIP: 0033:0x43ef08 [ 37.247049] Code: Bad RIP value. [ 37.250408] RSP: 002b:00007fffc1217e28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.258125] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 37.265490] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.272779] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.280068] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.287356] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.294661] [ 37.294666] ====================================================== [ 37.294671] WARNING: possible circular locking dependency detected [ 37.294675] 4.19.0-rc2+ #225 Not tainted [ 37.294693] ------------------------------------------------------ [ 37.294698] syz-executor976/4700 is trying to acquire lock: [ 37.294701] 000000001c4953ce ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.294720] [ 37.294724] but task is already holding lock: [ 37.294727] 00000000f09b8507 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.294741] [ 37.294745] which lock already depends on the new lock. [ 37.294747] [ 37.294750] [ 37.294754] the existing dependency chain (in reverse order) is: [ 37.294756] [ 37.294759] -> #3 (report_lock){....}: [ 37.294787] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.294791] kasan_report+0x8e/0x110 [ 37.294795] __asan_report_load8_noabort+0x14/0x20 [ 37.294799] __schedule+0xf54/0x1df0 [ 37.294803] preempt_schedule_common+0x22/0x60 [ 37.294807] _cond_resched+0x1d/0x30 [ 37.294811] wait_for_completion+0xa5/0x8d0 [ 37.294815] __synchronize_srcu+0x189/0x240 [ 37.294819] synchronize_srcu+0x335/0x56f [ 37.294823] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.294827] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.294831] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.294835] kvm_put_kvm+0x73f/0x1060 [ 37.294839] kvm_vm_release+0x42/0x50 [ 37.294842] __fput+0x38a/0xa40 [ 37.294846] ____fput+0x15/0x20 [ 37.294849] task_work_run+0x1e8/0x2a0 [ 37.294853] do_exit+0x1ae4/0x26e0 [ 37.294857] do_group_exit+0x177/0x440 [ 37.294861] __x64_sys_exit_group+0x3e/0x50 [ 37.294864] do_syscall_64+0x1b9/0x820 [ 37.294888] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.294891] [ 37.294893] -> #2 (&rq->lock){-.-.}: [ 37.294907] _raw_spin_lock+0x2a/0x40 [ 37.294911] task_fork_fair+0x93/0x680 [ 37.294914] sched_fork+0x44b/0xbd0 [ 37.294918] copy_process+0x235e/0x7af0 [ 37.294922] _do_fork+0x1ca/0x1170 [ 37.294926] kernel_thread+0x34/0x40 [ 37.294929] rest_init+0x22/0xe4 [ 37.294933] start_kernel+0x913/0x94e [ 37.294938] x86_64_start_reservations+0x29/0x2b [ 37.294942] x86_64_start_kernel+0x76/0x79 [ 37.294946] secondary_startup_64+0xa4/0xb0 [ 37.294948] [ 37.294951] -> #1 (&p->pi_lock){-.-.}: [ 37.294965] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.294969] try_to_wake_up+0xd2/0x1250 [ 37.294973] wake_up_process+0x10/0x20 [ 37.294977] __up.isra.1+0x1c0/0x2a0 [ 37.294980] up+0x13c/0x1c0 [ 37.294984] __up_console_sem+0xbe/0x1b0 [ 37.294988] console_unlock+0x506/0x10e0 [ 37.294992] vprintk_emit+0x33a/0x910 [ 37.294996] vprintk_default+0x28/0x30 [ 37.294999] vprintk_func+0x7a/0x117 [ 37.295003] printk+0xa7/0xcf [ 37.295007] do_exit.cold.22+0x120/0x21f [ 37.295010] do_group_exit+0x177/0x440 [ 37.295015] __x64_sys_exit_group+0x3e/0x50 [ 37.295018] do_syscall_64+0x1b9/0x820 [ 37.295023] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.295025] [ 37.295027] -> #0 ((console_sem).lock){-...}: [ 37.295042] lock_acquire+0x1e4/0x4f0 [ 37.295046] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.295050] down_trylock+0x13/0x70 [ 37.295054] __down_trylock_console_sem+0xae/0x200 [ 37.295058] console_trylock+0x15/0xa0 [ 37.295062] vprintk_emit+0x31f/0x910 [ 37.295066] vprintk_default+0x28/0x30 [ 37.295069] vprintk_func+0x7a/0x117 [ 37.295073] printk+0xa7/0xcf [ 37.295077] kasan_report+0x9e/0x110 [ 37.295081] __asan_report_load8_noabort+0x14/0x20 [ 37.295085] __schedule+0xf54/0x1df0 [ 37.295089] preempt_schedule_common+0x22/0x60 [ 37.295093] _cond_resched+0x1d/0x30 [ 37.295097] wait_for_completion+0xa5/0x8d0 [ 37.295101] __synchronize_srcu+0x189/0x240 [ 37.295105] synchronize_srcu+0x335/0x56f [ 37.295110] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.295114] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.295118] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.295122] kvm_put_kvm+0x73f/0x1060 [ 37.295126] kvm_vm_release+0x42/0x50 [ 37.295129] __fput+0x38a/0xa40 [ 37.295133] ____fput+0x15/0x20 [ 37.295137] task_work_run+0x1e8/0x2a0 [ 37.295140] do_exit+0x1ae4/0x26e0 [ 37.295144] do_group_exit+0x177/0x440 [ 37.295148] __x64_sys_exit_group+0x3e/0x50 [ 37.295152] do_syscall_64+0x1b9/0x820 [ 37.295157] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.295159] [ 37.295163] other info that might help us debug this: [ 37.295165] [ 37.295168] Chain exists of: [ 37.295170] (console_sem).lock --> &rq->lock --> report_lock [ 37.295188] [ 37.295192] Possible unsafe locking scenario: [ 37.295195] [ 37.295199] CPU0 CPU1 [ 37.295203] ---- ---- [ 37.295205] lock(report_lock); [ 37.295214] lock(&rq->lock); [ 37.295224] lock(report_lock); [ 37.295231] lock((console_sem).lock); [ 37.295239] [ 37.295243] *** DEADLOCK *** [ 37.295245] [ 37.295249] 2 locks held by syz-executor976/4700: [ 37.295251] #0: 000000006f74d67a (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.295268] #1: 00000000f09b8507 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.295285] [ 37.295288] stack backtrace: [ 37.295294] CPU: 0 PID: 4700 Comm: syz-executor976 Not tainted 4.19.0-rc2+ #225 [ 37.295301] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.295304] Call Trace: [ 37.295307] dump_stack+0x1c9/0x2b4 [ 37.295312] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.295316] ? vprintk_func+0x100/0x117 [ 37.295321] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.295324] ? save_trace+0xe0/0x290 [ 37.295328] __lock_acquire+0x3449/0x5020 [ 37.295332] ? mark_held_locks+0x160/0x160 [ 37.295336] ? mark_held_locks+0x160/0x160 [ 37.295341] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.295345] ? is_bpf_text_address+0xd7/0x170 [ 37.295349] ? kernel_text_address+0x79/0xf0 [ 37.295353] ? __kernel_text_address+0xd/0x40 [ 37.295357] ? __save_stack_trace+0x8d/0xf0 [ 37.295361] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.295365] ? save_trace+0x290/0x290 [ 37.295369] ? save_stack_trace+0x1a/0x20 [ 37.295372] ? save_trace+0xe0/0x290 [ 37.295377] ? graph_lock+0x170/0x170 [ 37.295382] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.295386] lock_acquire+0x1e4/0x4f0 [ 37.295390] ? down_trylock+0x13/0x70 [ 37.295393] ? lock_release+0x9f0/0x9f0 [ 37.295397] ? trace_hardirqs_off+0xb8/0x2c0 [ 37.295401] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.295406] ? trace_hardirqs_off+0xb8/0x2c0 [ 37.295409] ? log_store+0x34f/0x4c0 [ 37.295413] ? vprintk_emit+0x31f/0x910 [ 37.295417] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.295421] ? down_trylock+0x13/0x70 [ 37.295425] down_trylock+0x13/0x70 [ 37.295429] __down_trylock_console_sem+0xae/0x200 [ 37.295433] console_trylock+0x15/0xa0 [ 37.295436] vprintk_emit+0x31f/0x910 [ 37.295440] ? wake_up_klogd+0x110/0x110 [ 37.295445] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.295449] ? kasan_check_read+0x11/0x20 [ 37.295453] ? rcu_is_watching+0x8c/0x150 [ 37.295456] ? rcu_pm_notify+0xc0/0xc0 [ 37.295460] ? lock_acquire+0x1e4/0x4f0 [ 37.295464] ? kasan_report+0x8e/0x110 [ 37.295468] ? __schedule+0xf54/0x1df0 [ 37.295471] vprintk_default+0x28/0x30 [ 37.295475] vprintk_func+0x7a/0x117 [ 37.295479] printk+0xa7/0xcf [ 37.295483] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.295487] ? kasan_check_write+0x14/0x20 [ 37.295491] ? do_raw_spin_lock+0xc1/0x200 [ 37.295495] ? do_raw_spin_lock+0xc1/0x200 [ 37.295498] kasan_report+0x9e/0x110 [ 37.295503] __asan_report_load8_noabort+0x14/0x20 [ 37.295506] __schedule+0xf54/0x1df0 [ 37.295510] ? __sched_text_start+0x8/0x8 [ 37.295515] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 37.295519] ? __call_srcu+0x7e7/0x1040 [ 37.295523] ? check_same_owner+0x340/0x340 [ 37.295527] ? mark_held_locks+0x160/0x160 [ 37.295531] ? find_held_lock+0x36/0x1c0 [ 37.295535] preempt_schedule_common+0x22/0x60 [ 37.295538] _cond_resched+0x1d/0x30 [ 37.295543] wait_for_completion+0xa5/0x8d0 [ 37.295547] ? wait_for_completion_interruptible+0x950/0x950 [ 37.295552] ? __lockdep_init_map+0x105/0x590 [ 37.295556] ? __init_waitqueue_head+0x9e/0x150 [ 37.295560] ? init_wait_entry+0x1c0/0x1c0 [ 37.295564] __synchronize_srcu+0x189/0x240 [ 37.295568] ? call_srcu+0x10/0x10 [ 37.295572] ? rcu_unexpedite_gp+0x20/0x20 [ 37.295576] synchronize_srcu+0x335/0x56f [ 37.295580] ? lock_downgrade+0x8f0/0x8f0 [ 37.295584] ? synchronize_srcu_expedited+0x20/0x20 [ 37.295588] ? kasan_check_read+0x11/0x20 [ 37.295593] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.295597] ? kasan_check_write+0x14/0x20 [ 37.295601] ? do_raw_spin_lock+0xc1/0x200 [ 37.295606] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.295619] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.295623] ? kvfree+0x61/0x70 [ 37.295627] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.295631] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.295635] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.295639] ? kvm_arch_sync_events+0x30/0x30 [ 37.295644] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.295649] ? mmu_notifier_unregister+0x474/0x600 [ 37.295653] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.295657] ? kfree+0x111/0x210 [ 37.295661] ? __mmu_notifier_register+0x30/0x30 [ 37.295665] ? __free_pages+0x10a/0x190 [ 37.295669] ? free_unref_page+0x930/0x930 [ 37.295673] kvm_put_kvm+0x73f/0x1060 [ 37.295677] ? kvm_write_guest_cached+0x40/0x40 [ 37.295681] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.295686] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.295690] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.295694] ? kasan_check_write+0x14/0x20 [ 37.295698] ? do_raw_spin_lock+0xc1/0x200 [ 37.295702] ? kvm_irqfd_release+0xdd/0x120 [ 37.295706] ? kvm_irqfd_release+0xdd/0x120 [ 37.295710] ? kvm_put_kvm+0x1060/0x1060 [ 37.295714] kvm_vm_release+0x42/0x50 [ 37.295717] __fput+0x38a/0xa40 [ 37.295721] ? __alloc_file+0x400/0x400 [ 37.295725] ? check_same_owner+0x340/0x340 [ 37.295729] ? kasan_check_write+0x14/0x20 [ 37.295733] ? do_raw_spin_lock+0xc1/0x200 [ 37.295736] ____fput+0x15/0x20 [ 37.295740] task_work_run+0x1e8/0x2a0 [ 37.295747] ? task_work_cancel+0x240/0x240 [ 37.295752] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.295756] ? switch_task_namespaces+0xa2/0xd0 [ 37.295760] do_exit+0x1ae4/0x26e0 [ 37.295764] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.295768] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.295772] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.295776] ? kfree+0x1d7/0x210 [ 37.295780] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.295785] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.295787] ? is_bpf_tex [ 37.295796] Lost 55 message(s)! [ 38.394837] Shutting down cpus with NMI [ 39.453513] Dumping ftrace buffer: [ 39.457046] (ftrace buffer empty) [ 39.460752] Kernel Offset: disabled [ 39.464382] Rebooting in 86400 seconds..