[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.879775] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 43.744502] random: sshd: uninitialized urandom read (32 bytes read) [ 44.245147] random: sshd: uninitialized urandom read (32 bytes read) [ 44.647702] random: sshd: uninitialized urandom read (32 bytes read) [ 44.811846] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.25' (ECDSA) to the list of known hosts. [ 50.393029] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 50.489824] 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. [ 50.512636] ================================================================== [ 50.521369] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 50.527589] Read of size 8 at addr ffff8801b9a68058 by task syz-executor660/4645 [ 50.535104] [ 50.536715] CPU: 0 PID: 4645 Comm: syz-executor660 Not tainted 4.19.0-rc1+ #216 [ 50.544136] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.553469] Call Trace: [ 50.556044] dump_stack+0x1c9/0x2b4 [ 50.559661] ? dump_stack_print_info.cold.2+0x52/0x52 [ 50.564838] ? printk+0xa7/0xcf [ 50.568098] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 50.572841] ? __schedule+0xf54/0x1df0 [ 50.576767] print_address_description+0x6c/0x20b [ 50.581599] ? __schedule+0xf54/0x1df0 [ 50.585468] kasan_report.cold.7+0x242/0x30d [ 50.589865] __asan_report_load8_noabort+0x14/0x20 [ 50.594777] __schedule+0xf54/0x1df0 [ 50.598482] ? __sched_text_start+0x8/0x8 [ 50.602617] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 50.607706] ? __call_srcu+0x7e7/0x1040 [ 50.611669] ? check_same_owner+0x340/0x340 [ 50.616041] ? mark_held_locks+0x160/0x160 [ 50.620263] ? find_held_lock+0x36/0x1c0 [ 50.624310] preempt_schedule_common+0x22/0x60 [ 50.628924] _cond_resched+0x1d/0x30 [ 50.632627] wait_for_completion+0xa5/0x8d0 [ 50.636937] ? wait_for_completion_interruptible+0x950/0x950 [ 50.642742] ? __lockdep_init_map+0x105/0x590 [ 50.647232] ? __init_waitqueue_head+0x9e/0x150 [ 50.651882] ? init_wait_entry+0x1c0/0x1c0 [ 50.656101] __synchronize_srcu+0x189/0x240 [ 50.660402] ? call_srcu+0x10/0x10 [ 50.663922] ? rcu_unexpedite_gp+0x20/0x20 [ 50.668139] synchronize_srcu+0x335/0x56f [ 50.672268] ? lock_downgrade+0x8f0/0x8f0 [ 50.676396] ? synchronize_srcu_expedited+0x20/0x20 [ 50.681407] ? kasan_check_read+0x11/0x20 [ 50.685543] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 50.690107] ? kasan_check_write+0x14/0x20 [ 50.694330] ? do_raw_spin_lock+0xc1/0x200 [ 50.698556] kvm_page_track_unregister_notifier+0x17d/0x250 [ 50.704259] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 50.709697] ? kvfree+0x61/0x70 [ 50.712959] ? rcu_read_lock_sched_held+0x108/0x120 [ 50.717969] kvm_mmu_uninit_vm+0x1c/0x20 [ 50.722017] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 50.726410] ? kvm_arch_sync_events+0x30/0x30 [ 50.730896] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 50.736421] ? mmu_notifier_unregister+0x474/0x600 [ 50.741331] ? trace_hardirqs_on+0x2c0/0x2c0 [ 50.745726] ? kfree+0x111/0x210 [ 50.749087] ? __mmu_notifier_register+0x30/0x30 [ 50.753835] ? __free_pages+0x10a/0x190 [ 50.757791] ? free_unref_page+0x930/0x930 [ 50.762010] kvm_put_kvm+0x73f/0x1060 [ 50.765794] ? kvm_write_guest_cached+0x40/0x40 [ 50.770448] ? _raw_spin_unlock_irq+0x27/0x70 [ 50.774923] ? _raw_spin_unlock_irq+0x27/0x70 [ 50.779403] ? lockdep_hardirqs_on+0x421/0x5c0 [ 50.783975] ? kasan_check_write+0x14/0x20 [ 50.788191] ? do_raw_spin_lock+0xc1/0x200 [ 50.792411] ? kvm_irqfd_release+0xdd/0x120 [ 50.796729] ? kvm_irqfd_release+0xdd/0x120 [ 50.801042] ? kvm_put_kvm+0x1060/0x1060 [ 50.805082] kvm_vm_release+0x42/0x50 [ 50.808860] __fput+0x38a/0xa40 [ 50.812120] ? __alloc_file+0x400/0x400 [ 50.816076] ? check_same_owner+0x340/0x340 [ 50.820426] ? kasan_check_write+0x14/0x20 [ 50.824646] ? do_raw_spin_lock+0xc1/0x200 [ 50.828867] ____fput+0x15/0x20 [ 50.832127] task_work_run+0x1e8/0x2a0 [ 50.836081] ? task_work_cancel+0x240/0x240 [ 50.840385] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 50.845903] ? switch_task_namespaces+0xa2/0xd0 [ 50.850554] do_exit+0x1ae4/0x26e0 [ 50.854076] ? mm_update_next_owner+0x9a0/0x9a0 [ 50.858731] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 50.862946] ? rcu_read_lock_sched_held+0x108/0x120 [ 50.867943] ? kfree+0x1d7/0x210 [ 50.871293] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 50.875535] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 50.881232] ? is_bpf_text_address+0xd7/0x170 [ 50.885706] ? kernel_text_address+0x79/0xf0 [ 50.890094] ? __kernel_text_address+0xd/0x40 [ 50.894619] ? unwind_get_return_address+0x61/0xa0 [ 50.899536] ? __save_stack_trace+0x8d/0xf0 [ 50.903845] ? save_stack+0xa9/0xd0 [ 50.907463] ? save_stack+0x43/0xd0 [ 50.911069] ? __kasan_slab_free+0x11a/0x170 [ 50.915455] ? kasan_slab_free+0xe/0x10 [ 50.919410] ? putname+0xf2/0x130 [ 50.922855] ? __x64_sys_openat+0x9d/0x100 [ 50.927075] ? do_syscall_64+0x1b9/0x820 [ 50.931120] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.936482] ? trace_hardirqs_off+0xb8/0x2b0 [ 50.940871] ? kasan_check_read+0x11/0x20 [ 50.945003] ? do_raw_spin_unlock+0xa7/0x2f0 [ 50.949436] ? trace_hardirqs_on+0x2c0/0x2c0 [ 50.953836] ? initcall_blacklisted+0x9a/0x1e0 [ 50.958406] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 50.963490] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 50.969244] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 50.974832] ? do_vfs_ioctl+0x201/0x1720 [ 50.978880] ? rcu_is_watching+0x8c/0x150 [ 50.983009] ? trace_hardirqs_on+0xbd/0x2c0 [ 50.987322] ? ioctl_preallocate+0x300/0x300 [ 50.991712] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 50.997230] ? __fget_light+0x2f7/0x440 [ 51.001183] ? fget_raw+0x20/0x20 [ 51.004615] ? putname+0xf2/0x130 [ 51.008051] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.013050] ? kmem_cache_free+0x246/0x280 [ 51.017263] ? putname+0xf7/0x130 [ 51.020699] do_group_exit+0x177/0x440 [ 51.024567] ? trace_hardirqs_on+0xbd/0x2c0 [ 51.028867] ? __ia32_sys_exit+0x50/0x50 [ 51.032905] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 51.037986] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.043505] ? ksys_ioctl+0x81/0xd0 [ 51.047113] __x64_sys_exit_group+0x3e/0x50 [ 51.051418] do_syscall_64+0x1b9/0x820 [ 51.055289] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 51.060634] ? syscall_return_slowpath+0x5e0/0x5e0 [ 51.065546] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 51.070368] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 51.075364] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 51.080358] ? prepare_exit_to_usermode+0x291/0x3b0 [ 51.085353] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 51.090177] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.095345] RIP: 0033:0x43ecc8 [ 51.098517] Code: Bad RIP value. [ 51.101859] RSP: 002b:00007ffd63699b68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 51.109545] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 51.116839] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 51.124098] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 51.131348] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 51.138596] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 51.145848] [ 51.147454] Allocated by task 4645: [ 51.151066] save_stack+0x43/0xd0 [ 51.154502] kasan_kmalloc+0xc4/0xe0 [ 51.158195] kasan_slab_alloc+0x12/0x20 [ 51.162145] kmem_cache_alloc+0x12e/0x710 [ 51.166271] vmx_create_vcpu+0xcf/0x2830 [ 51.170309] kvm_arch_vcpu_create+0xe5/0x220 [ 51.174700] kvm_vm_ioctl+0x488/0x1d80 [ 51.178564] do_vfs_ioctl+0x1de/0x1720 [ 51.182428] ksys_ioctl+0xa9/0xd0 [ 51.185859] __x64_sys_ioctl+0x73/0xb0 [ 51.189724] do_syscall_64+0x1b9/0x820 [ 51.193590] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.198765] [ 51.200380] Freed by task 4645: [ 51.203645] save_stack+0x43/0xd0 [ 51.207082] __kasan_slab_free+0x11a/0x170 [ 51.211298] kasan_slab_free+0xe/0x10 [ 51.215075] kmem_cache_free+0x86/0x280 [ 51.219027] vmx_free_vcpu+0x26b/0x300 [ 51.222891] kvm_arch_destroy_vm+0x365/0x7c0 [ 51.227312] kvm_put_kvm+0x73f/0x1060 [ 51.231093] kvm_vm_release+0x42/0x50 [ 51.234870] __fput+0x38a/0xa40 [ 51.238128] ____fput+0x15/0x20 [ 51.241383] task_work_run+0x1e8/0x2a0 [ 51.245253] do_exit+0x1ae4/0x26e0 [ 51.248776] do_group_exit+0x177/0x440 [ 51.252640] __x64_sys_exit_group+0x3e/0x50 [ 51.256955] do_syscall_64+0x1b9/0x820 [ 51.260820] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.265980] [ 51.267586] The buggy address belongs to the object at ffff8801b9a68040 [ 51.267586] which belongs to the cache kvm_vcpu of size 23872 [ 51.280138] The buggy address is located 24 bytes inside of [ 51.280138] 23872-byte region [ffff8801b9a68040, ffff8801b9a6dd80) [ 51.292081] The buggy address belongs to the page: [ 51.296997] page:ffffea0006e69a00 count:1 mapcount:0 mapping:ffff8801d5354d80 index:0x0 compound_mapcount: 0 [ 51.306950] flags: 0x2fffc0000008100(slab|head) [ 51.311604] raw: 02fffc0000008100 ffff8801d534a448 ffff8801d534a448 ffff8801d5354d80 [ 51.319463] raw: 0000000000000000 ffff8801b9a68040 0000000100000001 0000000000000000 [ 51.327318] page dumped because: kasan: bad access detected [ 51.333005] [ 51.334611] Memory state around the buggy address: [ 51.339524] ffff8801b9a67f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 51.346864] ffff8801b9a67f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 51.354202] >ffff8801b9a68000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 51.361535] ^ [ 51.367753] ffff8801b9a68080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.375091] ffff8801b9a68100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 51.382487] ================================================================== [ 51.389834] Kernel panic - not syncing: panic_on_warn set ... [ 51.389834] [ 51.397186] CPU: 0 PID: 4645 Comm: syz-executor660 Tainted: G B 4.19.0-rc1+ #216 [ 51.405998] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.415336] Call Trace: [ 51.417907] dump_stack+0x1c9/0x2b4 [ 51.421519] ? dump_stack_print_info.cold.2+0x52/0x52 [ 51.426690] ? lock_downgrade+0x8f0/0x8f0 [ 51.430817] ? __schedule+0xf54/0x1df0 [ 51.434687] panic+0x238/0x4e7 [ 51.437858] ? add_taint.cold.5+0x16/0x16 [ 51.441996] ? print_shadow_for_address+0xba/0x116 [ 51.446904] ? trace_hardirqs_off+0xaf/0x2b0 [ 51.451291] ? trace_hardirqs_off+0x77/0x2b0 [ 51.455689] ? __schedule+0xf54/0x1df0 [ 51.459562] kasan_end_report+0x47/0x4f [ 51.463525] kasan_report.cold.7+0x76/0x30d [ 51.467843] __asan_report_load8_noabort+0x14/0x20 [ 51.472754] __schedule+0xf54/0x1df0 [ 51.476452] ? __sched_text_start+0x8/0x8 [ 51.480583] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 51.485675] ? __call_srcu+0x7e7/0x1040 [ 51.489640] ? check_same_owner+0x340/0x340 [ 51.493992] ? mark_held_locks+0x160/0x160 [ 51.498213] ? find_held_lock+0x36/0x1c0 [ 51.502262] preempt_schedule_common+0x22/0x60 [ 51.506828] _cond_resched+0x1d/0x30 [ 51.510524] wait_for_completion+0xa5/0x8d0 [ 51.514939] ? wait_for_completion_interruptible+0x950/0x950 [ 51.520719] ? __lockdep_init_map+0x105/0x590 [ 51.525196] ? __init_waitqueue_head+0x9e/0x150 [ 51.530186] ? init_wait_entry+0x1c0/0x1c0 [ 51.534405] __synchronize_srcu+0x189/0x240 [ 51.538710] ? call_srcu+0x10/0x10 [ 51.542231] ? rcu_unexpedite_gp+0x20/0x20 [ 51.546455] synchronize_srcu+0x335/0x56f [ 51.550585] ? lock_downgrade+0x8f0/0x8f0 [ 51.554714] ? synchronize_srcu_expedited+0x20/0x20 [ 51.559776] ? kasan_check_read+0x11/0x20 [ 51.563914] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 51.568477] ? kasan_check_write+0x14/0x20 [ 51.572697] ? do_raw_spin_lock+0xc1/0x200 [ 51.576915] kvm_page_track_unregister_notifier+0x17d/0x250 [ 51.582606] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 51.588034] ? kvfree+0x61/0x70 [ 51.591295] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.596296] kvm_mmu_uninit_vm+0x1c/0x20 [ 51.600344] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 51.604740] ? kvm_arch_sync_events+0x30/0x30 [ 51.609218] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 51.614737] ? mmu_notifier_unregister+0x474/0x600 [ 51.619644] ? trace_hardirqs_on+0x2c0/0x2c0 [ 51.624038] ? kfree+0x111/0x210 [ 51.627386] ? __mmu_notifier_register+0x30/0x30 [ 51.632123] ? __free_pages+0x10a/0x190 [ 51.636075] ? free_unref_page+0x930/0x930 [ 51.640294] kvm_put_kvm+0x73f/0x1060 [ 51.644078] ? kvm_write_guest_cached+0x40/0x40 [ 51.648727] ? _raw_spin_unlock_irq+0x27/0x70 [ 51.653200] ? _raw_spin_unlock_irq+0x27/0x70 [ 51.657898] ? lockdep_hardirqs_on+0x421/0x5c0 [ 51.662468] ? kasan_check_write+0x14/0x20 [ 51.666684] ? do_raw_spin_lock+0xc1/0x200 [ 51.670948] ? kvm_irqfd_release+0xdd/0x120 [ 51.675255] ? kvm_irqfd_release+0xdd/0x120 [ 51.679558] ? kvm_put_kvm+0x1060/0x1060 [ 51.683597] kvm_vm_release+0x42/0x50 [ 51.687379] __fput+0x38a/0xa40 [ 51.690639] ? __alloc_file+0x400/0x400 [ 51.694601] ? check_same_owner+0x340/0x340 [ 51.698902] ? kasan_check_write+0x14/0x20 [ 51.703119] ? do_raw_spin_lock+0xc1/0x200 [ 51.707331] ____fput+0x15/0x20 [ 51.710591] task_work_run+0x1e8/0x2a0 [ 51.714462] ? task_work_cancel+0x240/0x240 [ 51.718770] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 51.724359] ? switch_task_namespaces+0xa2/0xd0 [ 51.729019] do_exit+0x1ae4/0x26e0 [ 51.732544] ? mm_update_next_owner+0x9a0/0x9a0 [ 51.737198] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 51.741421] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.746420] ? kfree+0x1d7/0x210 [ 51.749768] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 51.753986] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 51.759678] ? is_bpf_text_address+0xd7/0x170 [ 51.764159] ? kernel_text_address+0x79/0xf0 [ 51.768545] ? __kernel_text_address+0xd/0x40 [ 51.773021] ? unwind_get_return_address+0x61/0xa0 [ 51.777932] ? __save_stack_trace+0x8d/0xf0 [ 51.782236] ? save_stack+0xa9/0xd0 [ 51.785840] ? save_stack+0x43/0xd0 [ 51.789447] ? __kasan_slab_free+0x11a/0x170 [ 51.793834] ? kasan_slab_free+0xe/0x10 [ 51.797835] ? putname+0xf2/0x130 [ 51.801276] ? __x64_sys_openat+0x9d/0x100 [ 51.805494] ? do_syscall_64+0x1b9/0x820 [ 51.809581] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.814933] ? trace_hardirqs_off+0xb8/0x2b0 [ 51.819323] ? kasan_check_read+0x11/0x20 [ 51.823450] ? do_raw_spin_unlock+0xa7/0x2f0 [ 51.827838] ? trace_hardirqs_on+0x2c0/0x2c0 [ 51.832233] ? initcall_blacklisted+0x9a/0x1e0 [ 51.836802] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 51.841887] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 51.847581] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.853095] ? do_vfs_ioctl+0x201/0x1720 [ 51.857135] ? rcu_is_watching+0x8c/0x150 [ 51.861260] ? trace_hardirqs_on+0xbd/0x2c0 [ 51.865561] ? ioctl_preallocate+0x300/0x300 [ 51.869948] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.875463] ? __fget_light+0x2f7/0x440 [ 51.879418] ? fget_raw+0x20/0x20 [ 51.882852] ? putname+0xf2/0x130 [ 51.886291] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.891291] ? kmem_cache_free+0x246/0x280 [ 51.895504] ? putname+0xf7/0x130 [ 51.898937] do_group_exit+0x177/0x440 [ 51.902815] ? trace_hardirqs_on+0xbd/0x2c0 [ 51.907117] ? __ia32_sys_exit+0x50/0x50 [ 51.911157] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 51.916246] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 51.921765] ? ksys_ioctl+0x81/0xd0 [ 51.925373] __x64_sys_exit_group+0x3e/0x50 [ 51.929681] do_syscall_64+0x1b9/0x820 [ 51.933549] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 51.938901] ? syscall_return_slowpath+0x5e0/0x5e0 [ 51.943815] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 51.948638] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 51.953646] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 51.958662] ? prepare_exit_to_usermode+0x291/0x3b0 [ 51.963666] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 51.968495] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 51.973666] RIP: 0033:0x43ecc8 [ 51.976844] Code: Bad RIP value. [ 51.980187] RSP: 002b:00007ffd63699b68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 51.987875] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 51.995121] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 52.002370] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 52.009618] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 52.016867] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 52.024120] [ 52.024123] ====================================================== [ 52.024126] WARNING: possible circular locking dependency detected [ 52.024129] 4.19.0-rc1+ #216 Not tainted [ 52.024132] ------------------------------------------------------ [ 52.024135] syz-executor660/4645 is trying to acquire lock: [ 52.024137] 0000000010813404 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 52.024145] [ 52.024147] but task is already holding lock: [ 52.024149] 000000004c5f636d (report_lock){....}, at: kasan_report+0x8e/0x110 [ 52.024157] [ 52.024160] which lock already depends on the new lock. [ 52.024161] [ 52.024162] [ 52.024165] the existing dependency chain (in reverse order) is: [ 52.024167] [ 52.024168] -> #3 (report_lock){....}: [ 52.024176] _raw_spin_lock_irqsave+0x96/0xc0 [ 52.024178] kasan_report+0x8e/0x110 [ 52.024181] __asan_report_load8_noabort+0x14/0x20 [ 52.024183] __schedule+0xf54/0x1df0 [ 52.024186] preempt_schedule_common+0x22/0x60 [ 52.024188] _cond_resched+0x1d/0x30 [ 52.024191] wait_for_completion+0xa5/0x8d0 [ 52.024193] __synchronize_srcu+0x189/0x240 [ 52.024195] synchronize_srcu+0x335/0x56f [ 52.024198] kvm_page_track_unregister_notifier+0x17d/0x250 [ 52.024201] kvm_mmu_uninit_vm+0x1c/0x20 [ 52.024203] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 52.024206] kvm_put_kvm+0x73f/0x1060 [ 52.024208] kvm_vm_release+0x42/0x50 [ 52.024210] __fput+0x38a/0xa40 [ 52.024212] ____fput+0x15/0x20 [ 52.024214] task_work_run+0x1e8/0x2a0 [ 52.024216] do_exit+0x1ae4/0x26e0 [ 52.024219] do_group_exit+0x177/0x440 [ 52.024221] __x64_sys_exit_group+0x3e/0x50 [ 52.024223] do_syscall_64+0x1b9/0x820 [ 52.024226] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.024227] [ 52.024229] -> #2 (&rq->lock){-.-.}: [ 52.024236] _raw_spin_lock+0x2a/0x40 [ 52.024238] task_fork_fair+0x93/0x680 [ 52.024241] sched_fork+0x44b/0xbd0 [ 52.024243] copy_process+0x235e/0x7ad0 [ 52.024245] _do_fork+0x1ca/0x1170 [ 52.024247] kernel_thread+0x34/0x40 [ 52.024249] rest_init+0x22/0xe4 [ 52.024252] start_kernel+0x913/0x94e [ 52.024256] x86_64_start_reservations+0x29/0x2b [ 52.024258] x86_64_start_kernel+0x76/0x79 [ 52.024261] secondary_startup_64+0xa4/0xb0 [ 52.024262] [ 52.024263] -> #1 (&p->pi_lock){-.-.}: [ 52.024271] _raw_spin_lock_irqsave+0x96/0xc0 [ 52.024273] try_to_wake_up+0xd2/0x1250 [ 52.024275] wake_up_process+0x10/0x20 [ 52.024277] __up.isra.1+0x1c0/0x2a0 [ 52.024279] up+0x13c/0x1c0 [ 52.024282] __up_console_sem+0xbe/0x1b0 [ 52.024284] console_unlock+0x506/0x10d0 [ 52.024286] vprintk_emit+0x33a/0x910 [ 52.024288] vprintk_default+0x28/0x30 [ 52.024290] vprintk_func+0x7a/0x117 [ 52.024292] printk+0xa7/0xcf [ 52.024295] do_exit.cold.22+0x120/0x21f [ 52.024297] do_group_exit+0x177/0x440 [ 52.024299] __x64_sys_exit_group+0x3e/0x50 [ 52.024302] do_syscall_64+0x1b9/0x820 [ 52.024304] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.024306] [ 52.024307] -> #0 ((console_sem).lock){-...}: [ 52.024315] lock_acquire+0x1e4/0x4f0 [ 52.024317] _raw_spin_lock_irqsave+0x96/0xc0 [ 52.024319] down_trylock+0x13/0x70 [ 52.024322] __down_trylock_console_sem+0xae/0x200 [ 52.024324] console_trylock+0x15/0xa0 [ 52.024326] vprintk_emit+0x31f/0x910 [ 52.024329] vprintk_default+0x28/0x30 [ 52.024331] vprintk_func+0x7a/0x117 [ 52.024333] printk+0xa7/0xcf [ 52.024335] kasan_report+0x9e/0x110 [ 52.024338] __asan_report_load8_noabort+0x14/0x20 [ 52.024340] __schedule+0xf54/0x1df0 [ 52.024342] preempt_schedule_common+0x22/0x60 [ 52.024345] _cond_resched+0x1d/0x30 [ 52.024347] wait_for_completion+0xa5/0x8d0 [ 52.024350] __synchronize_srcu+0x189/0x240 [ 52.024352] synchronize_srcu+0x335/0x56f [ 52.024355] kvm_page_track_unregister_notifier+0x17d/0x250 [ 52.024357] kvm_mmu_uninit_vm+0x1c/0x20 [ 52.024360] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 52.024362] kvm_put_kvm+0x73f/0x1060 [ 52.024364] kvm_vm_release+0x42/0x50 [ 52.024366] __fput+0x38a/0xa40 [ 52.024368] ____fput+0x15/0x20 [ 52.024370] task_work_run+0x1e8/0x2a0 [ 52.024372] do_exit+0x1ae4/0x26e0 [ 52.024374] do_group_exit+0x177/0x440 [ 52.024377] __x64_sys_exit_group+0x3e/0x50 [ 52.024379] do_syscall_64+0x1b9/0x820 [ 52.024382] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.024383] [ 52.024386] other info that might help us debug this: [ 52.024387] [ 52.024389] Chain exists of: [ 52.024390] (console_sem).lock --> &rq->lock --> report_lock [ 52.024399] [ 52.024402] Possible unsafe locking scenario: [ 52.024403] [ 52.024405] CPU0 CPU1 [ 52.024408] ---- ---- [ 52.024409] lock(report_lock); [ 52.024414] lock(&rq->lock); [ 52.024419] lock(report_lock); [ 52.024423] lock((console_sem).lock); [ 52.024427] [ 52.024429] *** DEADLOCK *** [ 52.024430] [ 52.024433] 2 locks held by syz-executor660/4645: [ 52.024434] #0: 00000000daae0bc8 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 52.024443] #1: 000000004c5f636d (report_lock){....}, at: kasan_report+0x8e/0x110 [ 52.024452] [ 52.024454] stack backtrace: [ 52.024457] CPU: 0 PID: 4645 Comm: syz-executor660 Not tainted 4.19.0-rc1+ #216 [ 52.024462] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.024463] Call Trace: [ 52.024465] dump_stack+0x1c9/0x2b4 [ 52.024468] ? dump_stack_print_info.cold.2+0x52/0x52 [ 52.024470] ? vprintk_func+0x100/0x117 [ 52.024473] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 52.024475] ? save_trace+0xe0/0x290 [ 52.024477] __lock_acquire+0x3449/0x5020 [ 52.024480] ? mark_held_locks+0x160/0x160 [ 52.024482] ? mark_held_locks+0x160/0x160 [ 52.024484] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 52.024487] ? is_bpf_text_address+0xd7/0x170 [ 52.024489] ? kernel_text_address+0x79/0xf0 [ 52.024491] ? __kernel_text_address+0xd/0x40 [ 52.024494] ? __save_stack_trace+0x8d/0xf0 [ 52.024496] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 52.024498] ? save_trace+0x290/0x290 [ 52.024501] ? save_stack_trace+0x1a/0x20 [ 52.024503] ? save_trace+0xe0/0x290 [ 52.024505] ? graph_lock+0x170/0x170 [ 52.024508] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 52.024510] lock_acquire+0x1e4/0x4f0 [ 52.024512] ? down_trylock+0x13/0x70 [ 52.024514] ? lock_release+0x9f0/0x9f0 [ 52.024516] ? trace_hardirqs_off+0xb8/0x2b0 [ 52.024519] ? trace_hardirqs_on+0x2c0/0x2c0 [ 52.024521] ? trace_hardirqs_off+0xb8/0x2b0 [ 52.024523] ? log_store+0x34f/0x4c0 [ 52.024525] ? vprintk_emit+0x31f/0x910 [ 52.024528] _raw_spin_lock_irqsave+0x96/0xc0 [ 52.024530] ? down_trylock+0x13/0x70 [ 52.024532] down_trylock+0x13/0x70 [ 52.024534] __down_trylock_console_sem+0xae/0x200 [ 52.024536] console_trylock+0x15/0xa0 [ 52.024538] vprintk_emit+0x31f/0x910 [ 52.024541] ? wake_up_klogd+0x110/0x110 [ 52.024543] ? run_rebalance_domains+0x4c0/0x4c0 [ 52.024545] ? kasan_check_read+0x11/0x20 [ 52.024548] ? rcu_is_watching+0x8c/0x150 [ 52.024550] ? rcu_pm_notify+0xc0/0xc0 [ 52.024552] ? lock_acquire+0x1e4/0x4f0 [ 52.024554] ? kasan_report+0x8e/0x110 [ 52.024556] ? __schedule+0xf54/0x1df0 [ 52.024558] vprintk_default+0x28/0x30 [ 52.024560] vprintk_func+0x7a/0x117 [ 52.024562] printk+0xa7/0xcf [ 52.024565] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 52.024567] ? kasan_check_write+0x14/0x20 [ 52.024569] ? do_raw_spin_lock+0xc1/0x200 [ 52.024571] ? do_raw_spin_lock+0xc1/0x200 [ 52.024574] kasan_report+0x9e/0x110 [ 52.024576] __asan_report_load8_noabort+0x14/0x20 [ 52.024578] __schedule+0xf54/0x1df0 [ 52.024580] ? __sched_text_start+0x8/0x8 [ 52.024583] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 52.024585] ? __call_srcu+0x7e7/0x1040 [ 52.024587] ? check_same_owner+0x340/0x340 [ 52.024590] ? mark_held_locks+0x160/0x160 [ 52.024592] ? find_held_lock+0x36/0x1c0 [ 52.024594] preempt_schedule_common+0x22/0x60 [ 52.024596] _cond_resched+0x1d/0x30 [ 52.024599] wait_for_completion+0xa5/0x8d0 [ 52.024602] ? wait_for_completion_interruptible+0x950/0x950 [ 52.024604] ? __lockdep_init_map+0x105/0x590 [ 52.024607] ? __init_waitqueue_head+0x9e/0x150 [ 52.024609] ? init_wait_entry+0x1c0/0x1c0 [ 52.024611] __synchronize_srcu+0x189/0x240 [ 52.024613] ? call_srcu+0x10/0x10 [ 52.024615] ? rcu_unexpedite_gp+0x20/0x20 [ 52.024618] synchronize_srcu+0x335/0x56f [ 52.024620] ? lock_downgrade+0x8f0/0x8f0 [ 52.024623] ? synchronize_srcu_expedited+0x20/0x20 [ 52.024625] ? kasan_check_read+0x11/0x20 [ 52.024627] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 52.024630] ? kasan_check_write+0x14/0x20 [ 52.024632] ? do_raw_spin_lock+0xc1/0x200 [ 52.024635] kvm_page_track_unregister_notifier+0x17d/0x250 [ 52.024638] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 52.024640] ? kvfree+0x61/0x70 [ 52.024642] ? rcu_read_lock_sched_held+0x108/0x120 [ 52.024644] kvm_mmu_uninit_vm+0x1c/0x20 [ 52.024647] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 52.024649] ? kvm_arch_sync_events+0x30/0x30 [ 52.024652] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 52.024662] ? mmu_notifier_unregister+0x474/0x600 [ 52.024664] ? trace_hardirqs_on+0x2c0/0x2c0 [ 52.024666] ? kfree+0x111/0x210 [ 52.024669] ? __mmu_notifier_register+0x30/0x30 [ 52.024671] ? __free_pages+0x10a/0x190 [ 52.024673] ? free_unref_page+0x930/0x930 [ 52.024675] kvm_put_kvm+0x73f/0x1060 [ 52.024677] ? kvm_write_guest_cached+0x40/0x40 [ 52.024680] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.024682] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.024685] ? lockdep_hardirqs_on+0x421/0x5c0 [ 52.024687] ? kasan_check_write+0x14/0x20 [ 52.024689] ? do_raw_spin_lock+0xc1/0x200 [ 52.024691] ? kvm_irqfd_release+0xdd/0x120 [ 52.024694] ? kvm_irqfd_release+0xdd/0x120 [ 52.024696] ? kvm_put_kvm+0x1060/0x1060 [ 52.024698] kvm_vm_release+0x42/0x50 [ 52.024700] __fput+0x38a/0xa40 [ 52.024702] ? __alloc_file+0x400/0x400 [ 52.024705] ? check_same_owner+0x340/0x340 [ 52.024707] ? kasan_check_write+0x14/0x20 [ 52.024709] ? do_raw_spin_lock+0xc1/0x200 [ 52.024711] ____fput+0x15/0x20 [ 52.024713] task_work_run+0x1e8/0x2a0 [ 52.024716] ? task_work_cancel+0x240/0x240 [ 52.024718] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 52.024721] ? switch_task_namespaces+0xa2/0xd0 [ 52.024723] do_exit+0x1ae4/0x26e0 [ 52.024725] ? mm_update_next_owner+0x9a0/0x9a0 [ 52.024728] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 52.024730] ? rcu_read_lock_sched_held+0x108/0x120 [ 52.024732] ? kfree+0x1d7/0x210 [ 52.024734] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 52.024737] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 52.024739] ? is_bpf_tex [ 52.024743] Lost 56 message(s)! [ 53.091788] Shutting down cpus with NMI [ 54.150723] Dumping ftrace buffer: [ 54.154257] (ftrace buffer empty) [ 54.157952] Kernel Offset: disabled [ 54.161563] Rebooting in 86400 seconds..