[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.195742] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 24.611806] random: sshd: uninitialized urandom read (32 bytes read) [ 24.946445] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.514164] random: sshd: uninitialized urandom read (32 bytes read) [ 30.890604] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.39' (ECDSA) to the list of known hosts. [ 36.496670] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.594778] 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.621156] ================================================================== [ 36.631051] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 36.637278] Read of size 8 at addr ffff8801bbfb0058 by task syz-executor912/4692 [ 36.644797] [ 36.646425] CPU: 0 PID: 4692 Comm: syz-executor912 Not tainted 4.19.0-rc2+ #220 [ 36.653873] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.663219] Call Trace: [ 36.665812] dump_stack+0x1c9/0x2b4 [ 36.669446] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.674647] ? printk+0xa7/0xcf [ 36.677927] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.682686] ? __schedule+0xf54/0x1df0 [ 36.686578] print_address_description+0x6c/0x20b [ 36.691425] ? __schedule+0xf54/0x1df0 [ 36.695325] kasan_report.cold.7+0x242/0x30d [ 36.699739] __asan_report_load8_noabort+0x14/0x20 [ 36.704668] __schedule+0xf54/0x1df0 [ 36.708385] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.713492] ? __sched_text_start+0x8/0x8 [ 36.717641] ? __call_srcu+0x7e7/0x1040 [ 36.721629] ? check_same_owner+0x340/0x340 [ 36.725950] ? mark_held_locks+0x160/0x160 [ 36.730186] ? find_held_lock+0x36/0x1c0 [ 36.734251] preempt_schedule_common+0x22/0x60 [ 36.738835] _cond_resched+0x1d/0x30 [ 36.742562] wait_for_completion+0xa5/0x8d0 [ 36.746887] ? wait_for_completion_interruptible+0x950/0x950 [ 36.752689] ? __lockdep_init_map+0x105/0x590 [ 36.757366] ? __init_waitqueue_head+0x9e/0x150 [ 36.762033] ? init_wait_entry+0x1c0/0x1c0 [ 36.766271] __synchronize_srcu+0x189/0x240 [ 36.770616] ? call_srcu+0x10/0x10 [ 36.774161] ? rcu_unexpedite_gp+0x20/0x20 [ 36.778406] synchronize_srcu+0x335/0x56f [ 36.782564] ? lock_downgrade+0x8f0/0x8f0 [ 36.786713] ? synchronize_srcu_expedited+0x20/0x20 [ 36.791733] ? kasan_check_read+0x11/0x20 [ 36.795883] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.800473] ? kasan_check_write+0x14/0x20 [ 36.804710] ? do_raw_spin_lock+0xc1/0x200 [ 36.808947] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.814661] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.820112] ? kvfree+0x61/0x70 [ 36.823392] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.828412] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.832482] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.836888] ? kvm_arch_sync_events+0x30/0x30 [ 36.841389] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.846926] ? mmu_notifier_unregister+0x474/0x600 [ 36.851855] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.856264] ? kfree+0x111/0x210 [ 36.859638] ? __mmu_notifier_register+0x30/0x30 [ 36.864404] ? __free_pages+0x10a/0x190 [ 36.868380] ? free_unref_page+0x930/0x930 [ 36.872622] kvm_put_kvm+0x73f/0x1060 [ 36.876563] ? kvm_write_guest_cached+0x40/0x40 [ 36.881219] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.885710] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.890188] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.895002] ? kasan_check_write+0x14/0x20 [ 36.899232] ? do_raw_spin_lock+0xc1/0x200 [ 36.903479] ? kvm_irqfd_release+0xdd/0x120 [ 36.907803] ? kvm_irqfd_release+0xdd/0x120 [ 36.912122] ? kvm_put_kvm+0x1060/0x1060 [ 36.916181] kvm_vm_release+0x42/0x50 [ 36.919977] __fput+0x38a/0xa40 [ 36.923256] ? __alloc_file+0x400/0x400 [ 36.927721] ? check_same_owner+0x340/0x340 [ 36.932056] ? kasan_check_write+0x14/0x20 [ 36.936289] ? do_raw_spin_lock+0xc1/0x200 [ 36.940521] ____fput+0x15/0x20 [ 36.943799] task_work_run+0x1e8/0x2a0 [ 36.947688] ? task_work_cancel+0x240/0x240 [ 36.952015] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.957555] ? switch_task_namespaces+0xa2/0xd0 [ 36.962224] do_exit+0x1ae4/0x26e0 [ 36.965765] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.970437] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.974690] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.979704] ? kfree+0x1d7/0x210 [ 36.983077] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.987327] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.993042] ? is_bpf_text_address+0xd7/0x170 [ 36.997544] ? kernel_text_address+0x79/0xf0 [ 37.001953] ? __kernel_text_address+0xd/0x40 [ 37.006460] ? unwind_get_return_address+0x61/0xa0 [ 37.011391] ? __save_stack_trace+0x8d/0xf0 [ 37.015718] ? save_stack+0xa9/0xd0 [ 37.019344] ? save_stack+0x43/0xd0 [ 37.022969] ? __kasan_slab_free+0x11a/0x170 [ 37.027372] ? kasan_slab_free+0xe/0x10 [ 37.031344] ? putname+0xf2/0x130 [ 37.034795] ? __x64_sys_openat+0x9d/0x100 [ 37.039029] ? do_syscall_64+0x1b9/0x820 [ 37.043092] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.048466] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.052871] ? kasan_check_read+0x11/0x20 [ 37.057037] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.061457] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.065868] ? initcall_blacklisted+0x9a/0x1e0 [ 37.070461] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.075571] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.081285] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.086822] ? do_vfs_ioctl+0x201/0x1720 [ 37.090880] ? rcu_is_watching+0x8c/0x150 [ 37.095027] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.099390] ? ioctl_preallocate+0x300/0x300 [ 37.103797] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.109330] ? __fget_light+0x2f7/0x440 [ 37.113305] ? fget_raw+0x20/0x20 [ 37.116754] ? putname+0xf2/0x130 [ 37.120207] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.125220] ? kmem_cache_free+0x246/0x280 [ 37.129465] ? putname+0xf7/0x130 [ 37.132924] do_group_exit+0x177/0x440 [ 37.136813] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.141131] ? __ia32_sys_exit+0x50/0x50 [ 37.145189] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.150296] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.155835] ? ksys_ioctl+0x81/0xd0 [ 37.159477] __x64_sys_exit_group+0x3e/0x50 [ 37.163803] do_syscall_64+0x1b9/0x820 [ 37.167693] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.173060] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.177989] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.182829] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.187847] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.192862] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.197708] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.202897] RIP: 0033:0x43f028 [ 37.206094] Code: Bad RIP value. [ 37.209463] RSP: 002b:00007fffacc55128 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.217170] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 37.224433] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.231702] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.238981] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.246246] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 37.253520] [ 37.255143] Allocated by task 4692: [ 37.258774] save_stack+0x43/0xd0 [ 37.262222] kasan_kmalloc+0xc4/0xe0 [ 37.265951] kasan_slab_alloc+0x12/0x20 [ 37.269923] kmem_cache_alloc+0x12e/0x710 [ 37.274073] vmx_create_vcpu+0xcf/0x2830 [ 37.278129] kvm_arch_vcpu_create+0xe5/0x220 [ 37.282535] kvm_vm_ioctl+0x488/0x1d80 [ 37.286426] do_vfs_ioctl+0x1de/0x1720 [ 37.290317] ksys_ioctl+0xa9/0xd0 [ 37.293769] __x64_sys_ioctl+0x73/0xb0 [ 37.297674] do_syscall_64+0x1b9/0x820 [ 37.301564] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.306744] [ 37.308368] Freed by task 4692: [ 37.311650] save_stack+0x43/0xd0 [ 37.315104] __kasan_slab_free+0x11a/0x170 [ 37.319339] kasan_slab_free+0xe/0x10 [ 37.323134] kmem_cache_free+0x86/0x280 [ 37.327103] vmx_free_vcpu+0x26b/0x300 [ 37.331006] kvm_arch_destroy_vm+0x365/0x7c0 [ 37.335414] kvm_put_kvm+0x73f/0x1060 [ 37.339210] kvm_vm_release+0x42/0x50 [ 37.343007] __fput+0x38a/0xa40 [ 37.346285] ____fput+0x15/0x20 [ 37.349564] task_work_run+0x1e8/0x2a0 [ 37.353447] do_exit+0x1ae4/0x26e0 [ 37.356991] do_group_exit+0x177/0x440 [ 37.360878] __x64_sys_exit_group+0x3e/0x50 [ 37.365201] do_syscall_64+0x1b9/0x820 [ 37.369089] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.374277] [ 37.375908] The buggy address belongs to the object at ffff8801bbfb0040 [ 37.375908] which belongs to the cache kvm_vcpu of size 23872 [ 37.388489] The buggy address is located 24 bytes inside of [ 37.388489] 23872-byte region [ffff8801bbfb0040, ffff8801bbfb5d80) [ 37.400456] The buggy address belongs to the page: [ 37.405392] page:ffffea0006efec00 count:1 mapcount:0 mapping:ffff8801d86ae000 index:0x0 compound_mapcount: 0 [ 37.415366] flags: 0x2fffc0000008100(slab|head) [ 37.420041] raw: 02fffc0000008100 ffff8801d5160d48 ffff8801d5160d48 ffff8801d86ae000 [ 37.427929] raw: 0000000000000000 ffff8801bbfb0040 0000000100000001 0000000000000000 [ 37.435801] page dumped because: kasan: bad access detected [ 37.441500] [ 37.443119] Memory state around the buggy address: [ 37.448052] ffff8801bbfaff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.455410] ffff8801bbfaff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.462768] >ffff8801bbfb0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.470117] ^ [ 37.476346] ffff8801bbfb0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.483708] ffff8801bbfb0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.491061] ================================================================== [ 37.498411] Kernel panic - not syncing: panic_on_warn set ... [ 37.498411] [ 37.505789] CPU: 0 PID: 4692 Comm: syz-executor912 Tainted: G B 4.19.0-rc2+ #220 [ 37.514619] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.523979] Call Trace: [ 37.526580] dump_stack+0x1c9/0x2b4 [ 37.530221] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.535414] ? lock_downgrade+0x8f0/0x8f0 [ 37.539569] ? __schedule+0xf54/0x1df0 [ 37.543469] panic+0x238/0x4e7 [ 37.546668] ? add_taint.cold.5+0x16/0x16 [ 37.550822] ? print_shadow_for_address+0xba/0x116 [ 37.555748] ? trace_hardirqs_off+0xaf/0x2b0 [ 37.560162] ? trace_hardirqs_off+0x77/0x2b0 [ 37.564594] ? __schedule+0xf54/0x1df0 [ 37.568499] kasan_end_report+0x47/0x4f [ 37.572518] kasan_report.cold.7+0x76/0x30d [ 37.576856] __asan_report_load8_noabort+0x14/0x20 [ 37.581803] __schedule+0xf54/0x1df0 [ 37.585541] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.590659] ? __sched_text_start+0x8/0x8 [ 37.594813] ? __call_srcu+0x7e7/0x1040 [ 37.598822] ? check_same_owner+0x340/0x340 [ 37.603142] ? mark_held_locks+0x160/0x160 [ 37.607380] ? find_held_lock+0x36/0x1c0 [ 37.611444] preempt_schedule_common+0x22/0x60 [ 37.616037] _cond_resched+0x1d/0x30 [ 37.619757] wait_for_completion+0xa5/0x8d0 [ 37.624081] ? wait_for_completion_interruptible+0x950/0x950 [ 37.629884] ? __lockdep_init_map+0x105/0x590 [ 37.634381] ? __init_waitqueue_head+0x9e/0x150 [ 37.639054] ? init_wait_entry+0x1c0/0x1c0 [ 37.643293] __synchronize_srcu+0x189/0x240 [ 37.647617] ? call_srcu+0x10/0x10 [ 37.651183] ? rcu_unexpedite_gp+0x20/0x20 [ 37.655428] synchronize_srcu+0x335/0x56f [ 37.659590] ? lock_downgrade+0x8f0/0x8f0 [ 37.663735] ? synchronize_srcu_expedited+0x20/0x20 [ 37.668750] ? kasan_check_read+0x11/0x20 [ 37.672900] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.677490] ? kasan_check_write+0x14/0x20 [ 37.681736] ? do_raw_spin_lock+0xc1/0x200 [ 37.685979] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.691695] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.697146] ? kvfree+0x61/0x70 [ 37.700425] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.705464] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.709529] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.713941] ? kvm_arch_sync_events+0x30/0x30 [ 37.718439] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.723998] ? mmu_notifier_unregister+0x474/0x600 [ 37.728929] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.733378] ? kfree+0x111/0x210 [ 37.736750] ? __mmu_notifier_register+0x30/0x30 [ 37.741619] ? __free_pages+0x10a/0x190 [ 37.745602] ? free_unref_page+0x930/0x930 [ 37.749851] kvm_put_kvm+0x73f/0x1060 [ 37.753688] ? kvm_write_guest_cached+0x40/0x40 [ 37.758363] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.762864] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.767723] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.772309] ? kasan_check_write+0x14/0x20 [ 37.776634] ? do_raw_spin_lock+0xc1/0x200 [ 37.780871] ? kvm_irqfd_release+0xdd/0x120 [ 37.785192] ? kvm_irqfd_release+0xdd/0x120 [ 37.789515] ? kvm_put_kvm+0x1060/0x1060 [ 37.793579] kvm_vm_release+0x42/0x50 [ 37.797382] __fput+0x38a/0xa40 [ 37.800666] ? __alloc_file+0x400/0x400 [ 37.804648] ? check_same_owner+0x340/0x340 [ 37.808976] ? kasan_check_write+0x14/0x20 [ 37.813212] ? do_raw_spin_lock+0xc1/0x200 [ 37.817458] ____fput+0x15/0x20 [ 37.820760] task_work_run+0x1e8/0x2a0 [ 37.824645] ? task_work_cancel+0x240/0x240 [ 37.828971] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.834511] ? switch_task_namespaces+0xa2/0xd0 [ 37.839184] do_exit+0x1ae4/0x26e0 [ 37.842730] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.847538] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.851784] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.856804] ? kfree+0x1d7/0x210 [ 37.860172] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.864412] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.870127] ? is_bpf_text_address+0xd7/0x170 [ 37.874896] ? kernel_text_address+0x79/0xf0 [ 37.879301] ? __kernel_text_address+0xd/0x40 [ 37.883795] ? unwind_get_return_address+0x61/0xa0 [ 37.888725] ? __save_stack_trace+0x8d/0xf0 [ 37.893054] ? save_stack+0xa9/0xd0 [ 37.896679] ? save_stack+0x43/0xd0 [ 37.900306] ? __kasan_slab_free+0x11a/0x170 [ 37.904711] ? kasan_slab_free+0xe/0x10 [ 37.908687] ? putname+0xf2/0x130 [ 37.912150] ? __x64_sys_openat+0x9d/0x100 [ 37.916388] ? do_syscall_64+0x1b9/0x820 [ 37.920461] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.925825] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.930231] ? kasan_check_read+0x11/0x20 [ 37.934381] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.938788] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.943197] ? initcall_blacklisted+0x9a/0x1e0 [ 37.947785] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.952890] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.958603] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.964140] ? do_vfs_ioctl+0x201/0x1720 [ 37.968200] ? rcu_is_watching+0x8c/0x150 [ 37.972346] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.976676] ? ioctl_preallocate+0x300/0x300 [ 37.981088] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.986627] ? __fget_light+0x2f7/0x440 [ 37.990602] ? fget_raw+0x20/0x20 [ 37.994059] ? putname+0xf2/0x130 [ 37.997518] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.002537] ? kmem_cache_free+0x246/0x280 [ 38.006779] ? putname+0xf7/0x130 [ 38.010234] do_group_exit+0x177/0x440 [ 38.014124] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.018443] ? __ia32_sys_exit+0x50/0x50 [ 38.022516] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.027619] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.033157] ? ksys_ioctl+0x81/0xd0 [ 38.036784] __x64_sys_exit_group+0x3e/0x50 [ 38.041106] do_syscall_64+0x1b9/0x820 [ 38.045022] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.050387] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.055317] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.060162] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 38.065180] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.070197] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.075043] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.080234] RIP: 0033:0x43f028 [ 38.083438] Code: Bad RIP value. [ 38.086810] RSP: 002b:00007fffacc55128 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.094534] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 38.101805] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.109071] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.116341] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.123629] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 38.130903] [ 38.130909] ====================================================== [ 38.130914] WARNING: possible circular locking dependency detected [ 38.130918] 4.19.0-rc2+ #220 Not tainted [ 38.130924] ------------------------------------------------------ [ 38.130929] syz-executor912/4692 is trying to acquire lock: [ 38.130932] 000000008c684261 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 38.130948] [ 38.130952] but task is already holding lock: [ 38.130955] 00000000df8cf949 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.130969] [ 38.130974] which lock already depends on the new lock. [ 38.130976] [ 38.130979] [ 38.130984] the existing dependency chain (in reverse order) is: [ 38.130986] [ 38.130988] -> #3 (report_lock){....}: [ 38.131003] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.131006] kasan_report+0x8e/0x110 [ 38.131011] __asan_report_load8_noabort+0x14/0x20 [ 38.131015] __schedule+0xf54/0x1df0 [ 38.131019] preempt_schedule_common+0x22/0x60 [ 38.131023] _cond_resched+0x1d/0x30 [ 38.131027] wait_for_completion+0xa5/0x8d0 [ 38.131031] __synchronize_srcu+0x189/0x240 [ 38.131035] synchronize_srcu+0x335/0x56f [ 38.131040] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.131044] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.131049] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.131053] kvm_put_kvm+0x73f/0x1060 [ 38.131056] kvm_vm_release+0x42/0x50 [ 38.131060] __fput+0x38a/0xa40 [ 38.131064] ____fput+0x15/0x20 [ 38.131067] task_work_run+0x1e8/0x2a0 [ 38.131071] do_exit+0x1ae4/0x26e0 [ 38.131075] do_group_exit+0x177/0x440 [ 38.131079] __x64_sys_exit_group+0x3e/0x50 [ 38.131083] do_syscall_64+0x1b9/0x820 [ 38.131088] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.131090] [ 38.131093] -> #2 (&rq->lock){-.-.}: [ 38.131107] _raw_spin_lock+0x2a/0x40 [ 38.131111] task_fork_fair+0x93/0x680 [ 38.131115] sched_fork+0x44b/0xbd0 [ 38.131119] copy_process+0x235e/0x7ad0 [ 38.131122] _do_fork+0x1ca/0x1170 [ 38.131126] kernel_thread+0x34/0x40 [ 38.131130] rest_init+0x22/0xe4 [ 38.131134] start_kernel+0x913/0x94e [ 38.131138] x86_64_start_reservations+0x29/0x2b [ 38.131142] x86_64_start_kernel+0x76/0x79 [ 38.131146] secondary_startup_64+0xa4/0xb0 [ 38.131149] [ 38.131151] -> #1 (&p->pi_lock){-.-.}: [ 38.131165] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.131169] try_to_wake_up+0xd2/0x1250 [ 38.131173] wake_up_process+0x10/0x20 [ 38.131177] __up.isra.1+0x1c0/0x2a0 [ 38.131181] up+0x13c/0x1c0 [ 38.131184] __up_console_sem+0xbe/0x1b0 [ 38.131188] console_unlock+0x506/0x10d0 [ 38.131192] vprintk_emit+0x33a/0x910 [ 38.131196] vprintk_default+0x28/0x30 [ 38.131200] vprintk_func+0x7a/0x117 [ 38.131203] printk+0xa7/0xcf [ 38.131207] load_umh+0x51/0xbd [ 38.131211] do_one_initcall+0x127/0x838 [ 38.131215] kernel_init_freeable+0x4bb/0x5ae [ 38.131219] kernel_init+0x11/0x1b3 [ 38.131223] ret_from_fork+0x3a/0x50 [ 38.131225] [ 38.131227] -> #0 ((console_sem).lock){-...}: [ 38.131242] lock_acquire+0x1e4/0x4f0 [ 38.131246] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.131250] down_trylock+0x13/0x70 [ 38.131254] __down_trylock_console_sem+0xae/0x200 [ 38.131258] console_trylock+0x15/0xa0 [ 38.131262] vprintk_emit+0x31f/0x910 [ 38.131266] vprintk_default+0x28/0x30 [ 38.131270] vprintk_func+0x7a/0x117 [ 38.131273] printk+0xa7/0xcf [ 38.131277] kasan_report+0x9e/0x110 [ 38.131281] __asan_report_load8_noabort+0x14/0x20 [ 38.131285] __schedule+0xf54/0x1df0 [ 38.131290] preempt_schedule_common+0x22/0x60 [ 38.131293] _cond_resched+0x1d/0x30 [ 38.131298] wait_for_completion+0xa5/0x8d0 [ 38.131302] __synchronize_srcu+0x189/0x240 [ 38.131306] synchronize_srcu+0x335/0x56f [ 38.131311] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.131315] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.131319] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.131323] kvm_put_kvm+0x73f/0x1060 [ 38.131327] kvm_vm_release+0x42/0x50 [ 38.131330] __fput+0x38a/0xa40 [ 38.131334] ____fput+0x15/0x20 [ 38.131338] task_work_run+0x1e8/0x2a0 [ 38.131341] do_exit+0x1ae4/0x26e0 [ 38.131345] do_group_exit+0x177/0x440 [ 38.131350] __x64_sys_exit_group+0x3e/0x50 [ 38.131354] do_syscall_64+0x1b9/0x820 [ 38.131358] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.131360] [ 38.131365] other info that might help us debug this: [ 38.131367] [ 38.131370] Chain exists of: [ 38.131372] (console_sem).lock --> &rq->lock --> report_lock [ 38.131390] [ 38.131394] Possible unsafe locking scenario: [ 38.131397] [ 38.131401] CPU0 CPU1 [ 38.131405] ---- ---- [ 38.131407] lock(report_lock); [ 38.131416] lock(&rq->lock); [ 38.131426] lock(report_lock); [ 38.131434] lock((console_sem).lock); [ 38.131442] [ 38.131445] *** DEADLOCK *** [ 38.131447] [ 38.131460] 2 locks held by syz-executor912/4692: [ 38.131462] #0: 0000000097207ae7 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 38.131479] #1: 00000000df8cf949 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.131496] [ 38.131500] stack backtrace: [ 38.131506] CPU: 0 PID: 4692 Comm: syz-executor912 Not tainted 4.19.0-rc2+ #220 [ 38.131513] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.131516] Call Trace: [ 38.131520] dump_stack+0x1c9/0x2b4 [ 38.131525] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.131529] ? vprintk_func+0x100/0x117 [ 38.131534] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 38.131538] ? save_trace+0xe0/0x290 [ 38.131542] __lock_acquire+0x3449/0x5020 [ 38.131546] ? mark_held_locks+0x160/0x160 [ 38.131550] ? mark_held_locks+0x160/0x160 [ 38.131554] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 38.131564] ? is_bpf_text_address+0xd7/0x170 [ 38.131569] ? kernel_text_address+0x79/0xf0 [ 38.131573] ? __kernel_text_address+0xd/0x40 [ 38.131577] ? __save_stack_trace+0x8d/0xf0 [ 38.131581] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 38.131585] ? save_trace+0x290/0x290 [ 38.131589] ? save_stack_trace+0x1a/0x20 [ 38.131593] ? save_trace+0xe0/0x290 [ 38.131597] ? graph_lock+0x170/0x170 [ 38.131602] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.131606] lock_acquire+0x1e4/0x4f0 [ 38.131610] ? down_trylock+0x13/0x70 [ 38.131614] ? lock_release+0x9f0/0x9f0 [ 38.131618] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.131622] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.131626] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.131630] ? log_store+0x34f/0x4c0 [ 38.131634] ? vprintk_emit+0x31f/0x910 [ 38.131638] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.131642] ? down_trylock+0x13/0x70 [ 38.131646] down_trylock+0x13/0x70 [ 38.131651] __down_trylock_console_sem+0xae/0x200 [ 38.131655] console_trylock+0x15/0xa0 [ 38.131658] vprintk_emit+0x31f/0x910 [ 38.131662] ? wake_up_klogd+0x110/0x110 [ 38.131667] ? run_rebalance_domains+0x4c0/0x4c0 [ 38.131671] ? kasan_check_read+0x11/0x20 [ 38.131675] ? rcu_is_watching+0x8c/0x150 [ 38.131679] ? rcu_pm_notify+0xc0/0xc0 [ 38.131683] ? lock_acquire+0x1e4/0x4f0 [ 38.131687] ? kasan_report+0x8e/0x110 [ 38.131691] ? __schedule+0xf54/0x1df0 [ 38.131694] vprintk_default+0x28/0x30 [ 38.131698] vprintk_func+0x7a/0x117 [ 38.131702] printk+0xa7/0xcf [ 38.131706] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.131710] ? kasan_check_write+0x14/0x20 [ 38.131714] ? do_raw_spin_lock+0xc1/0x200 [ 38.131718] ? do_raw_spin_lock+0xc1/0x200 [ 38.131722] kasan_report+0x9e/0x110 [ 38.131726] __asan_report_load8_noabort+0x14/0x20 [ 38.131730] __schedule+0xf54/0x1df0 [ 38.131735] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.131739] ? __sched_text_start+0x8/0x8 [ 38.131743] ? __call_srcu+0x7e7/0x1040 [ 38.131747] ? check_same_owner+0x340/0x340 [ 38.131751] ? mark_held_locks+0x160/0x160 [ 38.131755] ? find_held_lock+0x36/0x1c0 [ 38.131759] preempt_schedule_common+0x22/0x60 [ 38.131763] _cond_resched+0x1d/0x30 [ 38.131767] wait_for_completion+0xa5/0x8d0 [ 38.131772] ? wait_for_completion_interruptible+0x950/0x950 [ 38.131777] ? __lockdep_init_map+0x105/0x590 [ 38.131781] ? __init_waitqueue_head+0x9e/0x150 [ 38.131785] ? init_wait_entry+0x1c0/0x1c0 [ 38.131789] __synchronize_srcu+0x189/0x240 [ 38.131793] ? call_srcu+0x10/0x10 [ 38.131797] ? rcu_unexpedite_gp+0x20/0x20 [ 38.131801] synchronize_srcu+0x335/0x56f [ 38.131805] ? lock_downgrade+0x8f0/0x8f0 [ 38.131809] ? synchronize_srcu_expedited+0x20/0x20 [ 38.131814] ? kasan_check_read+0x11/0x20 [ 38.131818] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.131822] ? kasan_check_write+0x14/0x20 [ 38.131826] ? do_raw_spin_lock+0xc1/0x200 [ 38.131831] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.131836] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.131840] ? kvfree+0x61/0x70 [ 38.131844] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.131848] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.131853] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.131857] ? kvm_arch_sync_events+0x30/0x30 [ 38.131862] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.131867] ? mmu_notifier_unregister+0x474/0x600 [ 38.131871] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.131874] ? kfree+0x111/0x210 [ 38.131879] ? __mmu_notifier_register+0x30/0x30 [ 38.131883] ? __free_pages+0x10a/0x190 [ 38.131887] ? free_unref_page+0x930/0x930 [ 38.131890] kvm_put_kvm+0x73f/0x1060 [ 38.131895] ? kvm_write_guest_cached+0x40/0x40 [ 38.131899] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.131903] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.131907] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.131912] ? kasan_check_write+0x14/0x20 [ 38.131916] ? do_raw_spin_lock+0xc1/0x200 [ 38.131920] ? kvm_irqfd_release+0xdd/0x120 [ 38.131924] ? kvm_irqfd_release+0xdd/0x120 [ 38.131928] ? kvm_put_kvm+0x1060/0x1060 [ 38.131932] kvm_vm_release+0x42/0x50 [ 38.131935] __fput+0x38a/0xa40 [ 38.131939] ? __alloc_file+0x400/0x400 [ 38.131943] ? check_same_owner+0x340/0x340 [ 38.131947] ? kasan_check_write+0x14/0x20 [ 38.131951] ? do_raw_spin_lock+0xc1/0x200 [ 38.131955] ____fput+0x15/0x20 [ 38.131959] task_work_run+0x1e8/0x2a0 [ 38.131963] ? task_work_cancel+0x240/0x240 [ 38.131968] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.131972] ? switch_task_namespaces+0xa2/0xd0 [ 38.131976] do_exit+0x1ae4/0x26e0 [ 38.131980] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.131984] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.131989] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.131992] ? kfree+0x1d7/0x210 [ 38.131997] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.132001] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.132006] ? is_bpf_text_address+0xd7/0x170 [ 38.132008] ? [ 38.132016] Lost 54 message(s)! [ 39.194279] Shutting down cpus with NMI [ 40.255350] Dumping ftrace buffer: [ 40.258873] (ftrace buffer empty) [ 40.262564] Kernel Offset: disabled [ 40.266173] Rebooting in 86400 seconds..