[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.279844] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 24.035059] random: sshd: uninitialized urandom read (32 bytes read) [ 24.326849] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.872829] random: sshd: uninitialized urandom read (32 bytes read) [ 52.346119] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.32' (ECDSA) to the list of known hosts. [ 57.915702] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 58.013240] 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. [ 58.036165] ================================================================== [ 58.045285] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 58.051509] Read of size 8 at addr ffff8801b9880058 by task syz-executor443/4648 [ 58.059017] [ 58.060627] CPU: 0 PID: 4648 Comm: syz-executor443 Not tainted 4.19.0-rc1+ #216 [ 58.068050] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.077488] Call Trace: [ 58.080076] dump_stack+0x1c9/0x2b4 [ 58.083695] ? dump_stack_print_info.cold.2+0x52/0x52 [ 58.088871] ? printk+0xa7/0xcf [ 58.092145] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 58.096996] ? __schedule+0xf54/0x1df0 [ 58.100895] print_address_description+0x6c/0x20b [ 58.105836] ? __schedule+0xf54/0x1df0 [ 58.109766] kasan_report.cold.7+0x242/0x30d [ 58.114168] __asan_report_load8_noabort+0x14/0x20 [ 58.119097] __schedule+0xf54/0x1df0 [ 58.122801] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 58.127890] ? __sched_text_start+0x8/0x8 [ 58.132028] ? __call_srcu+0x7e7/0x1040 [ 58.135989] ? check_same_owner+0x340/0x340 [ 58.140290] ? mark_held_locks+0x160/0x160 [ 58.144518] ? find_held_lock+0x36/0x1c0 [ 58.148566] preempt_schedule_common+0x22/0x60 [ 58.153203] _cond_resched+0x1d/0x30 [ 58.156903] wait_for_completion+0xa5/0x8d0 [ 58.161232] ? wait_for_completion_interruptible+0x950/0x950 [ 58.167007] ? __lockdep_init_map+0x105/0x590 [ 58.171531] ? __init_waitqueue_head+0x9e/0x150 [ 58.176185] ? init_wait_entry+0x1c0/0x1c0 [ 58.180504] __synchronize_srcu+0x189/0x240 [ 58.184870] ? call_srcu+0x10/0x10 [ 58.188396] ? rcu_unexpedite_gp+0x20/0x20 [ 58.192626] synchronize_srcu+0x335/0x56f [ 58.196760] ? lock_downgrade+0x8f0/0x8f0 [ 58.201022] ? synchronize_srcu_expedited+0x20/0x20 [ 58.206023] ? kasan_check_read+0x11/0x20 [ 58.210158] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 58.214721] ? kasan_check_write+0x14/0x20 [ 58.218943] ? do_raw_spin_lock+0xc1/0x200 [ 58.223165] kvm_page_track_unregister_notifier+0x17d/0x250 [ 58.228871] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 58.234376] ? kvfree+0x61/0x70 [ 58.237645] ? rcu_read_lock_sched_held+0x108/0x120 [ 58.242644] kvm_mmu_uninit_vm+0x1c/0x20 [ 58.246686] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 58.251075] ? kvm_arch_sync_events+0x30/0x30 [ 58.255552] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 58.261113] ? mmu_notifier_unregister+0x474/0x600 [ 58.266039] ? trace_hardirqs_on+0x2c0/0x2c0 [ 58.270433] ? kfree+0x111/0x210 [ 58.273791] ? __mmu_notifier_register+0x30/0x30 [ 58.278530] ? __free_pages+0x10a/0x190 [ 58.282582] ? free_unref_page+0x930/0x930 [ 58.286805] kvm_put_kvm+0x73f/0x1060 [ 58.290593] ? kvm_write_guest_cached+0x40/0x40 [ 58.295248] ? _raw_spin_unlock_irq+0x27/0x70 [ 58.299724] ? _raw_spin_unlock_irq+0x27/0x70 [ 58.304212] ? lockdep_hardirqs_on+0x421/0x5c0 [ 58.308776] ? kasan_check_write+0x14/0x20 [ 58.312994] ? do_raw_spin_lock+0xc1/0x200 [ 58.317218] ? kvm_irqfd_release+0xdd/0x120 [ 58.321527] ? kvm_irqfd_release+0xdd/0x120 [ 58.325834] ? kvm_put_kvm+0x1060/0x1060 [ 58.329998] kvm_vm_release+0x42/0x50 [ 58.333782] __fput+0x38a/0xa40 [ 58.337047] ? __alloc_file+0x400/0x400 [ 58.341006] ? check_same_owner+0x340/0x340 [ 58.345311] ? kasan_check_write+0x14/0x20 [ 58.349525] ? do_raw_spin_lock+0xc1/0x200 [ 58.353841] ____fput+0x15/0x20 [ 58.357201] task_work_run+0x1e8/0x2a0 [ 58.361127] ? task_work_cancel+0x240/0x240 [ 58.365440] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 58.370957] ? switch_task_namespaces+0xa2/0xd0 [ 58.375667] do_exit+0x1ae4/0x26e0 [ 58.379206] ? mm_update_next_owner+0x9a0/0x9a0 [ 58.383912] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 58.388135] ? rcu_read_lock_sched_held+0x108/0x120 [ 58.393129] ? kfree+0x1d7/0x210 [ 58.396482] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 58.400707] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 58.406406] ? is_bpf_text_address+0xd7/0x170 [ 58.410883] ? kernel_text_address+0x79/0xf0 [ 58.415276] ? __kernel_text_address+0xd/0x40 [ 58.419782] ? unwind_get_return_address+0x61/0xa0 [ 58.424698] ? __save_stack_trace+0x8d/0xf0 [ 58.429008] ? save_stack+0xa9/0xd0 [ 58.432623] ? save_stack+0x43/0xd0 [ 58.436234] ? __kasan_slab_free+0x11a/0x170 [ 58.440622] ? kasan_slab_free+0xe/0x10 [ 58.444575] ? putname+0xf2/0x130 [ 58.448010] ? __x64_sys_openat+0x9d/0x100 [ 58.452227] ? do_syscall_64+0x1b9/0x820 [ 58.456268] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.461622] ? trace_hardirqs_off+0xb8/0x2b0 [ 58.466023] ? kasan_check_read+0x11/0x20 [ 58.470147] ? do_raw_spin_unlock+0xa7/0x2f0 [ 58.474536] ? trace_hardirqs_on+0x2c0/0x2c0 [ 58.478929] ? initcall_blacklisted+0x9a/0x1e0 [ 58.483494] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 58.488640] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 58.494339] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 58.499859] ? do_vfs_ioctl+0x201/0x1720 [ 58.503905] ? rcu_is_watching+0x8c/0x150 [ 58.508036] ? trace_hardirqs_on+0xbd/0x2c0 [ 58.512406] ? ioctl_preallocate+0x300/0x300 [ 58.516802] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 58.522321] ? __fget_light+0x2f7/0x440 [ 58.526283] ? fget_raw+0x20/0x20 [ 58.529724] ? putname+0xf2/0x130 [ 58.533158] ? rcu_read_lock_sched_held+0x108/0x120 [ 58.538152] ? kmem_cache_free+0x246/0x280 [ 58.542368] ? putname+0xf7/0x130 [ 58.545876] do_group_exit+0x177/0x440 [ 58.549749] ? trace_hardirqs_on+0xbd/0x2c0 [ 58.554050] ? __ia32_sys_exit+0x50/0x50 [ 58.558094] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 58.563181] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 58.568705] ? ksys_ioctl+0x81/0xd0 [ 58.572316] __x64_sys_exit_group+0x3e/0x50 [ 58.576622] do_syscall_64+0x1b9/0x820 [ 58.580498] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 58.585845] ? syscall_return_slowpath+0x5e0/0x5e0 [ 58.590755] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 58.595591] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 58.600610] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 58.605618] ? prepare_exit_to_usermode+0x291/0x3b0 [ 58.610737] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 58.615627] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.620863] RIP: 0033:0x43ed68 [ 58.624044] Code: Bad RIP value. [ 58.627398] RSP: 002b:00007fff1bf64d68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 58.635140] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ed68 [ 58.642392] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 58.649846] RBP: 00000000004be628 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 58.657095] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 58.664408] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 58.671666] [ 58.673288] Allocated by task 4648: [ 58.676945] save_stack+0x43/0xd0 [ 58.680378] kasan_kmalloc+0xc4/0xe0 [ 58.684072] kasan_slab_alloc+0x12/0x20 [ 58.688027] kmem_cache_alloc+0x12e/0x710 [ 58.692157] vmx_create_vcpu+0xcf/0x2830 [ 58.696325] kvm_arch_vcpu_create+0xe5/0x220 [ 58.700714] kvm_vm_ioctl+0x488/0x1d80 [ 58.704600] do_vfs_ioctl+0x1de/0x1720 [ 58.708467] ksys_ioctl+0xa9/0xd0 [ 58.711901] __x64_sys_ioctl+0x73/0xb0 [ 58.715893] do_syscall_64+0x1b9/0x820 [ 58.719769] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.724935] [ 58.726608] Freed by task 4648: [ 58.729880] save_stack+0x43/0xd0 [ 58.733322] __kasan_slab_free+0x11a/0x170 [ 58.737685] kasan_slab_free+0xe/0x10 [ 58.741466] kmem_cache_free+0x86/0x280 [ 58.745433] vmx_free_vcpu+0x26b/0x300 [ 58.749312] kvm_arch_destroy_vm+0x365/0x7c0 [ 58.753708] kvm_put_kvm+0x73f/0x1060 [ 58.757509] kvm_vm_release+0x42/0x50 [ 58.761304] __fput+0x38a/0xa40 [ 58.764564] ____fput+0x15/0x20 [ 58.767898] task_work_run+0x1e8/0x2a0 [ 58.771777] do_exit+0x1ae4/0x26e0 [ 58.775315] do_group_exit+0x177/0x440 [ 58.779186] __x64_sys_exit_group+0x3e/0x50 [ 58.783531] do_syscall_64+0x1b9/0x820 [ 58.787424] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 58.792604] [ 58.794215] The buggy address belongs to the object at ffff8801b9880040 [ 58.794215] which belongs to the cache kvm_vcpu of size 23872 [ 58.806773] The buggy address is located 24 bytes inside of [ 58.806773] 23872-byte region [ffff8801b9880040, ffff8801b9885d80) [ 58.818819] The buggy address belongs to the page: [ 58.823731] page:ffffea0006e62000 count:1 mapcount:0 mapping:ffff8801d53b6840 index:0x0 compound_mapcount: 0 [ 58.833724] flags: 0x2fffc0000008100(slab|head) [ 58.838520] raw: 02fffc0000008100 ffff8801d53b5348 ffff8801d53b5348 ffff8801d53b6840 [ 58.846395] raw: 0000000000000000 ffff8801b9880040 0000000100000001 0000000000000000 [ 58.854277] page dumped because: kasan: bad access detected [ 58.859973] [ 58.861583] Memory state around the buggy address: [ 58.866492] ffff8801b987ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 58.873832] ffff8801b987ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 58.881176] >ffff8801b9880000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 58.888521] ^ [ 58.894740] ffff8801b9880080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.902075] ffff8801b9880100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 58.909414] ================================================================== [ 58.916862] Kernel panic - not syncing: panic_on_warn set ... [ 58.916862] [ 58.924224] CPU: 0 PID: 4648 Comm: syz-executor443 Tainted: G B 4.19.0-rc1+ #216 [ 58.933166] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.942502] Call Trace: [ 58.945076] dump_stack+0x1c9/0x2b4 [ 58.948685] ? dump_stack_print_info.cold.2+0x52/0x52 [ 58.953882] ? lock_downgrade+0x8f0/0x8f0 [ 58.958025] ? __schedule+0xf54/0x1df0 [ 58.961907] panic+0x238/0x4e7 [ 58.965080] ? add_taint.cold.5+0x16/0x16 [ 58.969218] ? print_shadow_for_address+0xba/0x116 [ 58.974137] ? trace_hardirqs_off+0xaf/0x2b0 [ 58.978527] ? trace_hardirqs_off+0x77/0x2b0 [ 58.982924] ? __schedule+0xf54/0x1df0 [ 58.986855] kasan_end_report+0x47/0x4f [ 58.990818] kasan_report.cold.7+0x76/0x30d [ 58.995137] __asan_report_load8_noabort+0x14/0x20 [ 59.000065] __schedule+0xf54/0x1df0 [ 59.003767] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 59.009037] ? __sched_text_start+0x8/0x8 [ 59.013175] ? __call_srcu+0x7e7/0x1040 [ 59.017158] ? check_same_owner+0x340/0x340 [ 59.021470] ? mark_held_locks+0x160/0x160 [ 59.025692] ? find_held_lock+0x36/0x1c0 [ 59.029749] preempt_schedule_common+0x22/0x60 [ 59.034326] _cond_resched+0x1d/0x30 [ 59.038019] wait_for_completion+0xa5/0x8d0 [ 59.042339] ? wait_for_completion_interruptible+0x950/0x950 [ 59.048123] ? __lockdep_init_map+0x105/0x590 [ 59.052602] ? __init_waitqueue_head+0x9e/0x150 [ 59.057251] ? init_wait_entry+0x1c0/0x1c0 [ 59.061475] __synchronize_srcu+0x189/0x240 [ 59.065788] ? call_srcu+0x10/0x10 [ 59.069352] ? rcu_unexpedite_gp+0x20/0x20 [ 59.073581] synchronize_srcu+0x335/0x56f [ 59.077715] ? lock_downgrade+0x8f0/0x8f0 [ 59.081848] ? synchronize_srcu_expedited+0x20/0x20 [ 59.086901] ? kasan_check_read+0x11/0x20 [ 59.091039] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 59.095603] ? kasan_check_write+0x14/0x20 [ 59.099871] ? do_raw_spin_lock+0xc1/0x200 [ 59.104145] kvm_page_track_unregister_notifier+0x17d/0x250 [ 59.109848] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 59.115344] ? kvfree+0x61/0x70 [ 59.118614] ? rcu_read_lock_sched_held+0x108/0x120 [ 59.123611] kvm_mmu_uninit_vm+0x1c/0x20 [ 59.127658] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 59.132128] ? kvm_arch_sync_events+0x30/0x30 [ 59.136744] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 59.142265] ? mmu_notifier_unregister+0x474/0x600 [ 59.147194] ? trace_hardirqs_on+0x2c0/0x2c0 [ 59.151594] ? kfree+0x111/0x210 [ 59.155011] ? __mmu_notifier_register+0x30/0x30 [ 59.159786] ? __free_pages+0x10a/0x190 [ 59.163754] ? free_unref_page+0x930/0x930 [ 59.167986] kvm_put_kvm+0x73f/0x1060 [ 59.171882] ? kvm_write_guest_cached+0x40/0x40 [ 59.176588] ? _raw_spin_unlock_irq+0x27/0x70 [ 59.181073] ? _raw_spin_unlock_irq+0x27/0x70 [ 59.185553] ? lockdep_hardirqs_on+0x421/0x5c0 [ 59.190126] ? kasan_check_write+0x14/0x20 [ 59.194374] ? do_raw_spin_lock+0xc1/0x200 [ 59.198629] ? kvm_irqfd_release+0xdd/0x120 [ 59.202959] ? kvm_irqfd_release+0xdd/0x120 [ 59.207264] ? kvm_put_kvm+0x1060/0x1060 [ 59.211446] kvm_vm_release+0x42/0x50 [ 59.215234] __fput+0x38a/0xa40 [ 59.218506] ? __alloc_file+0x400/0x400 [ 59.222465] ? check_same_owner+0x340/0x340 [ 59.226772] ? kasan_check_write+0x14/0x20 [ 59.231130] ? do_raw_spin_lock+0xc1/0x200 [ 59.235355] ____fput+0x15/0x20 [ 59.238732] task_work_run+0x1e8/0x2a0 [ 59.242609] ? task_work_cancel+0x240/0x240 [ 59.246930] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 59.252459] ? switch_task_namespaces+0xa2/0xd0 [ 59.257114] do_exit+0x1ae4/0x26e0 [ 59.260637] ? mm_update_next_owner+0x9a0/0x9a0 [ 59.265307] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 59.269524] ? rcu_read_lock_sched_held+0x108/0x120 [ 59.274528] ? kfree+0x1d7/0x210 [ 59.277931] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 59.282153] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 59.287859] ? is_bpf_text_address+0xd7/0x170 [ 59.292347] ? kernel_text_address+0x79/0xf0 [ 59.296748] ? __kernel_text_address+0xd/0x40 [ 59.301226] ? unwind_get_return_address+0x61/0xa0 [ 59.306138] ? __save_stack_trace+0x8d/0xf0 [ 59.310442] ? save_stack+0xa9/0xd0 [ 59.314055] ? save_stack+0x43/0xd0 [ 59.317663] ? __kasan_slab_free+0x11a/0x170 [ 59.322073] ? kasan_slab_free+0xe/0x10 [ 59.326029] ? putname+0xf2/0x130 [ 59.329492] ? __x64_sys_openat+0x9d/0x100 [ 59.333708] ? do_syscall_64+0x1b9/0x820 [ 59.337753] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.343103] ? trace_hardirqs_off+0xb8/0x2b0 [ 59.347513] ? kasan_check_read+0x11/0x20 [ 59.351653] ? do_raw_spin_unlock+0xa7/0x2f0 [ 59.356038] ? trace_hardirqs_on+0x2c0/0x2c0 [ 59.360427] ? initcall_blacklisted+0x9a/0x1e0 [ 59.364992] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 59.370084] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 59.375777] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.381322] ? do_vfs_ioctl+0x201/0x1720 [ 59.385361] ? rcu_is_watching+0x8c/0x150 [ 59.389496] ? trace_hardirqs_on+0xbd/0x2c0 [ 59.393805] ? ioctl_preallocate+0x300/0x300 [ 59.398193] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.403713] ? __fget_light+0x2f7/0x440 [ 59.407684] ? fget_raw+0x20/0x20 [ 59.411119] ? putname+0xf2/0x130 [ 59.414563] ? rcu_read_lock_sched_held+0x108/0x120 [ 59.419626] ? kmem_cache_free+0x246/0x280 [ 59.423942] ? putname+0xf7/0x130 [ 59.427381] do_group_exit+0x177/0x440 [ 59.431328] ? trace_hardirqs_on+0xbd/0x2c0 [ 59.435642] ? __ia32_sys_exit+0x50/0x50 [ 59.439680] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 59.444763] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.450285] ? ksys_ioctl+0x81/0xd0 [ 59.454053] __x64_sys_exit_group+0x3e/0x50 [ 59.458432] do_syscall_64+0x1b9/0x820 [ 59.462436] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 59.467814] ? syscall_return_slowpath+0x5e0/0x5e0 [ 59.472726] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 59.477566] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 59.482568] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 59.487570] ? prepare_exit_to_usermode+0x291/0x3b0 [ 59.492572] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 59.497512] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.502685] RIP: 0033:0x43ed68 [ 59.505861] Code: Bad RIP value. [ 59.509206] RSP: 002b:00007fff1bf64d68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 59.516899] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ed68 [ 59.524147] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 59.531399] RBP: 00000000004be628 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 59.538646] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 59.545892] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 59.553187] [ 59.553190] ====================================================== [ 59.553193] WARNING: possible circular locking dependency detected [ 59.553196] 4.19.0-rc1+ #216 Not tainted [ 59.553199] ------------------------------------------------------ [ 59.553202] syz-executor443/4648 is trying to acquire lock: [ 59.553204] 000000009606a6c5 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 59.553212] [ 59.553214] but task is already holding lock: [ 59.553216] 00000000d4447a77 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 59.553223] [ 59.553226] which lock already depends on the new lock. [ 59.553227] [ 59.553228] [ 59.553231] the existing dependency chain (in reverse order) is: [ 59.553232] [ 59.553233] -> #3 (report_lock){....}: [ 59.553241] _raw_spin_lock_irqsave+0x96/0xc0 [ 59.553243] kasan_report+0x8e/0x110 [ 59.553246] __asan_report_load8_noabort+0x14/0x20 [ 59.553248] __schedule+0xf54/0x1df0 [ 59.553250] preempt_schedule_common+0x22/0x60 [ 59.553252] _cond_resched+0x1d/0x30 [ 59.553255] wait_for_completion+0xa5/0x8d0 [ 59.553257] __synchronize_srcu+0x189/0x240 [ 59.553259] synchronize_srcu+0x335/0x56f [ 59.553262] kvm_page_track_unregister_notifier+0x17d/0x250 [ 59.553265] kvm_mmu_uninit_vm+0x1c/0x20 [ 59.553267] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 59.553269] kvm_put_kvm+0x73f/0x1060 [ 59.553271] kvm_vm_release+0x42/0x50 [ 59.553273] __fput+0x38a/0xa40 [ 59.553275] ____fput+0x15/0x20 [ 59.553277] task_work_run+0x1e8/0x2a0 [ 59.553279] do_exit+0x1ae4/0x26e0 [ 59.553281] do_group_exit+0x177/0x440 [ 59.553284] __x64_sys_exit_group+0x3e/0x50 [ 59.553286] do_syscall_64+0x1b9/0x820 [ 59.553288] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.553290] [ 59.553291] -> #2 (&rq->lock){-.-.}: [ 59.553306] _raw_spin_lock+0x2a/0x40 [ 59.553314] task_fork_fair+0x93/0x680 [ 59.553316] sched_fork+0x44b/0xbd0 [ 59.553319] copy_process+0x235e/0x7ad0 [ 59.553321] _do_fork+0x1ca/0x1170 [ 59.553335] kernel_thread+0x34/0x40 [ 59.553337] rest_init+0x22/0xe4 [ 59.553339] start_kernel+0x913/0x94e [ 59.553342] x86_64_start_reservations+0x29/0x2b [ 59.553344] x86_64_start_kernel+0x76/0x79 [ 59.553347] secondary_startup_64+0xa4/0xb0 [ 59.553348] [ 59.553349] -> #1 (&p->pi_lock){-.-.}: [ 59.553357] _raw_spin_lock_irqsave+0x96/0xc0 [ 59.553359] try_to_wake_up+0xd2/0x1250 [ 59.553362] wake_up_process+0x10/0x20 [ 59.553364] __up.isra.1+0x1c0/0x2a0 [ 59.553366] up+0x13c/0x1c0 [ 59.553368] __up_console_sem+0xbe/0x1b0 [ 59.553370] console_unlock+0x506/0x10d0 [ 59.553373] vprintk_emit+0x33a/0x910 [ 59.553375] vprintk_default+0x28/0x30 [ 59.553377] vprintk_func+0x7a/0x117 [ 59.553379] printk+0xa7/0xcf [ 59.553381] load_umh+0x51/0xbd [ 59.553383] do_one_initcall+0x127/0x838 [ 59.553386] kernel_init_freeable+0x4bb/0x5ae [ 59.553388] kernel_init+0x11/0x1b3 [ 59.553390] ret_from_fork+0x3a/0x50 [ 59.553391] [ 59.553392] -> #0 ((console_sem).lock){-...}: [ 59.553400] lock_acquire+0x1e4/0x4f0 [ 59.553403] _raw_spin_lock_irqsave+0x96/0xc0 [ 59.553405] down_trylock+0x13/0x70 [ 59.553408] __down_trylock_console_sem+0xae/0x200 [ 59.553410] console_trylock+0x15/0xa0 [ 59.553412] vprintk_emit+0x31f/0x910 [ 59.553414] vprintk_default+0x28/0x30 [ 59.553416] vprintk_func+0x7a/0x117 [ 59.553418] printk+0xa7/0xcf [ 59.553420] kasan_report+0x9e/0x110 [ 59.553423] __asan_report_load8_noabort+0x14/0x20 [ 59.553425] __schedule+0xf54/0x1df0 [ 59.553428] preempt_schedule_common+0x22/0x60 [ 59.553430] _cond_resched+0x1d/0x30 [ 59.553432] wait_for_completion+0xa5/0x8d0 [ 59.553435] __synchronize_srcu+0x189/0x240 [ 59.553437] synchronize_srcu+0x335/0x56f [ 59.553440] kvm_page_track_unregister_notifier+0x17d/0x250 [ 59.553442] kvm_mmu_uninit_vm+0x1c/0x20 [ 59.553445] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 59.553447] kvm_put_kvm+0x73f/0x1060 [ 59.553449] kvm_vm_release+0x42/0x50 [ 59.553451] __fput+0x38a/0xa40 [ 59.553453] ____fput+0x15/0x20 [ 59.553455] task_work_run+0x1e8/0x2a0 [ 59.553457] do_exit+0x1ae4/0x26e0 [ 59.553460] do_group_exit+0x177/0x440 [ 59.553462] __x64_sys_exit_group+0x3e/0x50 [ 59.553464] do_syscall_64+0x1b9/0x820 [ 59.553467] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.553468] [ 59.553471] other info that might help us debug this: [ 59.553472] [ 59.553474] Chain exists of: [ 59.553475] (console_sem).lock --> &rq->lock --> report_lock [ 59.553485] [ 59.553487] Possible unsafe locking scenario: [ 59.553488] [ 59.553491] CPU0 CPU1 [ 59.553493] ---- ---- [ 59.553494] lock(report_lock); [ 59.553499] lock(&rq->lock); [ 59.553504] lock(report_lock); [ 59.553509] lock((console_sem).lock); [ 59.553513] [ 59.553515] *** DEADLOCK *** [ 59.553516] [ 59.553518] 2 locks held by syz-executor443/4648: [ 59.553519] #0: 00000000672bbee1 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 59.553528] #1: 00000000d4447a77 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 59.553537] [ 59.553539] stack backtrace: [ 59.553543] CPU: 0 PID: 4648 Comm: syz-executor443 Not tainted 4.19.0-rc1+ #216 [ 59.553547] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.553549] Call Trace: [ 59.553551] dump_stack+0x1c9/0x2b4 [ 59.553553] ? dump_stack_print_info.cold.2+0x52/0x52 [ 59.553556] ? vprintk_func+0x100/0x117 [ 59.553558] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 59.553561] ? save_trace+0xe0/0x290 [ 59.553563] __lock_acquire+0x3449/0x5020 [ 59.553565] ? mark_held_locks+0x160/0x160 [ 59.553567] ? mark_held_locks+0x160/0x160 [ 59.553570] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 59.553572] ? is_bpf_text_address+0xd7/0x170 [ 59.553574] ? kernel_text_address+0x79/0xf0 [ 59.553577] ? __kernel_text_address+0xd/0x40 [ 59.553579] ? __save_stack_trace+0x8d/0xf0 [ 59.553582] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 59.553584] ? save_trace+0x290/0x290 [ 59.553586] ? save_stack_trace+0x1a/0x20 [ 59.553588] ? save_trace+0xe0/0x290 [ 59.553590] ? graph_lock+0x170/0x170 [ 59.553593] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 59.553595] lock_acquire+0x1e4/0x4f0 [ 59.553597] ? down_trylock+0x13/0x70 [ 59.553599] ? lock_release+0x9f0/0x9f0 [ 59.553602] ? trace_hardirqs_off+0xb8/0x2b0 [ 59.553604] ? trace_hardirqs_on+0x2c0/0x2c0 [ 59.553606] ? trace_hardirqs_off+0xb8/0x2b0 [ 59.553609] ? log_store+0x34f/0x4c0 [ 59.553611] ? vprintk_emit+0x31f/0x910 [ 59.553613] _raw_spin_lock_irqsave+0x96/0xc0 [ 59.553615] ? down_trylock+0x13/0x70 [ 59.553617] down_trylock+0x13/0x70 [ 59.553620] __down_trylock_console_sem+0xae/0x200 [ 59.553622] console_trylock+0x15/0xa0 [ 59.553624] vprintk_emit+0x31f/0x910 [ 59.553626] ? wake_up_klogd+0x110/0x110 [ 59.553629] ? run_rebalance_domains+0x4c0/0x4c0 [ 59.553631] ? kasan_check_read+0x11/0x20 [ 59.553633] ? rcu_is_watching+0x8c/0x150 [ 59.553635] ? rcu_pm_notify+0xc0/0xc0 [ 59.553637] ? lock_acquire+0x1e4/0x4f0 [ 59.553640] ? kasan_report+0x8e/0x110 [ 59.553642] ? __schedule+0xf54/0x1df0 [ 59.553644] vprintk_default+0x28/0x30 [ 59.553646] vprintk_func+0x7a/0x117 [ 59.553648] printk+0xa7/0xcf [ 59.553650] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 59.553652] ? kasan_check_write+0x14/0x20 [ 59.553655] ? do_raw_spin_lock+0xc1/0x200 [ 59.553657] ? do_raw_spin_lock+0xc1/0x200 [ 59.553659] kasan_report+0x9e/0x110 [ 59.553662] __asan_report_load8_noabort+0x14/0x20 [ 59.553664] __schedule+0xf54/0x1df0 [ 59.553666] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 59.553669] ? __sched_text_start+0x8/0x8 [ 59.553671] ? __call_srcu+0x7e7/0x1040 [ 59.553673] ? check_same_owner+0x340/0x340 [ 59.553675] ? mark_held_locks+0x160/0x160 [ 59.553678] ? find_held_lock+0x36/0x1c0 [ 59.553680] preempt_schedule_common+0x22/0x60 [ 59.553682] _cond_resched+0x1d/0x30 [ 59.553684] wait_for_completion+0xa5/0x8d0 [ 59.553687] ? wait_for_completion_interruptible+0x950/0x950 [ 59.553690] ? __lockdep_init_map+0x105/0x590 [ 59.553692] ? __init_waitqueue_head+0x9e/0x150 [ 59.553695] ? init_wait_entry+0x1c0/0x1c0 [ 59.553697] __synchronize_srcu+0x189/0x240 [ 59.553699] ? call_srcu+0x10/0x10 [ 59.553701] ? rcu_unexpedite_gp+0x20/0x20 [ 59.553704] synchronize_srcu+0x335/0x56f [ 59.553706] ? lock_downgrade+0x8f0/0x8f0 [ 59.553709] ? synchronize_srcu_expedited+0x20/0x20 [ 59.553711] ? kasan_check_read+0x11/0x20 [ 59.553713] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 59.553716] ? kasan_check_write+0x14/0x20 [ 59.553718] ? do_raw_spin_lock+0xc1/0x200 [ 59.553721] kvm_page_track_unregister_notifier+0x17d/0x250 [ 59.553724] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 59.553726] ? kvfree+0x61/0x70 [ 59.553728] ? rcu_read_lock_sched_held+0x108/0x120 [ 59.553730] kvm_mmu_uninit_vm+0x1c/0x20 [ 59.553733] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 59.553735] ? kvm_arch_sync_events+0x30/0x30 [ 59.553738] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 59.553741] ? mmu_notifier_unregister+0x474/0x600 [ 59.553743] ? trace_hardirqs_on+0x2c0/0x2c0 [ 59.553745] ? kfree+0x111/0x210 [ 59.553747] ? __mmu_notifier_register+0x30/0x30 [ 59.553750] ? __free_pages+0x10a/0x190 [ 59.553752] ? free_unref_page+0x930/0x930 [ 59.553754] kvm_put_kvm+0x73f/0x1060 [ 59.553756] ? kvm_write_guest_cached+0x40/0x40 [ 59.553759] ? _raw_spin_unlock_irq+0x27/0x70 [ 59.553761] ? _raw_spin_unlock_irq+0x27/0x70 [ 59.553763] ? lockdep_hardirqs_on+0x421/0x5c0 [ 59.553766] ? kasan_check_write+0x14/0x20 [ 59.553768] ? do_raw_spin_lock+0xc1/0x200 [ 59.553770] ? kvm_irqfd_release+0xdd/0x120 [ 59.553773] ? kvm_irqfd_release+0xdd/0x120 [ 59.553775] ? kvm_put_kvm+0x1060/0x1060 [ 59.553777] kvm_vm_release+0x42/0x50 [ 59.553779] __fput+0x38a/0xa40 [ 59.553781] ? __alloc_file+0x400/0x400 [ 59.553783] ? check_same_owner+0x340/0x340 [ 59.553786] ? kasan_check_write+0x14/0x20 [ 59.553788] ? do_raw_spin_lock+0xc1/0x200 [ 59.553790] ____fput+0x15/0x20 [ 59.553792] task_work_run+0x1e8/0x2a0 [ 59.553794] ? task_work_cancel+0x240/0x240 [ 59.553797] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 59.553799] ? switch_task_namespaces+0xa2/0xd0 [ 59.553801] do_exit+0x1ae4/0x26e0 [ 59.553804] ? mm_update_next_owner+0x9a0/0x9a0 [ 59.553806] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 59.553810] ? rcu_read_lock_sched_held+0x108/0x120 [ 59.553813] ? kfree+0x1d7/0x210 [ 59.553816] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 59.553818] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 59.553821] ? is_bpf_text_address+0xd7/0x170 [ 59.553822] ? [ 59.553827] Lost 55 message(s)! [ 60.659523] Shutting down cpus with NMI [ 61.719638] Dumping ftrace buffer: [ 61.723183] (ftrace buffer empty) [ 61.726876] Kernel Offset: disabled [ 61.730483] Rebooting in 86400 seconds..