[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.919025] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.750002] random: sshd: uninitialized urandom read (32 bytes read) [ 30.131080] random: sshd: uninitialized urandom read (32 bytes read) [ 30.710399] random: sshd: uninitialized urandom read (32 bytes read) [ 30.890624] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.9' (ECDSA) to the list of known hosts. [ 36.677163] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.775261] 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.799500] ================================================================== [ 36.809384] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 36.815607] Read of size 8 at addr ffff8801b5c98058 by task syz-executor972/4678 [ 36.823144] [ 36.824803] CPU: 0 PID: 4678 Comm: syz-executor972 Not tainted 4.19.0-rc1+ #216 [ 36.832256] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.841596] Call Trace: [ 36.844180] dump_stack+0x1c9/0x2b4 [ 36.847819] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.853009] ? printk+0xa7/0xcf [ 36.856285] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.861040] ? __schedule+0xf54/0x1df0 [ 36.864924] print_address_description+0x6c/0x20b [ 36.869767] ? __schedule+0xf54/0x1df0 [ 36.873657] kasan_report.cold.7+0x242/0x30d [ 36.878069] __asan_report_load8_noabort+0x14/0x20 [ 36.882994] __schedule+0xf54/0x1df0 [ 36.886707] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.891818] ? __sched_text_start+0x8/0x8 [ 36.895983] ? __call_srcu+0x7e7/0x1040 [ 36.899962] ? check_same_owner+0x340/0x340 [ 36.904279] ? mark_held_locks+0x160/0x160 [ 36.908517] ? find_held_lock+0x36/0x1c0 [ 36.912584] preempt_schedule_common+0x22/0x60 [ 36.917166] _cond_resched+0x1d/0x30 [ 36.920905] wait_for_completion+0xa5/0x8d0 [ 36.925240] ? wait_for_completion_interruptible+0x950/0x950 [ 36.931034] ? __lockdep_init_map+0x105/0x590 [ 36.935545] ? __init_waitqueue_head+0x9e/0x150 [ 36.940214] ? init_wait_entry+0x1c0/0x1c0 [ 36.944449] __synchronize_srcu+0x189/0x240 [ 36.948769] ? call_srcu+0x10/0x10 [ 36.952310] ? rcu_unexpedite_gp+0x20/0x20 [ 36.956553] synchronize_srcu+0x335/0x56f [ 36.960728] ? lock_downgrade+0x8f0/0x8f0 [ 36.964885] ? synchronize_srcu_expedited+0x20/0x20 [ 36.969901] ? kasan_check_read+0x11/0x20 [ 36.974047] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.978626] ? kasan_check_write+0x14/0x20 [ 36.982863] ? do_raw_spin_lock+0xc1/0x200 [ 36.987106] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.992820] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.998271] ? kvfree+0x61/0x70 [ 37.001552] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.006566] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.010626] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.015033] ? kvm_arch_sync_events+0x30/0x30 [ 37.019539] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.025074] ? mmu_notifier_unregister+0x474/0x600 [ 37.029999] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.034400] ? kfree+0x111/0x210 [ 37.037766] ? __mmu_notifier_register+0x30/0x30 [ 37.042561] ? __free_pages+0x10a/0x190 [ 37.046545] ? free_unref_page+0x930/0x930 [ 37.050788] kvm_put_kvm+0x73f/0x1060 [ 37.054598] ? kvm_write_guest_cached+0x40/0x40 [ 37.059267] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.063762] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.068257] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.072847] ? kasan_check_write+0x14/0x20 [ 37.077079] ? do_raw_spin_lock+0xc1/0x200 [ 37.081317] ? kvm_irqfd_release+0xdd/0x120 [ 37.085633] ? kvm_irqfd_release+0xdd/0x120 [ 37.089954] ? kvm_put_kvm+0x1060/0x1060 [ 37.094013] kvm_vm_release+0x42/0x50 [ 37.097820] __fput+0x38a/0xa40 [ 37.101103] ? __alloc_file+0x400/0x400 [ 37.105078] ? check_same_owner+0x340/0x340 [ 37.109412] ? kasan_check_write+0x14/0x20 [ 37.113660] ? do_raw_spin_lock+0xc1/0x200 [ 37.117891] ____fput+0x15/0x20 [ 37.121170] task_work_run+0x1e8/0x2a0 [ 37.125055] ? task_work_cancel+0x240/0x240 [ 37.129376] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.134914] ? switch_task_namespaces+0xa2/0xd0 [ 37.139601] do_exit+0x1ae4/0x26e0 [ 37.143174] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.147850] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.152083] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.157109] ? kfree+0x1d7/0x210 [ 37.160477] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.164718] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.170428] ? is_bpf_text_address+0xd7/0x170 [ 37.174920] ? kernel_text_address+0x79/0xf0 [ 37.179327] ? __kernel_text_address+0xd/0x40 [ 37.183826] ? unwind_get_return_address+0x61/0xa0 [ 37.188754] ? __save_stack_trace+0x8d/0xf0 [ 37.193078] ? save_stack+0xa9/0xd0 [ 37.196698] ? save_stack+0x43/0xd0 [ 37.200318] ? __kasan_slab_free+0x11a/0x170 [ 37.204725] ? kasan_slab_free+0xe/0x10 [ 37.208710] ? putname+0xf2/0x130 [ 37.212175] ? __x64_sys_openat+0x9d/0x100 [ 37.216407] ? do_syscall_64+0x1b9/0x820 [ 37.220465] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.225831] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.230234] ? kasan_check_read+0x11/0x20 [ 37.234381] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.238784] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.243198] ? initcall_blacklisted+0x9a/0x1e0 [ 37.247783] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.252895] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.258604] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.264137] ? do_vfs_ioctl+0x201/0x1720 [ 37.268195] ? rcu_is_watching+0x8c/0x150 [ 37.272340] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.276692] ? ioctl_preallocate+0x300/0x300 [ 37.281102] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.286637] ? __fget_light+0x2f7/0x440 [ 37.290610] ? fget_raw+0x20/0x20 [ 37.294058] ? putname+0xf2/0x130 [ 37.297516] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.302534] ? kmem_cache_free+0x246/0x280 [ 37.306765] ? putname+0xf7/0x130 [ 37.310218] do_group_exit+0x177/0x440 [ 37.314105] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.318425] ? __ia32_sys_exit+0x50/0x50 [ 37.322481] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.327589] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.333123] ? ksys_ioctl+0x81/0xd0 [ 37.336749] __x64_sys_exit_group+0x3e/0x50 [ 37.341070] do_syscall_64+0x1b9/0x820 [ 37.344954] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.350319] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.355245] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.360085] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.365118] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.370135] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.375008] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.380222] RIP: 0033:0x43ecf8 [ 37.383414] Code: Bad RIP value. [ 37.386774] RSP: 002b:00007ffd577b3f28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.394520] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 37.401786] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.409053] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.416348] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.423612] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.430879] [ 37.432520] Allocated by task 4678: [ 37.436149] save_stack+0x43/0xd0 [ 37.439618] kasan_kmalloc+0xc4/0xe0 [ 37.443325] kasan_slab_alloc+0x12/0x20 [ 37.447293] kmem_cache_alloc+0x12e/0x710 [ 37.451437] vmx_create_vcpu+0xcf/0x2830 [ 37.455493] kvm_arch_vcpu_create+0xe5/0x220 [ 37.459922] kvm_vm_ioctl+0x488/0x1d80 [ 37.463807] do_vfs_ioctl+0x1de/0x1720 [ 37.467696] ksys_ioctl+0xa9/0xd0 [ 37.471147] __x64_sys_ioctl+0x73/0xb0 [ 37.475035] do_syscall_64+0x1b9/0x820 [ 37.478922] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.484100] [ 37.485719] Freed by task 4678: [ 37.488998] save_stack+0x43/0xd0 [ 37.492463] __kasan_slab_free+0x11a/0x170 [ 37.496695] kasan_slab_free+0xe/0x10 [ 37.500489] kmem_cache_free+0x86/0x280 [ 37.504471] vmx_free_vcpu+0x26b/0x300 [ 37.508360] kvm_arch_destroy_vm+0x365/0x7c0 [ 37.512769] kvm_put_kvm+0x73f/0x1060 [ 37.516568] kvm_vm_release+0x42/0x50 [ 37.520361] __fput+0x38a/0xa40 [ 37.523633] ____fput+0x15/0x20 [ 37.526912] task_work_run+0x1e8/0x2a0 [ 37.530800] do_exit+0x1ae4/0x26e0 [ 37.534339] do_group_exit+0x177/0x440 [ 37.538227] __x64_sys_exit_group+0x3e/0x50 [ 37.542561] do_syscall_64+0x1b9/0x820 [ 37.546445] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.551620] [ 37.553243] The buggy address belongs to the object at ffff8801b5c98040 [ 37.553243] which belongs to the cache kvm_vcpu of size 23872 [ 37.565810] The buggy address is located 24 bytes inside of [ 37.565810] 23872-byte region [ffff8801b5c98040, ffff8801b5c9dd80) [ 37.577766] The buggy address belongs to the page: [ 37.582692] page:ffffea0006d72600 count:1 mapcount:0 mapping:ffff8801d528d9c0 index:0x0 compound_mapcount: 0 [ 37.592667] flags: 0x2fffc0000008100(slab|head) [ 37.597348] raw: 02fffc0000008100 ffff8801d528a448 ffff8801d528a448 ffff8801d528d9c0 [ 37.605237] raw: 0000000000000000 ffff8801b5c98040 0000000100000001 0000000000000000 [ 37.613132] page dumped because: kasan: bad access detected [ 37.618836] [ 37.620459] Memory state around the buggy address: [ 37.625385] ffff8801b5c97f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.632737] ffff8801b5c97f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.640118] >ffff8801b5c98000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.647469] ^ [ 37.653692] ffff8801b5c98080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.661058] ffff8801b5c98100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.668403] ================================================================== [ 37.675753] Kernel panic - not syncing: panic_on_warn set ... [ 37.675753] [ 37.683118] CPU: 0 PID: 4678 Comm: syz-executor972 Tainted: G B 4.19.0-rc1+ #216 [ 37.691946] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.701287] Call Trace: [ 37.703880] dump_stack+0x1c9/0x2b4 [ 37.707516] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.712705] ? lock_downgrade+0x8f0/0x8f0 [ 37.716848] ? __schedule+0xf54/0x1df0 [ 37.720734] panic+0x238/0x4e7 [ 37.723923] ? add_taint.cold.5+0x16/0x16 [ 37.728075] ? print_shadow_for_address+0xba/0x116 [ 37.733004] ? trace_hardirqs_off+0xaf/0x2b0 [ 37.737425] ? trace_hardirqs_off+0x77/0x2b0 [ 37.741836] ? __schedule+0xf54/0x1df0 [ 37.745721] kasan_end_report+0x47/0x4f [ 37.749696] kasan_report.cold.7+0x76/0x30d [ 37.754017] __asan_report_load8_noabort+0x14/0x20 [ 37.758941] __schedule+0xf54/0x1df0 [ 37.762654] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.767757] ? __sched_text_start+0x8/0x8 [ 37.771905] ? __call_srcu+0x7e7/0x1040 [ 37.775901] ? check_same_owner+0x340/0x340 [ 37.780222] ? mark_held_locks+0x160/0x160 [ 37.784454] ? find_held_lock+0x36/0x1c0 [ 37.788523] preempt_schedule_common+0x22/0x60 [ 37.793103] _cond_resched+0x1d/0x30 [ 37.796819] wait_for_completion+0xa5/0x8d0 [ 37.801140] ? wait_for_completion_interruptible+0x950/0x950 [ 37.806933] ? __lockdep_init_map+0x105/0x590 [ 37.811426] ? __init_waitqueue_head+0x9e/0x150 [ 37.816092] ? init_wait_entry+0x1c0/0x1c0 [ 37.820327] __synchronize_srcu+0x189/0x240 [ 37.824646] ? call_srcu+0x10/0x10 [ 37.828183] ? rcu_unexpedite_gp+0x20/0x20 [ 37.832424] synchronize_srcu+0x335/0x56f [ 37.836584] ? lock_downgrade+0x8f0/0x8f0 [ 37.840730] ? synchronize_srcu_expedited+0x20/0x20 [ 37.845744] ? kasan_check_read+0x11/0x20 [ 37.849905] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.854486] ? kasan_check_write+0x14/0x20 [ 37.858725] ? do_raw_spin_lock+0xc1/0x200 [ 37.862965] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.868677] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.874123] ? kvfree+0x61/0x70 [ 37.877407] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.882424] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.886486] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.890901] ? kvm_arch_sync_events+0x30/0x30 [ 37.895412] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.900961] ? mmu_notifier_unregister+0x474/0x600 [ 37.905885] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.910284] ? kfree+0x111/0x210 [ 37.913649] ? __mmu_notifier_register+0x30/0x30 [ 37.918404] ? __free_pages+0x10a/0x190 [ 37.922376] ? free_unref_page+0x930/0x930 [ 37.926619] kvm_put_kvm+0x73f/0x1060 [ 37.930454] ? kvm_write_guest_cached+0x40/0x40 [ 37.935121] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.939610] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.944100] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.948686] ? kasan_check_write+0x14/0x20 [ 37.952921] ? do_raw_spin_lock+0xc1/0x200 [ 37.957160] ? kvm_irqfd_release+0xdd/0x120 [ 37.961518] ? kvm_irqfd_release+0xdd/0x120 [ 37.965847] ? kvm_put_kvm+0x1060/0x1060 [ 37.969906] kvm_vm_release+0x42/0x50 [ 37.973700] __fput+0x38a/0xa40 [ 37.976991] ? __alloc_file+0x400/0x400 [ 37.980967] ? check_same_owner+0x340/0x340 [ 37.985290] ? kasan_check_write+0x14/0x20 [ 37.989529] ? do_raw_spin_lock+0xc1/0x200 [ 37.993760] ____fput+0x15/0x20 [ 37.997033] task_work_run+0x1e8/0x2a0 [ 38.000919] ? task_work_cancel+0x240/0x240 [ 38.005241] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.010774] ? switch_task_namespaces+0xa2/0xd0 [ 38.015440] do_exit+0x1ae4/0x26e0 [ 38.018980] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.023653] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.027891] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.032902] ? kfree+0x1d7/0x210 [ 38.036265] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.040534] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.046244] ? is_bpf_text_address+0xd7/0x170 [ 38.050738] ? kernel_text_address+0x79/0xf0 [ 38.055146] ? __kernel_text_address+0xd/0x40 [ 38.059657] ? unwind_get_return_address+0x61/0xa0 [ 38.064586] ? __save_stack_trace+0x8d/0xf0 [ 38.068911] ? save_stack+0xa9/0xd0 [ 38.072552] ? save_stack+0x43/0xd0 [ 38.076178] ? __kasan_slab_free+0x11a/0x170 [ 38.080581] ? kasan_slab_free+0xe/0x10 [ 38.084552] ? putname+0xf2/0x130 [ 38.088001] ? __x64_sys_openat+0x9d/0x100 [ 38.092232] ? do_syscall_64+0x1b9/0x820 [ 38.096313] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.101686] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.106091] ? kasan_check_read+0x11/0x20 [ 38.110235] ? do_raw_spin_unlock+0xa7/0x2f0 [ 38.114643] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.119051] ? initcall_blacklisted+0x9a/0x1e0 [ 38.123637] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 38.128742] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.134454] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.139992] ? do_vfs_ioctl+0x201/0x1720 [ 38.144069] ? rcu_is_watching+0x8c/0x150 [ 38.148230] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.152549] ? ioctl_preallocate+0x300/0x300 [ 38.156956] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.162489] ? __fget_light+0x2f7/0x440 [ 38.166468] ? fget_raw+0x20/0x20 [ 38.169917] ? putname+0xf2/0x130 [ 38.173369] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.178381] ? kmem_cache_free+0x246/0x280 [ 38.182613] ? putname+0xf7/0x130 [ 38.186069] do_group_exit+0x177/0x440 [ 38.189958] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.194290] ? __ia32_sys_exit+0x50/0x50 [ 38.198347] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.203469] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.209004] ? ksys_ioctl+0x81/0xd0 [ 38.212625] __x64_sys_exit_group+0x3e/0x50 [ 38.216943] do_syscall_64+0x1b9/0x820 [ 38.220833] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.226193] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.231133] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.235987] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 38.241005] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.246020] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.250867] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.256048] RIP: 0033:0x43ecf8 [ 38.259239] Code: Bad RIP value. [ 38.262610] RSP: 002b:00007ffd577b3f28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.270346] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 38.277605] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.284890] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.292154] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.299434] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 38.306709] [ 38.306714] ====================================================== [ 38.306720] WARNING: possible circular locking dependency detected [ 38.306723] 4.19.0-rc1+ #216 Not tainted [ 38.306729] ------------------------------------------------------ [ 38.306734] syz-executor972/4678 is trying to acquire lock: [ 38.306737] 00000000f0708332 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 38.306752] [ 38.306756] but task is already holding lock: [ 38.306760] 000000002e6743f6 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.306774] [ 38.306778] which lock already depends on the new lock. [ 38.306781] [ 38.306783] [ 38.306788] the existing dependency chain (in reverse order) is: [ 38.306791] [ 38.306793] -> #3 (report_lock){....}: [ 38.306807] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.306811] kasan_report+0x8e/0x110 [ 38.306822] __asan_report_load8_noabort+0x14/0x20 [ 38.306826] __schedule+0xf54/0x1df0 [ 38.306830] preempt_schedule_common+0x22/0x60 [ 38.306834] _cond_resched+0x1d/0x30 [ 38.306838] wait_for_completion+0xa5/0x8d0 [ 38.306842] __synchronize_srcu+0x189/0x240 [ 38.306846] synchronize_srcu+0x335/0x56f [ 38.306851] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.306855] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.306860] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.306863] kvm_put_kvm+0x73f/0x1060 [ 38.306867] kvm_vm_release+0x42/0x50 [ 38.306871] __fput+0x38a/0xa40 [ 38.306875] ____fput+0x15/0x20 [ 38.306879] task_work_run+0x1e8/0x2a0 [ 38.306882] do_exit+0x1ae4/0x26e0 [ 38.306886] do_group_exit+0x177/0x440 [ 38.306890] __x64_sys_exit_group+0x3e/0x50 [ 38.306894] do_syscall_64+0x1b9/0x820 [ 38.306899] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.306901] [ 38.306904] -> #2 (&rq->lock){-.-.}: [ 38.306918] _raw_spin_lock+0x2a/0x40 [ 38.306922] task_fork_fair+0x93/0x680 [ 38.306925] sched_fork+0x44b/0xbd0 [ 38.306929] copy_process+0x235e/0x7ad0 [ 38.306933] _do_fork+0x1ca/0x1170 [ 38.306937] kernel_thread+0x34/0x40 [ 38.306940] rest_init+0x22/0xe4 [ 38.306944] start_kernel+0x913/0x94e [ 38.306948] x86_64_start_reservations+0x29/0x2b [ 38.306953] x86_64_start_kernel+0x76/0x79 [ 38.306957] secondary_startup_64+0xa4/0xb0 [ 38.306959] [ 38.306961] -> #1 (&p->pi_lock){-.-.}: [ 38.306976] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.306980] try_to_wake_up+0xd2/0x1250 [ 38.306984] wake_up_process+0x10/0x20 [ 38.306987] __up.isra.1+0x1c0/0x2a0 [ 38.306991] up+0x13c/0x1c0 [ 38.306995] __up_console_sem+0xbe/0x1b0 [ 38.306999] console_unlock+0x506/0x10d0 [ 38.307003] vprintk_emit+0x33a/0x910 [ 38.307006] vprintk_default+0x28/0x30 [ 38.307010] vprintk_func+0x7a/0x117 [ 38.307014] printk+0xa7/0xcf [ 38.307017] load_umh+0x51/0xbd [ 38.307021] do_one_initcall+0x127/0x838 [ 38.307025] kernel_init_freeable+0x4bb/0x5ae [ 38.307029] kernel_init+0x11/0x1b3 [ 38.307033] ret_from_fork+0x3a/0x50 [ 38.307035] [ 38.307037] -> #0 ((console_sem).lock){-...}: [ 38.307052] lock_acquire+0x1e4/0x4f0 [ 38.307056] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.307060] down_trylock+0x13/0x70 [ 38.307064] __down_trylock_console_sem+0xae/0x200 [ 38.307068] console_trylock+0x15/0xa0 [ 38.307072] vprintk_emit+0x31f/0x910 [ 38.307076] vprintk_default+0x28/0x30 [ 38.307080] vprintk_func+0x7a/0x117 [ 38.307083] printk+0xa7/0xcf [ 38.307087] kasan_report+0x9e/0x110 [ 38.307092] __asan_report_load8_noabort+0x14/0x20 [ 38.307095] __schedule+0xf54/0x1df0 [ 38.307100] preempt_schedule_common+0x22/0x60 [ 38.307104] _cond_resched+0x1d/0x30 [ 38.307108] wait_for_completion+0xa5/0x8d0 [ 38.307112] __synchronize_srcu+0x189/0x240 [ 38.307116] synchronize_srcu+0x335/0x56f [ 38.307121] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.307125] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.307129] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.307133] kvm_put_kvm+0x73f/0x1060 [ 38.307137] kvm_vm_release+0x42/0x50 [ 38.307140] __fput+0x38a/0xa40 [ 38.307144] ____fput+0x15/0x20 [ 38.307148] task_work_run+0x1e8/0x2a0 [ 38.307152] do_exit+0x1ae4/0x26e0 [ 38.307155] do_group_exit+0x177/0x440 [ 38.307160] __x64_sys_exit_group+0x3e/0x50 [ 38.307164] do_syscall_64+0x1b9/0x820 [ 38.307168] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.307171] [ 38.307175] other info that might help us debug this: [ 38.307177] [ 38.307180] Chain exists of: [ 38.307182] (console_sem).lock --> &rq->lock --> report_lock [ 38.307201] [ 38.307205] Possible unsafe locking scenario: [ 38.307207] [ 38.307211] CPU0 CPU1 [ 38.307215] ---- ---- [ 38.307217] lock(report_lock); [ 38.307227] lock(&rq->lock); [ 38.307236] lock(report_lock); [ 38.307244] lock((console_sem).lock); [ 38.307252] [ 38.307255] *** DEADLOCK *** [ 38.307258] [ 38.307262] 2 locks held by syz-executor972/4678: [ 38.307264] #0: 0000000030e007f7 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 38.307281] #1: 000000002e6743f6 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.307298] [ 38.307301] stack backtrace: [ 38.307307] CPU: 0 PID: 4678 Comm: syz-executor972 Not tainted 4.19.0-rc1+ #216 [ 38.307314] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.307318] Call Trace: [ 38.307322] dump_stack+0x1c9/0x2b4 [ 38.307327] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.307330] ? vprintk_func+0x100/0x117 [ 38.307335] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 38.307339] ? save_trace+0xe0/0x290 [ 38.307343] __lock_acquire+0x3449/0x5020 [ 38.307347] ? mark_held_locks+0x160/0x160 [ 38.307351] ? mark_held_locks+0x160/0x160 [ 38.307356] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 38.307360] ? is_bpf_text_address+0xd7/0x170 [ 38.307364] ? kernel_text_address+0x79/0xf0 [ 38.307368] ? __kernel_text_address+0xd/0x40 [ 38.307373] ? __save_stack_trace+0x8d/0xf0 [ 38.307377] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 38.307381] ? save_trace+0x290/0x290 [ 38.307385] ? save_stack_trace+0x1a/0x20 [ 38.307389] ? save_trace+0xe0/0x290 [ 38.307393] ? graph_lock+0x170/0x170 [ 38.307397] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.307401] lock_acquire+0x1e4/0x4f0 [ 38.307405] ? down_trylock+0x13/0x70 [ 38.307409] ? lock_release+0x9f0/0x9f0 [ 38.307413] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.307417] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.307421] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.307425] ? log_store+0x34f/0x4c0 [ 38.307429] ? vprintk_emit+0x31f/0x910 [ 38.307433] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.307437] ? down_trylock+0x13/0x70 [ 38.307441] down_trylock+0x13/0x70 [ 38.307445] __down_trylock_console_sem+0xae/0x200 [ 38.307449] console_trylock+0x15/0xa0 [ 38.307453] vprintk_emit+0x31f/0x910 [ 38.307457] ? wake_up_klogd+0x110/0x110 [ 38.307461] ? run_rebalance_domains+0x4c0/0x4c0 [ 38.307465] ? kasan_check_read+0x11/0x20 [ 38.307469] ? rcu_is_watching+0x8c/0x150 [ 38.307473] ? rcu_pm_notify+0xc0/0xc0 [ 38.307477] ? lock_acquire+0x1e4/0x4f0 [ 38.307481] ? kasan_report+0x8e/0x110 [ 38.307485] ? __schedule+0xf54/0x1df0 [ 38.307488] vprintk_default+0x28/0x30 [ 38.307492] vprintk_func+0x7a/0x117 [ 38.307496] printk+0xa7/0xcf [ 38.307500] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.307504] ? kasan_check_write+0x14/0x20 [ 38.307516] ? do_raw_spin_lock+0xc1/0x200 [ 38.307520] ? do_raw_spin_lock+0xc1/0x200 [ 38.307524] kasan_report+0x9e/0x110 [ 38.307528] __asan_report_load8_noabort+0x14/0x20 [ 38.307532] __schedule+0xf54/0x1df0 [ 38.307537] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.307541] ? __sched_text_start+0x8/0x8 [ 38.307544] ? __call_srcu+0x7e7/0x1040 [ 38.307549] ? check_same_owner+0x340/0x340 [ 38.307553] ? mark_held_locks+0x160/0x160 [ 38.307557] ? find_held_lock+0x36/0x1c0 [ 38.307561] preempt_schedule_common+0x22/0x60 [ 38.307565] _cond_resched+0x1d/0x30 [ 38.307569] wait_for_completion+0xa5/0x8d0 [ 38.307574] ? wait_for_completion_interruptible+0x950/0x950 [ 38.307578] ? __lockdep_init_map+0x105/0x590 [ 38.307582] ? __init_waitqueue_head+0x9e/0x150 [ 38.307586] ? init_wait_entry+0x1c0/0x1c0 [ 38.307590] __synchronize_srcu+0x189/0x240 [ 38.307594] ? call_srcu+0x10/0x10 [ 38.307598] ? rcu_unexpedite_gp+0x20/0x20 [ 38.307602] synchronize_srcu+0x335/0x56f [ 38.307606] ? lock_downgrade+0x8f0/0x8f0 [ 38.307611] ? synchronize_srcu_expedited+0x20/0x20 [ 38.307615] ? kasan_check_read+0x11/0x20 [ 38.307619] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.307623] ? kasan_check_write+0x14/0x20 [ 38.307627] ? do_raw_spin_lock+0xc1/0x200 [ 38.307632] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.307637] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.307640] ? kvfree+0x61/0x70 [ 38.307645] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.307649] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.307653] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.307657] ? kvm_arch_sync_events+0x30/0x30 [ 38.307662] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.307666] ? mmu_notifier_unregister+0x474/0x600 [ 38.307670] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.307674] ? kfree+0x111/0x210 [ 38.307678] ? __mmu_notifier_register+0x30/0x30 [ 38.307682] ? __free_pages+0x10a/0x190 [ 38.307686] ? free_unref_page+0x930/0x930 [ 38.307690] kvm_put_kvm+0x73f/0x1060 [ 38.307694] ? kvm_write_guest_cached+0x40/0x40 [ 38.307699] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.307703] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.307707] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.307711] ? kasan_check_write+0x14/0x20 [ 38.307715] ? do_raw_spin_lock+0xc1/0x200 [ 38.307719] ? kvm_irqfd_release+0xdd/0x120 [ 38.307723] ? kvm_irqfd_release+0xdd/0x120 [ 38.307727] ? kvm_put_kvm+0x1060/0x1060 [ 38.307731] kvm_vm_release+0x42/0x50 [ 38.307735] __fput+0x38a/0xa40 [ 38.307739] ? __alloc_file+0x400/0x400 [ 38.307743] ? check_same_owner+0x340/0x340 [ 38.307747] ? kasan_check_write+0x14/0x20 [ 38.307751] ? do_raw_spin_lock+0xc1/0x200 [ 38.307754] ____fput+0x15/0x20 [ 38.307758] task_work_run+0x1e8/0x2a0 [ 38.307762] ? task_work_cancel+0x240/0x240 [ 38.307767] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.307771] ? switch_task_namespaces+0xa2/0xd0 [ 38.307775] do_exit+0x1ae4/0x26e0 [ 38.307779] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.307783] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.307788] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.307791] ? kfree+0x1d7/0x210 [ 38.307795] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.307800] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.307805] ? is_bpf_text_address+0xd7/0x170 [ 38.307807] ? [ 38.307820] Lost 54 message(s)! [ 39.430657] Shutting down cpus with NMI [ 40.489971] Dumping ftrace buffer: [ 40.493496] (ftrace buffer empty) [ 40.497195] Kernel Offset: disabled [ 40.500807] Rebooting in 86400 seconds..