[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.796517] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.006561] random: sshd: uninitialized urandom read (32 bytes read) [ 28.260982] random: sshd: uninitialized urandom read (32 bytes read) [ 28.857811] random: sshd: uninitialized urandom read (32 bytes read) [ 29.042887] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.44' (ECDSA) to the list of known hosts. [ 34.660522] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.758709] 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. [ 34.784757] ================================================================== [ 34.794638] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.800886] Read of size 8 at addr ffff8801bbd30058 by task syz-executor914/4672 [ 34.808409] [ 34.810037] CPU: 1 PID: 4672 Comm: syz-executor914 Not tainted 4.19.0-rc1+ #217 [ 34.817472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.826826] Call Trace: [ 34.829427] dump_stack+0x1c9/0x2b4 [ 34.833058] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.838247] ? printk+0xa7/0xcf [ 34.841533] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.846296] ? __schedule+0xf54/0x1df0 [ 34.850187] print_address_description+0x6c/0x20b [ 34.855036] ? __schedule+0xf54/0x1df0 [ 34.858924] kasan_report.cold.7+0x242/0x30d [ 34.863337] __asan_report_load8_noabort+0x14/0x20 [ 34.868267] __schedule+0xf54/0x1df0 [ 34.871983] ? __sched_text_start+0x8/0x8 [ 34.876137] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.881238] ? __call_srcu+0x7e7/0x1040 [ 34.885218] ? check_same_owner+0x340/0x340 [ 34.889537] ? mark_held_locks+0x160/0x160 [ 34.893769] ? find_held_lock+0x36/0x1c0 [ 34.897835] preempt_schedule_common+0x22/0x60 [ 34.902423] _cond_resched+0x1d/0x30 [ 34.906137] wait_for_completion+0xa5/0x8d0 [ 34.910464] ? wait_for_completion_interruptible+0x950/0x950 [ 34.916264] ? __lockdep_init_map+0x105/0x590 [ 34.920759] ? __init_waitqueue_head+0x9e/0x150 [ 34.925440] ? init_wait_entry+0x1c0/0x1c0 [ 34.929678] __synchronize_srcu+0x189/0x240 [ 34.934006] ? call_srcu+0x10/0x10 [ 34.937561] ? rcu_unexpedite_gp+0x20/0x20 [ 34.941800] synchronize_srcu+0x335/0x56f [ 34.945947] ? lock_downgrade+0x8f0/0x8f0 [ 34.950094] ? synchronize_srcu_expedited+0x20/0x20 [ 34.955113] ? kasan_check_read+0x11/0x20 [ 34.959259] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.963842] ? kasan_check_write+0x14/0x20 [ 34.968077] ? do_raw_spin_lock+0xc1/0x200 [ 34.972318] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.978036] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.983485] ? kvfree+0x61/0x70 [ 34.986767] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.991786] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.995846] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.000255] ? kvm_arch_sync_events+0x30/0x30 [ 35.004756] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.010293] ? mmu_notifier_unregister+0x474/0x600 [ 35.015219] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.019624] ? kfree+0x111/0x210 [ 35.022991] ? __mmu_notifier_register+0x30/0x30 [ 35.027753] ? __free_pages+0x10a/0x190 [ 35.031729] ? free_unref_page+0x930/0x930 [ 35.035972] kvm_put_kvm+0x73f/0x1060 [ 35.039785] ? kvm_write_guest_cached+0x40/0x40 [ 35.044458] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.048953] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.053444] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.058036] ? kasan_check_write+0x14/0x20 [ 35.062268] ? do_raw_spin_lock+0xc1/0x200 [ 35.066506] ? kvm_irqfd_release+0xdd/0x120 [ 35.070824] ? kvm_irqfd_release+0xdd/0x120 [ 35.075152] ? kvm_put_kvm+0x1060/0x1060 [ 35.079211] kvm_vm_release+0x42/0x50 [ 35.083016] __fput+0x38a/0xa40 [ 35.086294] ? __alloc_file+0x400/0x400 [ 35.090272] ? check_same_owner+0x340/0x340 [ 35.094594] ? kasan_check_write+0x14/0x20 [ 35.098829] ? do_raw_spin_lock+0xc1/0x200 [ 35.103066] ____fput+0x15/0x20 [ 35.106356] task_work_run+0x1e8/0x2a0 [ 35.110245] ? task_work_cancel+0x240/0x240 [ 35.114568] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.120105] ? switch_task_namespaces+0xa2/0xd0 [ 35.124795] do_exit+0x1ae4/0x26e0 [ 35.128339] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.133020] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.137259] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.142273] ? kfree+0x1d7/0x210 [ 35.145656] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.149894] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.155612] ? is_bpf_text_address+0xd7/0x170 [ 35.160110] ? kernel_text_address+0x79/0xf0 [ 35.164526] ? __kernel_text_address+0xd/0x40 [ 35.169037] ? unwind_get_return_address+0x61/0xa0 [ 35.173973] ? __save_stack_trace+0x8d/0xf0 [ 35.178323] ? save_stack+0xa9/0xd0 [ 35.181950] ? save_stack+0x43/0xd0 [ 35.185581] ? __kasan_slab_free+0x11a/0x170 [ 35.189990] ? kasan_slab_free+0xe/0x10 [ 35.193974] ? putname+0xf2/0x130 [ 35.197432] ? __x64_sys_openat+0x9d/0x100 [ 35.201715] ? do_syscall_64+0x1b9/0x820 [ 35.205790] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.211154] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.215562] ? kasan_check_read+0x11/0x20 [ 35.219736] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.224165] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.228575] ? initcall_blacklisted+0x9a/0x1e0 [ 35.233163] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.238269] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.243984] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.249528] ? do_vfs_ioctl+0x201/0x1720 [ 35.253591] ? rcu_is_watching+0x8c/0x150 [ 35.257738] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.262066] ? ioctl_preallocate+0x300/0x300 [ 35.266475] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.272022] ? __fget_light+0x2f7/0x440 [ 35.276014] ? fget_raw+0x20/0x20 [ 35.279463] ? putname+0xf2/0x130 [ 35.282918] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.287935] ? kmem_cache_free+0x246/0x280 [ 35.292170] ? putname+0xf7/0x130 [ 35.295629] do_group_exit+0x177/0x440 [ 35.299517] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.303852] ? __ia32_sys_exit+0x50/0x50 [ 35.307908] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.313021] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.318560] ? ksys_ioctl+0x81/0xd0 [ 35.322187] __x64_sys_exit_group+0x3e/0x50 [ 35.326509] do_syscall_64+0x1b9/0x820 [ 35.330403] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.335765] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.340691] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.345535] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.350551] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.355579] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.360600] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.365448] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.370637] RIP: 0033:0x43ecc8 [ 35.373835] Code: Bad RIP value. [ 35.377198] RSP: 002b:00007ffc0a457b38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.384908] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.392172] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.399437] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.406702] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.413965] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.421246] [ 35.422870] Allocated by task 4672: [ 35.426500] save_stack+0x43/0xd0 [ 35.429949] kasan_kmalloc+0xc4/0xe0 [ 35.433660] kasan_slab_alloc+0x12/0x20 [ 35.437632] kmem_cache_alloc+0x12e/0x710 [ 35.441777] vmx_create_vcpu+0xcf/0x2830 [ 35.445838] kvm_arch_vcpu_create+0xe5/0x220 [ 35.450246] kvm_vm_ioctl+0x488/0x1d80 [ 35.454133] do_vfs_ioctl+0x1de/0x1720 [ 35.458022] ksys_ioctl+0xa9/0xd0 [ 35.461475] __x64_sys_ioctl+0x73/0xb0 [ 35.465360] do_syscall_64+0x1b9/0x820 [ 35.469252] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.474433] [ 35.476057] Freed by task 4672: [ 35.479336] save_stack+0x43/0xd0 [ 35.482791] __kasan_slab_free+0x11a/0x170 [ 35.487030] kasan_slab_free+0xe/0x10 [ 35.490825] kmem_cache_free+0x86/0x280 [ 35.494794] vmx_free_vcpu+0x26b/0x300 [ 35.498675] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.503085] kvm_put_kvm+0x73f/0x1060 [ 35.506882] kvm_vm_release+0x42/0x50 [ 35.510681] __fput+0x38a/0xa40 [ 35.513957] ____fput+0x15/0x20 [ 35.517233] task_work_run+0x1e8/0x2a0 [ 35.521117] do_exit+0x1ae4/0x26e0 [ 35.524655] do_group_exit+0x177/0x440 [ 35.528545] __x64_sys_exit_group+0x3e/0x50 [ 35.532867] do_syscall_64+0x1b9/0x820 [ 35.536757] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.541937] [ 35.543561] The buggy address belongs to the object at ffff8801bbd30040 [ 35.543561] which belongs to the cache kvm_vcpu of size 23872 [ 35.556131] The buggy address is located 24 bytes inside of [ 35.556131] 23872-byte region [ffff8801bbd30040, ffff8801bbd35d80) [ 35.568086] The buggy address belongs to the page: [ 35.573017] page:ffffea0006ef4c00 count:1 mapcount:0 mapping:ffff8801d5242840 index:0x0 compound_mapcount: 0 [ 35.582984] flags: 0x2fffc0000008100(slab|head) [ 35.587659] raw: 02fffc0000008100 ffff8801d524ae48 ffff8801d524ae48 ffff8801d5242840 [ 35.595543] raw: 0000000000000000 ffff8801bbd30040 0000000100000001 0000000000000000 [ 35.603412] page dumped because: kasan: bad access detected [ 35.609107] [ 35.610740] Memory state around the buggy address: [ 35.615665] ffff8801bbd2ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.623023] ffff8801bbd2ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.630409] >ffff8801bbd30000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.637767] ^ [ 35.643993] ffff8801bbd30080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.651359] ffff8801bbd30100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.658710] ================================================================== [ 35.666061] Kernel panic - not syncing: panic_on_warn set ... [ 35.666061] [ 35.673430] CPU: 1 PID: 4672 Comm: syz-executor914 Tainted: G B 4.19.0-rc1+ #217 [ 35.682259] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.691604] Call Trace: [ 35.694204] dump_stack+0x1c9/0x2b4 [ 35.698300] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.703490] ? lock_downgrade+0x8f0/0x8f0 [ 35.707644] ? __schedule+0xf54/0x1df0 [ 35.711534] panic+0x238/0x4e7 [ 35.714722] ? add_taint.cold.5+0x16/0x16 [ 35.718873] ? print_shadow_for_address+0xba/0x116 [ 35.723803] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.728209] ? trace_hardirqs_off+0x77/0x2b0 [ 35.732630] ? __schedule+0xf54/0x1df0 [ 35.736518] kasan_end_report+0x47/0x4f [ 35.740495] kasan_report.cold.7+0x76/0x30d [ 35.744823] __asan_report_load8_noabort+0x14/0x20 [ 35.749751] __schedule+0xf54/0x1df0 [ 35.753468] ? __sched_text_start+0x8/0x8 [ 35.757615] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 35.762717] ? __call_srcu+0x7e7/0x1040 [ 35.766701] ? check_same_owner+0x340/0x340 [ 35.771026] ? mark_held_locks+0x160/0x160 [ 35.775258] ? find_held_lock+0x36/0x1c0 [ 35.779318] preempt_schedule_common+0x22/0x60 [ 35.783899] _cond_resched+0x1d/0x30 [ 35.787613] wait_for_completion+0xa5/0x8d0 [ 35.791937] ? wait_for_completion_interruptible+0x950/0x950 [ 35.797730] ? __lockdep_init_map+0x105/0x590 [ 35.802312] ? __init_waitqueue_head+0x9e/0x150 [ 35.806979] ? init_wait_entry+0x1c0/0x1c0 [ 35.811224] __synchronize_srcu+0x189/0x240 [ 35.815543] ? call_srcu+0x10/0x10 [ 35.819082] ? rcu_unexpedite_gp+0x20/0x20 [ 35.823323] synchronize_srcu+0x335/0x56f [ 35.827470] ? lock_downgrade+0x8f0/0x8f0 [ 35.831615] ? synchronize_srcu_expedited+0x20/0x20 [ 35.836637] ? kasan_check_read+0x11/0x20 [ 35.840783] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.845366] ? kasan_check_write+0x14/0x20 [ 35.849599] ? do_raw_spin_lock+0xc1/0x200 [ 35.853838] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.859552] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.865007] ? kvfree+0x61/0x70 [ 35.868287] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.873305] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.877369] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.881803] ? kvm_arch_sync_events+0x30/0x30 [ 35.886324] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.891881] ? mmu_notifier_unregister+0x474/0x600 [ 35.896835] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.901240] ? kfree+0x111/0x210 [ 35.904629] ? __mmu_notifier_register+0x30/0x30 [ 35.909386] ? __free_pages+0x10a/0x190 [ 35.913363] ? free_unref_page+0x930/0x930 [ 35.917607] kvm_put_kvm+0x73f/0x1060 [ 35.921418] ? kvm_write_guest_cached+0x40/0x40 [ 35.926100] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.930597] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.935093] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.939682] ? kasan_check_write+0x14/0x20 [ 35.943916] ? do_raw_spin_lock+0xc1/0x200 [ 35.948155] ? kvm_irqfd_release+0xdd/0x120 [ 35.952478] ? kvm_irqfd_release+0xdd/0x120 [ 35.956802] ? kvm_put_kvm+0x1060/0x1060 [ 35.960867] kvm_vm_release+0x42/0x50 [ 35.964668] __fput+0x38a/0xa40 [ 35.967951] ? __alloc_file+0x400/0x400 [ 35.971931] ? check_same_owner+0x340/0x340 [ 35.976250] ? kasan_check_write+0x14/0x20 [ 35.980490] ? do_raw_spin_lock+0xc1/0x200 [ 35.984726] ____fput+0x15/0x20 [ 35.988014] task_work_run+0x1e8/0x2a0 [ 35.991904] ? task_work_cancel+0x240/0x240 [ 35.996232] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.001770] ? switch_task_namespaces+0xa2/0xd0 [ 36.006443] do_exit+0x1ae4/0x26e0 [ 36.010023] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.014708] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.018955] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.023972] ? kfree+0x1d7/0x210 [ 36.027350] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.031589] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.037305] ? is_bpf_text_address+0xd7/0x170 [ 36.041801] ? kernel_text_address+0x79/0xf0 [ 36.046208] ? __kernel_text_address+0xd/0x40 [ 36.050705] ? unwind_get_return_address+0x61/0xa0 [ 36.055635] ? __save_stack_trace+0x8d/0xf0 [ 36.059965] ? save_stack+0xa9/0xd0 [ 36.063598] ? save_stack+0x43/0xd0 [ 36.067227] ? __kasan_slab_free+0x11a/0x170 [ 36.071633] ? kasan_slab_free+0xe/0x10 [ 36.075608] ? putname+0xf2/0x130 [ 36.079062] ? __x64_sys_openat+0x9d/0x100 [ 36.083315] ? do_syscall_64+0x1b9/0x820 [ 36.087378] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.092745] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.097152] ? kasan_check_read+0x11/0x20 [ 36.101301] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.105710] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.110125] ? initcall_blacklisted+0x9a/0x1e0 [ 36.114715] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.119824] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.125541] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.131080] ? do_vfs_ioctl+0x201/0x1720 [ 36.135140] ? rcu_is_watching+0x8c/0x150 [ 36.139304] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.143628] ? ioctl_preallocate+0x300/0x300 [ 36.148037] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.153577] ? __fget_light+0x2f7/0x440 [ 36.157554] ? fget_raw+0x20/0x20 [ 36.161011] ? putname+0xf2/0x130 [ 36.164469] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.169484] ? kmem_cache_free+0x246/0x280 [ 36.173724] ? putname+0xf7/0x130 [ 36.177191] do_group_exit+0x177/0x440 [ 36.181078] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.185397] ? __ia32_sys_exit+0x50/0x50 [ 36.189457] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.194563] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.200101] ? ksys_ioctl+0x81/0xd0 [ 36.203730] __x64_sys_exit_group+0x3e/0x50 [ 36.208054] do_syscall_64+0x1b9/0x820 [ 36.211945] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.217308] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.222237] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.227078] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.232096] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.237113] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.242137] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.246985] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.252174] RIP: 0033:0x43ecc8 [ 36.255378] Code: Bad RIP value. [ 36.258739] RSP: 002b:00007ffc0a457b38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.266450] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.273720] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.280986] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.288284] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.295553] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.302852] [ 36.302858] ====================================================== [ 36.302863] WARNING: possible circular locking dependency detected [ 36.302867] 4.19.0-rc1+ #217 Not tainted [ 36.302873] ------------------------------------------------------ [ 36.302877] syz-executor914/4672 is trying to acquire lock: [ 36.302881] 00000000ac0b78f1 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.302897] [ 36.302901] but task is already holding lock: [ 36.302904] 000000009cb237df (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.302918] [ 36.302923] which lock already depends on the new lock. [ 36.302925] [ 36.302928] [ 36.302933] the existing dependency chain (in reverse order) is: [ 36.302935] [ 36.302937] -> #3 (report_lock){....}: [ 36.302952] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.302956] kasan_report+0x8e/0x110 [ 36.302960] __asan_report_load8_noabort+0x14/0x20 [ 36.302964] __schedule+0xf54/0x1df0 [ 36.302969] preempt_schedule_common+0x22/0x60 [ 36.302973] _cond_resched+0x1d/0x30 [ 36.302977] wait_for_completion+0xa5/0x8d0 [ 36.302981] __synchronize_srcu+0x189/0x240 [ 36.302985] synchronize_srcu+0x335/0x56f [ 36.302990] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.302994] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.303006] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.303010] kvm_put_kvm+0x73f/0x1060 [ 36.303014] kvm_vm_release+0x42/0x50 [ 36.303018] __fput+0x38a/0xa40 [ 36.303021] ____fput+0x15/0x20 [ 36.303025] task_work_run+0x1e8/0x2a0 [ 36.303029] do_exit+0x1ae4/0x26e0 [ 36.303033] do_group_exit+0x177/0x440 [ 36.303037] __x64_sys_exit_group+0x3e/0x50 [ 36.303041] do_syscall_64+0x1b9/0x820 [ 36.303046] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.303049] [ 36.303051] -> #2 (&rq->lock){-.-.}: [ 36.303065] _raw_spin_lock+0x2a/0x40 [ 36.303069] task_fork_fair+0x93/0x680 [ 36.303073] sched_fork+0x44b/0xbd0 [ 36.303077] copy_process+0x235e/0x7ad0 [ 36.303081] _do_fork+0x1ca/0x1170 [ 36.303085] kernel_thread+0x34/0x40 [ 36.303088] rest_init+0x22/0xe4 [ 36.303092] start_kernel+0x913/0x94e [ 36.303096] x86_64_start_reservations+0x29/0x2b [ 36.303101] x86_64_start_kernel+0x76/0x79 [ 36.303105] secondary_startup_64+0xa4/0xb0 [ 36.303107] [ 36.303109] -> #1 (&p->pi_lock){-.-.}: [ 36.303124] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.303128] try_to_wake_up+0xd2/0x1250 [ 36.303132] wake_up_process+0x10/0x20 [ 36.303136] __up.isra.1+0x1c0/0x2a0 [ 36.303139] up+0x13c/0x1c0 [ 36.303143] __up_console_sem+0xbe/0x1b0 [ 36.303147] console_unlock+0x506/0x10d0 [ 36.303151] vprintk_emit+0x33a/0x910 [ 36.303155] vprintk_default+0x28/0x30 [ 36.303159] vprintk_func+0x7a/0x117 [ 36.303163] printk+0xa7/0xcf [ 36.303166] load_umh+0x51/0xbd [ 36.303170] do_one_initcall+0x127/0x838 [ 36.303174] kernel_init_freeable+0x4bb/0x5ae [ 36.303178] kernel_init+0x11/0x1b3 [ 36.303182] ret_from_fork+0x3a/0x50 [ 36.303184] [ 36.303187] -> #0 ((console_sem).lock){-...}: [ 36.303201] lock_acquire+0x1e4/0x4f0 [ 36.303206] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.303210] down_trylock+0x13/0x70 [ 36.303214] __down_trylock_console_sem+0xae/0x200 [ 36.303218] console_trylock+0x15/0xa0 [ 36.303222] vprintk_emit+0x31f/0x910 [ 36.303226] vprintk_default+0x28/0x30 [ 36.303230] vprintk_func+0x7a/0x117 [ 36.303233] printk+0xa7/0xcf [ 36.303237] kasan_report+0x9e/0x110 [ 36.303242] __asan_report_load8_noabort+0x14/0x20 [ 36.303245] __schedule+0xf54/0x1df0 [ 36.303250] preempt_schedule_common+0x22/0x60 [ 36.303253] _cond_resched+0x1d/0x30 [ 36.303258] wait_for_completion+0xa5/0x8d0 [ 36.303262] __synchronize_srcu+0x189/0x240 [ 36.303266] synchronize_srcu+0x335/0x56f [ 36.303271] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.303275] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.303279] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.303283] kvm_put_kvm+0x73f/0x1060 [ 36.303287] kvm_vm_release+0x42/0x50 [ 36.303291] __fput+0x38a/0xa40 [ 36.303294] ____fput+0x15/0x20 [ 36.303298] task_work_run+0x1e8/0x2a0 [ 36.303302] do_exit+0x1ae4/0x26e0 [ 36.303306] do_group_exit+0x177/0x440 [ 36.303310] __x64_sys_exit_group+0x3e/0x50 [ 36.303314] do_syscall_64+0x1b9/0x820 [ 36.303319] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.303321] [ 36.303325] other info that might help us debug this: [ 36.303328] [ 36.303331] Chain exists of: [ 36.303333] (console_sem).lock --> &rq->lock --> report_lock [ 36.303351] [ 36.303355] Possible unsafe locking scenario: [ 36.303357] [ 36.303362] CPU0 CPU1 [ 36.303366] ---- ---- [ 36.303368] lock(report_lock); [ 36.303378] lock(&rq->lock); [ 36.303387] lock(report_lock); [ 36.303395] lock((console_sem).lock); [ 36.303403] [ 36.303407] *** DEADLOCK *** [ 36.303409] [ 36.303413] 2 locks held by syz-executor914/4672: [ 36.303415] #0: 0000000017cf53c4 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.303433] #1: 000000009cb237df (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.303450] [ 36.303453] stack backtrace: [ 36.303459] CPU: 1 PID: 4672 Comm: syz-executor914 Not tainted 4.19.0-rc1+ #217 [ 36.303466] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.303469] Call Trace: [ 36.303473] dump_stack+0x1c9/0x2b4 [ 36.303478] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.303482] ? vprintk_func+0x100/0x117 [ 36.303487] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.303490] ? save_trace+0xe0/0x290 [ 36.303494] __lock_acquire+0x3449/0x5020 [ 36.303498] ? mark_held_locks+0x160/0x160 [ 36.303503] ? mark_held_locks+0x160/0x160 [ 36.303508] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.303512] ? is_bpf_text_address+0xd7/0x170 [ 36.303516] ? kernel_text_address+0x79/0xf0 [ 36.303520] ? __kernel_text_address+0xd/0x40 [ 36.303525] ? __save_stack_trace+0x8d/0xf0 [ 36.303529] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.303533] ? save_trace+0x290/0x290 [ 36.303537] ? save_stack_trace+0x1a/0x20 [ 36.303541] ? save_trace+0xe0/0x290 [ 36.303545] ? graph_lock+0x170/0x170 [ 36.303550] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.303553] lock_acquire+0x1e4/0x4f0 [ 36.303557] ? down_trylock+0x13/0x70 [ 36.303561] ? lock_release+0x9f0/0x9f0 [ 36.303565] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.303570] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.303574] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.303578] ? log_store+0x34f/0x4c0 [ 36.303582] ? vprintk_emit+0x31f/0x910 [ 36.303586] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.303589] ? down_trylock+0x13/0x70 [ 36.303593] down_trylock+0x13/0x70 [ 36.303598] __down_trylock_console_sem+0xae/0x200 [ 36.303601] console_trylock+0x15/0xa0 [ 36.303605] vprintk_emit+0x31f/0x910 [ 36.303609] ? wake_up_klogd+0x110/0x110 [ 36.303613] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.303618] ? kasan_check_read+0x11/0x20 [ 36.303622] ? rcu_is_watching+0x8c/0x150 [ 36.303625] ? rcu_pm_notify+0xc0/0xc0 [ 36.303629] ? lock_acquire+0x1e4/0x4f0 [ 36.303633] ? kasan_report+0x8e/0x110 [ 36.303637] ? __schedule+0xf54/0x1df0 [ 36.303641] vprintk_default+0x28/0x30 [ 36.303645] vprintk_func+0x7a/0x117 [ 36.303648] printk+0xa7/0xcf [ 36.303652] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.303657] ? kasan_check_write+0x14/0x20 [ 36.303661] ? do_raw_spin_lock+0xc1/0x200 [ 36.303665] ? do_raw_spin_lock+0xc1/0x200 [ 36.303668] kasan_report+0x9e/0x110 [ 36.303673] __asan_report_load8_noabort+0x14/0x20 [ 36.303677] __schedule+0xf54/0x1df0 [ 36.303681] ? __sched_text_start+0x8/0x8 [ 36.303685] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 36.303689] ? __call_srcu+0x7e7/0x1040 [ 36.303694] ? check_same_owner+0x340/0x340 [ 36.303698] ? mark_held_locks+0x160/0x160 [ 36.303701] ? find_held_lock+0x36/0x1c0 [ 36.303706] preempt_schedule_common+0x22/0x60 [ 36.303709] _cond_resched+0x1d/0x30 [ 36.303714] wait_for_completion+0xa5/0x8d0 [ 36.303719] ? wait_for_completion_interruptible+0x950/0x950 [ 36.303723] ? __lockdep_init_map+0x105/0x590 [ 36.303727] ? __init_waitqueue_head+0x9e/0x150 [ 36.303731] ? init_wait_entry+0x1c0/0x1c0 [ 36.303735] __synchronize_srcu+0x189/0x240 [ 36.303739] ? call_srcu+0x10/0x10 [ 36.303743] ? rcu_unexpedite_gp+0x20/0x20 [ 36.303747] synchronize_srcu+0x335/0x56f [ 36.303751] ? lock_downgrade+0x8f0/0x8f0 [ 36.303756] ? synchronize_srcu_expedited+0x20/0x20 [ 36.303760] ? kasan_check_read+0x11/0x20 [ 36.303765] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.303769] ? kasan_check_write+0x14/0x20 [ 36.303773] ? do_raw_spin_lock+0xc1/0x200 [ 36.303786] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.303791] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.303795] ? kvfree+0x61/0x70 [ 36.303799] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.303803] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.303807] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.303812] ? kvm_arch_sync_events+0x30/0x30 [ 36.303817] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.303821] ? mmu_notifier_unregister+0x474/0x600 [ 36.303825] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.303829] ? kfree+0x111/0x210 [ 36.303833] ? __mmu_notifier_register+0x30/0x30 [ 36.303837] ? __free_pages+0x10a/0x190 [ 36.303842] ? free_unref_page+0x930/0x930 [ 36.303846] kvm_put_kvm+0x73f/0x1060 [ 36.303850] ? kvm_write_guest_cached+0x40/0x40 [ 36.303854] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.303858] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.303863] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.303867] ? kasan_check_write+0x14/0x20 [ 36.303871] ? do_raw_spin_lock+0xc1/0x200 [ 36.303875] ? kvm_irqfd_release+0xdd/0x120 [ 36.303879] ? kvm_irqfd_release+0xdd/0x120 [ 36.303883] ? kvm_put_kvm+0x1060/0x1060 [ 36.303887] kvm_vm_release+0x42/0x50 [ 36.303891] __fput+0x38a/0xa40 [ 36.303894] ? __alloc_file+0x400/0x400 [ 36.303898] ? check_same_owner+0x340/0x340 [ 36.303903] ? kasan_check_write+0x14/0x20 [ 36.303907] ? do_raw_spin_lock+0xc1/0x200 [ 36.303910] ____fput+0x15/0x20 [ 36.303914] task_work_run+0x1e8/0x2a0 [ 36.303918] ? task_work_cancel+0x240/0x240 [ 36.303923] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.303928] ? switch_task_namespaces+0xa2/0xd0 [ 36.303931] do_exit+0x1ae4/0x26e0 [ 36.303936] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.303940] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.303944] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.303948] ? kfree+0x1d7/0x210 [ 36.303952] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.303957] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.303961] ? is_bpf_text_address+0xd7/0x170 [ 36.303963] ? [ 36.303971] Lost 55 message(s)! [ 37.357771] Shutting down cpus with NMI [ 38.417550] Dumping ftrace buffer: [ 38.421084] (ftrace buffer empty) [ 38.424774] Kernel Offset: disabled [ 38.428385] Rebooting in 86400 seconds..