[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.233419] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.282324] random: sshd: uninitialized urandom read (32 bytes read) [ 26.593882] random: sshd: uninitialized urandom read (32 bytes read) [ 27.129326] random: sshd: uninitialized urandom read (32 bytes read) [ 27.305219] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.31' (ECDSA) to the list of known hosts. [ 32.974505] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.070146] 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.095141] ================================================================== [ 33.104868] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.111093] Read of size 8 at addr ffff8801b2a10058 by task syz-executor027/4473 [ 33.118630] [ 33.120257] CPU: 1 PID: 4473 Comm: syz-executor027 Not tainted 4.19.0-rc1+ #212 [ 33.127693] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.137036] Call Trace: [ 33.139624] dump_stack+0x1c9/0x2b4 [ 33.143251] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.148433] ? printk+0xa7/0xcf [ 33.151711] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.156463] ? __schedule+0xf54/0x1df0 [ 33.160348] print_address_description+0x6c/0x20b [ 33.165188] ? __schedule+0xf54/0x1df0 [ 33.169071] kasan_report.cold.7+0x242/0x30d [ 33.173484] __asan_report_load8_noabort+0x14/0x20 [ 33.178413] __schedule+0xf54/0x1df0 [ 33.182133] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.187237] ? __sched_text_start+0x8/0x8 [ 33.191386] ? __call_srcu+0x7e7/0x1040 [ 33.195364] ? check_same_owner+0x340/0x340 [ 33.199679] ? mark_held_locks+0x160/0x160 [ 33.203923] ? find_held_lock+0x36/0x1c0 [ 33.207980] preempt_schedule_common+0x22/0x60 [ 33.212555] _cond_resched+0x1d/0x30 [ 33.216265] wait_for_completion+0xa5/0x8d0 [ 33.220760] ? wait_for_completion_interruptible+0x950/0x950 [ 33.226558] ? __lockdep_init_map+0x105/0x590 [ 33.231054] ? __init_waitqueue_head+0x9e/0x150 [ 33.235720] ? init_wait_entry+0x1c0/0x1c0 [ 33.239960] __synchronize_srcu+0x189/0x240 [ 33.244275] ? call_srcu+0x10/0x10 [ 33.247814] ? rcu_unexpedite_gp+0x20/0x20 [ 33.252055] synchronize_srcu+0x335/0x56f [ 33.256198] ? lock_downgrade+0x8f0/0x8f0 [ 33.260344] ? synchronize_srcu_expedited+0x20/0x20 [ 33.265361] ? kasan_check_read+0x11/0x20 [ 33.269515] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.274093] ? kasan_check_write+0x14/0x20 [ 33.278331] ? do_raw_spin_lock+0xc1/0x200 [ 33.282606] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.288325] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.293770] ? kvfree+0x61/0x70 [ 33.297048] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.302064] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.306124] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.310549] ? kvm_arch_sync_events+0x30/0x30 [ 33.315043] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.320581] ? mmu_notifier_unregister+0x474/0x600 [ 33.325506] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.329908] ? kfree+0x111/0x210 [ 33.333296] ? __mmu_notifier_register+0x30/0x30 [ 33.338049] ? __free_pages+0x10a/0x190 [ 33.342019] ? free_unref_page+0x930/0x930 [ 33.346258] kvm_put_kvm+0x73f/0x1060 [ 33.350063] ? kvm_write_guest_cached+0x40/0x40 [ 33.354735] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.359229] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.363715] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.368293] ? kasan_check_write+0x14/0x20 [ 33.372542] ? do_raw_spin_lock+0xc1/0x200 [ 33.376776] ? kvm_irqfd_release+0xdd/0x120 [ 33.381090] ? kvm_irqfd_release+0xdd/0x120 [ 33.385411] ? kvm_put_kvm+0x1060/0x1060 [ 33.389469] kvm_vm_release+0x42/0x50 [ 33.393265] __fput+0x36e/0x8c0 [ 33.396554] ? __alloc_file+0x400/0x400 [ 33.400536] ? check_same_owner+0x340/0x340 [ 33.404852] ? kasan_check_write+0x14/0x20 [ 33.409081] ? do_raw_spin_lock+0xc1/0x200 [ 33.413313] ____fput+0x15/0x20 [ 33.416587] task_work_run+0x1e8/0x2a0 [ 33.420474] ? task_work_cancel+0x240/0x240 [ 33.424793] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.430328] ? switch_task_namespaces+0xa2/0xd0 [ 33.434993] do_exit+0x1ae4/0x26e0 [ 33.438533] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.443202] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.447438] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.452460] ? kfree+0x1d7/0x210 [ 33.455829] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.460062] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.465772] ? is_bpf_text_address+0xd7/0x170 [ 33.470264] ? kernel_text_address+0x79/0xf0 [ 33.474760] ? __kernel_text_address+0xd/0x40 [ 33.479251] ? unwind_get_return_address+0x61/0xa0 [ 33.484179] ? __save_stack_trace+0x8d/0xf0 [ 33.488503] ? save_stack+0xa9/0xd0 [ 33.492133] ? save_stack+0x43/0xd0 [ 33.495754] ? __kasan_slab_free+0x11a/0x170 [ 33.500172] ? kasan_slab_free+0xe/0x10 [ 33.504141] ? putname+0xf2/0x130 [ 33.507606] ? __x64_sys_openat+0x9d/0x100 [ 33.511865] ? do_syscall_64+0x1b9/0x820 [ 33.515950] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.521309] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.525799] ? kasan_check_read+0x11/0x20 [ 33.529943] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.534347] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.538753] ? initcall_blacklisted+0x9a/0x1e0 [ 33.543337] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.548439] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.554151] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.559689] ? do_vfs_ioctl+0x201/0x1720 [ 33.563747] ? rcu_is_watching+0x8c/0x150 [ 33.567887] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.572207] ? ioctl_preallocate+0x300/0x300 [ 33.576631] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.582165] ? __fget_light+0x2f7/0x440 [ 33.586137] ? fget_raw+0x20/0x20 [ 33.589582] ? putname+0xf2/0x130 [ 33.593035] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.598048] ? kmem_cache_free+0x246/0x280 [ 33.602280] ? putname+0xf7/0x130 [ 33.605751] do_group_exit+0x177/0x440 [ 33.609638] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.613955] ? __ia32_sys_exit+0x50/0x50 [ 33.618011] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.623116] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.628740] ? ksys_ioctl+0x81/0xd0 [ 33.632369] __x64_sys_exit_group+0x3e/0x50 [ 33.636691] do_syscall_64+0x1b9/0x820 [ 33.640601] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.645968] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.650896] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.655737] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.660752] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.665763] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.670777] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.675627] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.680812] RIP: 0033:0x43f028 [ 33.684000] Code: Bad RIP value. [ 33.687358] RSP: 002b:00007ffdd64c80f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.695059] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 33.702322] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.709634] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.716917] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.724178] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 33.731444] [ 33.733067] Allocated by task 4473: [ 33.736691] save_stack+0x43/0xd0 [ 33.740139] kasan_kmalloc+0xc4/0xe0 [ 33.743850] kasan_slab_alloc+0x12/0x20 [ 33.747818] kmem_cache_alloc+0x12e/0x710 [ 33.751985] vmx_create_vcpu+0xcf/0x2830 [ 33.756045] kvm_arch_vcpu_create+0xe5/0x220 [ 33.760466] kvm_vm_ioctl+0x488/0x1d80 [ 33.764350] do_vfs_ioctl+0x1de/0x1720 [ 33.768259] ksys_ioctl+0xa9/0xd0 [ 33.771707] __x64_sys_ioctl+0x73/0xb0 [ 33.775589] do_syscall_64+0x1b9/0x820 [ 33.779475] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.784650] [ 33.786267] Freed by task 4473: [ 33.789543] save_stack+0x43/0xd0 [ 33.792991] __kasan_slab_free+0x11a/0x170 [ 33.797222] kasan_slab_free+0xe/0x10 [ 33.801014] kmem_cache_free+0x86/0x280 [ 33.804978] vmx_free_vcpu+0x26b/0x300 [ 33.808856] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.813264] kvm_put_kvm+0x73f/0x1060 [ 33.817059] kvm_vm_release+0x42/0x50 [ 33.820849] __fput+0x36e/0x8c0 [ 33.824137] ____fput+0x15/0x20 [ 33.827412] task_work_run+0x1e8/0x2a0 [ 33.831301] do_exit+0x1ae4/0x26e0 [ 33.834834] do_group_exit+0x177/0x440 [ 33.838725] __x64_sys_exit_group+0x3e/0x50 [ 33.843037] do_syscall_64+0x1b9/0x820 [ 33.846921] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.852094] [ 33.853723] The buggy address belongs to the object at ffff8801b2a10040 [ 33.853723] which belongs to the cache kvm_vcpu of size 23872 [ 33.866291] The buggy address is located 24 bytes inside of [ 33.866291] 23872-byte region [ffff8801b2a10040, ffff8801b2a15d80) [ 33.878241] The buggy address belongs to the page: [ 33.883169] page:ffffea0006ca8400 count:1 mapcount:0 mapping:ffff8801d52bac40 index:0x0 compound_mapcount: 0 [ 33.893136] flags: 0x2fffc0000008100(slab|head) [ 33.897803] raw: 02fffc0000008100 ffff8801d50b2148 ffff8801d50b2148 ffff8801d52bac40 [ 33.905684] raw: 0000000000000000 ffff8801b2a10040 0000000100000001 0000000000000000 [ 33.913551] page dumped because: kasan: bad access detected [ 33.919247] [ 33.920861] Memory state around the buggy address: [ 33.925787] ffff8801b2a0ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.933139] ffff8801b2a0ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 33.940492] >ffff8801b2a10000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.947838] ^ [ 33.954079] ffff8801b2a10080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.961438] ffff8801b2a10100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.968784] ================================================================== [ 33.976160] Kernel panic - not syncing: panic_on_warn set ... [ 33.976160] [ 33.983525] CPU: 1 PID: 4473 Comm: syz-executor027 Tainted: G B 4.19.0-rc1+ #212 [ 33.992353] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.001695] Call Trace: [ 34.004284] dump_stack+0x1c9/0x2b4 [ 34.007914] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.013110] ? lock_downgrade+0x8f0/0x8f0 [ 34.017256] ? __schedule+0xf54/0x1df0 [ 34.021143] panic+0x238/0x4e7 [ 34.024331] ? add_taint.cold.5+0x16/0x16 [ 34.028479] ? print_shadow_for_address+0xba/0x116 [ 34.033406] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.037807] ? trace_hardirqs_off+0x77/0x2b0 [ 34.042211] ? __schedule+0xf54/0x1df0 [ 34.046094] kasan_end_report+0x47/0x4f [ 34.050169] kasan_report.cold.7+0x76/0x30d [ 34.054489] __asan_report_load8_noabort+0x14/0x20 [ 34.059416] __schedule+0xf54/0x1df0 [ 34.063135] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.068237] ? __sched_text_start+0x8/0x8 [ 34.072383] ? __call_srcu+0x7e7/0x1040 [ 34.076364] ? check_same_owner+0x340/0x340 [ 34.080680] ? mark_held_locks+0x160/0x160 [ 34.084929] ? find_held_lock+0x36/0x1c0 [ 34.088992] preempt_schedule_common+0x22/0x60 [ 34.093574] _cond_resched+0x1d/0x30 [ 34.097283] wait_for_completion+0xa5/0x8d0 [ 34.101601] ? wait_for_completion_interruptible+0x950/0x950 [ 34.107411] ? __lockdep_init_map+0x105/0x590 [ 34.111911] ? __init_waitqueue_head+0x9e/0x150 [ 34.116585] ? init_wait_entry+0x1c0/0x1c0 [ 34.120818] __synchronize_srcu+0x189/0x240 [ 34.125136] ? call_srcu+0x10/0x10 [ 34.128672] ? rcu_unexpedite_gp+0x20/0x20 [ 34.132907] synchronize_srcu+0x335/0x56f [ 34.137074] ? lock_downgrade+0x8f0/0x8f0 [ 34.141221] ? synchronize_srcu_expedited+0x20/0x20 [ 34.146237] ? kasan_check_read+0x11/0x20 [ 34.150381] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.154961] ? kasan_check_write+0x14/0x20 [ 34.159198] ? do_raw_spin_lock+0xc1/0x200 [ 34.163434] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.169146] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.174591] ? kvfree+0x61/0x70 [ 34.177889] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.182903] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.186964] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.191380] ? kvm_arch_sync_events+0x30/0x30 [ 34.195917] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.201454] ? mmu_notifier_unregister+0x474/0x600 [ 34.206391] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.210792] ? kfree+0x111/0x210 [ 34.214158] ? __mmu_notifier_register+0x30/0x30 [ 34.218912] ? __free_pages+0x10a/0x190 [ 34.222882] ? free_unref_page+0x930/0x930 [ 34.227131] kvm_put_kvm+0x73f/0x1060 [ 34.230934] ? kvm_write_guest_cached+0x40/0x40 [ 34.235607] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.240128] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.244627] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.249210] ? kasan_check_write+0x14/0x20 [ 34.253438] ? do_raw_spin_lock+0xc1/0x200 [ 34.257670] ? kvm_irqfd_release+0xdd/0x120 [ 34.261984] ? kvm_irqfd_release+0xdd/0x120 [ 34.266302] ? kvm_put_kvm+0x1060/0x1060 [ 34.270359] kvm_vm_release+0x42/0x50 [ 34.274250] __fput+0x36e/0x8c0 [ 34.277524] ? __alloc_file+0x400/0x400 [ 34.281498] ? check_same_owner+0x340/0x340 [ 34.285814] ? kasan_check_write+0x14/0x20 [ 34.290048] ? do_raw_spin_lock+0xc1/0x200 [ 34.294280] ____fput+0x15/0x20 [ 34.297553] task_work_run+0x1e8/0x2a0 [ 34.301437] ? task_work_cancel+0x240/0x240 [ 34.305759] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.311465] ? switch_task_namespaces+0xa2/0xd0 [ 34.316142] do_exit+0x1ae4/0x26e0 [ 34.319686] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.324357] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.328591] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.333607] ? kfree+0x1d7/0x210 [ 34.336977] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.341214] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.346931] ? is_bpf_text_address+0xd7/0x170 [ 34.351422] ? kernel_text_address+0x79/0xf0 [ 34.355825] ? __kernel_text_address+0xd/0x40 [ 34.360319] ? unwind_get_return_address+0x61/0xa0 [ 34.365472] ? __save_stack_trace+0x8d/0xf0 [ 34.369807] ? save_stack+0xa9/0xd0 [ 34.373430] ? save_stack+0x43/0xd0 [ 34.377052] ? __kasan_slab_free+0x11a/0x170 [ 34.381457] ? kasan_slab_free+0xe/0x10 [ 34.385423] ? putname+0xf2/0x130 [ 34.388873] ? __x64_sys_openat+0x9d/0x100 [ 34.393104] ? do_syscall_64+0x1b9/0x820 [ 34.397189] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.402553] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.406957] ? kasan_check_read+0x11/0x20 [ 34.411101] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.415506] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.419912] ? initcall_blacklisted+0x9a/0x1e0 [ 34.424497] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.429599] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.435315] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.440874] ? do_vfs_ioctl+0x201/0x1720 [ 34.444933] ? rcu_is_watching+0x8c/0x150 [ 34.449079] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.453400] ? ioctl_preallocate+0x300/0x300 [ 34.457809] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.463346] ? __fget_light+0x2f7/0x440 [ 34.467316] ? fget_raw+0x20/0x20 [ 34.470762] ? putname+0xf2/0x130 [ 34.474735] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.479747] ? kmem_cache_free+0x246/0x280 [ 34.483976] ? putname+0xf7/0x130 [ 34.487428] do_group_exit+0x177/0x440 [ 34.491313] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.495636] ? __ia32_sys_exit+0x50/0x50 [ 34.499692] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.504793] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.510328] ? ksys_ioctl+0x81/0xd0 [ 34.513953] __x64_sys_exit_group+0x3e/0x50 [ 34.518276] do_syscall_64+0x1b9/0x820 [ 34.522174] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.527557] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.532483] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.537323] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.542335] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.547352] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.552387] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.557240] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.562432] RIP: 0033:0x43f028 [ 34.565633] Code: Bad RIP value. [ 34.568992] RSP: 002b:00007ffdd64c80f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.576695] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 34.583959] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.591223] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.598484] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.605757] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 34.613049] [ 34.613054] ====================================================== [ 34.613059] WARNING: possible circular locking dependency detected [ 34.613063] 4.19.0-rc1+ #212 Not tainted [ 34.613068] ------------------------------------------------------ [ 34.613073] syz-executor027/4473 is trying to acquire lock: [ 34.613076] 0000000066903ebc ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.613091] [ 34.613094] but task is already holding lock: [ 34.613097] 0000000086c0efc3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.613118] [ 34.613124] which lock already depends on the new lock. [ 34.613126] [ 34.613128] [ 34.613133] the existing dependency chain (in reverse order) is: [ 34.613135] [ 34.613138] -> #3 (report_lock){....}: [ 34.613152] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.613156] kasan_report+0x8e/0x110 [ 34.613160] __asan_report_load8_noabort+0x14/0x20 [ 34.613164] __schedule+0xf54/0x1df0 [ 34.613168] preempt_schedule_common+0x22/0x60 [ 34.613172] _cond_resched+0x1d/0x30 [ 34.613176] wait_for_completion+0xa5/0x8d0 [ 34.613180] __synchronize_srcu+0x189/0x240 [ 34.613184] synchronize_srcu+0x335/0x56f [ 34.613189] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.613193] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.613197] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.613201] kvm_put_kvm+0x73f/0x1060 [ 34.613205] kvm_vm_release+0x42/0x50 [ 34.613208] __fput+0x36e/0x8c0 [ 34.613212] ____fput+0x15/0x20 [ 34.613215] task_work_run+0x1e8/0x2a0 [ 34.613219] do_exit+0x1ae4/0x26e0 [ 34.613223] do_group_exit+0x177/0x440 [ 34.613227] __x64_sys_exit_group+0x3e/0x50 [ 34.613231] do_syscall_64+0x1b9/0x820 [ 34.613235] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.613238] [ 34.613240] -> #2 (&rq->lock){-.-.}: [ 34.613254] _raw_spin_lock+0x2a/0x40 [ 34.613258] task_fork_fair+0x93/0x680 [ 34.613261] sched_fork+0x44b/0xbd0 [ 34.613265] copy_process+0x235e/0x7ad0 [ 34.613269] _do_fork+0x1ca/0x1170 [ 34.613272] kernel_thread+0x34/0x40 [ 34.613276] rest_init+0x22/0xe4 [ 34.613280] start_kernel+0x913/0x94e [ 34.613284] x86_64_start_reservations+0x29/0x2b [ 34.613288] x86_64_start_kernel+0x76/0x79 [ 34.613292] secondary_startup_64+0xa4/0xb0 [ 34.613294] [ 34.613297] -> #1 (&p->pi_lock){-.-.}: [ 34.613311] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.613315] try_to_wake_up+0xd2/0x1250 [ 34.613319] wake_up_process+0x10/0x20 [ 34.613322] __up.isra.1+0x1c0/0x2a0 [ 34.613326] up+0x13c/0x1c0 [ 34.613329] __up_console_sem+0xbe/0x1b0 [ 34.613333] console_unlock+0x506/0x10d0 [ 34.613337] vprintk_emit+0x33a/0x910 [ 34.613341] vprintk_default+0x28/0x30 [ 34.613345] vprintk_func+0x7a/0x117 [ 34.613348] printk+0xa7/0xcf [ 34.613351] load_umh+0x51/0xbd [ 34.613355] do_one_initcall+0x127/0x838 [ 34.613360] kernel_init_freeable+0x4bb/0x5ae [ 34.613363] kernel_init+0x11/0x1b3 [ 34.613367] ret_from_fork+0x3a/0x50 [ 34.613369] [ 34.613371] -> #0 ((console_sem).lock){-...}: [ 34.613397] lock_acquire+0x1e4/0x4f0 [ 34.613401] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.613405] down_trylock+0x13/0x70 [ 34.613409] __down_trylock_console_sem+0xae/0x200 [ 34.613413] console_trylock+0x15/0xa0 [ 34.613417] vprintk_emit+0x31f/0x910 [ 34.613420] vprintk_default+0x28/0x30 [ 34.613424] vprintk_func+0x7a/0x117 [ 34.613427] printk+0xa7/0xcf [ 34.613431] kasan_report+0x9e/0x110 [ 34.613435] __asan_report_load8_noabort+0x14/0x20 [ 34.613439] __schedule+0xf54/0x1df0 [ 34.613443] preempt_schedule_common+0x22/0x60 [ 34.613446] _cond_resched+0x1d/0x30 [ 34.613450] wait_for_completion+0xa5/0x8d0 [ 34.613454] __synchronize_srcu+0x189/0x240 [ 34.613458] synchronize_srcu+0x335/0x56f [ 34.613463] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.613466] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.613470] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.613474] kvm_put_kvm+0x73f/0x1060 [ 34.613478] kvm_vm_release+0x42/0x50 [ 34.613481] __fput+0x36e/0x8c0 [ 34.613485] ____fput+0x15/0x20 [ 34.613488] task_work_run+0x1e8/0x2a0 [ 34.613492] do_exit+0x1ae4/0x26e0 [ 34.613496] do_group_exit+0x177/0x440 [ 34.613500] __x64_sys_exit_group+0x3e/0x50 [ 34.613503] do_syscall_64+0x1b9/0x820 [ 34.613508] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.613510] [ 34.613514] other info that might help us debug this: [ 34.613516] [ 34.613519] Chain exists of: [ 34.613521] (console_sem).lock --> &rq->lock --> report_lock [ 34.613538] [ 34.613542] Possible unsafe locking scenario: [ 34.613544] [ 34.613548] CPU0 CPU1 [ 34.613564] ---- ---- [ 34.613567] lock(report_lock); [ 34.613576] lock(&rq->lock); [ 34.613585] lock(report_lock); [ 34.613593] lock((console_sem).lock); [ 34.613601] [ 34.613604] *** DEADLOCK *** [ 34.613606] [ 34.613610] 2 locks held by syz-executor027/4473: [ 34.613612] #0: 0000000029938254 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.613635] #1: 0000000086c0efc3 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.613652] [ 34.613655] stack backtrace: [ 34.613661] CPU: 1 PID: 4473 Comm: syz-executor027 Not tainted 4.19.0-rc1+ #212 [ 34.613668] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.613671] Call Trace: [ 34.613674] dump_stack+0x1c9/0x2b4 [ 34.613679] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.613683] ? vprintk_func+0x100/0x117 [ 34.613687] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.613691] ? save_trace+0xe0/0x290 [ 34.613695] __lock_acquire+0x3449/0x5020 [ 34.613699] ? mark_held_locks+0x160/0x160 [ 34.613703] ? mark_held_locks+0x160/0x160 [ 34.613708] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.613712] ? is_bpf_text_address+0xd7/0x170 [ 34.613716] ? kernel_text_address+0x79/0xf0 [ 34.613720] ? __kernel_text_address+0xd/0x40 [ 34.613724] ? __save_stack_trace+0x8d/0xf0 [ 34.613728] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.613732] ? save_trace+0x290/0x290 [ 34.613736] ? save_stack_trace+0x1a/0x20 [ 34.613740] ? save_trace+0xe0/0x290 [ 34.613743] ? graph_lock+0x170/0x170 [ 34.613748] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.613752] lock_acquire+0x1e4/0x4f0 [ 34.613756] ? down_trylock+0x13/0x70 [ 34.613759] ? lock_release+0x9f0/0x9f0 [ 34.613764] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.613768] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.613772] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.613775] ? log_store+0x34f/0x4c0 [ 34.613779] ? vprintk_emit+0x31f/0x910 [ 34.613783] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.613787] ? down_trylock+0x13/0x70 [ 34.613791] down_trylock+0x13/0x70 [ 34.613795] __down_trylock_console_sem+0xae/0x200 [ 34.613799] console_trylock+0x15/0xa0 [ 34.613803] vprintk_emit+0x31f/0x910 [ 34.613806] ? wake_up_klogd+0x110/0x110 [ 34.613811] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.613815] ? kasan_check_read+0x11/0x20 [ 34.613819] ? rcu_is_watching+0x8c/0x150 [ 34.613823] ? rcu_pm_notify+0xc0/0xc0 [ 34.613826] ? lock_acquire+0x1e4/0x4f0 [ 34.613830] ? kasan_report+0x8e/0x110 [ 34.613834] ? __schedule+0xf54/0x1df0 [ 34.613838] vprintk_default+0x28/0x30 [ 34.613841] vprintk_func+0x7a/0x117 [ 34.613845] printk+0xa7/0xcf [ 34.613849] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.613853] ? kasan_check_write+0x14/0x20 [ 34.613857] ? do_raw_spin_lock+0xc1/0x200 [ 34.613861] ? do_raw_spin_lock+0xc1/0x200 [ 34.613864] kasan_report+0x9e/0x110 [ 34.613869] __asan_report_load8_noabort+0x14/0x20 [ 34.613872] __schedule+0xf54/0x1df0 [ 34.613877] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.613881] ? __sched_text_start+0x8/0x8 [ 34.613885] ? __call_srcu+0x7e7/0x1040 [ 34.613889] ? check_same_owner+0x340/0x340 [ 34.613893] ? mark_held_locks+0x160/0x160 [ 34.613897] ? find_held_lock+0x36/0x1c0 [ 34.613901] preempt_schedule_common+0x22/0x60 [ 34.613905] _cond_resched+0x1d/0x30 [ 34.613909] wait_for_completion+0xa5/0x8d0 [ 34.613914] ? wait_for_completion_interruptible+0x950/0x950 [ 34.613918] ? __lockdep_init_map+0x105/0x590 [ 34.613922] ? __init_waitqueue_head+0x9e/0x150 [ 34.613926] ? init_wait_entry+0x1c0/0x1c0 [ 34.613930] __synchronize_srcu+0x189/0x240 [ 34.613934] ? call_srcu+0x10/0x10 [ 34.613938] ? rcu_unexpedite_gp+0x20/0x20 [ 34.613941] synchronize_srcu+0x335/0x56f [ 34.613945] ? lock_downgrade+0x8f0/0x8f0 [ 34.613950] ? synchronize_srcu_expedited+0x20/0x20 [ 34.613954] ? kasan_check_read+0x11/0x20 [ 34.613958] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.613962] ? kasan_check_write+0x14/0x20 [ 34.613966] ? do_raw_spin_lock+0xc1/0x200 [ 34.613971] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.613976] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.613979] ? kvfree+0x61/0x70 [ 34.613984] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.613987] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.613991] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.613996] ? kvm_arch_sync_events+0x30/0x30 [ 34.614000] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.614005] ? mmu_notifier_unregister+0x474/0x600 [ 34.614009] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.614012] ? kfree+0x111/0x210 [ 34.614017] ? __mmu_notifier_register+0x30/0x30 [ 34.614020] ? __free_pages+0x10a/0x190 [ 34.614024] ? free_unref_page+0x930/0x930 [ 34.614028] kvm_put_kvm+0x73f/0x1060 [ 34.614032] ? kvm_write_guest_cached+0x40/0x40 [ 34.614036] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.614040] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.614045] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.614049] ? kasan_check_write+0x14/0x20 [ 34.614053] ? do_raw_spin_lock+0xc1/0x200 [ 34.614057] ? kvm_irqfd_release+0xdd/0x120 [ 34.614061] ? kvm_irqfd_release+0xdd/0x120 [ 34.614064] ? kvm_put_kvm+0x1060/0x1060 [ 34.614068] kvm_vm_release+0x42/0x50 [ 34.614072] __fput+0x36e/0x8c0 [ 34.614075] ? __alloc_file+0x400/0x400 [ 34.614079] ? check_same_owner+0x340/0x340 [ 34.614083] ? kasan_check_write+0x14/0x20 [ 34.614087] ? do_raw_spin_lock+0xc1/0x200 [ 34.614091] ____fput+0x15/0x20 [ 34.614095] task_work_run+0x1e8/0x2a0 [ 34.614099] ? task_work_cancel+0x240/0x240 [ 34.614108] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.614113] ? switch_task_namespaces+0xa2/0xd0 [ 34.614116] do_exit+0x1ae4/0x26e0 [ 34.614121] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.614125] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.614130] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.614133] ? kfree+0x1d7/0x210 [ 34.614137] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.614142] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.614146] ? is_bpf_text_address+0xd7/0x170 [ 34.614149] ? [ 34.614156] Lost 55 message(s)! [ 35.683323] Shutting down cpus with NMI [ 36.742772] Dumping ftrace buffer: [ 36.746304] (ftrace buffer empty) [ 36.750003] Kernel Offset: disabled [ 36.753613] Rebooting in 86400 seconds..