[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.110293] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.033539] random: sshd: uninitialized urandom read (32 bytes read) [ 28.420411] random: sshd: uninitialized urandom read (32 bytes read) [ 28.981731] random: sshd: uninitialized urandom read (32 bytes read) [ 29.160930] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.43' (ECDSA) to the list of known hosts. [ 34.743495] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.841794] 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.867750] ================================================================== [ 34.877524] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.883749] Read of size 8 at addr ffff8801ba560058 by task syz-executor642/4657 [ 34.891267] [ 34.892896] CPU: 1 PID: 4657 Comm: syz-executor642 Not tainted 4.19.0-rc1+ #216 [ 34.900332] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.909680] Call Trace: [ 34.912283] dump_stack+0x1c9/0x2b4 [ 34.915925] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.921113] ? printk+0xa7/0xcf [ 34.924390] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.929143] ? __schedule+0xf54/0x1df0 [ 34.933028] print_address_description+0x6c/0x20b [ 34.937868] ? __schedule+0xf54/0x1df0 [ 34.941756] kasan_report.cold.7+0x242/0x30d [ 34.946167] __asan_report_load8_noabort+0x14/0x20 [ 34.951623] __schedule+0xf54/0x1df0 [ 34.955329] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.960428] ? __sched_text_start+0x8/0x8 [ 34.964579] ? __call_srcu+0x7e7/0x1040 [ 34.968562] ? check_same_owner+0x340/0x340 [ 34.972892] ? mark_held_locks+0x160/0x160 [ 34.977125] ? find_held_lock+0x36/0x1c0 [ 34.981193] preempt_schedule_common+0x22/0x60 [ 34.985767] _cond_resched+0x1d/0x30 [ 34.989473] wait_for_completion+0xa5/0x8d0 [ 34.993791] ? wait_for_completion_interruptible+0x950/0x950 [ 34.999601] ? __lockdep_init_map+0x105/0x590 [ 35.004113] ? __init_waitqueue_head+0x9e/0x150 [ 35.008775] ? init_wait_entry+0x1c0/0x1c0 [ 35.013008] __synchronize_srcu+0x189/0x240 [ 35.017321] ? call_srcu+0x10/0x10 [ 35.020873] ? rcu_unexpedite_gp+0x20/0x20 [ 35.025136] synchronize_srcu+0x335/0x56f [ 35.029279] ? lock_downgrade+0x8f0/0x8f0 [ 35.033426] ? synchronize_srcu_expedited+0x20/0x20 [ 35.038439] ? kasan_check_read+0x11/0x20 [ 35.042612] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.047205] ? kasan_check_write+0x14/0x20 [ 35.051433] ? do_raw_spin_lock+0xc1/0x200 [ 35.055671] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.061377] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.066826] ? kvfree+0x61/0x70 [ 35.070107] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.075124] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.079178] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.083589] ? kvm_arch_sync_events+0x30/0x30 [ 35.088122] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.093668] ? mmu_notifier_unregister+0x474/0x600 [ 35.098598] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.103000] ? kfree+0x111/0x210 [ 35.106375] ? __mmu_notifier_register+0x30/0x30 [ 35.111148] ? __free_pages+0x10a/0x190 [ 35.115122] ? free_unref_page+0x930/0x930 [ 35.119363] kvm_put_kvm+0x73f/0x1060 [ 35.123167] ? kvm_write_guest_cached+0x40/0x40 [ 35.127836] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.132323] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.136813] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.141395] ? kasan_check_write+0x14/0x20 [ 35.145634] ? do_raw_spin_lock+0xc1/0x200 [ 35.149868] ? kvm_irqfd_release+0xdd/0x120 [ 35.154184] ? kvm_irqfd_release+0xdd/0x120 [ 35.158505] ? kvm_put_kvm+0x1060/0x1060 [ 35.162562] kvm_vm_release+0x42/0x50 [ 35.166368] __fput+0x38a/0xa40 [ 35.169646] ? __alloc_file+0x400/0x400 [ 35.173620] ? check_same_owner+0x340/0x340 [ 35.177934] ? kasan_check_write+0x14/0x20 [ 35.182162] ? do_raw_spin_lock+0xc1/0x200 [ 35.186397] ____fput+0x15/0x20 [ 35.189674] task_work_run+0x1e8/0x2a0 [ 35.193559] ? task_work_cancel+0x240/0x240 [ 35.197893] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.203424] ? switch_task_namespaces+0xa2/0xd0 [ 35.208099] do_exit+0x1ae4/0x26e0 [ 35.211655] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.216326] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.220560] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.225589] ? kfree+0x1d7/0x210 [ 35.228958] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.233194] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.238907] ? is_bpf_text_address+0xd7/0x170 [ 35.243393] ? kernel_text_address+0x79/0xf0 [ 35.247795] ? __kernel_text_address+0xd/0x40 [ 35.252286] ? unwind_get_return_address+0x61/0xa0 [ 35.257213] ? __save_stack_trace+0x8d/0xf0 [ 35.261533] ? save_stack+0xa9/0xd0 [ 35.265155] ? save_stack+0x43/0xd0 [ 35.268797] ? __kasan_slab_free+0x11a/0x170 [ 35.273203] ? kasan_slab_free+0xe/0x10 [ 35.277170] ? putname+0xf2/0x130 [ 35.280624] ? __x64_sys_openat+0x9d/0x100 [ 35.284852] ? do_syscall_64+0x1b9/0x820 [ 35.288910] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.294269] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.298674] ? kasan_check_read+0x11/0x20 [ 35.302821] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.307225] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.311638] ? initcall_blacklisted+0x9a/0x1e0 [ 35.316218] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.321320] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.327028] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.332564] ? do_vfs_ioctl+0x201/0x1720 [ 35.336631] ? rcu_is_watching+0x8c/0x150 [ 35.340771] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.345093] ? ioctl_preallocate+0x300/0x300 [ 35.349498] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.355032] ? __fget_light+0x2f7/0x440 [ 35.359005] ? fget_raw+0x20/0x20 [ 35.362450] ? putname+0xf2/0x130 [ 35.365898] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.370910] ? kmem_cache_free+0x246/0x280 [ 35.375142] ? putname+0xf7/0x130 [ 35.378601] do_group_exit+0x177/0x440 [ 35.382487] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.386801] ? __ia32_sys_exit+0x50/0x50 [ 35.390881] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.395981] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.401514] ? ksys_ioctl+0x81/0xd0 [ 35.405143] __x64_sys_exit_group+0x3e/0x50 [ 35.409460] do_syscall_64+0x1b9/0x820 [ 35.413346] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.418705] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.423630] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.428465] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.433478] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.438490] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.443504] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.448344] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.453542] RIP: 0033:0x43ecc8 [ 35.456739] Code: Bad RIP value. [ 35.460099] RSP: 002b:00007ffe035140b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.467807] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.475072] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.482339] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.489604] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.496867] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.504132] [ 35.505755] Allocated by task 4657: [ 35.509377] save_stack+0x43/0xd0 [ 35.512822] kasan_kmalloc+0xc4/0xe0 [ 35.516530] kasan_slab_alloc+0x12/0x20 [ 35.520496] kmem_cache_alloc+0x12e/0x710 [ 35.524638] vmx_create_vcpu+0xcf/0x2830 [ 35.528692] kvm_arch_vcpu_create+0xe5/0x220 [ 35.533102] kvm_vm_ioctl+0x488/0x1d80 [ 35.536986] do_vfs_ioctl+0x1de/0x1720 [ 35.540868] ksys_ioctl+0xa9/0xd0 [ 35.544315] __x64_sys_ioctl+0x73/0xb0 [ 35.548201] do_syscall_64+0x1b9/0x820 [ 35.552094] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.557268] [ 35.558889] Freed by task 4657: [ 35.562166] save_stack+0x43/0xd0 [ 35.565619] __kasan_slab_free+0x11a/0x170 [ 35.569854] kasan_slab_free+0xe/0x10 [ 35.573647] kmem_cache_free+0x86/0x280 [ 35.577615] vmx_free_vcpu+0x26b/0x300 [ 35.581496] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.585898] kvm_put_kvm+0x73f/0x1060 [ 35.589697] kvm_vm_release+0x42/0x50 [ 35.593491] __fput+0x38a/0xa40 [ 35.596761] ____fput+0x15/0x20 [ 35.600032] task_work_run+0x1e8/0x2a0 [ 35.603915] do_exit+0x1ae4/0x26e0 [ 35.607448] do_group_exit+0x177/0x440 [ 35.611335] __x64_sys_exit_group+0x3e/0x50 [ 35.615650] do_syscall_64+0x1b9/0x820 [ 35.619531] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.624714] [ 35.626337] The buggy address belongs to the object at ffff8801ba560040 [ 35.626337] which belongs to the cache kvm_vcpu of size 23872 [ 35.638902] The buggy address is located 24 bytes inside of [ 35.638902] 23872-byte region [ffff8801ba560040, ffff8801ba565d80) [ 35.650853] The buggy address belongs to the page: [ 35.655777] page:ffffea0006e95800 count:1 mapcount:0 mapping:ffff8801d52c9b40 index:0x0 compound_mapcount: 0 [ 35.665742] flags: 0x2fffc0000008100(slab|head) [ 35.670412] raw: 02fffc0000008100 ffff8801d52c8b48 ffff8801d52c8b48 ffff8801d52c9b40 [ 35.678288] raw: 0000000000000000 ffff8801ba560040 0000000100000001 0000000000000000 [ 35.686156] page dumped because: kasan: bad access detected [ 35.691850] [ 35.693464] Memory state around the buggy address: [ 35.698383] ffff8801ba55ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.705738] ffff8801ba55ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.713095] >ffff8801ba560000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.720441] ^ [ 35.726661] ffff8801ba560080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.734015] ffff8801ba560100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.741358] ================================================================== [ 35.748712] Kernel panic - not syncing: panic_on_warn set ... [ 35.748712] [ 35.756078] CPU: 1 PID: 4657 Comm: syz-executor642 Tainted: G B 4.19.0-rc1+ #216 [ 35.765090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.774449] Call Trace: [ 35.777041] dump_stack+0x1c9/0x2b4 [ 35.780669] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.785866] ? lock_downgrade+0x8f0/0x8f0 [ 35.790013] ? __schedule+0xf54/0x1df0 [ 35.793899] panic+0x238/0x4e7 [ 35.797093] ? add_taint.cold.5+0x16/0x16 [ 35.801247] ? print_shadow_for_address+0xba/0x116 [ 35.806178] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.810594] ? trace_hardirqs_off+0x77/0x2b0 [ 35.815007] ? __schedule+0xf54/0x1df0 [ 35.818896] kasan_end_report+0x47/0x4f [ 35.822875] kasan_report.cold.7+0x76/0x30d [ 35.827206] __asan_report_load8_noabort+0x14/0x20 [ 35.832142] __schedule+0xf54/0x1df0 [ 35.835857] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.840965] ? __sched_text_start+0x8/0x8 [ 35.845115] ? __call_srcu+0x7e7/0x1040 [ 35.849100] ? check_same_owner+0x340/0x340 [ 35.853423] ? mark_held_locks+0x160/0x160 [ 35.857659] ? find_held_lock+0x36/0x1c0 [ 35.861723] preempt_schedule_common+0x22/0x60 [ 35.866305] _cond_resched+0x1d/0x30 [ 35.870016] wait_for_completion+0xa5/0x8d0 [ 35.874340] ? wait_for_completion_interruptible+0x950/0x950 [ 35.880133] ? __lockdep_init_map+0x105/0x590 [ 35.884632] ? __init_waitqueue_head+0x9e/0x150 [ 35.889299] ? init_wait_entry+0x1c0/0x1c0 [ 35.893535] __synchronize_srcu+0x189/0x240 [ 35.897853] ? call_srcu+0x10/0x10 [ 35.901391] ? rcu_unexpedite_gp+0x20/0x20 [ 35.905629] synchronize_srcu+0x335/0x56f [ 35.909785] ? lock_downgrade+0x8f0/0x8f0 [ 35.913936] ? synchronize_srcu_expedited+0x20/0x20 [ 35.918955] ? kasan_check_read+0x11/0x20 [ 35.923126] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.927707] ? kasan_check_write+0x14/0x20 [ 35.931939] ? do_raw_spin_lock+0xc1/0x200 [ 35.936172] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.941879] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.947328] ? kvfree+0x61/0x70 [ 35.951063] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.956105] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.960175] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.964590] ? kvm_arch_sync_events+0x30/0x30 [ 35.969093] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.974628] ? mmu_notifier_unregister+0x474/0x600 [ 35.979552] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.983966] ? kfree+0x111/0x210 [ 35.987332] ? __mmu_notifier_register+0x30/0x30 [ 35.992093] ? __free_pages+0x10a/0x190 [ 35.996067] ? free_unref_page+0x930/0x930 [ 36.000335] kvm_put_kvm+0x73f/0x1060 [ 36.004148] ? kvm_write_guest_cached+0x40/0x40 [ 36.008818] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.013310] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.017803] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.022388] ? kasan_check_write+0x14/0x20 [ 36.026619] ? do_raw_spin_lock+0xc1/0x200 [ 36.030852] ? kvm_irqfd_release+0xdd/0x120 [ 36.035170] ? kvm_irqfd_release+0xdd/0x120 [ 36.039488] ? kvm_put_kvm+0x1060/0x1060 [ 36.043547] kvm_vm_release+0x42/0x50 [ 36.047352] __fput+0x38a/0xa40 [ 36.050628] ? __alloc_file+0x400/0x400 [ 36.054609] ? check_same_owner+0x340/0x340 [ 36.058926] ? kasan_check_write+0x14/0x20 [ 36.063160] ? do_raw_spin_lock+0xc1/0x200 [ 36.067390] ____fput+0x15/0x20 [ 36.070694] task_work_run+0x1e8/0x2a0 [ 36.074596] ? task_work_cancel+0x240/0x240 [ 36.078921] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.084455] ? switch_task_namespaces+0xa2/0xd0 [ 36.089128] do_exit+0x1ae4/0x26e0 [ 36.092667] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.097340] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.101597] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.106612] ? kfree+0x1d7/0x210 [ 36.109978] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.114215] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.119927] ? is_bpf_text_address+0xd7/0x170 [ 36.124417] ? kernel_text_address+0x79/0xf0 [ 36.128823] ? __kernel_text_address+0xd/0x40 [ 36.133317] ? unwind_get_return_address+0x61/0xa0 [ 36.138244] ? __save_stack_trace+0x8d/0xf0 [ 36.142576] ? save_stack+0xa9/0xd0 [ 36.146200] ? save_stack+0x43/0xd0 [ 36.149820] ? __kasan_slab_free+0x11a/0x170 [ 36.154226] ? kasan_slab_free+0xe/0x10 [ 36.158197] ? putname+0xf2/0x130 [ 36.161648] ? __x64_sys_openat+0x9d/0x100 [ 36.165882] ? do_syscall_64+0x1b9/0x820 [ 36.169939] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.175299] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.179705] ? kasan_check_read+0x11/0x20 [ 36.183850] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.188253] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.192660] ? initcall_blacklisted+0x9a/0x1e0 [ 36.197243] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.202345] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.208052] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.213597] ? do_vfs_ioctl+0x201/0x1720 [ 36.217660] ? rcu_is_watching+0x8c/0x150 [ 36.221804] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.226126] ? ioctl_preallocate+0x300/0x300 [ 36.230531] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.236064] ? __fget_light+0x2f7/0x440 [ 36.240037] ? fget_raw+0x20/0x20 [ 36.243482] ? putname+0xf2/0x130 [ 36.246931] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.251941] ? kmem_cache_free+0x246/0x280 [ 36.256174] ? putname+0xf7/0x130 [ 36.259627] do_group_exit+0x177/0x440 [ 36.263510] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.267829] ? __ia32_sys_exit+0x50/0x50 [ 36.271891] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.276993] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.282526] ? ksys_ioctl+0x81/0xd0 [ 36.286152] __x64_sys_exit_group+0x3e/0x50 [ 36.290472] do_syscall_64+0x1b9/0x820 [ 36.294358] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.299718] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.304645] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.309482] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.314496] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.319509] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.324523] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.329368] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.334556] RIP: 0033:0x43ecc8 [ 36.337754] Code: Bad RIP value. [ 36.341120] RSP: 002b:00007ffe035140b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.348826] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.356100] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.363367] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.370635] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.377920] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.385196] [ 36.385202] ====================================================== [ 36.385207] WARNING: possible circular locking dependency detected [ 36.385210] 4.19.0-rc1+ #216 Not tainted [ 36.385216] ------------------------------------------------------ [ 36.385220] syz-executor642/4657 is trying to acquire lock: [ 36.385224] 0000000029fb539c ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.385238] [ 36.385242] but task is already holding lock: [ 36.385245] 0000000059c35a94 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.385258] [ 36.385262] which lock already depends on the new lock. [ 36.385265] [ 36.385267] [ 36.385272] the existing dependency chain (in reverse order) is: [ 36.385274] [ 36.385276] -> #3 (report_lock){....}: [ 36.385291] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.385294] kasan_report+0x8e/0x110 [ 36.385299] __asan_report_load8_noabort+0x14/0x20 [ 36.385302] __schedule+0xf54/0x1df0 [ 36.385306] preempt_schedule_common+0x22/0x60 [ 36.385310] _cond_resched+0x1d/0x30 [ 36.385314] wait_for_completion+0xa5/0x8d0 [ 36.385318] __synchronize_srcu+0x189/0x240 [ 36.385322] synchronize_srcu+0x335/0x56f [ 36.385327] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.385331] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.385335] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.385339] kvm_put_kvm+0x73f/0x1060 [ 36.385343] kvm_vm_release+0x42/0x50 [ 36.385346] __fput+0x38a/0xa40 [ 36.385350] ____fput+0x15/0x20 [ 36.385353] task_work_run+0x1e8/0x2a0 [ 36.385357] do_exit+0x1ae4/0x26e0 [ 36.385361] do_group_exit+0x177/0x440 [ 36.385365] __x64_sys_exit_group+0x3e/0x50 [ 36.385369] do_syscall_64+0x1b9/0x820 [ 36.385373] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.385375] [ 36.385378] -> #2 (&rq->lock){-.-.}: [ 36.385391] _raw_spin_lock+0x2a/0x40 [ 36.385395] task_fork_fair+0x93/0x680 [ 36.385399] sched_fork+0x44b/0xbd0 [ 36.385403] copy_process+0x235e/0x7ad0 [ 36.385406] _do_fork+0x1ca/0x1170 [ 36.385410] kernel_thread+0x34/0x40 [ 36.385413] rest_init+0x22/0xe4 [ 36.385417] start_kernel+0x913/0x94e [ 36.385421] x86_64_start_reservations+0x29/0x2b [ 36.385425] x86_64_start_kernel+0x76/0x79 [ 36.385429] secondary_startup_64+0xa4/0xb0 [ 36.385432] [ 36.385434] -> #1 (&p->pi_lock){-.-.}: [ 36.385448] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.385452] try_to_wake_up+0xd2/0x1250 [ 36.385456] wake_up_process+0x10/0x20 [ 36.385459] __up.isra.1+0x1c0/0x2a0 [ 36.385463] up+0x13c/0x1c0 [ 36.385467] __up_console_sem+0xbe/0x1b0 [ 36.385470] console_unlock+0x506/0x10d0 [ 36.385474] vprintk_emit+0x33a/0x910 [ 36.385478] vprintk_default+0x28/0x30 [ 36.385482] vprintk_func+0x7a/0x117 [ 36.385485] printk+0xa7/0xcf [ 36.385488] load_umh+0x51/0xbd [ 36.385492] do_one_initcall+0x127/0x838 [ 36.385496] kernel_init_freeable+0x4bb/0x5ae [ 36.385500] kernel_init+0x11/0x1b3 [ 36.385504] ret_from_fork+0x3a/0x50 [ 36.385506] [ 36.385508] -> #0 ((console_sem).lock){-...}: [ 36.385522] lock_acquire+0x1e4/0x4f0 [ 36.385526] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.385530] down_trylock+0x13/0x70 [ 36.385534] __down_trylock_console_sem+0xae/0x200 [ 36.385538] console_trylock+0x15/0xa0 [ 36.385542] vprintk_emit+0x31f/0x910 [ 36.385546] vprintk_default+0x28/0x30 [ 36.385550] vprintk_func+0x7a/0x117 [ 36.385553] printk+0xa7/0xcf [ 36.385557] kasan_report+0x9e/0x110 [ 36.385561] __asan_report_load8_noabort+0x14/0x20 [ 36.385565] __schedule+0xf54/0x1df0 [ 36.385577] preempt_schedule_common+0x22/0x60 [ 36.385581] _cond_resched+0x1d/0x30 [ 36.385585] wait_for_completion+0xa5/0x8d0 [ 36.385590] __synchronize_srcu+0x189/0x240 [ 36.385594] synchronize_srcu+0x335/0x56f [ 36.385599] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.385603] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.385607] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.385610] kvm_put_kvm+0x73f/0x1060 [ 36.385614] kvm_vm_release+0x42/0x50 [ 36.385618] __fput+0x38a/0xa40 [ 36.385621] ____fput+0x15/0x20 [ 36.385625] task_work_run+0x1e8/0x2a0 [ 36.385628] do_exit+0x1ae4/0x26e0 [ 36.385632] do_group_exit+0x177/0x440 [ 36.385636] __x64_sys_exit_group+0x3e/0x50 [ 36.385640] do_syscall_64+0x1b9/0x820 [ 36.385645] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.385647] [ 36.385651] other info that might help us debug this: [ 36.385653] [ 36.385656] Chain exists of: [ 36.385658] (console_sem).lock --> &rq->lock --> report_lock [ 36.385676] [ 36.385680] Possible unsafe locking scenario: [ 36.385682] [ 36.385686] CPU0 CPU1 [ 36.385690] ---- ---- [ 36.385693] lock(report_lock); [ 36.385702] lock(&rq->lock); [ 36.385711] lock(report_lock); [ 36.385718] lock((console_sem).lock); [ 36.385726] [ 36.385730] *** DEADLOCK *** [ 36.385732] [ 36.385736] 2 locks held by syz-executor642/4657: [ 36.385738] #0: 00000000692a5df2 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.385754] #1: 0000000059c35a94 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.385771] [ 36.385774] stack backtrace: [ 36.385780] CPU: 1 PID: 4657 Comm: syz-executor642 Not tainted 4.19.0-rc1+ #216 [ 36.385786] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.385789] Call Trace: [ 36.385793] dump_stack+0x1c9/0x2b4 [ 36.385797] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.385801] ? vprintk_func+0x100/0x117 [ 36.385806] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.385809] ? save_trace+0xe0/0x290 [ 36.385813] __lock_acquire+0x3449/0x5020 [ 36.385817] ? mark_held_locks+0x160/0x160 [ 36.385821] ? mark_held_locks+0x160/0x160 [ 36.385825] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.385830] ? is_bpf_text_address+0xd7/0x170 [ 36.385834] ? kernel_text_address+0x79/0xf0 [ 36.385838] ? __kernel_text_address+0xd/0x40 [ 36.385842] ? __save_stack_trace+0x8d/0xf0 [ 36.385846] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.385850] ? save_trace+0x290/0x290 [ 36.385854] ? save_stack_trace+0x1a/0x20 [ 36.385857] ? save_trace+0xe0/0x290 [ 36.385861] ? graph_lock+0x170/0x170 [ 36.385865] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.385869] lock_acquire+0x1e4/0x4f0 [ 36.385873] ? down_trylock+0x13/0x70 [ 36.385877] ? lock_release+0x9f0/0x9f0 [ 36.385881] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.385885] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.385889] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.385892] ? log_store+0x34f/0x4c0 [ 36.385896] ? vprintk_emit+0x31f/0x910 [ 36.385900] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.385904] ? down_trylock+0x13/0x70 [ 36.385907] down_trylock+0x13/0x70 [ 36.385912] __down_trylock_console_sem+0xae/0x200 [ 36.385915] console_trylock+0x15/0xa0 [ 36.385919] vprintk_emit+0x31f/0x910 [ 36.385923] ? wake_up_klogd+0x110/0x110 [ 36.385927] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.385931] ? kasan_check_read+0x11/0x20 [ 36.385935] ? rcu_is_watching+0x8c/0x150 [ 36.385939] ? rcu_pm_notify+0xc0/0xc0 [ 36.385942] ? lock_acquire+0x1e4/0x4f0 [ 36.385946] ? kasan_report+0x8e/0x110 [ 36.385950] ? __schedule+0xf54/0x1df0 [ 36.385954] vprintk_default+0x28/0x30 [ 36.385957] vprintk_func+0x7a/0x117 [ 36.385960] printk+0xa7/0xcf [ 36.385965] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.385969] ? kasan_check_write+0x14/0x20 [ 36.385972] ? do_raw_spin_lock+0xc1/0x200 [ 36.385976] ? do_raw_spin_lock+0xc1/0x200 [ 36.385980] kasan_report+0x9e/0x110 [ 36.385984] __asan_report_load8_noabort+0x14/0x20 [ 36.385988] __schedule+0xf54/0x1df0 [ 36.385992] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.385996] ? __sched_text_start+0x8/0x8 [ 36.386000] ? __call_srcu+0x7e7/0x1040 [ 36.386004] ? check_same_owner+0x340/0x340 [ 36.386008] ? mark_held_locks+0x160/0x160 [ 36.386012] ? find_held_lock+0x36/0x1c0 [ 36.386016] preempt_schedule_common+0x22/0x60 [ 36.386019] _cond_resched+0x1d/0x30 [ 36.386023] wait_for_completion+0xa5/0x8d0 [ 36.386028] ? wait_for_completion_interruptible+0x950/0x950 [ 36.386032] ? __lockdep_init_map+0x105/0x590 [ 36.386036] ? __init_waitqueue_head+0x9e/0x150 [ 36.386040] ? init_wait_entry+0x1c0/0x1c0 [ 36.386044] __synchronize_srcu+0x189/0x240 [ 36.386048] ? call_srcu+0x10/0x10 [ 36.386052] ? rcu_unexpedite_gp+0x20/0x20 [ 36.386056] synchronize_srcu+0x335/0x56f [ 36.386060] ? lock_downgrade+0x8f0/0x8f0 [ 36.386064] ? synchronize_srcu_expedited+0x20/0x20 [ 36.386068] ? kasan_check_read+0x11/0x20 [ 36.386072] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.386076] ? kasan_check_write+0x14/0x20 [ 36.386080] ? do_raw_spin_lock+0xc1/0x200 [ 36.386091] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.386096] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.386099] ? kvfree+0x61/0x70 [ 36.386103] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.386107] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.386111] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.386115] ? kvm_arch_sync_events+0x30/0x30 [ 36.386120] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.386124] ? mmu_notifier_unregister+0x474/0x600 [ 36.386128] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.386132] ? kfree+0x111/0x210 [ 36.386136] ? __mmu_notifier_register+0x30/0x30 [ 36.386140] ? __free_pages+0x10a/0x190 [ 36.386144] ? free_unref_page+0x930/0x930 [ 36.386148] kvm_put_kvm+0x73f/0x1060 [ 36.386152] ? kvm_write_guest_cached+0x40/0x40 [ 36.386156] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.386160] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.386164] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.386168] ? kasan_check_write+0x14/0x20 [ 36.386172] ? do_raw_spin_lock+0xc1/0x200 [ 36.386176] ? kvm_irqfd_release+0xdd/0x120 [ 36.386180] ? kvm_irqfd_release+0xdd/0x120 [ 36.386184] ? kvm_put_kvm+0x1060/0x1060 [ 36.386187] kvm_vm_release+0x42/0x50 [ 36.386191] __fput+0x38a/0xa40 [ 36.386195] ? __alloc_file+0x400/0x400 [ 36.386199] ? check_same_owner+0x340/0x340 [ 36.386203] ? kasan_check_write+0x14/0x20 [ 36.386206] ? do_raw_spin_lock+0xc1/0x200 [ 36.386210] ____fput+0x15/0x20 [ 36.386213] task_work_run+0x1e8/0x2a0 [ 36.386217] ? task_work_cancel+0x240/0x240 [ 36.386222] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.386226] ? switch_task_namespaces+0xa2/0xd0 [ 36.386230] do_exit+0x1ae4/0x26e0 [ 36.386234] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.386238] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.386242] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.386246] ? kfree+0x1d7/0x210 [ 36.386250] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.386254] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.386259] ? is_bpf_text_address+0xd7/0x170 [ 36.386261] ? [ 36.386268] Lost 55 message(s)! [ 37.486825] Shutting down cpus with NMI [ 38.545928] Dumping ftrace buffer: [ 38.549453] (ftrace buffer empty) [ 38.553141] Kernel Offset: disabled [ 38.556750] Rebooting in 86400 seconds..