[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.270419] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.770079] random: sshd: uninitialized urandom read (32 bytes read) [ 25.989227] random: sshd: uninitialized urandom read (32 bytes read) [ 26.522213] random: sshd: uninitialized urandom read (32 bytes read) [ 49.133670] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.204' (ECDSA) to the list of known hosts. [ 54.829192] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 54.933735] 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. [ 54.964232] ================================================================== [ 54.974109] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 54.980340] Read of size 8 at addr ffff8801d9248058 by task syz-executor783/4686 [ 54.987862] [ 54.989494] CPU: 0 PID: 4686 Comm: syz-executor783 Not tainted 4.19.0-rc2+ #220 [ 54.996941] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.006284] Call Trace: [ 55.008866] dump_stack+0x1c9/0x2b4 [ 55.012498] ? dump_stack_print_info.cold.2+0x52/0x52 [ 55.017687] ? printk+0xa7/0xcf [ 55.020964] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 55.025722] ? __schedule+0xf54/0x1df0 [ 55.029609] print_address_description+0x6c/0x20b [ 55.034451] ? __schedule+0xf54/0x1df0 [ 55.038338] kasan_report.cold.7+0x242/0x30d [ 55.042749] __asan_report_load8_noabort+0x14/0x20 [ 55.047677] __schedule+0xf54/0x1df0 [ 55.051386] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 55.056493] ? __sched_text_start+0x8/0x8 [ 55.060639] ? __call_srcu+0x7e7/0x1040 [ 55.064621] ? check_same_owner+0x340/0x340 [ 55.068940] ? mark_held_locks+0x160/0x160 [ 55.073173] ? find_held_lock+0x36/0x1c0 [ 55.077234] preempt_schedule_common+0x22/0x60 [ 55.081819] _cond_resched+0x1d/0x30 [ 55.085529] wait_for_completion+0xa5/0x8d0 [ 55.089850] ? wait_for_completion_interruptible+0x950/0x950 [ 55.095678] ? __lockdep_init_map+0x105/0x590 [ 55.100172] ? __init_waitqueue_head+0x9e/0x150 [ 55.104836] ? init_wait_entry+0x1c0/0x1c0 [ 55.109071] __synchronize_srcu+0x189/0x240 [ 55.113430] ? call_srcu+0x10/0x10 [ 55.116984] ? rcu_unexpedite_gp+0x20/0x20 [ 55.121223] synchronize_srcu+0x335/0x56f [ 55.125364] ? lock_downgrade+0x8f0/0x8f0 [ 55.129518] ? synchronize_srcu_expedited+0x20/0x20 [ 55.134540] ? kasan_check_read+0x11/0x20 [ 55.138703] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 55.143281] ? kasan_check_write+0x14/0x20 [ 55.147510] ? do_raw_spin_lock+0xc1/0x200 [ 55.151759] kvm_page_track_unregister_notifier+0x17d/0x250 [ 55.157467] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 55.162932] ? kvfree+0x61/0x70 [ 55.166248] ? rcu_read_lock_sched_held+0x108/0x120 [ 55.171260] kvm_mmu_uninit_vm+0x1c/0x20 [ 55.175327] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 55.179736] ? kvm_arch_sync_events+0x30/0x30 [ 55.184246] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.189828] ? mmu_notifier_unregister+0x474/0x600 [ 55.194763] ? trace_hardirqs_on+0x2c0/0x2c0 [ 55.199168] ? kfree+0x111/0x210 [ 55.202532] ? __mmu_notifier_register+0x30/0x30 [ 55.207290] ? __free_pages+0x10a/0x190 [ 55.211268] ? free_unref_page+0x930/0x930 [ 55.215506] kvm_put_kvm+0x73f/0x1060 [ 55.219312] ? kvm_write_guest_cached+0x40/0x40 [ 55.223983] ? _raw_spin_unlock_irq+0x27/0x70 [ 55.228473] ? _raw_spin_unlock_irq+0x27/0x70 [ 55.232964] ? lockdep_hardirqs_on+0x421/0x5c0 [ 55.237542] ? kasan_check_write+0x14/0x20 [ 55.241866] ? do_raw_spin_lock+0xc1/0x200 [ 55.246109] ? kvm_irqfd_release+0xdd/0x120 [ 55.250427] ? kvm_irqfd_release+0xdd/0x120 [ 55.254746] ? kvm_put_kvm+0x1060/0x1060 [ 55.258802] kvm_vm_release+0x42/0x50 [ 55.262599] __fput+0x38a/0xa40 [ 55.265888] ? __alloc_file+0x400/0x400 [ 55.270026] ? check_same_owner+0x340/0x340 [ 55.274408] ? kasan_check_write+0x14/0x20 [ 55.278657] ? do_raw_spin_lock+0xc1/0x200 [ 55.282895] ____fput+0x15/0x20 [ 55.286185] task_work_run+0x1e8/0x2a0 [ 55.290075] ? task_work_cancel+0x240/0x240 [ 55.294401] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.299937] ? switch_task_namespaces+0xa2/0xd0 [ 55.304604] do_exit+0x1ae4/0x26e0 [ 55.308156] ? find_held_lock+0x36/0x1c0 [ 55.312218] ? mm_update_next_owner+0x9a0/0x9a0 [ 55.316892] ? lock_downgrade+0x8f0/0x8f0 [ 55.321040] ? kasan_check_read+0x11/0x20 [ 55.325242] ? rcu_is_watching+0x8c/0x150 [ 55.329397] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 55.334062] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 55.338773] ? is_bpf_text_address+0xd7/0x170 [ 55.343265] ? kernel_text_address+0x79/0xf0 [ 55.347670] ? __kernel_text_address+0xd/0x40 [ 55.352170] ? unwind_get_return_address+0x61/0xa0 [ 55.357359] ? __save_stack_trace+0x8d/0xf0 [ 55.361677] ? save_stack+0xa9/0xd0 [ 55.365286] ? save_stack+0x43/0xd0 [ 55.368895] ? __kasan_slab_free+0x11a/0x170 [ 55.373282] ? kasan_slab_free+0xe/0x10 [ 55.377235] ? kmem_cache_free+0x86/0x280 [ 55.381365] ? putname+0xf2/0x130 [ 55.384812] ? __x64_sys_openat+0x9d/0x100 [ 55.389048] ? do_syscall_64+0x1b9/0x820 [ 55.393104] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.398450] ? trace_hardirqs_off+0xb8/0x2b0 [ 55.402840] ? kasan_check_read+0x11/0x20 [ 55.406968] ? do_raw_spin_unlock+0xa7/0x2f0 [ 55.411352] ? trace_hardirqs_on+0x2c0/0x2c0 [ 55.415830] ? kasan_check_write+0x14/0x20 [ 55.420046] ? trace_hardirqs_off+0xb8/0x2b0 [ 55.424434] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 55.429518] ? trace_hardirqs_on+0x2c0/0x2c0 [ 55.433905] ? kmem_cache_free+0xa0/0x280 [ 55.438033] ? kasan_check_read+0x11/0x20 [ 55.442162] ? rcu_is_watching+0x8c/0x150 [ 55.446289] ? trace_hardirqs_on+0xbd/0x2c0 [ 55.450590] ? rcu_pm_notify+0xc0/0xc0 [ 55.454472] ? putname+0xf2/0x130 [ 55.457926] ? putname+0xf2/0x130 [ 55.461393] ? rcu_read_lock_sched_held+0x108/0x120 [ 55.466404] ? kmem_cache_free+0x246/0x280 [ 55.470638] ? putname+0xf7/0x130 [ 55.474101] do_group_exit+0x177/0x440 [ 55.477982] ? trace_hardirqs_on+0xbd/0x2c0 [ 55.482302] ? __ia32_sys_exit+0x50/0x50 [ 55.486357] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 55.491469] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.497015] __x64_sys_exit_group+0x3e/0x50 [ 55.501335] do_syscall_64+0x1b9/0x820 [ 55.505233] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 55.510597] ? syscall_return_slowpath+0x5e0/0x5e0 [ 55.515523] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 55.520369] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 55.525383] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 55.530397] ? prepare_exit_to_usermode+0x291/0x3b0 [ 55.535860] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 55.540709] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.545913] RIP: 0033:0x43f0e8 [ 55.549104] Code: Bad RIP value. [ 55.552461] RSP: 002b:00007ffc623c0008 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 55.560165] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f0e8 [ 55.567429] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 55.574690] RBP: 00000000004c09a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 55.581953] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 55.589212] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 55.596488] [ 55.598114] Allocated by task 4686: [ 55.601736] save_stack+0x43/0xd0 [ 55.605181] kasan_kmalloc+0xc4/0xe0 [ 55.608910] kasan_slab_alloc+0x12/0x20 [ 55.612909] kmem_cache_alloc+0x12e/0x710 [ 55.617062] vmx_create_vcpu+0xcf/0x2830 [ 55.621115] kvm_arch_vcpu_create+0xe5/0x220 [ 55.625519] kvm_vm_ioctl+0x488/0x1d80 [ 55.629400] do_vfs_ioctl+0x1de/0x1720 [ 55.633290] ksys_ioctl+0xa9/0xd0 [ 55.636736] __x64_sys_ioctl+0x73/0xb0 [ 55.640605] do_syscall_64+0x1b9/0x820 [ 55.644470] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.649631] [ 55.651233] Freed by task 4686: [ 55.654502] save_stack+0x43/0xd0 [ 55.657971] __kasan_slab_free+0x11a/0x170 [ 55.662182] kasan_slab_free+0xe/0x10 [ 55.665969] kmem_cache_free+0x86/0x280 [ 55.669937] vmx_free_vcpu+0x26b/0x300 [ 55.673814] kvm_arch_destroy_vm+0x365/0x7c0 [ 55.678217] kvm_put_kvm+0x73f/0x1060 [ 55.682017] kvm_vm_release+0x42/0x50 [ 55.685813] __fput+0x38a/0xa40 [ 55.689101] ____fput+0x15/0x20 [ 55.692374] task_work_run+0x1e8/0x2a0 [ 55.696264] do_exit+0x1ae4/0x26e0 [ 55.699797] do_group_exit+0x177/0x440 [ 55.703677] __x64_sys_exit_group+0x3e/0x50 [ 55.707998] do_syscall_64+0x1b9/0x820 [ 55.711899] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.717072] [ 55.718691] The buggy address belongs to the object at ffff8801d9248040 [ 55.718691] which belongs to the cache kvm_vcpu of size 23872 [ 55.731287] The buggy address is located 24 bytes inside of [ 55.731287] 23872-byte region [ffff8801d9248040, ffff8801d924dd80) [ 55.743235] The buggy address belongs to the page: [ 55.748160] page:ffffea0007649200 count:1 mapcount:0 mapping:ffff8801d4ac6d80 index:0x0 compound_mapcount: 0 [ 55.758132] flags: 0x2fffc0000008100(slab|head) [ 55.762798] raw: 02fffc0000008100 ffff8801d51d6a48 ffff8801d51d6a48 ffff8801d4ac6d80 [ 55.770676] raw: 0000000000000000 ffff8801d9248040 0000000100000001 0000000000000000 [ 55.778545] page dumped because: kasan: bad access detected [ 55.784239] [ 55.785867] Memory state around the buggy address: [ 55.790797] ffff8801d9247f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 55.798146] ffff8801d9247f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 55.805494] >ffff8801d9248000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 55.812842] ^ [ 55.819063] ffff8801d9248080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.826412] ffff8801d9248100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.833755] ================================================================== [ 55.841115] Kernel panic - not syncing: panic_on_warn set ... [ 55.841115] [ 55.848474] CPU: 0 PID: 4686 Comm: syz-executor783 Tainted: G B 4.19.0-rc2+ #220 [ 55.857298] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.866648] Call Trace: [ 55.869235] dump_stack+0x1c9/0x2b4 [ 55.872865] ? dump_stack_print_info.cold.2+0x52/0x52 [ 55.878064] ? lock_downgrade+0x8f0/0x8f0 [ 55.882205] ? __schedule+0xf54/0x1df0 [ 55.886085] panic+0x238/0x4e7 [ 55.889274] ? add_taint.cold.5+0x16/0x16 [ 55.893424] ? print_shadow_for_address+0xba/0x116 [ 55.898352] ? trace_hardirqs_off+0xaf/0x2b0 [ 55.902756] ? trace_hardirqs_off+0x77/0x2b0 [ 55.907177] ? __schedule+0xf54/0x1df0 [ 55.911060] kasan_end_report+0x47/0x4f [ 55.915029] kasan_report.cold.7+0x76/0x30d [ 55.919372] __asan_report_load8_noabort+0x14/0x20 [ 55.924309] __schedule+0xf54/0x1df0 [ 55.928036] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 55.933135] ? __sched_text_start+0x8/0x8 [ 55.937278] ? __call_srcu+0x7e7/0x1040 [ 55.941255] ? check_same_owner+0x340/0x340 [ 55.945568] ? mark_held_locks+0x160/0x160 [ 55.949825] ? find_held_lock+0x36/0x1c0 [ 55.953894] preempt_schedule_common+0x22/0x60 [ 55.958471] _cond_resched+0x1d/0x30 [ 55.962193] wait_for_completion+0xa5/0x8d0 [ 55.966512] ? wait_for_completion_interruptible+0x950/0x950 [ 55.972307] ? __lockdep_init_map+0x105/0x590 [ 55.976827] ? __init_waitqueue_head+0x9e/0x150 [ 55.981489] ? init_wait_entry+0x1c0/0x1c0 [ 55.985735] __synchronize_srcu+0x189/0x240 [ 55.990051] ? call_srcu+0x10/0x10 [ 55.993591] ? rcu_unexpedite_gp+0x20/0x20 [ 55.997832] synchronize_srcu+0x335/0x56f [ 56.001977] ? lock_downgrade+0x8f0/0x8f0 [ 56.006121] ? synchronize_srcu_expedited+0x20/0x20 [ 56.011134] ? kasan_check_read+0x11/0x20 [ 56.015292] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 56.019883] ? kasan_check_write+0x14/0x20 [ 56.024114] ? do_raw_spin_lock+0xc1/0x200 [ 56.028354] kvm_page_track_unregister_notifier+0x17d/0x250 [ 56.034060] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 56.039509] ? kvfree+0x61/0x70 [ 56.042784] ? rcu_read_lock_sched_held+0x108/0x120 [ 56.047796] kvm_mmu_uninit_vm+0x1c/0x20 [ 56.051853] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 56.056267] ? kvm_arch_sync_events+0x30/0x30 [ 56.060763] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.066295] ? mmu_notifier_unregister+0x474/0x600 [ 56.071233] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.075631] ? kfree+0x111/0x210 [ 56.079015] ? __mmu_notifier_register+0x30/0x30 [ 56.083769] ? __free_pages+0x10a/0x190 [ 56.087740] ? free_unref_page+0x930/0x930 [ 56.091977] kvm_put_kvm+0x73f/0x1060 [ 56.095791] ? kvm_write_guest_cached+0x40/0x40 [ 56.100472] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.104962] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.109451] ? lockdep_hardirqs_on+0x421/0x5c0 [ 56.114049] ? kasan_check_write+0x14/0x20 [ 56.118276] ? do_raw_spin_lock+0xc1/0x200 [ 56.122523] ? kvm_irqfd_release+0xdd/0x120 [ 56.126838] ? kvm_irqfd_release+0xdd/0x120 [ 56.131155] ? kvm_put_kvm+0x1060/0x1060 [ 56.135210] kvm_vm_release+0x42/0x50 [ 56.139014] __fput+0x38a/0xa40 [ 56.142288] ? __alloc_file+0x400/0x400 [ 56.146270] ? check_same_owner+0x340/0x340 [ 56.150588] ? kasan_check_write+0x14/0x20 [ 56.154815] ? do_raw_spin_lock+0xc1/0x200 [ 56.159043] ____fput+0x15/0x20 [ 56.162316] task_work_run+0x1e8/0x2a0 [ 56.166203] ? task_work_cancel+0x240/0x240 [ 56.170522] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.176069] ? switch_task_namespaces+0xa2/0xd0 [ 56.180756] do_exit+0x1ae4/0x26e0 [ 56.184292] ? find_held_lock+0x36/0x1c0 [ 56.188356] ? mm_update_next_owner+0x9a0/0x9a0 [ 56.193020] ? lock_downgrade+0x8f0/0x8f0 [ 56.197169] ? kasan_check_read+0x11/0x20 [ 56.201315] ? rcu_is_watching+0x8c/0x150 [ 56.205482] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 56.210156] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 56.214820] ? is_bpf_text_address+0xd7/0x170 [ 56.219310] ? kernel_text_address+0x79/0xf0 [ 56.223733] ? __kernel_text_address+0xd/0x40 [ 56.228239] ? unwind_get_return_address+0x61/0xa0 [ 56.233204] ? __save_stack_trace+0x8d/0xf0 [ 56.237559] ? save_stack+0xa9/0xd0 [ 56.241177] ? save_stack+0x43/0xd0 [ 56.244798] ? __kasan_slab_free+0x11a/0x170 [ 56.249198] ? kasan_slab_free+0xe/0x10 [ 56.253228] ? kmem_cache_free+0x86/0x280 [ 56.257367] ? putname+0xf2/0x130 [ 56.260813] ? __x64_sys_openat+0x9d/0x100 [ 56.265046] ? do_syscall_64+0x1b9/0x820 [ 56.269100] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.274456] ? trace_hardirqs_off+0xb8/0x2b0 [ 56.278871] ? kasan_check_read+0x11/0x20 [ 56.283025] ? do_raw_spin_unlock+0xa7/0x2f0 [ 56.287427] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.291830] ? kasan_check_write+0x14/0x20 [ 56.296063] ? trace_hardirqs_off+0xb8/0x2b0 [ 56.300464] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 56.305560] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.309961] ? kmem_cache_free+0xa0/0x280 [ 56.314105] ? kasan_check_read+0x11/0x20 [ 56.318251] ? rcu_is_watching+0x8c/0x150 [ 56.322390] ? trace_hardirqs_on+0xbd/0x2c0 [ 56.326704] ? rcu_pm_notify+0xc0/0xc0 [ 56.330874] ? putname+0xf2/0x130 [ 56.334338] ? putname+0xf2/0x130 [ 56.337790] ? rcu_read_lock_sched_held+0x108/0x120 [ 56.342800] ? kmem_cache_free+0x246/0x280 [ 56.347042] ? putname+0xf7/0x130 [ 56.350505] do_group_exit+0x177/0x440 [ 56.354391] ? trace_hardirqs_on+0xbd/0x2c0 [ 56.358721] ? __ia32_sys_exit+0x50/0x50 [ 56.362775] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 56.367873] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.373406] __x64_sys_exit_group+0x3e/0x50 [ 56.377727] do_syscall_64+0x1b9/0x820 [ 56.381616] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 56.386990] ? syscall_return_slowpath+0x5e0/0x5e0 [ 56.391925] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.396761] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 56.401772] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 56.406783] ? prepare_exit_to_usermode+0x291/0x3b0 [ 56.411805] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.416652] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.421842] RIP: 0033:0x43f0e8 [ 56.425034] Code: Bad RIP value. [ 56.428395] RSP: 002b:00007ffc623c0008 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 56.436099] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f0e8 [ 56.443360] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 56.450627] RBP: 00000000004c09a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 56.457891] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 56.465152] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 56.472424] [ 56.472429] ====================================================== [ 56.472434] WARNING: possible circular locking dependency detected [ 56.472438] 4.19.0-rc2+ #220 Not tainted [ 56.472442] ------------------------------------------------------ [ 56.472447] syz-executor783/4686 is trying to acquire lock: [ 56.472450] 000000002d616b7d ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 56.472464] [ 56.472480] but task is already holding lock: [ 56.472483] 00000000aaf25bac (report_lock){....}, at: kasan_report+0x8e/0x110 [ 56.472497] [ 56.472501] which lock already depends on the new lock. [ 56.472504] [ 56.472506] [ 56.472511] the existing dependency chain (in reverse order) is: [ 56.472513] [ 56.472515] -> #3 (report_lock){....}: [ 56.472529] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.472533] kasan_report+0x8e/0x110 [ 56.472537] __asan_report_load8_noabort+0x14/0x20 [ 56.472541] __schedule+0xf54/0x1df0 [ 56.472545] preempt_schedule_common+0x22/0x60 [ 56.472549] _cond_resched+0x1d/0x30 [ 56.472553] wait_for_completion+0xa5/0x8d0 [ 56.472557] __synchronize_srcu+0x189/0x240 [ 56.472561] synchronize_srcu+0x335/0x56f [ 56.472566] kvm_page_track_unregister_notifier+0x17d/0x250 [ 56.472570] kvm_mmu_uninit_vm+0x1c/0x20 [ 56.472574] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 56.472578] kvm_put_kvm+0x73f/0x1060 [ 56.472594] kvm_vm_release+0x42/0x50 [ 56.472597] __fput+0x38a/0xa40 [ 56.472601] ____fput+0x15/0x20 [ 56.472604] task_work_run+0x1e8/0x2a0 [ 56.472608] do_exit+0x1ae4/0x26e0 [ 56.472611] do_group_exit+0x177/0x440 [ 56.472615] __x64_sys_exit_group+0x3e/0x50 [ 56.472619] do_syscall_64+0x1b9/0x820 [ 56.472623] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.472638] [ 56.472640] -> #2 (&rq->lock){-.-.}: [ 56.472653] _raw_spin_lock+0x2a/0x40 [ 56.472657] task_fork_fair+0x93/0x680 [ 56.472661] sched_fork+0x44b/0xbd0 [ 56.472664] copy_process+0x235e/0x7ad0 [ 56.472668] _do_fork+0x1ca/0x1170 [ 56.472672] kernel_thread+0x34/0x40 [ 56.472675] rest_init+0x22/0xe4 [ 56.472679] start_kernel+0x913/0x94e [ 56.472683] x86_64_start_reservations+0x29/0x2b [ 56.472687] x86_64_start_kernel+0x76/0x79 [ 56.472691] secondary_startup_64+0xa4/0xb0 [ 56.472693] [ 56.472695] -> #1 (&p->pi_lock){-.-.}: [ 56.472709] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.472713] try_to_wake_up+0xd2/0x1250 [ 56.472717] wake_up_process+0x10/0x20 [ 56.472721] __up.isra.1+0x1c0/0x2a0 [ 56.472724] up+0x13c/0x1c0 [ 56.472728] __up_console_sem+0xbe/0x1b0 [ 56.472732] console_unlock+0x506/0x10d0 [ 56.472735] vprintk_emit+0x33a/0x910 [ 56.472739] vprintk_default+0x28/0x30 [ 56.472743] vprintk_func+0x7a/0x117 [ 56.472746] printk+0xa7/0xcf [ 56.472749] load_umh+0x51/0xbd [ 56.472753] do_one_initcall+0x127/0x838 [ 56.472757] kernel_init_freeable+0x4bb/0x5ae [ 56.472761] kernel_init+0x11/0x1b3 [ 56.472764] ret_from_fork+0x3a/0x50 [ 56.472767] [ 56.472769] -> #0 ((console_sem).lock){-...}: [ 56.472783] lock_acquire+0x1e4/0x4f0 [ 56.472787] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.472791] down_trylock+0x13/0x70 [ 56.472795] __down_trylock_console_sem+0xae/0x200 [ 56.472799] console_trylock+0x15/0xa0 [ 56.472802] vprintk_emit+0x31f/0x910 [ 56.472806] vprintk_default+0x28/0x30 [ 56.472810] vprintk_func+0x7a/0x117 [ 56.472813] printk+0xa7/0xcf [ 56.472817] kasan_report+0x9e/0x110 [ 56.472821] __asan_report_load8_noabort+0x14/0x20 [ 56.472826] __schedule+0xf54/0x1df0 [ 56.472830] preempt_schedule_common+0x22/0x60 [ 56.472833] _cond_resched+0x1d/0x30 [ 56.472838] wait_for_completion+0xa5/0x8d0 [ 56.472842] __synchronize_srcu+0x189/0x240 [ 56.472846] synchronize_srcu+0x335/0x56f [ 56.472850] kvm_page_track_unregister_notifier+0x17d/0x250 [ 56.472854] kvm_mmu_uninit_vm+0x1c/0x20 [ 56.472858] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 56.472862] kvm_put_kvm+0x73f/0x1060 [ 56.472866] kvm_vm_release+0x42/0x50 [ 56.472869] __fput+0x38a/0xa40 [ 56.472873] ____fput+0x15/0x20 [ 56.472877] task_work_run+0x1e8/0x2a0 [ 56.472880] do_exit+0x1ae4/0x26e0 [ 56.472884] do_group_exit+0x177/0x440 [ 56.472888] __x64_sys_exit_group+0x3e/0x50 [ 56.472892] do_syscall_64+0x1b9/0x820 [ 56.472896] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.472898] [ 56.472903] other info that might help us debug this: [ 56.472905] [ 56.472908] Chain exists of: [ 56.472910] (console_sem).lock --> &rq->lock --> report_lock [ 56.472956] [ 56.472960] Possible unsafe locking scenario: [ 56.472962] [ 56.472965] CPU0 CPU1 [ 56.472969] ---- ---- [ 56.472971] lock(report_lock); [ 56.472980] lock(&rq->lock); [ 56.472988] lock(report_lock); [ 56.472995] lock((console_sem).lock); [ 56.473002] [ 56.473005] *** DEADLOCK *** [ 56.473007] [ 56.473011] 2 locks held by syz-executor783/4686: [ 56.473013] #0: 0000000049d161a7 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 56.473028] #1: 00000000aaf25bac (report_lock){....}, at: kasan_report+0x8e/0x110 [ 56.473043] [ 56.473046] stack backtrace: [ 56.473052] CPU: 0 PID: 4686 Comm: syz-executor783 Not tainted 4.19.0-rc2+ #220 [ 56.473058] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.473061] Call Trace: [ 56.473064] dump_stack+0x1c9/0x2b4 [ 56.473069] ? dump_stack_print_info.cold.2+0x52/0x52 [ 56.473072] ? vprintk_func+0x100/0x117 [ 56.473077] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 56.473080] ? save_trace+0xe0/0x290 [ 56.473084] __lock_acquire+0x3449/0x5020 [ 56.473087] ? mark_held_locks+0x160/0x160 [ 56.473091] ? mark_held_locks+0x160/0x160 [ 56.473095] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 56.473099] ? is_bpf_text_address+0xd7/0x170 [ 56.473102] ? kernel_text_address+0x79/0xf0 [ 56.473106] ? __kernel_text_address+0xd/0x40 [ 56.473110] ? __save_stack_trace+0x8d/0xf0 [ 56.473114] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 56.473117] ? save_trace+0x290/0x290 [ 56.473121] ? save_stack_trace+0x1a/0x20 [ 56.473124] ? save_trace+0xe0/0x290 [ 56.473128] ? graph_lock+0x170/0x170 [ 56.473132] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.473136] lock_acquire+0x1e4/0x4f0 [ 56.473139] ? down_trylock+0x13/0x70 [ 56.473143] ? lock_release+0x9f0/0x9f0 [ 56.473146] ? trace_hardirqs_off+0xb8/0x2b0 [ 56.473150] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.473154] ? trace_hardirqs_off+0xb8/0x2b0 [ 56.473157] ? log_store+0x34f/0x4c0 [ 56.473161] ? vprintk_emit+0x31f/0x910 [ 56.473165] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.473168] ? down_trylock+0x13/0x70 [ 56.473172] down_trylock+0x13/0x70 [ 56.473176] __down_trylock_console_sem+0xae/0x200 [ 56.473179] console_trylock+0x15/0xa0 [ 56.473182] vprintk_emit+0x31f/0x910 [ 56.473186] ? wake_up_klogd+0x110/0x110 [ 56.473190] ? run_rebalance_domains+0x4c0/0x4c0 [ 56.473194] ? kasan_check_read+0x11/0x20 [ 56.473197] ? rcu_is_watching+0x8c/0x150 [ 56.473201] ? rcu_pm_notify+0xc0/0xc0 [ 56.473204] ? lock_acquire+0x1e4/0x4f0 [ 56.473208] ? kasan_report+0x8e/0x110 [ 56.473211] ? __schedule+0xf54/0x1df0 [ 56.473215] vprintk_default+0x28/0x30 [ 56.473218] vprintk_func+0x7a/0x117 [ 56.473221] printk+0xa7/0xcf [ 56.473225] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 56.473229] ? kasan_check_write+0x14/0x20 [ 56.473233] ? do_raw_spin_lock+0xc1/0x200 [ 56.473236] ? do_raw_spin_lock+0xc1/0x200 [ 56.473240] kasan_report+0x9e/0x110 [ 56.473244] __asan_report_load8_noabort+0x14/0x20 [ 56.473247] __schedule+0xf54/0x1df0 [ 56.473251] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 56.473255] ? __sched_text_start+0x8/0x8 [ 56.473259] ? __call_srcu+0x7e7/0x1040 [ 56.473262] ? check_same_owner+0x340/0x340 [ 56.473266] ? mark_held_locks+0x160/0x160 [ 56.473270] ? find_held_lock+0x36/0x1c0 [ 56.473274] preempt_schedule_common+0x22/0x60 [ 56.473277] _cond_resched+0x1d/0x30 [ 56.473281] wait_for_completion+0xa5/0x8d0 [ 56.473285] ? wait_for_completion_interruptible+0x950/0x950 [ 56.473289] ? __lockdep_init_map+0x105/0x590 [ 56.473293] ? __init_waitqueue_head+0x9e/0x150 [ 56.473297] ? init_wait_entry+0x1c0/0x1c0 [ 56.473300] __synchronize_srcu+0x189/0x240 [ 56.473304] ? call_srcu+0x10/0x10 [ 56.473307] ? rcu_unexpedite_gp+0x20/0x20 [ 56.473311] synchronize_srcu+0x335/0x56f [ 56.473315] ? lock_downgrade+0x8f0/0x8f0 [ 56.473324] ? synchronize_srcu_expedited+0x20/0x20 [ 56.473328] ? kasan_check_read+0x11/0x20 [ 56.473332] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 56.473336] ? kasan_check_write+0x14/0x20 [ 56.473339] ? do_raw_spin_lock+0xc1/0x200 [ 56.473344] kvm_page_track_unregister_notifier+0x17d/0x250 [ 56.473348] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 56.473367] ? kvfree+0x61/0x70 [ 56.473372] ? rcu_read_lock_sched_held+0x108/0x120 [ 56.473387] kvm_mmu_uninit_vm+0x1c/0x20 [ 56.473391] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 56.473395] ? kvm_arch_sync_events+0x30/0x30 [ 56.473399] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.473403] ? mmu_notifier_unregister+0x474/0x600 [ 56.473407] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.473410] ? kfree+0x111/0x210 [ 56.473414] ? __mmu_notifier_register+0x30/0x30 [ 56.473418] ? __free_pages+0x10a/0x190 [ 56.473421] ? free_unref_page+0x930/0x930 [ 56.473425] kvm_put_kvm+0x73f/0x1060 [ 56.473429] ? kvm_write_guest_cached+0x40/0x40 [ 56.473432] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.473436] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.473440] ? lockdep_hardirqs_on+0x421/0x5c0 [ 56.473444] ? kasan_check_write+0x14/0x20 [ 56.473448] ? do_raw_spin_lock+0xc1/0x200 [ 56.473451] ? kvm_irqfd_release+0xdd/0x120 [ 56.473455] ? kvm_irqfd_release+0xdd/0x120 [ 56.473459] ? kvm_put_kvm+0x1060/0x1060 [ 56.473462] kvm_vm_release+0x42/0x50 [ 56.473465] __fput+0x38a/0xa40 [ 56.473469] ? __alloc_file+0x400/0x400 [ 56.473473] ? check_same_owner+0x340/0x340 [ 56.473476] ? kasan_check_write+0x14/0x20 [ 56.473480] ? do_raw_spin_lock+0xc1/0x200 [ 56.473483] ____fput+0x15/0x20 [ 56.473486] task_work_run+0x1e8/0x2a0 [ 56.473490] ? task_work_cancel+0x240/0x240 [ 56.473495] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.473499] ? switch_task_namespaces+0xa2/0xd0 [ 56.473502] do_exit+0x1ae4/0x26e0 [ 56.473505] ? find_held_lock+0x36/0x1c0 [ 56.473509] ? mm_update_next_owner+0x9a0/0x9a0 [ 56.473513] ? lock_downgrade+0x8f0/0x8f0 [ 56.473517] ? kasan_check_read+0x11/0x20 [ 56.473520] ? rcu_is_watching+0x8c/0x150 [ 56.473524] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 56.473528] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 56.473531] ? is_bpf_text_a [ 56.473538] Lost 55 message(s)! [ 57.567745] Shutting down cpus with NMI [ 58.626578] Dumping ftrace buffer: [ 58.630103] (ftrace buffer empty) [ 58.633790] Kernel Offset: disabled [ 58.637404] Rebooting in 86400 seconds..