[....] Starting OpenBSD Secure Shell server: sshd[ 23.302221] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.816088] random: sshd: uninitialized urandom read (32 bytes read) [ 28.132069] random: sshd: uninitialized urandom read (32 bytes read) [ 28.694492] sshd (4651) used greatest stack depth: 17064 bytes left [ 28.714646] random: sshd: uninitialized urandom read (32 bytes read) [ 28.900312] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.23' (ECDSA) to the list of known hosts. [ 34.518021] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.615156] 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.640154] ================================================================== [ 34.650015] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.656701] Read of size 8 at addr ffff8801b69f8058 by task syz-executor794/4664 [ 34.664237] [ 34.665881] CPU: 1 PID: 4664 Comm: syz-executor794 Not tainted 4.19.0-rc1+ #217 [ 34.673319] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.682664] Call Trace: [ 34.685250] dump_stack+0x1c9/0x2b4 [ 34.688893] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.694077] ? printk+0xa7/0xcf [ 34.697352] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.702117] ? __schedule+0xf54/0x1df0 [ 34.706006] print_address_description+0x6c/0x20b [ 34.710845] ? __schedule+0xf54/0x1df0 [ 34.714729] kasan_report.cold.7+0x242/0x30d [ 34.719137] __asan_report_load8_noabort+0x14/0x20 [ 34.724066] __schedule+0xf54/0x1df0 [ 34.727776] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.732882] ? __sched_text_start+0x8/0x8 [ 34.737028] ? __call_srcu+0x7e7/0x1040 [ 34.741019] ? check_same_owner+0x340/0x340 [ 34.745349] ? mark_held_locks+0x160/0x160 [ 34.749578] ? find_held_lock+0x36/0x1c0 [ 34.753637] preempt_schedule_common+0x22/0x60 [ 34.758231] _cond_resched+0x1d/0x30 [ 34.761947] wait_for_completion+0xa5/0x8d0 [ 34.766289] ? wait_for_completion_interruptible+0x950/0x950 [ 34.772272] ? __lockdep_init_map+0x105/0x590 [ 34.776756] ? __init_waitqueue_head+0x9e/0x150 [ 34.781420] ? init_wait_entry+0x1c0/0x1c0 [ 34.785660] __synchronize_srcu+0x189/0x240 [ 34.789978] ? call_srcu+0x10/0x10 [ 34.793521] ? rcu_unexpedite_gp+0x20/0x20 [ 34.797757] synchronize_srcu+0x335/0x56f [ 34.801901] ? lock_downgrade+0x8f0/0x8f0 [ 34.806050] ? synchronize_srcu_expedited+0x20/0x20 [ 34.811066] ? kasan_check_read+0x11/0x20 [ 34.815251] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.819836] ? kasan_check_write+0x14/0x20 [ 34.824066] ? do_raw_spin_lock+0xc1/0x200 [ 34.828304] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.834028] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.839492] ? kvfree+0x61/0x70 [ 34.842780] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.847800] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.851861] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.856344] ? kvm_arch_sync_events+0x30/0x30 [ 34.860837] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.866394] ? mmu_notifier_unregister+0x474/0x600 [ 34.871319] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.875722] ? kfree+0x111/0x210 [ 34.879087] ? __mmu_notifier_register+0x30/0x30 [ 34.883843] ? __free_pages+0x10a/0x190 [ 34.887818] ? free_unref_page+0x930/0x930 [ 34.892057] kvm_put_kvm+0x73f/0x1060 [ 34.895873] ? kvm_write_guest_cached+0x40/0x40 [ 34.900559] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.905048] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.909539] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.914125] ? kasan_check_write+0x14/0x20 [ 34.918352] ? do_raw_spin_lock+0xc1/0x200 [ 34.922581] ? kvm_irqfd_release+0xdd/0x120 [ 34.926900] ? kvm_irqfd_release+0xdd/0x120 [ 34.931216] ? kvm_put_kvm+0x1060/0x1060 [ 34.935275] kvm_vm_release+0x42/0x50 [ 34.939073] __fput+0x38a/0xa40 [ 34.942350] ? __alloc_file+0x400/0x400 [ 34.946350] ? check_same_owner+0x340/0x340 [ 34.950666] ? kasan_check_write+0x14/0x20 [ 34.954893] ? do_raw_spin_lock+0xc1/0x200 [ 34.959123] ____fput+0x15/0x20 [ 34.962407] task_work_run+0x1e8/0x2a0 [ 34.966292] ? task_work_cancel+0x240/0x240 [ 34.970624] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.976168] ? switch_task_namespaces+0xa2/0xd0 [ 34.980845] do_exit+0x1ae4/0x26e0 [ 34.984386] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.989054] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.993336] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.998394] ? kfree+0x1d7/0x210 [ 35.001759] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.006017] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.011725] ? is_bpf_text_address+0xd7/0x170 [ 35.016210] ? kernel_text_address+0x79/0xf0 [ 35.020609] ? __kernel_text_address+0xd/0x40 [ 35.025097] ? unwind_get_return_address+0x61/0xa0 [ 35.030020] ? __save_stack_trace+0x8d/0xf0 [ 35.034340] ? save_stack+0xa9/0xd0 [ 35.037960] ? save_stack+0x43/0xd0 [ 35.041581] ? __kasan_slab_free+0x11a/0x170 [ 35.045984] ? kasan_slab_free+0xe/0x10 [ 35.049956] ? putname+0xf2/0x130 [ 35.053423] ? __x64_sys_openat+0x9d/0x100 [ 35.057651] ? do_syscall_64+0x1b9/0x820 [ 35.061722] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.067082] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.071480] ? kasan_check_read+0x11/0x20 [ 35.075639] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.080035] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.084434] ? initcall_blacklisted+0x9a/0x1e0 [ 35.089008] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.094103] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.099811] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.105364] ? do_vfs_ioctl+0x201/0x1720 [ 35.109416] ? rcu_is_watching+0x8c/0x150 [ 35.113556] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.117881] ? ioctl_preallocate+0x300/0x300 [ 35.122293] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.128255] ? __fget_light+0x2f7/0x440 [ 35.132226] ? fget_raw+0x20/0x20 [ 35.135672] ? putname+0xf2/0x130 [ 35.139125] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.144144] ? kmem_cache_free+0x246/0x280 [ 35.148392] ? putname+0xf7/0x130 [ 35.151849] do_group_exit+0x177/0x440 [ 35.155728] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.160040] ? __ia32_sys_exit+0x50/0x50 [ 35.164093] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.169326] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.174903] ? ksys_ioctl+0x81/0xd0 [ 35.178748] __x64_sys_exit_group+0x3e/0x50 [ 35.183067] do_syscall_64+0x1b9/0x820 [ 35.186954] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.192316] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.197242] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.202084] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.207097] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.212111] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.217139] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.221975] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.227155] RIP: 0033:0x43ecf8 [ 35.230340] Code: Bad RIP value. [ 35.233708] RSP: 002b:00007fff70502648 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.242053] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 35.249329] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.256590] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.267030] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.274287] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.281547] [ 35.283175] Allocated by task 4664: [ 35.287338] save_stack+0x43/0xd0 [ 35.290787] kasan_kmalloc+0xc4/0xe0 [ 35.294509] kasan_slab_alloc+0x12/0x20 [ 35.298493] kmem_cache_alloc+0x12e/0x710 [ 35.302658] vmx_create_vcpu+0xcf/0x2830 [ 35.306718] kvm_arch_vcpu_create+0xe5/0x220 [ 35.311135] kvm_vm_ioctl+0x488/0x1d80 [ 35.315038] do_vfs_ioctl+0x1de/0x1720 [ 35.318976] ksys_ioctl+0xa9/0xd0 [ 35.322417] __x64_sys_ioctl+0x73/0xb0 [ 35.326292] do_syscall_64+0x1b9/0x820 [ 35.330169] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.335344] [ 35.336961] Freed by task 4664: [ 35.340232] save_stack+0x43/0xd0 [ 35.343682] __kasan_slab_free+0x11a/0x170 [ 35.347910] kasan_slab_free+0xe/0x10 [ 35.351702] kmem_cache_free+0x86/0x280 [ 35.355830] vmx_free_vcpu+0x26b/0x300 [ 35.359721] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.364120] kvm_put_kvm+0x73f/0x1060 [ 35.367907] kvm_vm_release+0x42/0x50 [ 35.371694] __fput+0x38a/0xa40 [ 35.374960] ____fput+0x15/0x20 [ 35.378230] task_work_run+0x1e8/0x2a0 [ 35.382124] do_exit+0x1ae4/0x26e0 [ 35.385669] do_group_exit+0x177/0x440 [ 35.389562] __x64_sys_exit_group+0x3e/0x50 [ 35.393879] do_syscall_64+0x1b9/0x820 [ 35.397764] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.402951] [ 35.404580] The buggy address belongs to the object at ffff8801b69f8040 [ 35.404580] which belongs to the cache kvm_vcpu of size 23872 [ 35.417167] The buggy address is located 24 bytes inside of [ 35.417167] 23872-byte region [ffff8801b69f8040, ffff8801b69fdd80) [ 35.429110] The buggy address belongs to the page: [ 35.434053] page:ffffea0006da7e00 count:1 mapcount:0 mapping:ffff8801d4a536c0 index:0x0 compound_mapcount: 0 [ 35.444054] flags: 0x2fffc0000008100(slab|head) [ 35.448713] raw: 02fffc0000008100 ffff8801d4a58948 ffff8801d4a58948 ffff8801d4a536c0 [ 35.456597] raw: 0000000000000000 ffff8801b69f8040 0000000100000001 0000000000000000 [ 35.464470] page dumped because: kasan: bad access detected [ 35.470235] [ 35.471883] Memory state around the buggy address: [ 35.476802] ffff8801b69f7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.484150] ffff8801b69f7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.491519] >ffff8801b69f8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.498883] ^ [ 35.505118] ffff8801b69f8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.512478] ffff8801b69f8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.519840] ================================================================== [ 35.527186] Kernel panic - not syncing: panic_on_warn set ... [ 35.527186] [ 35.534556] CPU: 1 PID: 4664 Comm: syz-executor794 Tainted: G B 4.19.0-rc1+ #217 [ 35.543381] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.552766] Call Trace: [ 35.555356] dump_stack+0x1c9/0x2b4 [ 35.558988] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.564220] ? lock_downgrade+0x8f0/0x8f0 [ 35.568367] ? __schedule+0xf54/0x1df0 [ 35.572254] panic+0x238/0x4e7 [ 35.575447] ? add_taint.cold.5+0x16/0x16 [ 35.579593] ? print_shadow_for_address+0xba/0x116 [ 35.584556] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.588956] ? trace_hardirqs_off+0x77/0x2b0 [ 35.593363] ? __schedule+0xf54/0x1df0 [ 35.597247] kasan_end_report+0x47/0x4f [ 35.601237] kasan_report.cold.7+0x76/0x30d [ 35.605563] __asan_report_load8_noabort+0x14/0x20 [ 35.610488] __schedule+0xf54/0x1df0 [ 35.614209] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.619327] ? __sched_text_start+0x8/0x8 [ 35.623471] ? __call_srcu+0x7e7/0x1040 [ 35.627455] ? check_same_owner+0x340/0x340 [ 35.631786] ? mark_held_locks+0x160/0x160 [ 35.636034] ? find_held_lock+0x36/0x1c0 [ 35.640109] preempt_schedule_common+0x22/0x60 [ 35.644685] _cond_resched+0x1d/0x30 [ 35.648406] wait_for_completion+0xa5/0x8d0 [ 35.652728] ? wait_for_completion_interruptible+0x950/0x950 [ 35.658531] ? __lockdep_init_map+0x105/0x590 [ 35.663027] ? __init_waitqueue_head+0x9e/0x150 [ 35.667689] ? init_wait_entry+0x1c0/0x1c0 [ 35.671922] __synchronize_srcu+0x189/0x240 [ 35.676234] ? call_srcu+0x10/0x10 [ 35.679771] ? rcu_unexpedite_gp+0x20/0x20 [ 35.684023] synchronize_srcu+0x335/0x56f [ 35.688177] ? lock_downgrade+0x8f0/0x8f0 [ 35.692320] ? synchronize_srcu_expedited+0x20/0x20 [ 35.697336] ? kasan_check_read+0x11/0x20 [ 35.701482] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.706080] ? kasan_check_write+0x14/0x20 [ 35.710322] ? do_raw_spin_lock+0xc1/0x200 [ 35.714570] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.720285] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.725734] ? kvfree+0x61/0x70 [ 35.729012] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.734028] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.738083] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.742489] ? kvm_arch_sync_events+0x30/0x30 [ 35.746994] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.752536] ? mmu_notifier_unregister+0x474/0x600 [ 35.757458] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.761858] ? kfree+0x111/0x210 [ 35.765223] ? __mmu_notifier_register+0x30/0x30 [ 35.769981] ? __free_pages+0x10a/0x190 [ 35.773953] ? free_unref_page+0x930/0x930 [ 35.778197] kvm_put_kvm+0x73f/0x1060 [ 35.782020] ? kvm_write_guest_cached+0x40/0x40 [ 35.786715] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.791208] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.795698] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.800287] ? kasan_check_write+0x14/0x20 [ 35.804543] ? do_raw_spin_lock+0xc1/0x200 [ 35.808983] ? kvm_irqfd_release+0xdd/0x120 [ 35.813299] ? kvm_irqfd_release+0xdd/0x120 [ 35.817619] ? kvm_put_kvm+0x1060/0x1060 [ 35.821676] kvm_vm_release+0x42/0x50 [ 35.825472] __fput+0x38a/0xa40 [ 35.828756] ? __alloc_file+0x400/0x400 [ 35.832733] ? check_same_owner+0x340/0x340 [ 35.837050] ? kasan_check_write+0x14/0x20 [ 35.841295] ? do_raw_spin_lock+0xc1/0x200 [ 35.845536] ____fput+0x15/0x20 [ 35.848813] task_work_run+0x1e8/0x2a0 [ 35.852701] ? task_work_cancel+0x240/0x240 [ 35.857025] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.862571] ? switch_task_namespaces+0xa2/0xd0 [ 35.867248] do_exit+0x1ae4/0x26e0 [ 35.870795] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.875469] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.879714] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.884723] ? kfree+0x1d7/0x210 [ 35.888104] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.892599] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.898324] ? is_bpf_text_address+0xd7/0x170 [ 35.902818] ? kernel_text_address+0x79/0xf0 [ 35.907224] ? __kernel_text_address+0xd/0x40 [ 35.911719] ? unwind_get_return_address+0x61/0xa0 [ 35.916647] ? __save_stack_trace+0x8d/0xf0 [ 35.920984] ? save_stack+0xa9/0xd0 [ 35.924605] ? save_stack+0x43/0xd0 [ 35.928238] ? __kasan_slab_free+0x11a/0x170 [ 35.932646] ? kasan_slab_free+0xe/0x10 [ 35.936627] ? putname+0xf2/0x130 [ 35.940079] ? __x64_sys_openat+0x9d/0x100 [ 35.944312] ? do_syscall_64+0x1b9/0x820 [ 35.948367] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.953728] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.958137] ? kasan_check_read+0x11/0x20 [ 35.962287] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.966689] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.971099] ? initcall_blacklisted+0x9a/0x1e0 [ 35.975679] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.980782] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.986495] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.992044] ? do_vfs_ioctl+0x201/0x1720 [ 35.996101] ? rcu_is_watching+0x8c/0x150 [ 36.000243] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.004585] ? ioctl_preallocate+0x300/0x300 [ 36.009019] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.014576] ? __fget_light+0x2f7/0x440 [ 36.018549] ? fget_raw+0x20/0x20 [ 36.021995] ? putname+0xf2/0x130 [ 36.025447] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.030468] ? kmem_cache_free+0x246/0x280 [ 36.034696] ? putname+0xf7/0x130 [ 36.038151] do_group_exit+0x177/0x440 [ 36.042042] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.046388] ? __ia32_sys_exit+0x50/0x50 [ 36.050445] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.055560] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.061092] ? ksys_ioctl+0x81/0xd0 [ 36.064716] __x64_sys_exit_group+0x3e/0x50 [ 36.069031] do_syscall_64+0x1b9/0x820 [ 36.072920] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.078286] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.083209] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.088056] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.093066] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.098087] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.103103] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.107949] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.113131] RIP: 0033:0x43ecf8 [ 36.116319] Code: Bad RIP value. [ 36.119680] RSP: 002b:00007fff70502648 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.127385] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecf8 [ 36.134649] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.141931] RBP: 00000000004be5a8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.149195] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.156459] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.163731] [ 36.163736] ====================================================== [ 36.163741] WARNING: possible circular locking dependency detected [ 36.163744] 4.19.0-rc1+ #217 Not tainted [ 36.163749] ------------------------------------------------------ [ 36.163754] syz-executor794/4664 is trying to acquire lock: [ 36.163757] 00000000b30d813e ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.163771] [ 36.163774] but task is already holding lock: [ 36.163777] 000000006ebf41b2 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.163790] [ 36.163794] which lock already depends on the new lock. [ 36.163796] [ 36.163799] [ 36.163803] the existing dependency chain (in reverse order) is: [ 36.163805] [ 36.163807] -> #3 (report_lock){....}: [ 36.163821] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.163824] kasan_report+0x8e/0x110 [ 36.163828] __asan_report_load8_noabort+0x14/0x20 [ 36.163832] __schedule+0xf54/0x1df0 [ 36.163836] preempt_schedule_common+0x22/0x60 [ 36.163839] _cond_resched+0x1d/0x30 [ 36.163843] wait_for_completion+0xa5/0x8d0 [ 36.163847] __synchronize_srcu+0x189/0x240 [ 36.163851] synchronize_srcu+0x335/0x56f [ 36.163855] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.163859] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.163863] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.163866] kvm_put_kvm+0x73f/0x1060 [ 36.163870] kvm_vm_release+0x42/0x50 [ 36.163873] __fput+0x38a/0xa40 [ 36.163876] ____fput+0x15/0x20 [ 36.163892] task_work_run+0x1e8/0x2a0 [ 36.163895] do_exit+0x1ae4/0x26e0 [ 36.163899] do_group_exit+0x177/0x440 [ 36.163903] __x64_sys_exit_group+0x3e/0x50 [ 36.163906] do_syscall_64+0x1b9/0x820 [ 36.163911] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.163913] [ 36.163915] -> #2 (&rq->lock){-.-.}: [ 36.163928] _raw_spin_lock+0x2a/0x40 [ 36.163932] task_fork_fair+0x93/0x680 [ 36.163935] sched_fork+0x44b/0xbd0 [ 36.163939] copy_process+0x235e/0x7ad0 [ 36.163942] _do_fork+0x1ca/0x1170 [ 36.163946] kernel_thread+0x34/0x40 [ 36.163949] rest_init+0x22/0xe4 [ 36.163953] start_kernel+0x913/0x94e [ 36.163957] x86_64_start_reservations+0x29/0x2b [ 36.163961] x86_64_start_kernel+0x76/0x79 [ 36.163965] secondary_startup_64+0xa4/0xb0 [ 36.163967] [ 36.163969] -> #1 (&p->pi_lock){-.-.}: [ 36.163983] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.163999] try_to_wake_up+0xd2/0x1250 [ 36.164002] wake_up_process+0x10/0x20 [ 36.164006] __up.isra.1+0x1c0/0x2a0 [ 36.164009] up+0x13c/0x1c0 [ 36.164013] __up_console_sem+0xbe/0x1b0 [ 36.164017] console_unlock+0x506/0x10d0 [ 36.164021] vprintk_emit+0x33a/0x910 [ 36.164025] vprintk_default+0x28/0x30 [ 36.164028] vprintk_func+0x7a/0x117 [ 36.164032] printk+0xa7/0xcf [ 36.164035] load_umh+0x51/0xbd [ 36.164039] do_one_initcall+0x127/0x838 [ 36.164043] kernel_init_freeable+0x4bb/0x5ae [ 36.164047] kernel_init+0x11/0x1b3 [ 36.164051] ret_from_fork+0x3a/0x50 [ 36.164053] [ 36.164055] -> #0 ((console_sem).lock){-...}: [ 36.164069] lock_acquire+0x1e4/0x4f0 [ 36.164073] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.164077] down_trylock+0x13/0x70 [ 36.164081] __down_trylock_console_sem+0xae/0x200 [ 36.164085] console_trylock+0x15/0xa0 [ 36.164089] vprintk_emit+0x31f/0x910 [ 36.164093] vprintk_default+0x28/0x30 [ 36.164096] vprintk_func+0x7a/0x117 [ 36.164100] printk+0xa7/0xcf [ 36.164104] kasan_report+0x9e/0x110 [ 36.164108] __asan_report_load8_noabort+0x14/0x20 [ 36.164112] __schedule+0xf54/0x1df0 [ 36.164116] preempt_schedule_common+0x22/0x60 [ 36.164119] _cond_resched+0x1d/0x30 [ 36.164124] wait_for_completion+0xa5/0x8d0 [ 36.164128] __synchronize_srcu+0x189/0x240 [ 36.164132] synchronize_srcu+0x335/0x56f [ 36.164136] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.164140] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.164144] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.164148] kvm_put_kvm+0x73f/0x1060 [ 36.164152] kvm_vm_release+0x42/0x50 [ 36.164155] __fput+0x38a/0xa40 [ 36.164159] ____fput+0x15/0x20 [ 36.164163] task_work_run+0x1e8/0x2a0 [ 36.164166] do_exit+0x1ae4/0x26e0 [ 36.164170] do_group_exit+0x177/0x440 [ 36.164174] __x64_sys_exit_group+0x3e/0x50 [ 36.164178] do_syscall_64+0x1b9/0x820 [ 36.164182] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.164185] [ 36.164189] other info that might help us debug this: [ 36.164191] [ 36.164194] Chain exists of: [ 36.164196] (console_sem).lock --> &rq->lock --> report_lock [ 36.164214] [ 36.164218] Possible unsafe locking scenario: [ 36.164220] [ 36.164224] CPU0 CPU1 [ 36.164228] ---- ---- [ 36.164230] lock(report_lock); [ 36.164252] lock(&rq->lock); [ 36.164261] lock(report_lock); [ 36.164287] lock((console_sem).lock); [ 36.164307] [ 36.164310] *** DEADLOCK *** [ 36.164312] [ 36.164316] 2 locks held by syz-executor794/4664: [ 36.164319] #0: 0000000017838de1 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.164334] #1: 000000006ebf41b2 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.164350] [ 36.164353] stack backtrace: [ 36.164359] CPU: 1 PID: 4664 Comm: syz-executor794 Not tainted 4.19.0-rc1+ #217 [ 36.164378] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.164381] Call Trace: [ 36.164384] dump_stack+0x1c9/0x2b4 [ 36.164389] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.164393] ? vprintk_func+0x100/0x117 [ 36.164398] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.164401] ? save_trace+0xe0/0x290 [ 36.164405] __lock_acquire+0x3449/0x5020 [ 36.164409] ? mark_held_locks+0x160/0x160 [ 36.164413] ? mark_held_locks+0x160/0x160 [ 36.164417] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.164421] ? is_bpf_text_address+0xd7/0x170 [ 36.164426] ? kernel_text_address+0x79/0xf0 [ 36.164430] ? __kernel_text_address+0xd/0x40 [ 36.164434] ? __save_stack_trace+0x8d/0xf0 [ 36.164438] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.164455] ? save_trace+0x290/0x290 [ 36.164458] ? save_stack_trace+0x1a/0x20 [ 36.164462] ? save_trace+0xe0/0x290 [ 36.164466] ? graph_lock+0x170/0x170 [ 36.164470] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.164474] lock_acquire+0x1e4/0x4f0 [ 36.164477] ? down_trylock+0x13/0x70 [ 36.164481] ? lock_release+0x9f0/0x9f0 [ 36.164485] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.164489] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.164493] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.164496] ? log_store+0x34f/0x4c0 [ 36.164508] ? vprintk_emit+0x31f/0x910 [ 36.164512] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.164516] ? down_trylock+0x13/0x70 [ 36.164519] down_trylock+0x13/0x70 [ 36.164524] __down_trylock_console_sem+0xae/0x200 [ 36.164527] console_trylock+0x15/0xa0 [ 36.164531] vprintk_emit+0x31f/0x910 [ 36.164535] ? wake_up_klogd+0x110/0x110 [ 36.164539] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.164542] ? kasan_check_read+0x11/0x20 [ 36.164546] ? rcu_is_watching+0x8c/0x150 [ 36.164550] ? rcu_pm_notify+0xc0/0xc0 [ 36.164553] ? lock_acquire+0x1e4/0x4f0 [ 36.164557] ? kasan_report+0x8e/0x110 [ 36.164560] ? __schedule+0xf54/0x1df0 [ 36.164564] vprintk_default+0x28/0x30 [ 36.164568] vprintk_func+0x7a/0x117 [ 36.164571] printk+0xa7/0xcf [ 36.164575] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.164579] ? kasan_check_write+0x14/0x20 [ 36.164582] ? do_raw_spin_lock+0xc1/0x200 [ 36.164586] ? do_raw_spin_lock+0xc1/0x200 [ 36.164590] kasan_report+0x9e/0x110 [ 36.164594] __asan_report_load8_noabort+0x14/0x20 [ 36.164598] __schedule+0xf54/0x1df0 [ 36.164602] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.164606] ? __sched_text_start+0x8/0x8 [ 36.164609] ? __call_srcu+0x7e7/0x1040 [ 36.164613] ? check_same_owner+0x340/0x340 [ 36.164617] ? mark_held_locks+0x160/0x160 [ 36.164621] ? find_held_lock+0x36/0x1c0 [ 36.164625] preempt_schedule_common+0x22/0x60 [ 36.164628] _cond_resched+0x1d/0x30 [ 36.164632] wait_for_completion+0xa5/0x8d0 [ 36.164637] ? wait_for_completion_interruptible+0x950/0x950 [ 36.164641] ? __lockdep_init_map+0x105/0x590 [ 36.164645] ? __init_waitqueue_head+0x9e/0x150 [ 36.164648] ? init_wait_entry+0x1c0/0x1c0 [ 36.164652] __synchronize_srcu+0x189/0x240 [ 36.164656] ? call_srcu+0x10/0x10 [ 36.164660] ? rcu_unexpedite_gp+0x20/0x20 [ 36.164663] synchronize_srcu+0x335/0x56f [ 36.164667] ? lock_downgrade+0x8f0/0x8f0 [ 36.164671] ? synchronize_srcu_expedited+0x20/0x20 [ 36.164675] ? kasan_check_read+0x11/0x20 [ 36.164679] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.164683] ? kasan_check_write+0x14/0x20 [ 36.164687] ? do_raw_spin_lock+0xc1/0x200 [ 36.164692] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.164696] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.164700] ? kvfree+0x61/0x70 [ 36.164704] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.164707] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.164711] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.164715] ? kvm_arch_sync_events+0x30/0x30 [ 36.164720] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.164724] ? mmu_notifier_unregister+0x474/0x600 [ 36.164728] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.164731] ? kfree+0x111/0x210 [ 36.164735] ? __mmu_notifier_register+0x30/0x30 [ 36.164739] ? __free_pages+0x10a/0x190 [ 36.164743] ? free_unref_page+0x930/0x930 [ 36.164746] kvm_put_kvm+0x73f/0x1060 [ 36.164751] ? kvm_write_guest_cached+0x40/0x40 [ 36.164754] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.164758] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.164762] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.164767] ? kasan_check_write+0x14/0x20 [ 36.164771] ? do_raw_spin_lock+0xc1/0x200 [ 36.164774] ? kvm_irqfd_release+0xdd/0x120 [ 36.164778] ? kvm_irqfd_release+0xdd/0x120 [ 36.164782] ? kvm_put_kvm+0x1060/0x1060 [ 36.164785] kvm_vm_release+0x42/0x50 [ 36.164789] __fput+0x38a/0xa40 [ 36.164792] ? __alloc_file+0x400/0x400 [ 36.164796] ? check_same_owner+0x340/0x340 [ 36.164800] ? kasan_check_write+0x14/0x20 [ 36.164804] ? do_raw_spin_lock+0xc1/0x200 [ 36.164807] ____fput+0x15/0x20 [ 36.164811] task_work_run+0x1e8/0x2a0 [ 36.164814] ? task_work_cancel+0x240/0x240 [ 36.164819] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.164823] ? switch_task_namespaces+0xa2/0xd0 [ 36.164826] do_exit+0x1ae4/0x26e0 [ 36.164830] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.164834] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.164838] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.164842] ? kfree+0x1d7/0x210 [ 36.164845] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.164850] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.164854] ? is_bpf_text_address+0xd7/0x170 [ 36.164856] ? [ 36.164863] Lost 55 message(s)! [ 37.300187] Shutting down cpus with NMI [ 38.365136] Dumping ftrace buffer: [ 38.368682] (ftrace buffer empty) [ 38.372370] Kernel Offset: disabled [ 38.375974] Rebooting in 86400 seconds..