[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.439522] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 30.096270] random: sshd: uninitialized urandom read (32 bytes read) [ 30.570667] random: sshd: uninitialized urandom read (32 bytes read) [ 31.123941] random: sshd: uninitialized urandom read (32 bytes read) [ 31.307011] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.3' (ECDSA) to the list of known hosts. [ 36.958535] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 37.058426] 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. [ 37.084037] ================================================================== [ 37.093902] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 37.100130] Read of size 8 at addr ffff8801b79f8058 by task syz-executor525/4677 [ 37.107646] [ 37.109274] CPU: 1 PID: 4677 Comm: syz-executor525 Not tainted 4.19.0-rc1+ #216 [ 37.116710] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.126054] Call Trace: [ 37.128647] dump_stack+0x1c9/0x2b4 [ 37.132276] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.137466] ? printk+0xa7/0xcf [ 37.140742] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.145509] ? __schedule+0xf54/0x1df0 [ 37.149409] print_address_description+0x6c/0x20b [ 37.154253] ? __schedule+0xf54/0x1df0 [ 37.158151] kasan_report.cold.7+0x242/0x30d [ 37.162558] __asan_report_load8_noabort+0x14/0x20 [ 37.167512] __schedule+0xf54/0x1df0 [ 37.171234] ? __sched_text_start+0x8/0x8 [ 37.175381] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 37.180484] ? __call_srcu+0x7e7/0x1040 [ 37.184467] ? check_same_owner+0x340/0x340 [ 37.188785] ? mark_held_locks+0x160/0x160 [ 37.193019] ? find_held_lock+0x36/0x1c0 [ 37.197085] preempt_schedule_common+0x22/0x60 [ 37.201667] _cond_resched+0x1d/0x30 [ 37.205381] wait_for_completion+0xa5/0x8d0 [ 37.209716] ? wait_for_completion_interruptible+0x950/0x950 [ 37.215513] ? __lockdep_init_map+0x105/0x590 [ 37.220014] ? __init_waitqueue_head+0x9e/0x150 [ 37.224682] ? init_wait_entry+0x1c0/0x1c0 [ 37.228953] __synchronize_srcu+0x189/0x240 [ 37.233300] ? call_srcu+0x10/0x10 [ 37.236846] ? rcu_unexpedite_gp+0x20/0x20 [ 37.241087] synchronize_srcu+0x335/0x56f [ 37.245248] ? lock_downgrade+0x8f0/0x8f0 [ 37.249396] ? synchronize_srcu_expedited+0x20/0x20 [ 37.254413] ? kasan_check_read+0x11/0x20 [ 37.258574] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.263153] ? kasan_check_write+0x14/0x20 [ 37.267395] ? do_raw_spin_lock+0xc1/0x200 [ 37.271642] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.277352] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.282802] ? kvfree+0x61/0x70 [ 37.286084] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.291101] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.295163] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.299575] ? kvm_arch_sync_events+0x30/0x30 [ 37.304083] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.309620] ? mmu_notifier_unregister+0x474/0x600 [ 37.314545] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.318950] ? kfree+0x111/0x210 [ 37.322320] ? __mmu_notifier_register+0x30/0x30 [ 37.327093] ? __free_pages+0x10a/0x190 [ 37.331066] ? free_unref_page+0x930/0x930 [ 37.335308] kvm_put_kvm+0x73f/0x1060 [ 37.339111] ? kvm_write_guest_cached+0x40/0x40 [ 37.343781] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.348274] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.352767] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.357352] ? kasan_check_write+0x14/0x20 [ 37.361583] ? do_raw_spin_lock+0xc1/0x200 [ 37.365832] ? kvm_irqfd_release+0xdd/0x120 [ 37.370148] ? kvm_irqfd_release+0xdd/0x120 [ 37.374505] ? kvm_put_kvm+0x1060/0x1060 [ 37.378565] kvm_vm_release+0x42/0x50 [ 37.382364] __fput+0x38a/0xa40 [ 37.385648] ? __alloc_file+0x400/0x400 [ 37.389624] ? check_same_owner+0x340/0x340 [ 37.393958] ? kasan_check_write+0x14/0x20 [ 37.398207] ? do_raw_spin_lock+0xc1/0x200 [ 37.402476] ____fput+0x15/0x20 [ 37.405757] task_work_run+0x1e8/0x2a0 [ 37.409647] ? task_work_cancel+0x240/0x240 [ 37.413969] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.419511] ? switch_task_namespaces+0xa2/0xd0 [ 37.424183] do_exit+0x1ae4/0x26e0 [ 37.427745] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.432427] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.436666] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.441679] ? kfree+0x1d7/0x210 [ 37.445063] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.449297] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.455027] ? is_bpf_text_address+0xd7/0x170 [ 37.459521] ? kernel_text_address+0x79/0xf0 [ 37.463924] ? __kernel_text_address+0xd/0x40 [ 37.468420] ? unwind_get_return_address+0x61/0xa0 [ 37.473364] ? __save_stack_trace+0x8d/0xf0 [ 37.477689] ? save_stack+0xa9/0xd0 [ 37.481312] ? save_stack+0x43/0xd0 [ 37.484938] ? __kasan_slab_free+0x11a/0x170 [ 37.489341] ? kasan_slab_free+0xe/0x10 [ 37.493312] ? putname+0xf2/0x130 [ 37.496766] ? __x64_sys_openat+0x9d/0x100 [ 37.501006] ? do_syscall_64+0x1b9/0x820 [ 37.505080] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.510451] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.514858] ? kasan_check_read+0x11/0x20 [ 37.519012] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.523415] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.527834] ? initcall_blacklisted+0x9a/0x1e0 [ 37.532505] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.537612] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.543325] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.548865] ? do_vfs_ioctl+0x201/0x1720 [ 37.552924] ? rcu_is_watching+0x8c/0x150 [ 37.557068] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.561391] ? ioctl_preallocate+0x300/0x300 [ 37.565795] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.571344] ? __fget_light+0x2f7/0x440 [ 37.575316] ? fget_raw+0x20/0x20 [ 37.578771] ? putname+0xf2/0x130 [ 37.582232] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.587292] ? kmem_cache_free+0x246/0x280 [ 37.591525] ? putname+0xf7/0x130 [ 37.594989] do_group_exit+0x177/0x440 [ 37.598875] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.603195] ? __ia32_sys_exit+0x50/0x50 [ 37.607261] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.612365] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.617903] ? ksys_ioctl+0x81/0xd0 [ 37.621539] __x64_sys_exit_group+0x3e/0x50 [ 37.625863] do_syscall_64+0x1b9/0x820 [ 37.629748] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.635110] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.640036] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.644876] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.649893] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.654910] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.659930] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.664776] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.669963] RIP: 0033:0x43ef08 [ 37.673165] Code: Bad RIP value. [ 37.676536] RSP: 002b:00007ffdda2260b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.684241] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 37.691506] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.698772] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.706037] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.713302] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.720573] [ 37.722193] Allocated by task 4677: [ 37.725830] save_stack+0x43/0xd0 [ 37.729295] kasan_kmalloc+0xc4/0xe0 [ 37.733022] kasan_slab_alloc+0x12/0x20 [ 37.736998] kmem_cache_alloc+0x12e/0x710 [ 37.741167] vmx_create_vcpu+0xcf/0x2830 [ 37.745316] kvm_arch_vcpu_create+0xe5/0x220 [ 37.749739] kvm_vm_ioctl+0x488/0x1d80 [ 37.753628] do_vfs_ioctl+0x1de/0x1720 [ 37.757512] ksys_ioctl+0xa9/0xd0 [ 37.760961] __x64_sys_ioctl+0x73/0xb0 [ 37.764869] do_syscall_64+0x1b9/0x820 [ 37.768757] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.773934] [ 37.775556] Freed by task 4677: [ 37.778832] save_stack+0x43/0xd0 [ 37.782293] __kasan_slab_free+0x11a/0x170 [ 37.786529] kasan_slab_free+0xe/0x10 [ 37.790335] kmem_cache_free+0x86/0x280 [ 37.794311] vmx_free_vcpu+0x26b/0x300 [ 37.798199] kvm_arch_destroy_vm+0x365/0x7c0 [ 37.803095] kvm_put_kvm+0x73f/0x1060 [ 37.806929] kvm_vm_release+0x42/0x50 [ 37.810727] __fput+0x38a/0xa40 [ 37.814009] ____fput+0x15/0x20 [ 37.817286] task_work_run+0x1e8/0x2a0 [ 37.821172] do_exit+0x1ae4/0x26e0 [ 37.824712] do_group_exit+0x177/0x440 [ 37.828595] __x64_sys_exit_group+0x3e/0x50 [ 37.832917] do_syscall_64+0x1b9/0x820 [ 37.836803] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.841987] [ 37.843618] The buggy address belongs to the object at ffff8801b79f8040 [ 37.843618] which belongs to the cache kvm_vcpu of size 23872 [ 37.856187] The buggy address is located 24 bytes inside of [ 37.856187] 23872-byte region [ffff8801b79f8040, ffff8801b79fdd80) [ 37.868154] The buggy address belongs to the page: [ 37.873086] page:ffffea0006de7e00 count:1 mapcount:0 mapping:ffff8801d9fd8080 index:0x0 compound_mapcount: 0 [ 37.883057] flags: 0x2fffc0000008100(slab|head) [ 37.887731] raw: 02fffc0000008100 ffff8801d5351648 ffff8801d5351648 ffff8801d9fd8080 [ 37.895612] raw: 0000000000000000 ffff8801b79f8040 0000000100000001 0000000000000000 [ 37.903503] page dumped because: kasan: bad access detected [ 37.909201] [ 37.910827] Memory state around the buggy address: [ 37.915751] ffff8801b79f7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.923115] ffff8801b79f7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.930469] >ffff8801b79f8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.937820] ^ [ 37.944049] ffff8801b79f8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.951409] ffff8801b79f8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.958758] ================================================================== [ 37.967589] Kernel panic - not syncing: panic_on_warn set ... [ 37.967589] [ 37.974957] CPU: 1 PID: 4677 Comm: syz-executor525 Tainted: G B 4.19.0-rc1+ #216 [ 37.983794] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.993142] Call Trace: [ 37.995739] dump_stack+0x1c9/0x2b4 [ 37.999373] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.004564] ? lock_downgrade+0x8f0/0x8f0 [ 38.008712] ? __schedule+0xf54/0x1df0 [ 38.012599] panic+0x238/0x4e7 [ 38.015790] ? add_taint.cold.5+0x16/0x16 [ 38.019947] ? print_shadow_for_address+0xba/0x116 [ 38.024880] ? trace_hardirqs_off+0xaf/0x2b0 [ 38.029288] ? trace_hardirqs_off+0x77/0x2b0 [ 38.033697] ? __schedule+0xf54/0x1df0 [ 38.037584] kasan_end_report+0x47/0x4f [ 38.041558] kasan_report.cold.7+0x76/0x30d [ 38.045882] __asan_report_load8_noabort+0x14/0x20 [ 38.050817] __schedule+0xf54/0x1df0 [ 38.054539] ? __sched_text_start+0x8/0x8 [ 38.058685] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 38.063790] ? __call_srcu+0x7e7/0x1040 [ 38.067772] ? check_same_owner+0x340/0x340 [ 38.072092] ? mark_held_locks+0x160/0x160 [ 38.076331] ? find_held_lock+0x36/0x1c0 [ 38.080403] preempt_schedule_common+0x22/0x60 [ 38.084992] _cond_resched+0x1d/0x30 [ 38.088711] wait_for_completion+0xa5/0x8d0 [ 38.093037] ? wait_for_completion_interruptible+0x950/0x950 [ 38.098837] ? __lockdep_init_map+0x105/0x590 [ 38.103336] ? __init_waitqueue_head+0x9e/0x150 [ 38.108006] ? init_wait_entry+0x1c0/0x1c0 [ 38.112254] __synchronize_srcu+0x189/0x240 [ 38.116580] ? call_srcu+0x10/0x10 [ 38.120120] ? rcu_unexpedite_gp+0x20/0x20 [ 38.124371] synchronize_srcu+0x335/0x56f [ 38.128518] ? lock_downgrade+0x8f0/0x8f0 [ 38.132666] ? synchronize_srcu_expedited+0x20/0x20 [ 38.137683] ? kasan_check_read+0x11/0x20 [ 38.141857] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.146443] ? kasan_check_write+0x14/0x20 [ 38.150679] ? do_raw_spin_lock+0xc1/0x200 [ 38.154919] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.160632] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.166086] ? kvfree+0x61/0x70 [ 38.169367] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.174385] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.178451] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.182862] ? kvm_arch_sync_events+0x30/0x30 [ 38.187362] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.192903] ? mmu_notifier_unregister+0x474/0x600 [ 38.197831] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.202244] ? kfree+0x111/0x210 [ 38.205613] ? __mmu_notifier_register+0x30/0x30 [ 38.210373] ? __free_pages+0x10a/0x190 [ 38.214347] ? free_unref_page+0x930/0x930 [ 38.218591] kvm_put_kvm+0x73f/0x1060 [ 38.222401] ? kvm_write_guest_cached+0x40/0x40 [ 38.227076] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.231572] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.236068] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.240657] ? kasan_check_write+0x14/0x20 [ 38.244893] ? do_raw_spin_lock+0xc1/0x200 [ 38.249134] ? kvm_irqfd_release+0xdd/0x120 [ 38.253454] ? kvm_irqfd_release+0xdd/0x120 [ 38.257782] ? kvm_put_kvm+0x1060/0x1060 [ 38.261849] kvm_vm_release+0x42/0x50 [ 38.265650] __fput+0x38a/0xa40 [ 38.268930] ? __alloc_file+0x400/0x400 [ 38.272913] ? check_same_owner+0x340/0x340 [ 38.277247] ? kasan_check_write+0x14/0x20 [ 38.281484] ? do_raw_spin_lock+0xc1/0x200 [ 38.285719] ____fput+0x15/0x20 [ 38.289005] task_work_run+0x1e8/0x2a0 [ 38.292893] ? task_work_cancel+0x240/0x240 [ 38.297232] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.302774] ? switch_task_namespaces+0xa2/0xd0 [ 38.307450] do_exit+0x1ae4/0x26e0 [ 38.311002] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.315675] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.319912] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.324926] ? kfree+0x1d7/0x210 [ 38.328297] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.332534] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.338258] ? is_bpf_text_address+0xd7/0x170 [ 38.342753] ? kernel_text_address+0x79/0xf0 [ 38.347160] ? __kernel_text_address+0xd/0x40 [ 38.351658] ? unwind_get_return_address+0x61/0xa0 [ 38.356597] ? __save_stack_trace+0x8d/0xf0 [ 38.360929] ? save_stack+0xa9/0xd0 [ 38.364554] ? save_stack+0x43/0xd0 [ 38.368184] ? __kasan_slab_free+0x11a/0x170 [ 38.372603] ? kasan_slab_free+0xe/0x10 [ 38.376576] ? putname+0xf2/0x130 [ 38.380029] ? __x64_sys_openat+0x9d/0x100 [ 38.384264] ? do_syscall_64+0x1b9/0x820 [ 38.388331] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.393699] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.398104] ? kasan_check_read+0x11/0x20 [ 38.402256] ? do_raw_spin_unlock+0xa7/0x2f0 [ 38.406666] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.411077] ? initcall_blacklisted+0x9a/0x1e0 [ 38.415665] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 38.420773] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.426512] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.432055] ? do_vfs_ioctl+0x201/0x1720 [ 38.436119] ? rcu_is_watching+0x8c/0x150 [ 38.440267] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.444588] ? ioctl_preallocate+0x300/0x300 [ 38.449002] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.454538] ? __fget_light+0x2f7/0x440 [ 38.458512] ? fget_raw+0x20/0x20 [ 38.461963] ? putname+0xf2/0x130 [ 38.465424] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.470441] ? kmem_cache_free+0x246/0x280 [ 38.474675] ? putname+0xf7/0x130 [ 38.478132] do_group_exit+0x177/0x440 [ 38.482023] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.486343] ? __ia32_sys_exit+0x50/0x50 [ 38.490401] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.495505] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.501044] ? ksys_ioctl+0x81/0xd0 [ 38.504676] __x64_sys_exit_group+0x3e/0x50 [ 38.509003] do_syscall_64+0x1b9/0x820 [ 38.512892] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.518261] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.523191] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.528044] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 38.533060] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.538077] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.543120] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.547967] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.553159] RIP: 0033:0x43ef08 [ 38.556357] Code: Bad RIP value. [ 38.559719] RSP: 002b:00007ffdda2260b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.567427] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 38.574692] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.581957] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.589233] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.596501] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 38.603781] [ 38.603786] ====================================================== [ 38.603792] WARNING: possible circular locking dependency detected [ 38.603795] 4.19.0-rc1+ #216 Not tainted [ 38.603801] ------------------------------------------------------ [ 38.603806] syz-executor525/4677 is trying to acquire lock: [ 38.603810] 0000000004a93229 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 38.603825] [ 38.603829] but task is already holding lock: [ 38.603832] 000000002ef79cfd (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.603846] [ 38.603851] which lock already depends on the new lock. [ 38.603853] [ 38.603856] [ 38.603861] the existing dependency chain (in reverse order) is: [ 38.603863] [ 38.603865] -> #3 (report_lock){....}: [ 38.603880] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.603884] kasan_report+0x8e/0x110 [ 38.603888] __asan_report_load8_noabort+0x14/0x20 [ 38.603892] __schedule+0xf54/0x1df0 [ 38.603896] preempt_schedule_common+0x22/0x60 [ 38.603900] _cond_resched+0x1d/0x30 [ 38.603905] wait_for_completion+0xa5/0x8d0 [ 38.603909] __synchronize_srcu+0x189/0x240 [ 38.603913] synchronize_srcu+0x335/0x56f [ 38.603918] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.603922] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.603926] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.603930] kvm_put_kvm+0x73f/0x1060 [ 38.603934] kvm_vm_release+0x42/0x50 [ 38.603938] __fput+0x38a/0xa40 [ 38.603941] ____fput+0x15/0x20 [ 38.603945] task_work_run+0x1e8/0x2a0 [ 38.603949] do_exit+0x1ae4/0x26e0 [ 38.603953] do_group_exit+0x177/0x440 [ 38.603957] __x64_sys_exit_group+0x3e/0x50 [ 38.603961] do_syscall_64+0x1b9/0x820 [ 38.603966] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.603968] [ 38.603971] -> #2 (&rq->lock){-.-.}: [ 38.603991] _raw_spin_lock+0x2a/0x40 [ 38.603995] task_fork_fair+0x93/0x680 [ 38.603999] sched_fork+0x44b/0xbd0 [ 38.604003] copy_process+0x235e/0x7ad0 [ 38.604006] _do_fork+0x1ca/0x1170 [ 38.604010] kernel_thread+0x34/0x40 [ 38.604014] rest_init+0x22/0xe4 [ 38.604018] start_kernel+0x913/0x94e [ 38.604022] x86_64_start_reservations+0x29/0x2b [ 38.604026] x86_64_start_kernel+0x76/0x79 [ 38.604031] secondary_startup_64+0xa4/0xb0 [ 38.604033] [ 38.604035] -> #1 (&p->pi_lock){-.-.}: [ 38.604050] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.604054] try_to_wake_up+0xd2/0x1250 [ 38.604058] wake_up_process+0x10/0x20 [ 38.604062] __up.isra.1+0x1c0/0x2a0 [ 38.604065] up+0x13c/0x1c0 [ 38.604069] __up_console_sem+0xbe/0x1b0 [ 38.604073] console_unlock+0x506/0x10d0 [ 38.604077] vprintk_emit+0x33a/0x910 [ 38.604081] vprintk_default+0x28/0x30 [ 38.604085] vprintk_func+0x7a/0x117 [ 38.604089] printk+0xa7/0xcf [ 38.604092] load_umh+0x51/0xbd [ 38.604096] do_one_initcall+0x127/0x838 [ 38.604100] kernel_init_freeable+0x4bb/0x5ae [ 38.604104] kernel_init+0x11/0x1b3 [ 38.604108] ret_from_fork+0x3a/0x50 [ 38.604110] [ 38.604112] -> #0 ((console_sem).lock){-...}: [ 38.604127] lock_acquire+0x1e4/0x4f0 [ 38.604131] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.604135] down_trylock+0x13/0x70 [ 38.604140] __down_trylock_console_sem+0xae/0x200 [ 38.604143] console_trylock+0x15/0xa0 [ 38.604147] vprintk_emit+0x31f/0x910 [ 38.604151] vprintk_default+0x28/0x30 [ 38.604155] vprintk_func+0x7a/0x117 [ 38.604159] printk+0xa7/0xcf [ 38.604162] kasan_report+0x9e/0x110 [ 38.604167] __asan_report_load8_noabort+0x14/0x20 [ 38.604171] __schedule+0xf54/0x1df0 [ 38.604175] preempt_schedule_common+0x22/0x60 [ 38.604179] _cond_resched+0x1d/0x30 [ 38.604183] wait_for_completion+0xa5/0x8d0 [ 38.604188] __synchronize_srcu+0x189/0x240 [ 38.604192] synchronize_srcu+0x335/0x56f [ 38.604197] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.604201] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.604205] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.604209] kvm_put_kvm+0x73f/0x1060 [ 38.604222] kvm_vm_release+0x42/0x50 [ 38.604226] __fput+0x38a/0xa40 [ 38.604230] ____fput+0x15/0x20 [ 38.604234] task_work_run+0x1e8/0x2a0 [ 38.604238] do_exit+0x1ae4/0x26e0 [ 38.604242] do_group_exit+0x177/0x440 [ 38.604246] __x64_sys_exit_group+0x3e/0x50 [ 38.604250] do_syscall_64+0x1b9/0x820 [ 38.604255] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.604257] [ 38.604261] other info that might help us debug this: [ 38.604263] [ 38.604267] Chain exists of: [ 38.604269] (console_sem).lock --> &rq->lock --> report_lock [ 38.604287] [ 38.604291] Possible unsafe locking scenario: [ 38.604294] [ 38.604298] CPU0 CPU1 [ 38.604302] ---- ---- [ 38.604304] lock(report_lock); [ 38.604314] lock(&rq->lock); [ 38.604323] lock(report_lock); [ 38.604331] lock((console_sem).lock); [ 38.604340] [ 38.604343] *** DEADLOCK *** [ 38.604345] [ 38.604349] 2 locks held by syz-executor525/4677: [ 38.604352] #0: 000000009d110c07 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 38.604369] #1: 000000002ef79cfd (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.604386] [ 38.604389] stack backtrace: [ 38.604395] CPU: 1 PID: 4677 Comm: syz-executor525 Not tainted 4.19.0-rc1+ #216 [ 38.604402] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.604405] Call Trace: [ 38.604409] dump_stack+0x1c9/0x2b4 [ 38.604414] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.604418] ? vprintk_func+0x100/0x117 [ 38.604423] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 38.604426] ? save_trace+0xe0/0x290 [ 38.604431] __lock_acquire+0x3449/0x5020 [ 38.604435] ? mark_held_locks+0x160/0x160 [ 38.604439] ? mark_held_locks+0x160/0x160 [ 38.604443] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 38.604447] ? is_bpf_text_address+0xd7/0x170 [ 38.604452] ? kernel_text_address+0x79/0xf0 [ 38.604456] ? __kernel_text_address+0xd/0x40 [ 38.604460] ? __save_stack_trace+0x8d/0xf0 [ 38.604464] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 38.604468] ? save_trace+0x290/0x290 [ 38.604472] ? save_stack_trace+0x1a/0x20 [ 38.604476] ? save_trace+0xe0/0x290 [ 38.604481] ? graph_lock+0x170/0x170 [ 38.604485] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.604489] lock_acquire+0x1e4/0x4f0 [ 38.604493] ? down_trylock+0x13/0x70 [ 38.604497] ? lock_release+0x9f0/0x9f0 [ 38.604501] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.604505] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.604509] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.604513] ? log_store+0x34f/0x4c0 [ 38.604517] ? vprintk_emit+0x31f/0x910 [ 38.604521] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.604525] ? down_trylock+0x13/0x70 [ 38.604529] down_trylock+0x13/0x70 [ 38.604533] __down_trylock_console_sem+0xae/0x200 [ 38.604537] console_trylock+0x15/0xa0 [ 38.604541] vprintk_emit+0x31f/0x910 [ 38.604545] ? wake_up_klogd+0x110/0x110 [ 38.604549] ? run_rebalance_domains+0x4c0/0x4c0 [ 38.604553] ? kasan_check_read+0x11/0x20 [ 38.604557] ? rcu_is_watching+0x8c/0x150 [ 38.604561] ? rcu_pm_notify+0xc0/0xc0 [ 38.604565] ? lock_acquire+0x1e4/0x4f0 [ 38.604569] ? kasan_report+0x8e/0x110 [ 38.604573] ? __schedule+0xf54/0x1df0 [ 38.604577] vprintk_default+0x28/0x30 [ 38.604580] vprintk_func+0x7a/0x117 [ 38.604584] printk+0xa7/0xcf [ 38.604588] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.604592] ? kasan_check_write+0x14/0x20 [ 38.604596] ? do_raw_spin_lock+0xc1/0x200 [ 38.604600] ? do_raw_spin_lock+0xc1/0x200 [ 38.604604] kasan_report+0x9e/0x110 [ 38.604609] __asan_report_load8_noabort+0x14/0x20 [ 38.604612] __schedule+0xf54/0x1df0 [ 38.604616] ? __sched_text_start+0x8/0x8 [ 38.604621] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 38.604625] ? __call_srcu+0x7e7/0x1040 [ 38.604629] ? check_same_owner+0x340/0x340 [ 38.604633] ? mark_held_locks+0x160/0x160 [ 38.604637] ? find_held_lock+0x36/0x1c0 [ 38.604642] preempt_schedule_common+0x22/0x60 [ 38.604645] _cond_resched+0x1d/0x30 [ 38.604650] wait_for_completion+0xa5/0x8d0 [ 38.604655] ? wait_for_completion_interruptible+0x950/0x950 [ 38.604659] ? __lockdep_init_map+0x105/0x590 [ 38.604663] ? __init_waitqueue_head+0x9e/0x150 [ 38.604667] ? init_wait_entry+0x1c0/0x1c0 [ 38.604672] __synchronize_srcu+0x189/0x240 [ 38.604675] ? call_srcu+0x10/0x10 [ 38.604679] ? rcu_unexpedite_gp+0x20/0x20 [ 38.604683] synchronize_srcu+0x335/0x56f [ 38.604688] ? lock_downgrade+0x8f0/0x8f0 [ 38.604692] ? synchronize_srcu_expedited+0x20/0x20 [ 38.604696] ? kasan_check_read+0x11/0x20 [ 38.604701] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.604705] ? kasan_check_write+0x14/0x20 [ 38.604709] ? do_raw_spin_lock+0xc1/0x200 [ 38.604714] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.604719] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.604722] ? kvfree+0x61/0x70 [ 38.604727] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.604731] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.604735] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.604739] ? kvm_arch_sync_events+0x30/0x30 [ 38.604744] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.604749] ? mmu_notifier_unregister+0x474/0x600 [ 38.604753] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.604756] ? kfree+0x111/0x210 [ 38.604761] ? __mmu_notifier_register+0x30/0x30 [ 38.604765] ? __free_pages+0x10a/0x190 [ 38.604769] ? free_unref_page+0x930/0x930 [ 38.604773] kvm_put_kvm+0x73f/0x1060 [ 38.604777] ? kvm_write_guest_cached+0x40/0x40 [ 38.604781] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.604785] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.604790] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.604794] ? kasan_check_write+0x14/0x20 [ 38.604798] ? do_raw_spin_lock+0xc1/0x200 [ 38.604802] ? kvm_irqfd_release+0xdd/0x120 [ 38.604806] ? kvm_irqfd_release+0xdd/0x120 [ 38.604810] ? kvm_put_kvm+0x1060/0x1060 [ 38.604813] kvm_vm_release+0x42/0x50 [ 38.604817] __fput+0x38a/0xa40 [ 38.604821] ? __alloc_file+0x400/0x400 [ 38.604825] ? check_same_owner+0x340/0x340 [ 38.604829] ? kasan_check_write+0x14/0x20 [ 38.604833] ? do_raw_spin_lock+0xc1/0x200 [ 38.604836] ____fput+0x15/0x20 [ 38.604840] task_work_run+0x1e8/0x2a0 [ 38.604844] ? task_work_cancel+0x240/0x240 [ 38.604849] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.604854] ? switch_task_namespaces+0xa2/0xd0 [ 38.604857] do_exit+0x1ae4/0x26e0 [ 38.604862] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.604866] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.604870] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.604874] ? kfree+0x1d7/0x210 [ 38.604878] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.604883] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.604887] ? is_bpf_text_address+0xd7/0x170 [ 38.604890] ? [ 38.604897] Lost 55 message(s)! [ 39.693656] Shutting down cpus with NMI [ 40.753473] Dumping ftrace buffer: [ 40.757003] (ftrace buffer empty) [ 40.760703] Kernel Offset: disabled [ 40.764316] Rebooting in 86400 seconds..