[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.779688] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.493649] random: sshd: uninitialized urandom read (32 bytes read) [ 26.820686] random: sshd: uninitialized urandom read (32 bytes read) [ 27.404469] random: sshd: uninitialized urandom read (32 bytes read) [ 27.589331] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.27' (ECDSA) to the list of known hosts. [ 33.303398] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.401492] 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. [ 33.426565] ================================================================== [ 33.436409] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.442637] Read of size 8 at addr ffff8801bd7a8058 by task syz-executor276/4731 [ 33.450166] [ 33.451796] CPU: 0 PID: 4731 Comm: syz-executor276 Not tainted 4.19.0-rc1+ #217 [ 33.459233] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.468575] Call Trace: [ 33.471165] dump_stack+0x1c9/0x2b4 [ 33.474796] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.479980] ? printk+0xa7/0xcf [ 33.483256] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.488033] ? __schedule+0xf54/0x1df0 [ 33.491939] print_address_description+0x6c/0x20b [ 33.496778] ? __schedule+0xf54/0x1df0 [ 33.500667] kasan_report.cold.7+0x242/0x30d [ 33.505092] __asan_report_load8_noabort+0x14/0x20 [ 33.510042] __schedule+0xf54/0x1df0 [ 33.513782] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.518895] ? __sched_text_start+0x8/0x8 [ 33.523044] ? __call_srcu+0x7e7/0x1040 [ 33.527024] ? check_same_owner+0x340/0x340 [ 33.531344] ? mark_held_locks+0x160/0x160 [ 33.535603] ? find_held_lock+0x36/0x1c0 [ 33.539664] preempt_schedule_common+0x22/0x60 [ 33.544248] _cond_resched+0x1d/0x30 [ 33.547960] wait_for_completion+0xa5/0x8d0 [ 33.552290] ? wait_for_completion_interruptible+0x950/0x950 [ 33.558089] ? __lockdep_init_map+0x105/0x590 [ 33.562585] ? __init_waitqueue_head+0x9e/0x150 [ 33.567249] ? init_wait_entry+0x1c0/0x1c0 [ 33.571484] __synchronize_srcu+0x189/0x240 [ 33.575802] ? call_srcu+0x10/0x10 [ 33.579341] ? rcu_unexpedite_gp+0x20/0x20 [ 33.583620] synchronize_srcu+0x335/0x56f [ 33.587764] ? lock_downgrade+0x8f0/0x8f0 [ 33.591912] ? synchronize_srcu_expedited+0x20/0x20 [ 33.596946] ? kasan_check_read+0x11/0x20 [ 33.601102] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.605693] ? kasan_check_write+0x14/0x20 [ 33.609958] ? do_raw_spin_lock+0xc1/0x200 [ 33.614197] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.619914] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.625363] ? kvfree+0x61/0x70 [ 33.628642] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.633660] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.637719] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.642126] ? kvm_arch_sync_events+0x30/0x30 [ 33.646630] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.652189] ? mmu_notifier_unregister+0x474/0x600 [ 33.657115] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.661526] ? kfree+0x111/0x210 [ 33.664917] ? __mmu_notifier_register+0x30/0x30 [ 33.669672] ? __free_pages+0x10a/0x190 [ 33.673647] ? free_unref_page+0x930/0x930 [ 33.677899] kvm_put_kvm+0x73f/0x1060 [ 33.681704] ? kvm_write_guest_cached+0x40/0x40 [ 33.686375] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.690866] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.695372] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.699962] ? kasan_check_write+0x14/0x20 [ 33.704195] ? do_raw_spin_lock+0xc1/0x200 [ 33.708431] ? kvm_irqfd_release+0xdd/0x120 [ 33.712747] ? kvm_irqfd_release+0xdd/0x120 [ 33.717087] ? kvm_put_kvm+0x1060/0x1060 [ 33.721155] kvm_vm_release+0x42/0x50 [ 33.725162] __fput+0x38a/0xa40 [ 33.728463] ? __alloc_file+0x400/0x400 [ 33.732444] ? check_same_owner+0x340/0x340 [ 33.736761] ? kasan_check_write+0x14/0x20 [ 33.740991] ? do_raw_spin_lock+0xc1/0x200 [ 33.745226] ____fput+0x15/0x20 [ 33.748501] task_work_run+0x1e8/0x2a0 [ 33.752386] ? task_work_cancel+0x240/0x240 [ 33.756719] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.762265] ? switch_task_namespaces+0xa2/0xd0 [ 33.766947] do_exit+0x1ae4/0x26e0 [ 33.770517] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.775211] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.779447] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.784461] ? kfree+0x1d7/0x210 [ 33.787824] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.792059] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.797816] ? is_bpf_text_address+0xd7/0x170 [ 33.802310] ? kernel_text_address+0x79/0xf0 [ 33.806717] ? __kernel_text_address+0xd/0x40 [ 33.811215] ? unwind_get_return_address+0x61/0xa0 [ 33.816158] ? __save_stack_trace+0x8d/0xf0 [ 33.820516] ? save_stack+0xa9/0xd0 [ 33.824176] ? save_stack+0x43/0xd0 [ 33.827798] ? __kasan_slab_free+0x11a/0x170 [ 33.832202] ? kasan_slab_free+0xe/0x10 [ 33.836177] ? putname+0xf2/0x130 [ 33.839645] ? __x64_sys_openat+0x9d/0x100 [ 33.843898] ? do_syscall_64+0x1b9/0x820 [ 33.847959] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.853324] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.857729] ? kasan_check_read+0x11/0x20 [ 33.861889] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.866293] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.870700] ? initcall_blacklisted+0x9a/0x1e0 [ 33.875282] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.880391] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.886103] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.891636] ? do_vfs_ioctl+0x201/0x1720 [ 33.895695] ? rcu_is_watching+0x8c/0x150 [ 33.899860] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.904197] ? ioctl_preallocate+0x300/0x300 [ 33.908614] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.914157] ? __fget_light+0x2f7/0x440 [ 33.918132] ? fget_raw+0x20/0x20 [ 33.921596] ? putname+0xf2/0x130 [ 33.925057] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.930067] ? kmem_cache_free+0x246/0x280 [ 33.934298] ? putname+0xf7/0x130 [ 33.937755] do_group_exit+0x177/0x440 [ 33.941641] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.945966] ? __ia32_sys_exit+0x50/0x50 [ 33.950027] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.955128] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.960666] ? ksys_ioctl+0x81/0xd0 [ 33.964381] __x64_sys_exit_group+0x3e/0x50 [ 33.968704] do_syscall_64+0x1b9/0x820 [ 33.972602] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.977993] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.982921] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.987762] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.992774] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.997787] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.002800] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.007658] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.012846] RIP: 0033:0x43ef08 [ 34.016045] Code: Bad RIP value. [ 34.019413] RSP: 002b:00007fff3d2d14b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.027134] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.034406] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.041671] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.048943] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.056206] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.063483] [ 34.065101] Allocated by task 4731: [ 34.068725] save_stack+0x43/0xd0 [ 34.072180] kasan_kmalloc+0xc4/0xe0 [ 34.075895] kasan_slab_alloc+0x12/0x20 [ 34.079908] kmem_cache_alloc+0x12e/0x710 [ 34.084055] vmx_create_vcpu+0xcf/0x2830 [ 34.088118] kvm_arch_vcpu_create+0xe5/0x220 [ 34.092528] kvm_vm_ioctl+0x488/0x1d80 [ 34.096409] do_vfs_ioctl+0x1de/0x1720 [ 34.100303] ksys_ioctl+0xa9/0xd0 [ 34.103766] __x64_sys_ioctl+0x73/0xb0 [ 34.107649] do_syscall_64+0x1b9/0x820 [ 34.111554] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.116726] [ 34.118344] Freed by task 4731: [ 34.121617] save_stack+0x43/0xd0 [ 34.125068] __kasan_slab_free+0x11a/0x170 [ 34.129294] kasan_slab_free+0xe/0x10 [ 34.133087] kmem_cache_free+0x86/0x280 [ 34.137054] vmx_free_vcpu+0x26b/0x300 [ 34.140958] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.145365] kvm_put_kvm+0x73f/0x1060 [ 34.149180] kvm_vm_release+0x42/0x50 [ 34.152981] __fput+0x38a/0xa40 [ 34.156261] ____fput+0x15/0x20 [ 34.159536] task_work_run+0x1e8/0x2a0 [ 34.163418] do_exit+0x1ae4/0x26e0 [ 34.166961] do_group_exit+0x177/0x440 [ 34.170848] __x64_sys_exit_group+0x3e/0x50 [ 34.175178] do_syscall_64+0x1b9/0x820 [ 34.179069] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.184250] [ 34.185873] The buggy address belongs to the object at ffff8801bd7a8040 [ 34.185873] which belongs to the cache kvm_vcpu of size 23872 [ 34.198452] The buggy address is located 24 bytes inside of [ 34.198452] 23872-byte region [ffff8801bd7a8040, ffff8801bd7add80) [ 34.210404] The buggy address belongs to the page: [ 34.215328] page:ffffea0006f5ea00 count:1 mapcount:0 mapping:ffff8801d52a99c0 index:0x0 compound_mapcount: 0 [ 34.225296] flags: 0x2fffc0000008100(slab|head) [ 34.229977] raw: 02fffc0000008100 ffff8801d52b2f48 ffff8801d52b2f48 ffff8801d52a99c0 [ 34.237853] raw: 0000000000000000 ffff8801bd7a8040 0000000100000001 0000000000000000 [ 34.245746] page dumped because: kasan: bad access detected [ 34.251441] [ 34.253060] Memory state around the buggy address: [ 34.257992] ffff8801bd7a7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.265343] ffff8801bd7a7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.272694] >ffff8801bd7a8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.280039] ^ [ 34.286263] ffff8801bd7a8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.293628] ffff8801bd7a8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.300978] ================================================================== [ 34.308326] Kernel panic - not syncing: panic_on_warn set ... [ 34.308326] [ 34.315699] CPU: 0 PID: 4731 Comm: syz-executor276 Tainted: G B 4.19.0-rc1+ #217 [ 34.324523] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.333869] Call Trace: [ 34.336490] dump_stack+0x1c9/0x2b4 [ 34.340117] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.345327] ? lock_downgrade+0x8f0/0x8f0 [ 34.349471] ? __schedule+0xf54/0x1df0 [ 34.353377] panic+0x238/0x4e7 [ 34.356559] ? add_taint.cold.5+0x16/0x16 [ 34.360706] ? print_shadow_for_address+0xba/0x116 [ 34.365630] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.370032] ? trace_hardirqs_off+0x77/0x2b0 [ 34.374436] ? __schedule+0xf54/0x1df0 [ 34.378336] kasan_end_report+0x47/0x4f [ 34.382306] kasan_report.cold.7+0x76/0x30d [ 34.386625] __asan_report_load8_noabort+0x14/0x20 [ 34.391548] __schedule+0xf54/0x1df0 [ 34.395255] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.400352] ? __sched_text_start+0x8/0x8 [ 34.404500] ? __call_srcu+0x7e7/0x1040 [ 34.408478] ? check_same_owner+0x340/0x340 [ 34.412809] ? mark_held_locks+0x160/0x160 [ 34.417044] ? find_held_lock+0x36/0x1c0 [ 34.421121] preempt_schedule_common+0x22/0x60 [ 34.425707] _cond_resched+0x1d/0x30 [ 34.429429] wait_for_completion+0xa5/0x8d0 [ 34.433769] ? wait_for_completion_interruptible+0x950/0x950 [ 34.439566] ? __lockdep_init_map+0x105/0x590 [ 34.444059] ? __init_waitqueue_head+0x9e/0x150 [ 34.448724] ? init_wait_entry+0x1c0/0x1c0 [ 34.452959] __synchronize_srcu+0x189/0x240 [ 34.457280] ? call_srcu+0x10/0x10 [ 34.460825] ? rcu_unexpedite_gp+0x20/0x20 [ 34.465066] synchronize_srcu+0x335/0x56f [ 34.469212] ? lock_downgrade+0x8f0/0x8f0 [ 34.473356] ? synchronize_srcu_expedited+0x20/0x20 [ 34.478370] ? kasan_check_read+0x11/0x20 [ 34.482515] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.487096] ? kasan_check_write+0x14/0x20 [ 34.491326] ? do_raw_spin_lock+0xc1/0x200 [ 34.495581] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.501291] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.506741] ? kvfree+0x61/0x70 [ 34.510022] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.515036] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.519093] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.523508] ? kvm_arch_sync_events+0x30/0x30 [ 34.528014] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.533552] ? mmu_notifier_unregister+0x474/0x600 [ 34.538489] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.542901] ? kfree+0x111/0x210 [ 34.546265] ? __mmu_notifier_register+0x30/0x30 [ 34.551033] ? __free_pages+0x10a/0x190 [ 34.555003] ? free_unref_page+0x930/0x930 [ 34.559263] kvm_put_kvm+0x73f/0x1060 [ 34.563066] ? kvm_write_guest_cached+0x40/0x40 [ 34.567758] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.572251] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.576755] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.581340] ? kasan_check_write+0x14/0x20 [ 34.585570] ? do_raw_spin_lock+0xc1/0x200 [ 34.589804] ? kvm_irqfd_release+0xdd/0x120 [ 34.594121] ? kvm_irqfd_release+0xdd/0x120 [ 34.598446] ? kvm_put_kvm+0x1060/0x1060 [ 34.602504] kvm_vm_release+0x42/0x50 [ 34.606302] __fput+0x38a/0xa40 [ 34.609589] ? __alloc_file+0x400/0x400 [ 34.613571] ? check_same_owner+0x340/0x340 [ 34.617916] ? kasan_check_write+0x14/0x20 [ 34.622170] ? do_raw_spin_lock+0xc1/0x200 [ 34.626416] ____fput+0x15/0x20 [ 34.629696] task_work_run+0x1e8/0x2a0 [ 34.633580] ? task_work_cancel+0x240/0x240 [ 34.637908] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.643444] ? switch_task_namespaces+0xa2/0xd0 [ 34.648119] do_exit+0x1ae4/0x26e0 [ 34.651700] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.656369] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.660602] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.665615] ? kfree+0x1d7/0x210 [ 34.668994] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.673228] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.678938] ? is_bpf_text_address+0xd7/0x170 [ 34.683431] ? kernel_text_address+0x79/0xf0 [ 34.687850] ? __kernel_text_address+0xd/0x40 [ 34.692366] ? unwind_get_return_address+0x61/0xa0 [ 34.697310] ? __save_stack_trace+0x8d/0xf0 [ 34.701633] ? save_stack+0xa9/0xd0 [ 34.705345] ? save_stack+0x43/0xd0 [ 34.708995] ? __kasan_slab_free+0x11a/0x170 [ 34.713401] ? kasan_slab_free+0xe/0x10 [ 34.717372] ? putname+0xf2/0x130 [ 34.720822] ? __x64_sys_openat+0x9d/0x100 [ 34.725230] ? do_syscall_64+0x1b9/0x820 [ 34.729291] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.734652] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.739059] ? kasan_check_read+0x11/0x20 [ 34.743209] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.747611] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.752027] ? initcall_blacklisted+0x9a/0x1e0 [ 34.756609] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.761716] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.767428] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.772965] ? do_vfs_ioctl+0x201/0x1720 [ 34.777025] ? rcu_is_watching+0x8c/0x150 [ 34.781184] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.785507] ? ioctl_preallocate+0x300/0x300 [ 34.789919] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.795458] ? __fget_light+0x2f7/0x440 [ 34.799431] ? fget_raw+0x20/0x20 [ 34.802891] ? putname+0xf2/0x130 [ 34.806345] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.811362] ? kmem_cache_free+0x246/0x280 [ 34.815606] ? putname+0xf7/0x130 [ 34.819059] do_group_exit+0x177/0x440 [ 34.822947] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.827264] ? __ia32_sys_exit+0x50/0x50 [ 34.831552] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.836663] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.842209] ? ksys_ioctl+0x81/0xd0 [ 34.845836] __x64_sys_exit_group+0x3e/0x50 [ 34.850161] do_syscall_64+0x1b9/0x820 [ 34.854048] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.859413] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.864340] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.869181] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.874206] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.879220] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.884236] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.889081] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.894264] RIP: 0033:0x43ef08 [ 34.897470] Code: Bad RIP value. [ 34.900826] RSP: 002b:00007fff3d2d14b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.908535] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.915797] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.923059] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.930322] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.937587] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.944860] [ 34.944865] ====================================================== [ 34.944870] WARNING: possible circular locking dependency detected [ 34.944874] 4.19.0-rc1+ #217 Not tainted [ 34.944889] ------------------------------------------------------ [ 34.944894] syz-executor276/4731 is trying to acquire lock: [ 34.944898] 00000000d4f48648 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.944912] [ 34.944916] but task is already holding lock: [ 34.944919] 000000002bbd029f (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.944933] [ 34.944937] which lock already depends on the new lock. [ 34.944939] [ 34.944942] [ 34.944947] the existing dependency chain (in reverse order) is: [ 34.944949] [ 34.944951] -> #3 (report_lock){....}: [ 34.944966] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.944969] kasan_report+0x8e/0x110 [ 34.944974] __asan_report_load8_noabort+0x14/0x20 [ 34.944977] __schedule+0xf54/0x1df0 [ 34.944982] preempt_schedule_common+0x22/0x60 [ 34.944985] _cond_resched+0x1d/0x30 [ 34.944990] wait_for_completion+0xa5/0x8d0 [ 34.944994] __synchronize_srcu+0x189/0x240 [ 34.944998] synchronize_srcu+0x335/0x56f [ 34.945003] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.945007] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.945011] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.945014] kvm_put_kvm+0x73f/0x1060 [ 34.945018] kvm_vm_release+0x42/0x50 [ 34.945022] __fput+0x38a/0xa40 [ 34.945025] ____fput+0x15/0x20 [ 34.945029] task_work_run+0x1e8/0x2a0 [ 34.945033] do_exit+0x1ae4/0x26e0 [ 34.945037] do_group_exit+0x177/0x440 [ 34.945040] __x64_sys_exit_group+0x3e/0x50 [ 34.945044] do_syscall_64+0x1b9/0x820 [ 34.945049] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.945051] [ 34.945053] -> #2 (&rq->lock){-.-.}: [ 34.945067] _raw_spin_lock+0x2a/0x40 [ 34.945071] task_fork_fair+0x93/0x680 [ 34.945074] sched_fork+0x44b/0xbd0 [ 34.945078] copy_process+0x235e/0x7ad0 [ 34.945082] _do_fork+0x1ca/0x1170 [ 34.945085] kernel_thread+0x34/0x40 [ 34.945089] rest_init+0x22/0xe4 [ 34.945092] start_kernel+0x913/0x94e [ 34.945097] x86_64_start_reservations+0x29/0x2b [ 34.945101] x86_64_start_kernel+0x76/0x79 [ 34.945105] secondary_startup_64+0xa4/0xb0 [ 34.945107] [ 34.945109] -> #1 (&p->pi_lock){-.-.}: [ 34.945123] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.945127] try_to_wake_up+0xd2/0x1250 [ 34.945131] wake_up_process+0x10/0x20 [ 34.945134] __up.isra.1+0x1c0/0x2a0 [ 34.945138] up+0x13c/0x1c0 [ 34.945148] __up_console_sem+0xbe/0x1b0 [ 34.945152] console_unlock+0x506/0x10d0 [ 34.945156] vprintk_emit+0x33a/0x910 [ 34.945159] vprintk_default+0x28/0x30 [ 34.945163] vprintk_func+0x7a/0x117 [ 34.945166] printk+0xa7/0xcf [ 34.945170] do_exit.cold.22+0x120/0x21f [ 34.945174] do_group_exit+0x177/0x440 [ 34.945178] __x64_sys_exit_group+0x3e/0x50 [ 34.945182] do_syscall_64+0x1b9/0x820 [ 34.945186] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.945188] [ 34.945191] -> #0 ((console_sem).lock){-...}: [ 34.945205] lock_acquire+0x1e4/0x4f0 [ 34.945209] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.945212] down_trylock+0x13/0x70 [ 34.945217] __down_trylock_console_sem+0xae/0x200 [ 34.945221] console_trylock+0x15/0xa0 [ 34.945224] vprintk_emit+0x31f/0x910 [ 34.945228] vprintk_default+0x28/0x30 [ 34.945232] vprintk_func+0x7a/0x117 [ 34.945235] printk+0xa7/0xcf [ 34.945239] kasan_report+0x9e/0x110 [ 34.945243] __asan_report_load8_noabort+0x14/0x20 [ 34.945247] __schedule+0xf54/0x1df0 [ 34.945251] preempt_schedule_common+0x22/0x60 [ 34.945255] _cond_resched+0x1d/0x30 [ 34.945259] wait_for_completion+0xa5/0x8d0 [ 34.945263] __synchronize_srcu+0x189/0x240 [ 34.945267] synchronize_srcu+0x335/0x56f [ 34.945272] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.945276] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.945280] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.945284] kvm_put_kvm+0x73f/0x1060 [ 34.945288] kvm_vm_release+0x42/0x50 [ 34.945291] __fput+0x38a/0xa40 [ 34.945295] ____fput+0x15/0x20 [ 34.945299] task_work_run+0x1e8/0x2a0 [ 34.945302] do_exit+0x1ae4/0x26e0 [ 34.945306] do_group_exit+0x177/0x440 [ 34.945310] __x64_sys_exit_group+0x3e/0x50 [ 34.945314] do_syscall_64+0x1b9/0x820 [ 34.945318] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.945320] [ 34.945325] other info that might help us debug this: [ 34.945327] [ 34.945330] Chain exists of: [ 34.945332] (console_sem).lock --> &rq->lock --> report_lock [ 34.945350] [ 34.945354] Possible unsafe locking scenario: [ 34.945356] [ 34.945360] CPU0 CPU1 [ 34.945364] ---- ---- [ 34.945366] lock(report_lock); [ 34.945375] lock(&rq->lock); [ 34.945384] lock(report_lock); [ 34.945392] lock((console_sem).lock); [ 34.945400] [ 34.945403] *** DEADLOCK *** [ 34.945405] [ 34.945409] 2 locks held by syz-executor276/4731: [ 34.945411] #0: 00000000d049e8a4 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.945428] #1: 000000002bbd029f (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.945444] [ 34.945447] stack backtrace: [ 34.945453] CPU: 0 PID: 4731 Comm: syz-executor276 Not tainted 4.19.0-rc1+ #217 [ 34.945460] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.945463] Call Trace: [ 34.945467] dump_stack+0x1c9/0x2b4 [ 34.945471] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.945475] ? vprintk_func+0x100/0x117 [ 34.945479] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.945483] ? save_trace+0xe0/0x290 [ 34.945487] __lock_acquire+0x3449/0x5020 [ 34.945491] ? mark_held_locks+0x160/0x160 [ 34.945495] ? mark_held_locks+0x160/0x160 [ 34.945499] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.945503] ? is_bpf_text_address+0xd7/0x170 [ 34.945507] ? kernel_text_address+0x79/0xf0 [ 34.945511] ? __kernel_text_address+0xd/0x40 [ 34.945515] ? __save_stack_trace+0x8d/0xf0 [ 34.945519] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.945523] ? save_trace+0x290/0x290 [ 34.945527] ? save_stack_trace+0x1a/0x20 [ 34.945530] ? save_trace+0xe0/0x290 [ 34.945534] ? graph_lock+0x170/0x170 [ 34.945539] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.945542] lock_acquire+0x1e4/0x4f0 [ 34.945546] ? down_trylock+0x13/0x70 [ 34.945550] ? lock_release+0x9f0/0x9f0 [ 34.945554] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.945558] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.945562] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.945565] ? log_store+0x34f/0x4c0 [ 34.945569] ? vprintk_emit+0x31f/0x910 [ 34.945573] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.945577] ? down_trylock+0x13/0x70 [ 34.945580] down_trylock+0x13/0x70 [ 34.945585] __down_trylock_console_sem+0xae/0x200 [ 34.945588] console_trylock+0x15/0xa0 [ 34.945592] vprintk_emit+0x31f/0x910 [ 34.945596] ? wake_up_klogd+0x110/0x110 [ 34.945600] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.945604] ? kasan_check_read+0x11/0x20 [ 34.945608] ? rcu_is_watching+0x8c/0x150 [ 34.945611] ? rcu_pm_notify+0xc0/0xc0 [ 34.945615] ? lock_acquire+0x1e4/0x4f0 [ 34.945619] ? kasan_report+0x8e/0x110 [ 34.945622] ? __schedule+0xf54/0x1df0 [ 34.945626] vprintk_default+0x28/0x30 [ 34.945630] vprintk_func+0x7a/0x117 [ 34.945633] printk+0xa7/0xcf [ 34.945637] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.945641] ? kasan_check_write+0x14/0x20 [ 34.945646] ? do_raw_spin_lock+0xc1/0x200 [ 34.945650] ? do_raw_spin_lock+0xc1/0x200 [ 34.945653] kasan_report+0x9e/0x110 [ 34.945658] __asan_report_load8_noabort+0x14/0x20 [ 34.945661] __schedule+0xf54/0x1df0 [ 34.945666] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.945670] ? __sched_text_start+0x8/0x8 [ 34.945673] ? __call_srcu+0x7e7/0x1040 [ 34.945677] ? check_same_owner+0x340/0x340 [ 34.945681] ? mark_held_locks+0x160/0x160 [ 34.945685] ? find_held_lock+0x36/0x1c0 [ 34.945689] preempt_schedule_common+0x22/0x60 [ 34.945693] _cond_resched+0x1d/0x30 [ 34.945697] wait_for_completion+0xa5/0x8d0 [ 34.945701] ? wait_for_completion_interruptible+0x950/0x950 [ 34.945705] ? __lockdep_init_map+0x105/0x590 [ 34.945709] ? __init_waitqueue_head+0x9e/0x150 [ 34.945713] ? init_wait_entry+0x1c0/0x1c0 [ 34.945717] __synchronize_srcu+0x189/0x240 [ 34.945721] ? call_srcu+0x10/0x10 [ 34.945725] ? rcu_unexpedite_gp+0x20/0x20 [ 34.945729] synchronize_srcu+0x335/0x56f [ 34.945733] ? lock_downgrade+0x8f0/0x8f0 [ 34.945737] ? synchronize_srcu_expedited+0x20/0x20 [ 34.945741] ? kasan_check_read+0x11/0x20 [ 34.945745] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.945749] ? kasan_check_write+0x14/0x20 [ 34.945753] ? do_raw_spin_lock+0xc1/0x200 [ 34.945758] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.945762] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.945766] ? kvfree+0x61/0x70 [ 34.945770] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.945774] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.945778] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.945782] ? kvm_arch_sync_events+0x30/0x30 [ 34.945787] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.945791] ? mmu_notifier_unregister+0x474/0x600 [ 34.945795] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.945799] ? kfree+0x111/0x210 [ 34.945803] ? __mmu_notifier_register+0x30/0x30 [ 34.945807] ? __free_pages+0x10a/0x190 [ 34.945811] ? free_unref_page+0x930/0x930 [ 34.945814] kvm_put_kvm+0x73f/0x1060 [ 34.945818] ? kvm_write_guest_cached+0x40/0x40 [ 34.945822] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.945826] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.945830] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.945834] ? kasan_check_write+0x14/0x20 [ 34.945838] ? do_raw_spin_lock+0xc1/0x200 [ 34.945842] ? kvm_irqfd_release+0xdd/0x120 [ 34.945846] ? kvm_irqfd_release+0xdd/0x120 [ 34.945850] ? kvm_put_kvm+0x1060/0x1060 [ 34.945854] kvm_vm_release+0x42/0x50 [ 34.945857] __fput+0x38a/0xa40 [ 34.945861] ? __alloc_file+0x400/0x400 [ 34.945865] ? check_same_owner+0x340/0x340 [ 34.945869] ? kasan_check_write+0x14/0x20 [ 34.945873] ? do_raw_spin_lock+0xc1/0x200 [ 34.945883] ____fput+0x15/0x20 [ 34.945887] task_work_run+0x1e8/0x2a0 [ 34.945891] ? task_work_cancel+0x240/0x240 [ 34.945896] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.945900] ? switch_task_namespaces+0xa2/0xd0 [ 34.945903] do_exit+0x1ae4/0x26e0 [ 34.945908] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.945912] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.945916] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.945919] ? kfree+0x1d7/0x210 [ 34.945923] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.945928] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.945931] ? is_bpf_tex [ 34.945938] Lost 56 message(s)! [ 36.040524] Shutting down cpus with NMI [ 37.098691] Dumping ftrace buffer: [ 37.102216] (ftrace buffer empty) [ 37.105917] Kernel Offset: disabled [ 37.109524] Rebooting in 86400 seconds..