[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.758838] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.294281] random: sshd: uninitialized urandom read (32 bytes read) [ 27.661803] random: sshd: uninitialized urandom read (32 bytes read) [ 28.249480] random: sshd: uninitialized urandom read (32 bytes read) [ 28.428253] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.43' (ECDSA) to the list of known hosts. [ 33.962459] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.062877] 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.087954] ================================================================== [ 34.097783] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.104025] Read of size 8 at addr ffff8801b6fb0058 by task syz-executor998/4663 [ 34.111559] [ 34.113352] CPU: 1 PID: 4663 Comm: syz-executor998 Not tainted 4.19.0-rc2+ #225 [ 34.120809] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.130170] Call Trace: [ 34.132779] dump_stack+0x1c9/0x2b4 [ 34.136421] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.141632] ? printk+0xa7/0xcf [ 34.144929] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.149699] ? __schedule+0xf54/0x1df0 [ 34.153639] print_address_description+0x6c/0x20b [ 34.158497] ? __schedule+0xf54/0x1df0 [ 34.162398] kasan_report.cold.7+0x242/0x30d [ 34.166823] __asan_report_load8_noabort+0x14/0x20 [ 34.171770] __schedule+0xf54/0x1df0 [ 34.175499] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.180643] ? __sched_text_start+0x8/0x8 [ 34.184805] ? __call_srcu+0x7e7/0x1040 [ 34.188798] ? check_same_owner+0x340/0x340 [ 34.193132] ? mark_held_locks+0x160/0x160 [ 34.197381] ? find_held_lock+0x36/0x1c0 [ 34.201547] preempt_schedule_common+0x22/0x60 [ 34.206172] _cond_resched+0x1d/0x30 [ 34.209902] wait_for_completion+0xa5/0x8d0 [ 34.214244] ? wait_for_completion_interruptible+0x950/0x950 [ 34.220230] ? __lockdep_init_map+0x105/0x590 [ 34.224739] ? __init_waitqueue_head+0x9e/0x150 [ 34.229426] ? init_wait_entry+0x1c0/0x1c0 [ 34.233679] __synchronize_srcu+0x189/0x240 [ 34.238012] ? call_srcu+0x10/0x10 [ 34.241566] ? rcu_unexpedite_gp+0x20/0x20 [ 34.245849] synchronize_srcu+0x335/0x56f [ 34.250012] ? lock_downgrade+0x8f0/0x8f0 [ 34.254172] ? synchronize_srcu_expedited+0x20/0x20 [ 34.259268] ? kasan_check_read+0x11/0x20 [ 34.263429] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.268022] ? kasan_check_write+0x14/0x20 [ 34.272268] ? do_raw_spin_lock+0xc1/0x200 [ 34.276522] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.282246] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.287707] ? kvfree+0x61/0x70 [ 34.291001] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.296030] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.300191] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.304633] ? kvm_arch_sync_events+0x30/0x30 [ 34.309234] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.314788] ? mmu_notifier_unregister+0x474/0x600 [ 34.319728] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.324145] ? kfree+0x111/0x210 [ 34.327527] ? __mmu_notifier_register+0x30/0x30 [ 34.332373] ? __free_pages+0x10a/0x190 [ 34.336362] ? free_unref_page+0x930/0x930 [ 34.340638] kvm_put_kvm+0x73f/0x1060 [ 34.344458] ? kvm_write_guest_cached+0x40/0x40 [ 34.349150] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.353934] ? kvm_irqfd_release+0xdd/0x120 [ 34.358266] ? kvm_irqfd_release+0xdd/0x120 [ 34.362629] ? kvm_put_kvm+0x1060/0x1060 [ 34.366705] kvm_vm_release+0x42/0x50 [ 34.370517] __fput+0x38a/0xa40 [ 34.373811] ? __alloc_file+0x400/0x400 [ 34.377807] ? check_same_owner+0x340/0x340 [ 34.382147] ? kasan_check_write+0x14/0x20 [ 34.386459] ? do_raw_spin_lock+0xc1/0x200 [ 34.390715] ____fput+0x15/0x20 [ 34.394008] task_work_run+0x1e8/0x2a0 [ 34.397908] ? task_work_cancel+0x240/0x240 [ 34.402244] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.407861] ? switch_task_namespaces+0xa2/0xd0 [ 34.412547] do_exit+0x1ae4/0x26e0 [ 34.416132] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.420882] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.425130] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.430153] ? kfree+0x1d7/0x210 [ 34.433535] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.437786] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.443623] ? is_bpf_text_address+0xd7/0x170 [ 34.448131] ? kernel_text_address+0x79/0xf0 [ 34.452550] ? __kernel_text_address+0xd/0x40 [ 34.457083] ? unwind_get_return_address+0x61/0xa0 [ 34.462024] ? __save_stack_trace+0x8d/0xf0 [ 34.466366] ? save_stack+0xa9/0xd0 [ 34.470005] ? save_stack+0x43/0xd0 [ 34.473644] ? __kasan_slab_free+0x11a/0x170 [ 34.478061] ? kasan_slab_free+0xe/0x10 [ 34.482044] ? putname+0xf2/0x130 [ 34.485510] ? __x64_sys_openat+0x9d/0x100 [ 34.489759] ? do_syscall_64+0x1b9/0x820 [ 34.493834] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.499211] ? trace_hardirqs_off+0xb8/0x2c0 [ 34.503639] ? kasan_check_read+0x11/0x20 [ 34.507801] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.512222] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.516709] ? initcall_blacklisted+0x9a/0x1e0 [ 34.521307] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.526430] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.532161] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.537715] ? do_vfs_ioctl+0x201/0x1720 [ 34.541880] ? rcu_is_watching+0x8c/0x150 [ 34.546152] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.550488] ? ioctl_preallocate+0x300/0x300 [ 34.554911] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.560458] ? __fget_light+0x2f7/0x440 [ 34.564459] ? fget_raw+0x20/0x20 [ 34.567921] ? putname+0xf2/0x130 [ 34.571391] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.576419] ? kmem_cache_free+0x246/0x280 [ 34.580666] ? putname+0xf7/0x130 [ 34.584137] do_group_exit+0x177/0x440 [ 34.588040] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.592376] ? __ia32_sys_exit+0x50/0x50 [ 34.596643] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.601931] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.607483] ? ksys_ioctl+0x81/0xd0 [ 34.611126] __x64_sys_exit_group+0x3e/0x50 [ 34.615460] do_syscall_64+0x1b9/0x820 [ 34.619362] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.624739] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.629679] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.634533] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 34.639991] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.645021] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.650050] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.654946] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.660146] RIP: 0033:0x43ef08 [ 34.663353] Code: Bad RIP value. [ 34.666729] RSP: 002b:00007ffebe402d78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.674448] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.681732] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.689015] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.696294] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.703595] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.710882] [ 34.712516] Allocated by task 4663: [ 34.716154] save_stack+0x43/0xd0 [ 34.719637] kasan_kmalloc+0xc4/0xe0 [ 34.723363] kasan_slab_alloc+0x12/0x20 [ 34.727349] kmem_cache_alloc+0x12e/0x710 [ 34.731509] vmx_create_vcpu+0xcf/0x2830 [ 34.735608] kvm_arch_vcpu_create+0xe5/0x220 [ 34.740030] kvm_vm_ioctl+0x488/0x1d80 [ 34.743926] do_vfs_ioctl+0x1de/0x1720 [ 34.747822] ksys_ioctl+0xa9/0xd0 [ 34.751286] __x64_sys_ioctl+0x73/0xb0 [ 34.755272] do_syscall_64+0x1b9/0x820 [ 34.759171] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.764366] [ 34.765999] Freed by task 4663: [ 34.769288] save_stack+0x43/0xd0 [ 34.772753] __kasan_slab_free+0x11a/0x170 [ 34.776996] kasan_slab_free+0xe/0x10 [ 34.780810] kmem_cache_free+0x86/0x280 [ 34.784800] vmx_free_vcpu+0x26b/0x300 [ 34.788897] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.793317] kvm_put_kvm+0x73f/0x1060 [ 34.797132] kvm_vm_release+0x42/0x50 [ 34.801008] __fput+0x38a/0xa40 [ 34.804296] ____fput+0x15/0x20 [ 34.807615] task_work_run+0x1e8/0x2a0 [ 34.811514] do_exit+0x1ae4/0x26e0 [ 34.815063] do_group_exit+0x177/0x440 [ 34.818959] __x64_sys_exit_group+0x3e/0x50 [ 34.823295] do_syscall_64+0x1b9/0x820 [ 34.827196] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.832387] [ 34.834027] The buggy address belongs to the object at ffff8801b6fb0040 [ 34.834027] which belongs to the cache kvm_vcpu of size 23872 [ 34.846633] The buggy address is located 24 bytes inside of [ 34.846633] 23872-byte region [ffff8801b6fb0040, ffff8801b6fb5d80) [ 34.858628] The buggy address belongs to the page: [ 34.863594] page:ffffea0006dbec00 count:1 mapcount:0 mapping:ffff8801d536f840 index:0x0 compound_mapcount: 0 [ 34.873605] flags: 0x2fffc0000008100(slab|head) [ 34.878291] raw: 02fffc0000008100 ffff8801d5375a48 ffff8801d5375a48 ffff8801d536f840 [ 34.886195] raw: 0000000000000000 ffff8801b6fb0040 0000000100000001 0000000000000000 [ 34.894081] page dumped because: kasan: bad access detected [ 34.899795] [ 34.901426] Memory state around the buggy address: [ 34.906364] ffff8801b6faff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.913735] ffff8801b6faff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.921104] >ffff8801b6fb0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.928471] ^ [ 34.934715] ffff8801b6fb0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.942084] ffff8801b6fb0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.949446] ================================================================== [ 34.956810] Kernel panic - not syncing: panic_on_warn set ... [ 34.956810] [ 34.964194] CPU: 1 PID: 4663 Comm: syz-executor998 Tainted: G B 4.19.0-rc2+ #225 [ 34.973037] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.982393] Call Trace: [ 34.984998] dump_stack+0x1c9/0x2b4 [ 34.988642] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.993845] ? lock_downgrade+0x8f0/0x8f0 [ 34.998003] ? __schedule+0xf54/0x1df0 [ 35.001901] panic+0x238/0x4e7 [ 35.005106] ? add_taint.cold.5+0x16/0x16 [ 35.009271] ? print_shadow_for_address+0xba/0x116 [ 35.014211] ? trace_hardirqs_off+0xaf/0x2c0 [ 35.018635] ? trace_hardirqs_off+0x77/0x2c0 [ 35.023057] ? __schedule+0xf54/0x1df0 [ 35.026956] kasan_end_report+0x47/0x4f [ 35.030944] kasan_report.cold.7+0x76/0x30d [ 35.035282] __asan_report_load8_noabort+0x14/0x20 [ 35.040357] __schedule+0xf54/0x1df0 [ 35.044083] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.049228] ? __sched_text_start+0x8/0x8 [ 35.053397] ? __call_srcu+0x7e7/0x1040 [ 35.057399] ? check_same_owner+0x340/0x340 [ 35.061741] ? mark_held_locks+0x160/0x160 [ 35.066074] ? find_held_lock+0x36/0x1c0 [ 35.070150] preempt_schedule_common+0x22/0x60 [ 35.074745] _cond_resched+0x1d/0x30 [ 35.078556] wait_for_completion+0xa5/0x8d0 [ 35.082922] ? wait_for_completion_interruptible+0x950/0x950 [ 35.088736] ? __lockdep_init_map+0x105/0x590 [ 35.093248] ? __init_waitqueue_head+0x9e/0x150 [ 35.097929] ? init_wait_entry+0x1c0/0x1c0 [ 35.102184] __synchronize_srcu+0x189/0x240 [ 35.106518] ? call_srcu+0x10/0x10 [ 35.110072] ? rcu_unexpedite_gp+0x20/0x20 [ 35.114327] synchronize_srcu+0x335/0x56f [ 35.118495] ? lock_downgrade+0x8f0/0x8f0 [ 35.122660] ? synchronize_srcu_expedited+0x20/0x20 [ 35.127706] ? kasan_check_read+0x11/0x20 [ 35.131871] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.136466] ? kasan_check_write+0x14/0x20 [ 35.140846] ? do_raw_spin_lock+0xc1/0x200 [ 35.145105] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.150831] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.156294] ? kvfree+0x61/0x70 [ 35.160155] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.165185] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.169263] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.173687] ? kvm_arch_sync_events+0x30/0x30 [ 35.178198] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.183752] ? mmu_notifier_unregister+0x474/0x600 [ 35.188695] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.193112] ? kfree+0x111/0x210 [ 35.196494] ? __mmu_notifier_register+0x30/0x30 [ 35.201267] ? __free_pages+0x10a/0x190 [ 35.205259] ? free_unref_page+0x930/0x930 [ 35.209518] kvm_put_kvm+0x73f/0x1060 [ 35.213341] ? kvm_write_guest_cached+0x40/0x40 [ 35.218032] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.222809] ? kvm_irqfd_release+0xdd/0x120 [ 35.227141] ? kvm_irqfd_release+0xdd/0x120 [ 35.231476] ? kvm_put_kvm+0x1060/0x1060 [ 35.235549] kvm_vm_release+0x42/0x50 [ 35.239388] __fput+0x38a/0xa40 [ 35.242680] ? __alloc_file+0x400/0x400 [ 35.246768] ? check_same_owner+0x340/0x340 [ 35.251100] ? kasan_check_write+0x14/0x20 [ 35.255354] ? do_raw_spin_lock+0xc1/0x200 [ 35.259623] ____fput+0x15/0x20 [ 35.262996] task_work_run+0x1e8/0x2a0 [ 35.267034] ? task_work_cancel+0x240/0x240 [ 35.271372] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.276921] ? switch_task_namespaces+0xa2/0xd0 [ 35.281631] do_exit+0x1ae4/0x26e0 [ 35.285193] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.289886] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.294373] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.299406] ? kfree+0x1d7/0x210 [ 35.302790] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.307040] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.312765] ? is_bpf_text_address+0xd7/0x170 [ 35.317275] ? kernel_text_address+0x79/0xf0 [ 35.321765] ? __kernel_text_address+0xd/0x40 [ 35.326272] ? unwind_get_return_address+0x61/0xa0 [ 35.331214] ? __save_stack_trace+0x8d/0xf0 [ 35.335553] ? save_stack+0xa9/0xd0 [ 35.339219] ? save_stack+0x43/0xd0 [ 35.342858] ? __kasan_slab_free+0x11a/0x170 [ 35.347276] ? kasan_slab_free+0xe/0x10 [ 35.351261] ? putname+0xf2/0x130 [ 35.354733] ? __x64_sys_openat+0x9d/0x100 [ 35.358977] ? do_syscall_64+0x1b9/0x820 [ 35.363047] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.368425] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.372843] ? kasan_check_read+0x11/0x20 [ 35.377074] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.381493] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.385915] ? initcall_blacklisted+0x9a/0x1e0 [ 35.390512] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.395652] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.401393] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.406942] ? do_vfs_ioctl+0x201/0x1720 [ 35.411015] ? rcu_is_watching+0x8c/0x150 [ 35.415173] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.419510] ? ioctl_preallocate+0x300/0x300 [ 35.423932] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.429483] ? __fget_light+0x2f7/0x440 [ 35.433471] ? fget_raw+0x20/0x20 [ 35.436934] ? putname+0xf2/0x130 [ 35.440400] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.445427] ? kmem_cache_free+0x246/0x280 [ 35.449677] ? putname+0xf7/0x130 [ 35.453148] do_group_exit+0x177/0x440 [ 35.457047] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.461383] ? __ia32_sys_exit+0x50/0x50 [ 35.465456] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.470599] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.476150] ? ksys_ioctl+0x81/0xd0 [ 35.479793] __x64_sys_exit_group+0x3e/0x50 [ 35.484127] do_syscall_64+0x1b9/0x820 [ 35.488025] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.493546] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.498516] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.503371] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 35.508401] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.513430] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.518462] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.523445] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.528646] RIP: 0033:0x43ef08 [ 35.531850] Code: Bad RIP value. [ 35.535349] RSP: 002b:00007ffebe402d78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.543072] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.550356] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.557639] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.564919] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.572198] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.579488] [ 35.579493] ====================================================== [ 35.579499] WARNING: possible circular locking dependency detected [ 35.579502] 4.19.0-rc2+ #225 Not tainted [ 35.579508] ------------------------------------------------------ [ 35.579512] syz-executor998/4663 is trying to acquire lock: [ 35.579516] 00000000d5d18aa6 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.579530] [ 35.579534] but task is already holding lock: [ 35.579537] 00000000e4162581 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.579551] [ 35.579556] which lock already depends on the new lock. [ 35.579558] [ 35.579560] [ 35.579565] the existing dependency chain (in reverse order) is: [ 35.579594] [ 35.579597] -> #3 (report_lock){....}: [ 35.579611] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.579615] kasan_report+0x8e/0x110 [ 35.579620] __asan_report_load8_noabort+0x14/0x20 [ 35.579623] __schedule+0xf54/0x1df0 [ 35.579628] preempt_schedule_common+0x22/0x60 [ 35.579631] _cond_resched+0x1d/0x30 [ 35.579635] wait_for_completion+0xa5/0x8d0 [ 35.579639] __synchronize_srcu+0x189/0x240 [ 35.579643] synchronize_srcu+0x335/0x56f [ 35.579648] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.579652] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.579656] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.579660] kvm_put_kvm+0x73f/0x1060 [ 35.579664] kvm_vm_release+0x42/0x50 [ 35.579668] __fput+0x38a/0xa40 [ 35.579671] ____fput+0x15/0x20 [ 35.579675] task_work_run+0x1e8/0x2a0 [ 35.579678] do_exit+0x1ae4/0x26e0 [ 35.579682] do_group_exit+0x177/0x440 [ 35.579686] __x64_sys_exit_group+0x3e/0x50 [ 35.579690] do_syscall_64+0x1b9/0x820 [ 35.579695] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.579697] [ 35.579699] -> #2 (&rq->lock){-.-.}: [ 35.579713] _raw_spin_lock+0x2a/0x40 [ 35.579717] task_fork_fair+0x93/0x680 [ 35.579720] sched_fork+0x44b/0xbd0 [ 35.579724] copy_process+0x235e/0x7af0 [ 35.579728] _do_fork+0x1ca/0x1170 [ 35.579732] kernel_thread+0x34/0x40 [ 35.579735] rest_init+0x22/0xe4 [ 35.579739] start_kernel+0x913/0x94e [ 35.579743] x86_64_start_reservations+0x29/0x2b [ 35.579747] x86_64_start_kernel+0x76/0x79 [ 35.579751] secondary_startup_64+0xa4/0xb0 [ 35.579753] [ 35.579755] -> #1 (&p->pi_lock){-.-.}: [ 35.579769] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.579773] try_to_wake_up+0xd2/0x1250 [ 35.579777] wake_up_process+0x10/0x20 [ 35.579781] __up.isra.1+0x1c0/0x2a0 [ 35.579784] up+0x13c/0x1c0 [ 35.579788] __up_console_sem+0xbe/0x1b0 [ 35.579792] console_unlock+0x506/0x10e0 [ 35.579796] vprintk_emit+0x33a/0x910 [ 35.579799] vprintk_default+0x28/0x30 [ 35.579803] vprintk_func+0x7a/0x117 [ 35.579806] printk+0xa7/0xcf [ 35.579810] load_umh+0x51/0xbd [ 35.579814] do_one_initcall+0x127/0x838 [ 35.579818] kernel_init_freeable+0x4bb/0x5ae [ 35.579821] kernel_init+0x11/0x1b3 [ 35.579825] ret_from_fork+0x3a/0x50 [ 35.579827] [ 35.579830] -> #0 ((console_sem).lock){-...}: [ 35.579844] lock_acquire+0x1e4/0x4f0 [ 35.579848] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.579852] down_trylock+0x13/0x70 [ 35.579856] __down_trylock_console_sem+0xae/0x200 [ 35.579860] console_trylock+0x15/0xa0 [ 35.579864] vprintk_emit+0x31f/0x910 [ 35.579867] vprintk_default+0x28/0x30 [ 35.579871] vprintk_func+0x7a/0x117 [ 35.579874] printk+0xa7/0xcf [ 35.579878] kasan_report+0x9e/0x110 [ 35.579883] __asan_report_load8_noabort+0x14/0x20 [ 35.579886] __schedule+0xf54/0x1df0 [ 35.579890] preempt_schedule_common+0x22/0x60 [ 35.579894] _cond_resched+0x1d/0x30 [ 35.579898] wait_for_completion+0xa5/0x8d0 [ 35.579902] __synchronize_srcu+0x189/0x240 [ 35.579906] synchronize_srcu+0x335/0x56f [ 35.579911] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.579915] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.579919] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.579923] kvm_put_kvm+0x73f/0x1060 [ 35.579926] kvm_vm_release+0x42/0x50 [ 35.579930] __fput+0x38a/0xa40 [ 35.579933] ____fput+0x15/0x20 [ 35.579937] task_work_run+0x1e8/0x2a0 [ 35.579941] do_exit+0x1ae4/0x26e0 [ 35.579945] do_group_exit+0x177/0x440 [ 35.579949] __x64_sys_exit_group+0x3e/0x50 [ 35.579953] do_syscall_64+0x1b9/0x820 [ 35.579957] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.579960] [ 35.579964] other info that might help us debug this: [ 35.579966] [ 35.579969] Chain exists of: [ 35.579971] (console_sem).lock --> &rq->lock --> report_lock [ 35.579989] [ 35.579993] Possible unsafe locking scenario: [ 35.579995] [ 35.579999] CPU0 CPU1 [ 35.580003] ---- ---- [ 35.580005] lock(report_lock); [ 35.580014] lock(&rq->lock); [ 35.580023] lock(report_lock); [ 35.580031] lock((console_sem).lock); [ 35.580039] [ 35.580042] *** DEADLOCK *** [ 35.580044] [ 35.580048] 2 locks held by syz-executor998/4663: [ 35.580050] #0: 00000000edd10375 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.580067] #1: 00000000e4162581 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.580083] [ 35.580086] stack backtrace: [ 35.580092] CPU: 1 PID: 4663 Comm: syz-executor998 Not tainted 4.19.0-rc2+ #225 [ 35.580099] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.580102] Call Trace: [ 35.580106] dump_stack+0x1c9/0x2b4 [ 35.580110] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.580114] ? vprintk_func+0x100/0x117 [ 35.580119] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.580122] ? save_trace+0xe0/0x290 [ 35.580126] __lock_acquire+0x3449/0x5020 [ 35.580130] ? mark_held_locks+0x160/0x160 [ 35.580134] ? mark_held_locks+0x160/0x160 [ 35.580139] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.580143] ? is_bpf_text_address+0xd7/0x170 [ 35.580147] ? kernel_text_address+0x79/0xf0 [ 35.580151] ? __kernel_text_address+0xd/0x40 [ 35.580155] ? __save_stack_trace+0x8d/0xf0 [ 35.580159] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.580163] ? save_trace+0x290/0x290 [ 35.580167] ? save_stack_trace+0x1a/0x20 [ 35.580170] ? save_trace+0xe0/0x290 [ 35.580174] ? graph_lock+0x170/0x170 [ 35.580179] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.580182] lock_acquire+0x1e4/0x4f0 [ 35.580186] ? down_trylock+0x13/0x70 [ 35.580190] ? lock_release+0x9f0/0x9f0 [ 35.580194] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.580198] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.580202] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.580206] ? log_store+0x34f/0x4c0 [ 35.580210] ? vprintk_emit+0x31f/0x910 [ 35.580214] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.580217] ? down_trylock+0x13/0x70 [ 35.580221] down_trylock+0x13/0x70 [ 35.580225] __down_trylock_console_sem+0xae/0x200 [ 35.580229] console_trylock+0x15/0xa0 [ 35.580233] vprintk_emit+0x31f/0x910 [ 35.580237] ? wake_up_klogd+0x110/0x110 [ 35.580241] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.580245] ? kasan_check_read+0x11/0x20 [ 35.580249] ? rcu_is_watching+0x8c/0x150 [ 35.580252] ? rcu_pm_notify+0xc0/0xc0 [ 35.580256] ? lock_acquire+0x1e4/0x4f0 [ 35.580260] ? kasan_report+0x8e/0x110 [ 35.580264] ? __schedule+0xf54/0x1df0 [ 35.580267] vprintk_default+0x28/0x30 [ 35.580271] vprintk_func+0x7a/0x117 [ 35.580274] printk+0xa7/0xcf [ 35.580279] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.580282] ? kasan_check_write+0x14/0x20 [ 35.580286] ? do_raw_spin_lock+0xc1/0x200 [ 35.580290] ? do_raw_spin_lock+0xc1/0x200 [ 35.580294] kasan_report+0x9e/0x110 [ 35.580298] __asan_report_load8_noabort+0x14/0x20 [ 35.580302] __schedule+0xf54/0x1df0 [ 35.580306] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.580310] ? __sched_text_start+0x8/0x8 [ 35.580314] ? __call_srcu+0x7e7/0x1040 [ 35.580318] ? check_same_owner+0x340/0x340 [ 35.580322] ? mark_held_locks+0x160/0x160 [ 35.580326] ? find_held_lock+0x36/0x1c0 [ 35.580330] preempt_schedule_common+0x22/0x60 [ 35.580340] _cond_resched+0x1d/0x30 [ 35.580344] wait_for_completion+0xa5/0x8d0 [ 35.580348] ? wait_for_completion_interruptible+0x950/0x950 [ 35.580353] ? __lockdep_init_map+0x105/0x590 [ 35.580357] ? __init_waitqueue_head+0x9e/0x150 [ 35.580361] ? init_wait_entry+0x1c0/0x1c0 [ 35.580365] __synchronize_srcu+0x189/0x240 [ 35.580368] ? call_srcu+0x10/0x10 [ 35.580372] ? rcu_unexpedite_gp+0x20/0x20 [ 35.580376] synchronize_srcu+0x335/0x56f [ 35.580380] ? lock_downgrade+0x8f0/0x8f0 [ 35.580384] ? synchronize_srcu_expedited+0x20/0x20 [ 35.580388] ? kasan_check_read+0x11/0x20 [ 35.580392] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.580396] ? kasan_check_write+0x14/0x20 [ 35.580400] ? do_raw_spin_lock+0xc1/0x200 [ 35.580405] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.580410] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.580413] ? kvfree+0x61/0x70 [ 35.580418] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.580421] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.580426] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.580430] ? kvm_arch_sync_events+0x30/0x30 [ 35.580434] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.580439] ? mmu_notifier_unregister+0x474/0x600 [ 35.580443] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.580446] ? kfree+0x111/0x210 [ 35.580450] ? __mmu_notifier_register+0x30/0x30 [ 35.580454] ? __free_pages+0x10a/0x190 [ 35.580458] ? free_unref_page+0x930/0x930 [ 35.580462] kvm_put_kvm+0x73f/0x1060 [ 35.580466] ? kvm_write_guest_cached+0x40/0x40 [ 35.580470] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.580474] ? kvm_irqfd_release+0xdd/0x120 [ 35.580478] ? kvm_irqfd_release+0xdd/0x120 [ 35.580482] ? kvm_put_kvm+0x1060/0x1060 [ 35.580486] kvm_vm_release+0x42/0x50 [ 35.580489] __fput+0x38a/0xa40 [ 35.580493] ? __alloc_file+0x400/0x400 [ 35.580497] ? check_same_owner+0x340/0x340 [ 35.580501] ? kasan_check_write+0x14/0x20 [ 35.580505] ? do_raw_spin_lock+0xc1/0x200 [ 35.580508] ____fput+0x15/0x20 [ 35.580512] task_work_run+0x1e8/0x2a0 [ 35.580516] ? task_work_cancel+0x240/0x240 [ 35.580521] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.580525] ? switch_task_namespaces+0xa2/0xd0 [ 35.580528] do_exit+0x1ae4/0x26e0 [ 35.580533] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.580536] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.580541] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.580544] ? kfree+0x1d7/0x210 [ 35.580548] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.580553] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.580557] ? is_bpf_text_address+0xd7/0x170 [ 35.580561] ? kernel_text_address+0x79/0xf0 [ 35.580565] ? __kernel_text_address+0xd/0x40 [ 35.580597] ? unwind_get_return_address+0x61/0xa0 [ 35.580600] ? __save_stack_trace+0x8d [ 35.580607] Lost 52 message(s)! [ 36.662300] Shutting down cpus with NMI [ 37.727408] Dumping ftrace buffer: [ 37.730960] (ftrace buffer empty) [ 37.734902] Kernel Offset: disabled [ 37.738528] Rebooting in 86400 seconds..