[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.310817] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.923512] random: sshd: uninitialized urandom read (32 bytes read) [ 29.178286] random: sshd: uninitialized urandom read (32 bytes read) [ 29.722300] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.28' (ECDSA) to the list of known hosts. [ 35.422519] urandom_read: 1 callbacks suppressed [ 35.422525] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.526676] 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. [ 35.551155] ================================================================== [ 35.561000] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 35.567227] Read of size 8 at addr ffff8801d9bb8058 by task syz-executor135/4672 [ 35.574744] [ 35.576369] CPU: 0 PID: 4672 Comm: syz-executor135 Not tainted 4.19.0-rc1+ #216 [ 35.583805] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.593159] Call Trace: [ 35.595753] dump_stack+0x1c9/0x2b4 [ 35.599383] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.604573] ? printk+0xa7/0xcf [ 35.607850] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.612620] ? __schedule+0xf54/0x1df0 [ 35.616505] print_address_description+0x6c/0x20b [ 35.621354] ? __schedule+0xf54/0x1df0 [ 35.625309] kasan_report.cold.7+0x242/0x30d [ 35.629719] __asan_report_load8_noabort+0x14/0x20 [ 35.634636] __schedule+0xf54/0x1df0 [ 35.638339] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.643449] ? __sched_text_start+0x8/0x8 [ 35.647705] ? __call_srcu+0x7e7/0x1040 [ 35.651671] ? check_same_owner+0x340/0x340 [ 35.656022] ? mark_held_locks+0x160/0x160 [ 35.660371] ? find_held_lock+0x36/0x1c0 [ 35.664420] preempt_schedule_common+0x22/0x60 [ 35.668986] _cond_resched+0x1d/0x30 [ 35.672684] wait_for_completion+0xa5/0x8d0 [ 35.677051] ? wait_for_completion_interruptible+0x950/0x950 [ 35.682846] ? __lockdep_init_map+0x105/0x590 [ 35.687328] ? __init_waitqueue_head+0x9e/0x150 [ 35.692162] ? init_wait_entry+0x1c0/0x1c0 [ 35.696387] __synchronize_srcu+0x189/0x240 [ 35.700693] ? call_srcu+0x10/0x10 [ 35.704231] ? rcu_unexpedite_gp+0x20/0x20 [ 35.708452] synchronize_srcu+0x335/0x56f [ 35.712604] ? lock_downgrade+0x8f0/0x8f0 [ 35.716743] ? synchronize_srcu_expedited+0x20/0x20 [ 35.721752] ? kasan_check_read+0x11/0x20 [ 35.725885] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.730456] ? kasan_check_write+0x14/0x20 [ 35.734682] ? do_raw_spin_lock+0xc1/0x200 [ 35.738910] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.744655] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.750094] ? kvfree+0x61/0x70 [ 35.753408] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.758423] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.762472] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.766882] ? kvm_arch_sync_events+0x30/0x30 [ 35.771367] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.776941] ? mmu_notifier_unregister+0x474/0x600 [ 35.781868] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.786312] ? kfree+0x111/0x210 [ 35.789668] ? __mmu_notifier_register+0x30/0x30 [ 35.794413] ? __free_pages+0x10a/0x190 [ 35.798379] ? free_unref_page+0x930/0x930 [ 35.802651] kvm_put_kvm+0x73f/0x1060 [ 35.806450] ? kvm_write_guest_cached+0x40/0x40 [ 35.811116] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.815642] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.820220] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.824791] ? kasan_check_write+0x14/0x20 [ 35.829009] ? do_raw_spin_lock+0xc1/0x200 [ 35.833233] ? kvm_irqfd_release+0xdd/0x120 [ 35.837552] ? kvm_irqfd_release+0xdd/0x120 [ 35.841881] ? kvm_put_kvm+0x1060/0x1060 [ 35.845931] kvm_vm_release+0x42/0x50 [ 35.849720] __fput+0x38a/0xa40 [ 35.853067] ? __alloc_file+0x400/0x400 [ 35.857034] ? check_same_owner+0x340/0x340 [ 35.861388] ? kasan_check_write+0x14/0x20 [ 35.865660] ? do_raw_spin_lock+0xc1/0x200 [ 35.869884] ____fput+0x15/0x20 [ 35.873197] task_work_run+0x1e8/0x2a0 [ 35.877072] ? task_work_cancel+0x240/0x240 [ 35.881383] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.886914] ? switch_task_namespaces+0xa2/0xd0 [ 35.891621] do_exit+0x1ae4/0x26e0 [ 35.895151] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.899876] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.904106] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.909115] ? kfree+0x1d7/0x210 [ 35.912487] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.916717] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.922515] ? is_bpf_text_address+0xd7/0x170 [ 35.927077] ? kernel_text_address+0x79/0xf0 [ 35.931496] ? __kernel_text_address+0xd/0x40 [ 35.936127] ? unwind_get_return_address+0x61/0xa0 [ 35.941049] ? __save_stack_trace+0x8d/0xf0 [ 35.945405] ? save_stack+0xa9/0xd0 [ 35.949021] ? save_stack+0x43/0xd0 [ 35.952637] ? __kasan_slab_free+0x11a/0x170 [ 35.957046] ? kasan_slab_free+0xe/0x10 [ 35.961008] ? putname+0xf2/0x130 [ 35.964446] ? __x64_sys_openat+0x9d/0x100 [ 35.968675] ? do_syscall_64+0x1b9/0x820 [ 35.972810] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.978226] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.982627] ? kasan_check_read+0x11/0x20 [ 35.986757] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.991149] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.995594] ? initcall_blacklisted+0x9a/0x1e0 [ 36.000173] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.005267] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.010964] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.016489] ? do_vfs_ioctl+0x201/0x1720 [ 36.020640] ? rcu_is_watching+0x8c/0x150 [ 36.024770] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.029084] ? ioctl_preallocate+0x300/0x300 [ 36.033566] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.039092] ? __fget_light+0x2f7/0x440 [ 36.043165] ? fget_raw+0x20/0x20 [ 36.046603] ? putname+0xf2/0x130 [ 36.050040] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.055042] ? kmem_cache_free+0x246/0x280 [ 36.059525] ? putname+0xf7/0x130 [ 36.063013] do_group_exit+0x177/0x440 [ 36.066897] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.071197] ? __ia32_sys_exit+0x50/0x50 [ 36.075237] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.080325] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.085845] ? ksys_ioctl+0x81/0xd0 [ 36.089458] __x64_sys_exit_group+0x3e/0x50 [ 36.093775] do_syscall_64+0x1b9/0x820 [ 36.097652] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.103007] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.107928] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.112758] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.117765] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.122771] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.127777] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.132656] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.137842] RIP: 0033:0x43ef08 [ 36.141028] Code: Bad RIP value. [ 36.144378] RSP: 002b:00007ffecb432e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.152122] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.159383] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.166640] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.173907] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.181164] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.188501] [ 36.190118] Allocated by task 4672: [ 36.193899] save_stack+0x43/0xd0 [ 36.197341] kasan_kmalloc+0xc4/0xe0 [ 36.201043] kasan_slab_alloc+0x12/0x20 [ 36.205002] kmem_cache_alloc+0x12e/0x710 [ 36.209204] vmx_create_vcpu+0xcf/0x2830 [ 36.213255] kvm_arch_vcpu_create+0xe5/0x220 [ 36.217653] kvm_vm_ioctl+0x488/0x1d80 [ 36.221530] do_vfs_ioctl+0x1de/0x1720 [ 36.225405] ksys_ioctl+0xa9/0xd0 [ 36.228841] __x64_sys_ioctl+0x73/0xb0 [ 36.232758] do_syscall_64+0x1b9/0x820 [ 36.236631] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.241801] [ 36.243406] Freed by task 4672: [ 36.246668] save_stack+0x43/0xd0 [ 36.250109] __kasan_slab_free+0x11a/0x170 [ 36.254376] kasan_slab_free+0xe/0x10 [ 36.258232] kmem_cache_free+0x86/0x280 [ 36.262198] vmx_free_vcpu+0x26b/0x300 [ 36.266068] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.270463] kvm_put_kvm+0x73f/0x1060 [ 36.274313] kvm_vm_release+0x42/0x50 [ 36.278145] __fput+0x38a/0xa40 [ 36.281413] ____fput+0x15/0x20 [ 36.284677] task_work_run+0x1e8/0x2a0 [ 36.288552] do_exit+0x1ae4/0x26e0 [ 36.292074] do_group_exit+0x177/0x440 [ 36.295953] __x64_sys_exit_group+0x3e/0x50 [ 36.300262] do_syscall_64+0x1b9/0x820 [ 36.304134] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.309302] [ 36.310916] The buggy address belongs to the object at ffff8801d9bb8040 [ 36.310916] which belongs to the cache kvm_vcpu of size 23872 [ 36.323474] The buggy address is located 24 bytes inside of [ 36.323474] 23872-byte region [ffff8801d9bb8040, ffff8801d9bbdd80) [ 36.335474] The buggy address belongs to the page: [ 36.340463] page:ffffea000766ee00 count:1 mapcount:0 mapping:ffff8801d4a659c0 index:0x0 compound_mapcount: 0 [ 36.350494] flags: 0x2fffc0000008100(slab|head) [ 36.355157] raw: 02fffc0000008100 ffff8801d4a6ab48 ffff8801d4a6ab48 ffff8801d4a659c0 [ 36.363035] raw: 0000000000000000 ffff8801d9bb8040 0000000100000001 0000000000000000 [ 36.370910] page dumped because: kasan: bad access detected [ 36.376597] [ 36.378201] Memory state around the buggy address: [ 36.383109] ffff8801d9bb7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 36.390458] ffff8801d9bb7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 36.397817] >ffff8801d9bb8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.405158] ^ [ 36.411377] ffff8801d9bb8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.418726] ffff8801d9bb8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.426112] ================================================================== [ 36.433464] Kernel panic - not syncing: panic_on_warn set ... [ 36.433464] [ 36.440940] CPU: 0 PID: 4672 Comm: syz-executor135 Tainted: G B 4.19.0-rc1+ #216 [ 36.449816] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.459204] Call Trace: [ 36.461796] dump_stack+0x1c9/0x2b4 [ 36.465410] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.470637] ? lock_downgrade+0x8f0/0x8f0 [ 36.474839] ? __schedule+0xf54/0x1df0 [ 36.478720] panic+0x238/0x4e7 [ 36.481896] ? add_taint.cold.5+0x16/0x16 [ 36.486035] ? print_shadow_for_address+0xba/0x116 [ 36.490997] ? trace_hardirqs_off+0xaf/0x2b0 [ 36.495443] ? trace_hardirqs_off+0x77/0x2b0 [ 36.499846] ? __schedule+0xf54/0x1df0 [ 36.503721] kasan_end_report+0x47/0x4f [ 36.507690] kasan_report.cold.7+0x76/0x30d [ 36.512005] __asan_report_load8_noabort+0x14/0x20 [ 36.516929] __schedule+0xf54/0x1df0 [ 36.520631] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.525717] ? __sched_text_start+0x8/0x8 [ 36.529853] ? __call_srcu+0x7e7/0x1040 [ 36.533866] ? check_same_owner+0x340/0x340 [ 36.538177] ? mark_held_locks+0x160/0x160 [ 36.542398] ? find_held_lock+0x36/0x1c0 [ 36.546451] preempt_schedule_common+0x22/0x60 [ 36.551067] _cond_resched+0x1d/0x30 [ 36.554777] wait_for_completion+0xa5/0x8d0 [ 36.559089] ? wait_for_completion_interruptible+0x950/0x950 [ 36.564873] ? __lockdep_init_map+0x105/0x590 [ 36.569354] ? __init_waitqueue_head+0x9e/0x150 [ 36.574071] ? init_wait_entry+0x1c0/0x1c0 [ 36.578299] __synchronize_srcu+0x189/0x240 [ 36.582605] ? call_srcu+0x10/0x10 [ 36.586151] ? rcu_unexpedite_gp+0x20/0x20 [ 36.590381] synchronize_srcu+0x335/0x56f [ 36.594514] ? lock_downgrade+0x8f0/0x8f0 [ 36.598649] ? synchronize_srcu_expedited+0x20/0x20 [ 36.603701] ? kasan_check_read+0x11/0x20 [ 36.607847] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.612411] ? kasan_check_write+0x14/0x20 [ 36.616636] ? do_raw_spin_lock+0xc1/0x200 [ 36.620858] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.626560] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.632000] ? kvfree+0x61/0x70 [ 36.635272] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.640322] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.644371] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.648831] ? kvm_arch_sync_events+0x30/0x30 [ 36.653322] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.658851] ? mmu_notifier_unregister+0x474/0x600 [ 36.663763] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.668207] ? kfree+0x111/0x210 [ 36.671568] ? __mmu_notifier_register+0x30/0x30 [ 36.676305] ? __free_pages+0x10a/0x190 [ 36.680259] ? free_unref_page+0x930/0x930 [ 36.684497] kvm_put_kvm+0x73f/0x1060 [ 36.688291] ? kvm_write_guest_cached+0x40/0x40 [ 36.692953] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.697430] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.701912] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.706493] ? kasan_check_write+0x14/0x20 [ 36.710722] ? do_raw_spin_lock+0xc1/0x200 [ 36.714953] ? kvm_irqfd_release+0xdd/0x120 [ 36.719259] ? kvm_irqfd_release+0xdd/0x120 [ 36.723569] ? kvm_put_kvm+0x1060/0x1060 [ 36.727681] kvm_vm_release+0x42/0x50 [ 36.731476] __fput+0x38a/0xa40 [ 36.734802] ? __alloc_file+0x400/0x400 [ 36.738772] ? check_same_owner+0x340/0x340 [ 36.743084] ? kasan_check_write+0x14/0x20 [ 36.747303] ? do_raw_spin_lock+0xc1/0x200 [ 36.751525] ____fput+0x15/0x20 [ 36.754842] task_work_run+0x1e8/0x2a0 [ 36.758717] ? task_work_cancel+0x240/0x240 [ 36.763024] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.768596] ? switch_task_namespaces+0xa2/0xd0 [ 36.773256] do_exit+0x1ae4/0x26e0 [ 36.776790] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.781449] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.785722] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.790735] ? kfree+0x1d7/0x210 [ 36.794089] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.798311] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.804080] ? is_bpf_text_address+0xd7/0x170 [ 36.808578] ? kernel_text_address+0x79/0xf0 [ 36.813020] ? __kernel_text_address+0xd/0x40 [ 36.817515] ? unwind_get_return_address+0x61/0xa0 [ 36.822431] ? __save_stack_trace+0x8d/0xf0 [ 36.826790] ? save_stack+0xa9/0xd0 [ 36.830414] ? save_stack+0x43/0xd0 [ 36.834036] ? __kasan_slab_free+0x11a/0x170 [ 36.838577] ? kasan_slab_free+0xe/0x10 [ 36.842536] ? putname+0xf2/0x130 [ 36.845979] ? __x64_sys_openat+0x9d/0x100 [ 36.850248] ? do_syscall_64+0x1b9/0x820 [ 36.854345] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.859751] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.864151] ? kasan_check_read+0x11/0x20 [ 36.868283] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.872741] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.877202] ? initcall_blacklisted+0x9a/0x1e0 [ 36.882064] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.887163] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.892870] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.898394] ? do_vfs_ioctl+0x201/0x1720 [ 36.902448] ? rcu_is_watching+0x8c/0x150 [ 36.906584] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.910900] ? ioctl_preallocate+0x300/0x300 [ 36.915307] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.920835] ? __fget_light+0x2f7/0x440 [ 36.924843] ? fget_raw+0x20/0x20 [ 36.928285] ? putname+0xf2/0x130 [ 36.931725] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.936729] ? kmem_cache_free+0x246/0x280 [ 36.940952] ? putname+0xf7/0x130 [ 36.944393] do_group_exit+0x177/0x440 [ 36.948265] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.952623] ? __ia32_sys_exit+0x50/0x50 [ 36.956672] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.961808] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.967337] ? ksys_ioctl+0x81/0xd0 [ 36.970950] __x64_sys_exit_group+0x3e/0x50 [ 36.975278] do_syscall_64+0x1b9/0x820 [ 36.979199] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.984556] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.989468] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.994421] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.999427] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.004435] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.009495] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.014331] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.019508] RIP: 0033:0x43ef08 [ 37.022699] Code: Bad RIP value. [ 37.026050] RSP: 002b:00007ffecb432e78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.033749] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 37.041016] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.048280] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.055542] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.062865] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.070130] [ 37.070134] ====================================================== [ 37.070137] WARNING: possible circular locking dependency detected [ 37.070139] 4.19.0-rc1+ #216 Not tainted [ 37.070143] ------------------------------------------------------ [ 37.070146] syz-executor135/4672 is trying to acquire lock: [ 37.070148] 00000000593cf913 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.070156] [ 37.070158] but task is already holding lock: [ 37.070160] 00000000a35806db (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.070168] [ 37.070171] which lock already depends on the new lock. [ 37.070172] [ 37.070173] [ 37.070176] the existing dependency chain (in reverse order) is: [ 37.070177] [ 37.070178] -> #3 (report_lock){....}: [ 37.070186] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.070188] kasan_report+0x8e/0x110 [ 37.070191] __asan_report_load8_noabort+0x14/0x20 [ 37.070194] __schedule+0xf54/0x1df0 [ 37.070198] preempt_schedule_common+0x22/0x60 [ 37.070200] _cond_resched+0x1d/0x30 [ 37.070203] wait_for_completion+0xa5/0x8d0 [ 37.070205] __synchronize_srcu+0x189/0x240 [ 37.070208] synchronize_srcu+0x335/0x56f [ 37.070211] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.070213] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.070216] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.070218] kvm_put_kvm+0x73f/0x1060 [ 37.070220] kvm_vm_release+0x42/0x50 [ 37.070222] __fput+0x38a/0xa40 [ 37.070224] ____fput+0x15/0x20 [ 37.070227] task_work_run+0x1e8/0x2a0 [ 37.070229] do_exit+0x1ae4/0x26e0 [ 37.070231] do_group_exit+0x177/0x440 [ 37.070234] __x64_sys_exit_group+0x3e/0x50 [ 37.070236] do_syscall_64+0x1b9/0x820 [ 37.070239] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.070240] [ 37.070241] -> #2 (&rq->lock){-.-.}: [ 37.070249] _raw_spin_lock+0x2a/0x40 [ 37.070251] task_fork_fair+0x93/0x680 [ 37.070253] sched_fork+0x44b/0xbd0 [ 37.070255] copy_process+0x235e/0x7ad0 [ 37.070257] _do_fork+0x1ca/0x1170 [ 37.070259] kernel_thread+0x34/0x40 [ 37.070262] rest_init+0x22/0xe4 [ 37.070264] start_kernel+0x913/0x94e [ 37.070266] x86_64_start_reservations+0x29/0x2b [ 37.070269] x86_64_start_kernel+0x76/0x79 [ 37.070271] secondary_startup_64+0xa4/0xb0 [ 37.070272] [ 37.070273] -> #1 (&p->pi_lock){-.-.}: [ 37.070281] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.070284] try_to_wake_up+0xd2/0x1250 [ 37.070286] wake_up_process+0x10/0x20 [ 37.070288] __up.isra.1+0x1c0/0x2a0 [ 37.070290] up+0x13c/0x1c0 [ 37.070292] __up_console_sem+0xbe/0x1b0 [ 37.070294] console_unlock+0x506/0x10d0 [ 37.070297] vprintk_emit+0x33a/0x910 [ 37.070299] vprintk_default+0x28/0x30 [ 37.070301] vprintk_func+0x7a/0x117 [ 37.070303] printk+0xa7/0xcf [ 37.070305] load_umh+0x51/0xbd [ 37.070307] do_one_initcall+0x127/0x838 [ 37.070310] kernel_init_freeable+0x4bb/0x5ae [ 37.070312] kernel_init+0x11/0x1b3 [ 37.070314] ret_from_fork+0x3a/0x50 [ 37.070315] [ 37.070316] -> #0 ((console_sem).lock){-...}: [ 37.070324] lock_acquire+0x1e4/0x4f0 [ 37.070327] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.070329] down_trylock+0x13/0x70 [ 37.070331] __down_trylock_console_sem+0xae/0x200 [ 37.070334] console_trylock+0x15/0xa0 [ 37.070336] vprintk_emit+0x31f/0x910 [ 37.070338] vprintk_default+0x28/0x30 [ 37.070340] vprintk_func+0x7a/0x117 [ 37.070342] printk+0xa7/0xcf [ 37.070344] kasan_report+0x9e/0x110 [ 37.070347] __asan_report_load8_noabort+0x14/0x20 [ 37.070349] __schedule+0xf54/0x1df0 [ 37.070352] preempt_schedule_common+0x22/0x60 [ 37.070354] _cond_resched+0x1d/0x30 [ 37.070356] wait_for_completion+0xa5/0x8d0 [ 37.070359] __synchronize_srcu+0x189/0x240 [ 37.070361] synchronize_srcu+0x335/0x56f [ 37.070364] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.070366] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.070369] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.070371] kvm_put_kvm+0x73f/0x1060 [ 37.070373] kvm_vm_release+0x42/0x50 [ 37.070375] __fput+0x38a/0xa40 [ 37.070377] ____fput+0x15/0x20 [ 37.070379] task_work_run+0x1e8/0x2a0 [ 37.070381] do_exit+0x1ae4/0x26e0 [ 37.070383] do_group_exit+0x177/0x440 [ 37.070386] __x64_sys_exit_group+0x3e/0x50 [ 37.070388] do_syscall_64+0x1b9/0x820 [ 37.070391] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.070392] [ 37.070395] other info that might help us debug this: [ 37.070396] [ 37.070398] Chain exists of: [ 37.070399] (console_sem).lock --> &rq->lock --> report_lock [ 37.070408] [ 37.070411] Possible unsafe locking scenario: [ 37.070412] [ 37.070414] CPU0 CPU1 [ 37.070417] ---- ---- [ 37.070418] lock(report_lock); [ 37.070423] lock(&rq->lock); [ 37.070428] lock(report_lock); [ 37.070433] lock((console_sem).lock); [ 37.070437] [ 37.070439] *** DEADLOCK *** [ 37.070440] [ 37.070442] 2 locks held by syz-executor135/4672: [ 37.070444] #0: 00000000efaf4a2c (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.070453] #1: 00000000a35806db (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.070462] [ 37.070464] stack backtrace: [ 37.070467] CPU: 0 PID: 4672 Comm: syz-executor135 Not tainted 4.19.0-rc1+ #216 [ 37.070472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.070474] Call Trace: [ 37.070476] dump_stack+0x1c9/0x2b4 [ 37.070487] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.070489] ? vprintk_func+0x100/0x117 [ 37.070492] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.070494] ? save_trace+0xe0/0x290 [ 37.070496] __lock_acquire+0x3449/0x5020 [ 37.070499] ? mark_held_locks+0x160/0x160 [ 37.070501] ? mark_held_locks+0x160/0x160 [ 37.070503] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.070506] ? is_bpf_text_address+0xd7/0x170 [ 37.070508] ? kernel_text_address+0x79/0xf0 [ 37.070511] ? __kernel_text_address+0xd/0x40 [ 37.070513] ? __save_stack_trace+0x8d/0xf0 [ 37.070516] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.070518] ? save_trace+0x290/0x290 [ 37.070520] ? save_stack_trace+0x1a/0x20 [ 37.070523] ? save_trace+0xe0/0x290 [ 37.070525] ? graph_lock+0x170/0x170 [ 37.070528] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.070530] lock_acquire+0x1e4/0x4f0 [ 37.070532] ? down_trylock+0x13/0x70 [ 37.070534] ? lock_release+0x9f0/0x9f0 [ 37.070537] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.070539] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.070542] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.070544] ? log_store+0x34f/0x4c0 [ 37.070546] ? vprintk_emit+0x31f/0x910 [ 37.070548] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.070551] ? down_trylock+0x13/0x70 [ 37.070553] down_trylock+0x13/0x70 [ 37.070555] __down_trylock_console_sem+0xae/0x200 [ 37.070557] console_trylock+0x15/0xa0 [ 37.070559] vprintk_emit+0x31f/0x910 [ 37.070562] ? wake_up_klogd+0x110/0x110 [ 37.070564] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.070566] ? kasan_check_read+0x11/0x20 [ 37.070569] ? rcu_is_watching+0x8c/0x150 [ 37.070571] ? rcu_pm_notify+0xc0/0xc0 [ 37.070573] ? lock_acquire+0x1e4/0x4f0 [ 37.070575] ? kasan_report+0x8e/0x110 [ 37.070577] ? __schedule+0xf54/0x1df0 [ 37.070580] vprintk_default+0x28/0x30 [ 37.070582] vprintk_func+0x7a/0x117 [ 37.070584] printk+0xa7/0xcf [ 37.070586] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.070588] ? kasan_check_write+0x14/0x20 [ 37.070591] ? do_raw_spin_lock+0xc1/0x200 [ 37.070593] ? do_raw_spin_lock+0xc1/0x200 [ 37.070595] kasan_report+0x9e/0x110 [ 37.070598] __asan_report_load8_noabort+0x14/0x20 [ 37.070600] __schedule+0xf54/0x1df0 [ 37.070602] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.070605] ? __sched_text_start+0x8/0x8 [ 37.070607] ? __call_srcu+0x7e7/0x1040 [ 37.070609] ? check_same_owner+0x340/0x340 [ 37.070611] ? mark_held_locks+0x160/0x160 [ 37.070614] ? find_held_lock+0x36/0x1c0 [ 37.070616] preempt_schedule_common+0x22/0x60 [ 37.070618] _cond_resched+0x1d/0x30 [ 37.070621] wait_for_completion+0xa5/0x8d0 [ 37.070623] ? wait_for_completion_interruptible+0x950/0x950 [ 37.070626] ? __lockdep_init_map+0x105/0x590 [ 37.070628] ? __init_waitqueue_head+0x9e/0x150 [ 37.070631] ? init_wait_entry+0x1c0/0x1c0 [ 37.070633] __synchronize_srcu+0x189/0x240 [ 37.070635] ? call_srcu+0x10/0x10 [ 37.070637] ? rcu_unexpedite_gp+0x20/0x20 [ 37.070640] synchronize_srcu+0x335/0x56f [ 37.070642] ? lock_downgrade+0x8f0/0x8f0 [ 37.070645] ? synchronize_srcu_expedited+0x20/0x20 [ 37.070647] ? kasan_check_read+0x11/0x20 [ 37.070650] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.070652] ? kasan_check_write+0x14/0x20 [ 37.070655] ? do_raw_spin_lock+0xc1/0x200 [ 37.070658] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.070660] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.070662] ? kvfree+0x61/0x70 [ 37.070665] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.070667] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.070670] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.070672] ? kvm_arch_sync_events+0x30/0x30 [ 37.070675] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.070678] ? mmu_notifier_unregister+0x474/0x600 [ 37.070680] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.070682] ? kfree+0x111/0x210 [ 37.070685] ? __mmu_notifier_register+0x30/0x30 [ 37.070687] ? __free_pages+0x10a/0x190 [ 37.070689] ? free_unref_page+0x930/0x930 [ 37.070691] kvm_put_kvm+0x73f/0x1060 [ 37.070698] ? kvm_write_guest_cached+0x40/0x40 [ 37.070701] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.070703] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.070706] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.070708] ? kasan_check_write+0x14/0x20 [ 37.070710] ? do_raw_spin_lock+0xc1/0x200 [ 37.070712] ? kvm_irqfd_release+0xdd/0x120 [ 37.070715] ? kvm_irqfd_release+0xdd/0x120 [ 37.070717] ? kvm_put_kvm+0x1060/0x1060 [ 37.070719] kvm_vm_release+0x42/0x50 [ 37.070721] __fput+0x38a/0xa40 [ 37.070724] ? __alloc_file+0x400/0x400 [ 37.070726] ? check_same_owner+0x340/0x340 [ 37.070728] ? kasan_check_write+0x14/0x20 [ 37.070731] ? do_raw_spin_lock+0xc1/0x200 [ 37.070733] ____fput+0x15/0x20 [ 37.070735] task_work_run+0x1e8/0x2a0 [ 37.070737] ? task_work_cancel+0x240/0x240 [ 37.070740] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.070743] ? switch_task_namespaces+0xa2/0xd0 [ 37.070745] do_exit+0x1ae4/0x26e0 [ 37.070747] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.070750] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.070752] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.070754] ? kfree+0x1d7/0x210 [ 37.070757] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.070760] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.070762] ? is_bpf_text_address+0xd7/0x170 [ 37.070763] ? [ 37.070768] Lost 55 message(s)! [ 38.136825] Shutting down cpus with NMI [ 39.195249] Dumping ftrace buffer: [ 39.198772] (ftrace buffer empty) [ 39.202460] Kernel Offset: disabled [ 39.206070] Rebooting in 86400 seconds..