[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.130375] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.599962] random: sshd: uninitialized urandom read (32 bytes read) [ 27.143210] random: sshd: uninitialized urandom read (32 bytes read) [ 27.680630] random: sshd: uninitialized urandom read (32 bytes read) [ 27.859000] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.63' (ECDSA) to the list of known hosts. [ 33.654304] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.750683] 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.775246] ================================================================== [ 33.785191] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.791425] Read of size 8 at addr ffff8801af0a8058 by task syz-executor241/4445 [ 33.798969] [ 33.800606] CPU: 0 PID: 4445 Comm: syz-executor241 Not tainted 4.18.0+ #206 [ 33.807692] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.817074] Call Trace: [ 33.819689] dump_stack+0x1c9/0x2b4 [ 33.823331] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.828517] ? printk+0xa7/0xcf [ 33.831795] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.836619] ? __schedule+0xf54/0x1df0 [ 33.840528] print_address_description+0x6c/0x20b [ 33.845367] ? __schedule+0xf54/0x1df0 [ 33.849252] kasan_report.cold.7+0x242/0x30d [ 33.853664] __asan_report_load8_noabort+0x14/0x20 [ 33.858600] __schedule+0xf54/0x1df0 [ 33.862309] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.867421] ? __sched_text_start+0x8/0x8 [ 33.871563] ? __call_srcu+0x7e7/0x1040 [ 33.875536] ? check_same_owner+0x340/0x340 [ 33.879861] ? mark_held_locks+0x160/0x160 [ 33.884090] ? find_held_lock+0x36/0x1c0 [ 33.888184] preempt_schedule_common+0x22/0x60 [ 33.892763] _cond_resched+0x1d/0x30 [ 33.896474] wait_for_completion+0xa5/0x8d0 [ 33.900797] ? wait_for_completion_interruptible+0x950/0x950 [ 33.906588] ? __lockdep_init_map+0x105/0x590 [ 33.911091] ? __init_waitqueue_head+0x9e/0x150 [ 33.915755] ? init_wait_entry+0x1c0/0x1c0 [ 33.919987] __synchronize_srcu+0x189/0x240 [ 33.924305] ? call_srcu+0x10/0x10 [ 33.927845] ? rcu_unexpedite_gp+0x20/0x20 [ 33.932082] synchronize_srcu+0x335/0x56f [ 33.936225] ? lock_downgrade+0x8f0/0x8f0 [ 33.940376] ? synchronize_srcu_expedited+0x20/0x20 [ 33.945393] ? kasan_check_read+0x11/0x20 [ 33.949540] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.954122] ? kasan_check_write+0x14/0x20 [ 33.958356] ? do_raw_spin_lock+0xc1/0x200 [ 33.962604] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.968310] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.973758] ? kvfree+0x61/0x70 [ 33.977044] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.982058] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.986116] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.990523] ? kvm_arch_sync_events+0x30/0x30 [ 33.995027] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.000565] ? mmu_notifier_unregister+0x474/0x600 [ 34.005500] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.009913] ? kfree+0x111/0x210 [ 34.013294] ? __mmu_notifier_register+0x30/0x30 [ 34.018048] ? __free_pages+0x10a/0x190 [ 34.022023] ? free_unref_page+0x930/0x930 [ 34.026267] kvm_put_kvm+0x73f/0x1060 [ 34.030075] ? kvm_write_guest_cached+0x40/0x40 [ 34.034748] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.039243] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.043739] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.048327] ? kasan_check_write+0x14/0x20 [ 34.052582] ? do_raw_spin_lock+0xc1/0x200 [ 34.056900] ? kvm_irqfd_release+0xdd/0x120 [ 34.061220] ? kvm_put_kvm+0x1060/0x1060 [ 34.065278] kvm_vm_release+0x42/0x50 [ 34.069074] __fput+0x36e/0x8c0 [ 34.072349] ? __alloc_file+0x400/0x400 [ 34.076322] ? check_same_owner+0x340/0x340 [ 34.080642] ? kasan_check_write+0x14/0x20 [ 34.084874] ? do_raw_spin_lock+0xc1/0x200 [ 34.089103] ____fput+0x15/0x20 [ 34.092377] task_work_run+0x1e8/0x2a0 [ 34.096261] ? task_work_cancel+0x240/0x240 [ 34.100584] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.106140] ? switch_task_namespaces+0xa2/0xd0 [ 34.110816] do_exit+0x1ae4/0x26e0 [ 34.114361] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.119038] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.123284] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.128303] ? kfree+0x1d7/0x210 [ 34.131678] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.135921] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.141654] ? is_bpf_text_address+0xd7/0x170 [ 34.146158] ? kernel_text_address+0x79/0xf0 [ 34.150564] ? __kernel_text_address+0xd/0x40 [ 34.155058] ? unwind_get_return_address+0x61/0xa0 [ 34.159987] ? __save_stack_trace+0x8d/0xf0 [ 34.164310] ? save_stack+0xa9/0xd0 [ 34.167936] ? save_stack+0x43/0xd0 [ 34.171565] ? __kasan_slab_free+0x11a/0x170 [ 34.175972] ? kasan_slab_free+0xe/0x10 [ 34.179951] ? putname+0xf2/0x130 [ 34.183405] ? __x64_sys_openat+0x9d/0x100 [ 34.187638] ? do_syscall_64+0x1b9/0x820 [ 34.191710] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.197069] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.201471] ? kasan_check_read+0x11/0x20 [ 34.205645] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.210048] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.214458] ? initcall_blacklisted+0x9a/0x1e0 [ 34.219073] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.224202] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.229916] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.235457] ? do_vfs_ioctl+0x201/0x1720 [ 34.239523] ? rcu_is_watching+0x8c/0x150 [ 34.243667] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.248011] ? ioctl_preallocate+0x300/0x300 [ 34.252433] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.257970] ? __fget_light+0x2f7/0x440 [ 34.261947] ? fget_raw+0x20/0x20 [ 34.265423] ? putname+0xf2/0x130 [ 34.268877] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.273889] ? kmem_cache_free+0x246/0x280 [ 34.278121] ? putname+0xf7/0x130 [ 34.281573] do_group_exit+0x177/0x440 [ 34.285468] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.289784] ? __ia32_sys_exit+0x50/0x50 [ 34.293853] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.298955] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.304728] ? ksys_ioctl+0x81/0xd0 [ 34.308355] __x64_sys_exit_group+0x3e/0x50 [ 34.312679] do_syscall_64+0x1b9/0x820 [ 34.316578] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.321948] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.326875] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.331716] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.336732] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.341752] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.346781] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.351649] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.356842] RIP: 0033:0x43ef08 [ 34.360036] Code: Bad RIP value. [ 34.363392] RSP: 002b:00007ffc5fc50d28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.371101] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.378367] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.385637] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.392904] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.400167] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.407436] [ 34.409057] Allocated by task 4445: [ 34.412690] save_stack+0x43/0xd0 [ 34.416143] kasan_kmalloc+0xc4/0xe0 [ 34.419859] kasan_slab_alloc+0x12/0x20 [ 34.423839] kmem_cache_alloc+0x12e/0x710 [ 34.427985] vmx_create_vcpu+0xcf/0x2830 [ 34.432042] kvm_arch_vcpu_create+0xe5/0x220 [ 34.436444] kvm_vm_ioctl+0x488/0x1d80 [ 34.440334] do_vfs_ioctl+0x1de/0x1720 [ 34.444219] ksys_ioctl+0xa9/0xd0 [ 34.447665] __x64_sys_ioctl+0x73/0xb0 [ 34.451553] do_syscall_64+0x1b9/0x820 [ 34.455445] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.460619] [ 34.462237] Freed by task 4445: [ 34.465522] save_stack+0x43/0xd0 [ 34.468969] __kasan_slab_free+0x11a/0x170 [ 34.473203] kasan_slab_free+0xe/0x10 [ 34.477001] kmem_cache_free+0x86/0x280 [ 34.480972] vmx_free_vcpu+0x26b/0x300 [ 34.484853] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.489261] kvm_put_kvm+0x73f/0x1060 [ 34.493057] kvm_vm_release+0x42/0x50 [ 34.496851] __fput+0x36e/0x8c0 [ 34.500134] ____fput+0x15/0x20 [ 34.503408] task_work_run+0x1e8/0x2a0 [ 34.507292] do_exit+0x1ae4/0x26e0 [ 34.510824] do_group_exit+0x177/0x440 [ 34.514707] __x64_sys_exit_group+0x3e/0x50 [ 34.519031] do_syscall_64+0x1b9/0x820 [ 34.522919] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.528097] [ 34.529719] The buggy address belongs to the object at ffff8801af0a8040 [ 34.529719] which belongs to the cache kvm_vcpu of size 23872 [ 34.542285] The buggy address is located 24 bytes inside of [ 34.542285] 23872-byte region [ffff8801af0a8040, ffff8801af0add80) [ 34.554239] The buggy address belongs to the page: [ 34.559166] page:ffffea0006bc2a00 count:1 mapcount:0 mapping:ffff8801d854a040 index:0x0 compound_mapcount: 0 [ 34.569130] flags: 0x2fffc0000008100(slab|head) [ 34.573802] raw: 02fffc0000008100 ffff8801d5702548 ffff8801d5702548 ffff8801d854a040 [ 34.581683] raw: 0000000000000000 ffff8801af0a8040 0000000100000001 0000000000000000 [ 34.589555] page dumped because: kasan: bad access detected [ 34.595264] [ 34.596892] Memory state around the buggy address: [ 34.601827] ffff8801af0a7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.609181] ffff8801af0a7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.616559] >ffff8801af0a8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.623924] ^ [ 34.630158] ffff8801af0a8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.637512] ffff8801af0a8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.644858] ================================================================== [ 34.652206] Kernel panic - not syncing: panic_on_warn set ... [ 34.652206] [ 34.659573] CPU: 0 PID: 4445 Comm: syz-executor241 Tainted: G B 4.18.0+ #206 [ 34.668055] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.677410] Call Trace: [ 34.679996] dump_stack+0x1c9/0x2b4 [ 34.683632] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.688819] ? lock_downgrade+0x8f0/0x8f0 [ 34.692961] ? __schedule+0xf54/0x1df0 [ 34.696848] panic+0x238/0x4e7 [ 34.700043] ? add_taint.cold.5+0x16/0x16 [ 34.704202] ? print_shadow_for_address+0xba/0x116 [ 34.709131] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.713532] ? trace_hardirqs_off+0x77/0x2b0 [ 34.717937] ? __schedule+0xf54/0x1df0 [ 34.721839] kasan_end_report+0x47/0x4f [ 34.725863] kasan_report.cold.7+0x76/0x30d [ 34.730187] __asan_report_load8_noabort+0x14/0x20 [ 34.735110] __schedule+0xf54/0x1df0 [ 34.738820] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.743919] ? __sched_text_start+0x8/0x8 [ 34.748109] ? __call_srcu+0x7e7/0x1040 [ 34.752087] ? check_same_owner+0x340/0x340 [ 34.756407] ? mark_held_locks+0x160/0x160 [ 34.760664] ? find_held_lock+0x36/0x1c0 [ 34.764751] preempt_schedule_common+0x22/0x60 [ 34.769342] _cond_resched+0x1d/0x30 [ 34.773053] wait_for_completion+0xa5/0x8d0 [ 34.777386] ? wait_for_completion_interruptible+0x950/0x950 [ 34.783207] ? __lockdep_init_map+0x105/0x590 [ 34.787701] ? __init_waitqueue_head+0x9e/0x150 [ 34.792365] ? init_wait_entry+0x1c0/0x1c0 [ 34.796624] __synchronize_srcu+0x189/0x240 [ 34.800949] ? call_srcu+0x10/0x10 [ 34.804492] ? rcu_unexpedite_gp+0x20/0x20 [ 34.808732] synchronize_srcu+0x335/0x56f [ 34.812873] ? lock_downgrade+0x8f0/0x8f0 [ 34.817020] ? synchronize_srcu_expedited+0x20/0x20 [ 34.822034] ? kasan_check_read+0x11/0x20 [ 34.826194] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.830778] ? kasan_check_write+0x14/0x20 [ 34.835019] ? do_raw_spin_lock+0xc1/0x200 [ 34.839258] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.844985] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.850436] ? kvfree+0x61/0x70 [ 34.853720] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.858775] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.862854] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.867264] ? kvm_arch_sync_events+0x30/0x30 [ 34.871769] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.877318] ? mmu_notifier_unregister+0x474/0x600 [ 34.882271] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.886676] ? kfree+0x111/0x210 [ 34.890042] ? __mmu_notifier_register+0x30/0x30 [ 34.894802] ? __free_pages+0x10a/0x190 [ 34.898796] ? free_unref_page+0x930/0x930 [ 34.903038] kvm_put_kvm+0x73f/0x1060 [ 34.906845] ? kvm_write_guest_cached+0x40/0x40 [ 34.911520] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.916010] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.920513] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.925106] ? kasan_check_write+0x14/0x20 [ 34.929340] ? do_raw_spin_lock+0xc1/0x200 [ 34.933575] ? kvm_irqfd_release+0xdd/0x120 [ 34.937897] ? kvm_put_kvm+0x1060/0x1060 [ 34.941962] kvm_vm_release+0x42/0x50 [ 34.945764] __fput+0x36e/0x8c0 [ 34.949045] ? __alloc_file+0x400/0x400 [ 34.953020] ? check_same_owner+0x340/0x340 [ 34.957340] ? kasan_check_write+0x14/0x20 [ 34.961575] ? do_raw_spin_lock+0xc1/0x200 [ 34.965812] ____fput+0x15/0x20 [ 34.969088] task_work_run+0x1e8/0x2a0 [ 34.972977] ? task_work_cancel+0x240/0x240 [ 34.977299] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.982835] ? switch_task_namespaces+0xa2/0xd0 [ 34.987525] do_exit+0x1ae4/0x26e0 [ 34.991102] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.995776] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.000012] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.005029] ? kfree+0x1d7/0x210 [ 35.008403] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.012643] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.018363] ? is_bpf_text_address+0xd7/0x170 [ 35.022860] ? kernel_text_address+0x79/0xf0 [ 35.027267] ? __kernel_text_address+0xd/0x40 [ 35.031760] ? unwind_get_return_address+0x61/0xa0 [ 35.036690] ? __save_stack_trace+0x8d/0xf0 [ 35.041023] ? save_stack+0xa9/0xd0 [ 35.044649] ? save_stack+0x43/0xd0 [ 35.048276] ? __kasan_slab_free+0x11a/0x170 [ 35.052680] ? kasan_slab_free+0xe/0x10 [ 35.056659] ? putname+0xf2/0x130 [ 35.060111] ? __x64_sys_openat+0x9d/0x100 [ 35.064344] ? do_syscall_64+0x1b9/0x820 [ 35.068423] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.073798] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.078201] ? kasan_check_read+0x11/0x20 [ 35.082363] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.086777] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.091187] ? initcall_blacklisted+0x9a/0x1e0 [ 35.095770] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.100883] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.106604] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.112159] ? do_vfs_ioctl+0x201/0x1720 [ 35.116226] ? rcu_is_watching+0x8c/0x150 [ 35.120368] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.124683] ? ioctl_preallocate+0x300/0x300 [ 35.129102] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.134635] ? __fget_light+0x2f7/0x440 [ 35.138608] ? fget_raw+0x20/0x20 [ 35.142055] ? putname+0xf2/0x130 [ 35.145516] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.150521] ? kmem_cache_free+0x246/0x280 [ 35.154763] ? putname+0xf7/0x130 [ 35.158217] do_group_exit+0x177/0x440 [ 35.162130] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.166447] ? __ia32_sys_exit+0x50/0x50 [ 35.170505] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.175616] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.181160] ? ksys_ioctl+0x81/0xd0 [ 35.184788] __x64_sys_exit_group+0x3e/0x50 [ 35.189112] do_syscall_64+0x1b9/0x820 [ 35.193002] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.198840] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.203786] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.208630] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.213648] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.218673] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.223697] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.228547] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.233736] RIP: 0033:0x43ef08 [ 35.236929] Code: Bad RIP value. [ 35.240290] RSP: 002b:00007ffc5fc50d28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.247994] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.255261] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.262528] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.269793] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.277059] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.284336] [ 35.284341] ====================================================== [ 35.284347] WARNING: possible circular locking dependency detected [ 35.284350] 4.18.0+ #206 Not tainted [ 35.284355] ------------------------------------------------------ [ 35.284360] syz-executor241/4445 is trying to acquire lock: [ 35.284364] 00000000e5512a3c ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.284379] [ 35.284383] but task is already holding lock: [ 35.284386] 000000009dcde4c3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.284400] [ 35.284404] which lock already depends on the new lock. [ 35.284407] [ 35.284409] [ 35.284414] the existing dependency chain (in reverse order) is: [ 35.284416] [ 35.284419] -> #3 (report_lock){....}: [ 35.284433] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.284437] kasan_report+0x8e/0x110 [ 35.284442] __asan_report_load8_noabort+0x14/0x20 [ 35.284446] __schedule+0xf54/0x1df0 [ 35.284451] preempt_schedule_common+0x22/0x60 [ 35.284455] _cond_resched+0x1d/0x30 [ 35.284459] wait_for_completion+0xa5/0x8d0 [ 35.284463] __synchronize_srcu+0x189/0x240 [ 35.284467] synchronize_srcu+0x335/0x56f [ 35.284472] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.284476] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.284480] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.284484] kvm_put_kvm+0x73f/0x1060 [ 35.284488] kvm_vm_release+0x42/0x50 [ 35.284491] __fput+0x36e/0x8c0 [ 35.284495] ____fput+0x15/0x20 [ 35.284499] task_work_run+0x1e8/0x2a0 [ 35.284502] do_exit+0x1ae4/0x26e0 [ 35.284506] do_group_exit+0x177/0x440 [ 35.284510] __x64_sys_exit_group+0x3e/0x50 [ 35.284514] do_syscall_64+0x1b9/0x820 [ 35.284519] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.284521] [ 35.284523] -> #2 (&rq->lock){-.-.}: [ 35.284537] _raw_spin_lock+0x2a/0x40 [ 35.284541] task_fork_fair+0x93/0x680 [ 35.284545] sched_fork+0x44b/0xbd0 [ 35.284549] copy_process+0x235e/0x7ad0 [ 35.284553] _do_fork+0x1ca/0x1170 [ 35.284556] kernel_thread+0x34/0x40 [ 35.284560] rest_init+0x22/0xe4 [ 35.284564] start_kernel+0x913/0x94e [ 35.284568] x86_64_start_reservations+0x29/0x2b [ 35.284572] x86_64_start_kernel+0x76/0x79 [ 35.284576] secondary_startup_64+0xa4/0xb0 [ 35.284578] [ 35.284581] -> #1 (&p->pi_lock){-.-.}: [ 35.284595] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.284599] try_to_wake_up+0xd2/0x1250 [ 35.284603] wake_up_process+0x10/0x20 [ 35.284607] __up.isra.1+0x1c0/0x2a0 [ 35.284610] up+0x13c/0x1c0 [ 35.284614] __up_console_sem+0xbe/0x1b0 [ 35.284618] console_unlock+0x506/0x10d0 [ 35.284622] do_con_write+0x1375/0x23d0 [ 35.284625] con_write+0x25/0xc0 [ 35.284629] n_tty_write+0x6c1/0x11a0 [ 35.284633] tty_write+0x3f1/0x880 [ 35.284637] __vfs_write+0x117/0x9d0 [ 35.284640] vfs_write+0x1fc/0x560 [ 35.284644] ksys_write+0x101/0x260 [ 35.284648] __x64_sys_write+0x73/0xb0 [ 35.284652] do_syscall_64+0x1b9/0x820 [ 35.284656] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.284658] [ 35.284661] -> #0 ((console_sem).lock){-...}: [ 35.284683] lock_acquire+0x1e4/0x4f0 [ 35.284687] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.284691] down_trylock+0x13/0x70 [ 35.284695] __down_trylock_console_sem+0xae/0x200 [ 35.284699] console_trylock+0x15/0xa0 [ 35.284703] vprintk_emit+0x31f/0x910 [ 35.284707] vprintk_default+0x28/0x30 [ 35.284711] vprintk_func+0x7a/0x117 [ 35.284714] printk+0xa7/0xcf [ 35.284718] kasan_report+0x9e/0x110 [ 35.284723] __asan_report_load8_noabort+0x14/0x20 [ 35.284726] __schedule+0xf54/0x1df0 [ 35.284731] preempt_schedule_common+0x22/0x60 [ 35.284734] _cond_resched+0x1d/0x30 [ 35.284738] wait_for_completion+0xa5/0x8d0 [ 35.284743] __synchronize_srcu+0x189/0x240 [ 35.284747] synchronize_srcu+0x335/0x56f [ 35.284752] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.284756] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.284760] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.284764] kvm_put_kvm+0x73f/0x1060 [ 35.284767] kvm_vm_release+0x42/0x50 [ 35.284771] __fput+0x36e/0x8c0 [ 35.284774] ____fput+0x15/0x20 [ 35.284778] task_work_run+0x1e8/0x2a0 [ 35.284782] do_exit+0x1ae4/0x26e0 [ 35.284786] do_group_exit+0x177/0x440 [ 35.284790] __x64_sys_exit_group+0x3e/0x50 [ 35.284794] do_syscall_64+0x1b9/0x820 [ 35.284799] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.284801] [ 35.284805] other info that might help us debug this: [ 35.284807] [ 35.284811] Chain exists of: [ 35.284813] (console_sem).lock --> &rq->lock --> report_lock [ 35.284831] [ 35.284835] Possible unsafe locking scenario: [ 35.284837] [ 35.284841] CPU0 CPU1 [ 35.284845] ---- ---- [ 35.284848] lock(report_lock); [ 35.284857] lock(&rq->lock); [ 35.284866] lock(report_lock); [ 35.284874] lock((console_sem).lock); [ 35.284882] [ 35.284885] *** DEADLOCK *** [ 35.284887] [ 35.284891] 2 locks held by syz-executor241/4445: [ 35.284894] #0: 00000000c3a064a1 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.284911] #1: 000000009dcde4c3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.284927] [ 35.284930] stack backtrace: [ 35.284936] CPU: 0 PID: 4445 Comm: syz-executor241 Not tainted 4.18.0+ #206 [ 35.284949] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.284952] Call Trace: [ 35.284956] dump_stack+0x1c9/0x2b4 [ 35.284960] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.284964] ? vprintk_func+0x100/0x117 [ 35.284969] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.284973] ? save_trace+0xe0/0x290 [ 35.284977] __lock_acquire+0x3449/0x5020 [ 35.284981] ? mark_held_locks+0x160/0x160 [ 35.284985] ? mark_held_locks+0x160/0x160 [ 35.284989] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.284993] ? is_bpf_text_address+0xd7/0x170 [ 35.284997] ? kernel_text_address+0x79/0xf0 [ 35.285002] ? __kernel_text_address+0xd/0x40 [ 35.285006] ? __save_stack_trace+0x8d/0xf0 [ 35.285010] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.285014] ? save_trace+0x290/0x290 [ 35.285018] ? save_stack_trace+0x1a/0x20 [ 35.285022] ? save_trace+0xe0/0x290 [ 35.285026] ? graph_lock+0x170/0x170 [ 35.285030] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.285034] lock_acquire+0x1e4/0x4f0 [ 35.285038] ? down_trylock+0x13/0x70 [ 35.285042] ? lock_release+0x9f0/0x9f0 [ 35.285046] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.285050] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.285054] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.285058] ? log_store+0x34f/0x4c0 [ 35.285062] ? vprintk_emit+0x31f/0x910 [ 35.285066] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.285070] ? down_trylock+0x13/0x70 [ 35.285074] down_trylock+0x13/0x70 [ 35.285078] __down_trylock_console_sem+0xae/0x200 [ 35.285082] console_trylock+0x15/0xa0 [ 35.285085] vprintk_emit+0x31f/0x910 [ 35.285089] ? wake_up_klogd+0x110/0x110 [ 35.285094] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.285098] ? kasan_check_read+0x11/0x20 [ 35.285102] ? rcu_is_watching+0x8c/0x150 [ 35.285106] ? rcu_pm_notify+0xc0/0xc0 [ 35.285109] ? lock_acquire+0x1e4/0x4f0 [ 35.285113] ? kasan_report+0x8e/0x110 [ 35.285117] ? __schedule+0xf54/0x1df0 [ 35.285121] vprintk_default+0x28/0x30 [ 35.285125] vprintk_func+0x7a/0x117 [ 35.285128] printk+0xa7/0xcf [ 35.285132] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.285136] ? kasan_check_write+0x14/0x20 [ 35.285141] ? do_raw_spin_lock+0xc1/0x200 [ 35.285145] ? do_raw_spin_lock+0xc1/0x200 [ 35.285148] kasan_report+0x9e/0x110 [ 35.285153] __asan_report_load8_noabort+0x14/0x20 [ 35.285157] __schedule+0xf54/0x1df0 [ 35.285161] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.285165] ? __sched_text_start+0x8/0x8 [ 35.285169] ? __call_srcu+0x7e7/0x1040 [ 35.285173] ? check_same_owner+0x340/0x340 [ 35.285177] ? mark_held_locks+0x160/0x160 [ 35.285181] ? find_held_lock+0x36/0x1c0 [ 35.285185] preempt_schedule_common+0x22/0x60 [ 35.285193] _cond_resched+0x1d/0x30 [ 35.285197] wait_for_completion+0xa5/0x8d0 [ 35.285202] ? wait_for_completion_interruptible+0x950/0x950 [ 35.285214] ? __lockdep_init_map+0x105/0x590 [ 35.285218] ? __init_waitqueue_head+0x9e/0x150 [ 35.285222] ? init_wait_entry+0x1c0/0x1c0 [ 35.285226] __synchronize_srcu+0x189/0x240 [ 35.285230] ? call_srcu+0x10/0x10 [ 35.285234] ? rcu_unexpedite_gp+0x20/0x20 [ 35.285238] synchronize_srcu+0x335/0x56f [ 35.285242] ? lock_downgrade+0x8f0/0x8f0 [ 35.285247] ? synchronize_srcu_expedited+0x20/0x20 [ 35.285251] ? kasan_check_read+0x11/0x20 [ 35.285255] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.285259] ? kasan_check_write+0x14/0x20 [ 35.285263] ? do_raw_spin_lock+0xc1/0x200 [ 35.285268] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.285273] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.285276] ? kvfree+0x61/0x70 [ 35.285281] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.285284] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.285289] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.285293] ? kvm_arch_sync_events+0x30/0x30 [ 35.285298] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.285302] ? mmu_notifier_unregister+0x474/0x600 [ 35.285306] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.285310] ? kfree+0x111/0x210 [ 35.285314] ? __mmu_notifier_register+0x30/0x30 [ 35.285318] ? __free_pages+0x10a/0x190 [ 35.285322] ? free_unref_page+0x930/0x930 [ 35.285326] kvm_put_kvm+0x73f/0x1060 [ 35.285330] ? kvm_write_guest_cached+0x40/0x40 [ 35.285335] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.285339] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.285343] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.285347] ? kasan_check_write+0x14/0x20 [ 35.285351] ? do_raw_spin_lock+0xc1/0x200 [ 35.285355] ? kvm_irqfd_release+0xdd/0x120 [ 35.285359] ? kvm_put_kvm+0x1060/0x1060 [ 35.285363] kvm_vm_release+0x42/0x50 [ 35.285366] __fput+0x36e/0x8c0 [ 35.285370] ? __alloc_file+0x400/0x400 [ 35.285374] ? check_same_owner+0x340/0x340 [ 35.285378] ? kasan_check_write+0x14/0x20 [ 35.285382] ? do_raw_spin_lock+0xc1/0x200 [ 35.285386] ____fput+0x15/0x20 [ 35.285390] task_work_run+0x1e8/0x2a0 [ 35.285394] ? task_work_cancel+0x240/0x240 [ 35.285399] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.285403] ? switch_task_namespaces+0xa2/0xd0 [ 35.285406] do_exit+0x1ae4/0x26e0 [ 35.285411] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.285415] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.285419] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.285423] ? kfree+0x1d7/0x210 [ 35.285427] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.285432] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.285436] ? is_bpf_text_address+0xd7/0x170 [ 35.285441] Lost 55 message(s)! [ 36.352933] Shutting down cpus with NMI [ 37.410542] Dumping ftrace buffer: [ 37.414063] (ftrace buffer empty) [ 37.417754] Kernel Offset: disabled [ 37.421361] Rebooting in 86400 seconds..