[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.710772] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.231020] random: sshd: uninitialized urandom read (32 bytes read) [ 25.482176] random: sshd: uninitialized urandom read (32 bytes read) [ 26.060446] random: sshd: uninitialized urandom read (32 bytes read) [ 26.243323] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.202' (ECDSA) to the list of known hosts. [ 31.981476] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.080858] 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. [ 32.108595] ================================================================== [ 32.118368] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.124598] Read of size 8 at addr ffff8801cfa78058 by task syz-executor945/4648 [ 32.132262] [ 32.133897] CPU: 0 PID: 4648 Comm: syz-executor945 Not tainted 4.19.0-rc2+ #220 [ 32.141346] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.150702] Call Trace: [ 32.153294] dump_stack+0x1c9/0x2b4 [ 32.156922] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.162116] ? printk+0xa7/0xcf [ 32.165393] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.170148] ? __schedule+0xf54/0x1df0 [ 32.174032] print_address_description+0x6c/0x20b [ 32.178886] ? __schedule+0xf54/0x1df0 [ 32.182773] kasan_report.cold.7+0x242/0x30d [ 32.187182] __asan_report_load8_noabort+0x14/0x20 [ 32.192108] __schedule+0xf54/0x1df0 [ 32.195821] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.200927] ? __sched_text_start+0x8/0x8 [ 32.205074] ? __call_srcu+0x7e7/0x1040 [ 32.209059] ? check_same_owner+0x340/0x340 [ 32.213469] ? mark_held_locks+0x160/0x160 [ 32.217712] ? find_held_lock+0x36/0x1c0 [ 32.221773] preempt_schedule_common+0x22/0x60 [ 32.226356] _cond_resched+0x1d/0x30 [ 32.230087] wait_for_completion+0xa5/0x8d0 [ 32.234420] ? wait_for_completion_interruptible+0x950/0x950 [ 32.240227] ? __lockdep_init_map+0x105/0x590 [ 32.244724] ? __init_waitqueue_head+0x9e/0x150 [ 32.249394] ? init_wait_entry+0x1c0/0x1c0 [ 32.253629] __synchronize_srcu+0x189/0x240 [ 32.258042] ? call_srcu+0x10/0x10 [ 32.261588] ? rcu_unexpedite_gp+0x20/0x20 [ 32.265832] synchronize_srcu+0x335/0x56f [ 32.269977] ? lock_downgrade+0x8f0/0x8f0 [ 32.274127] ? synchronize_srcu_expedited+0x20/0x20 [ 32.279146] ? kasan_check_read+0x11/0x20 [ 32.283297] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.287877] ? kasan_check_write+0x14/0x20 [ 32.292110] ? do_raw_spin_lock+0xc1/0x200 [ 32.296367] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.302198] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.307646] ? kvfree+0x61/0x70 [ 32.310941] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.315978] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.320049] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.324472] ? kvm_arch_sync_events+0x30/0x30 [ 32.328989] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.334527] ? mmu_notifier_unregister+0x474/0x600 [ 32.339488] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.343894] ? kfree+0x111/0x210 [ 32.347264] ? __mmu_notifier_register+0x30/0x30 [ 32.352031] ? __free_pages+0x10a/0x190 [ 32.356007] ? free_unref_page+0x930/0x930 [ 32.360269] kvm_put_kvm+0x73f/0x1060 [ 32.364317] ? kvm_write_guest_cached+0x40/0x40 [ 32.369023] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.373518] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.378015] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.382599] ? kasan_check_write+0x14/0x20 [ 32.386831] ? do_raw_spin_lock+0xc1/0x200 [ 32.391065] ? kvm_irqfd_release+0xdd/0x120 [ 32.395386] ? kvm_irqfd_release+0xdd/0x120 [ 32.399712] ? kvm_put_kvm+0x1060/0x1060 [ 32.403772] kvm_vm_release+0x42/0x50 [ 32.407570] __fput+0x38a/0xa40 [ 32.410853] ? __alloc_file+0x400/0x400 [ 32.414846] ? check_same_owner+0x340/0x340 [ 32.419166] ? kasan_check_write+0x14/0x20 [ 32.423403] ? do_raw_spin_lock+0xc1/0x200 [ 32.427637] ____fput+0x15/0x20 [ 32.430917] task_work_run+0x1e8/0x2a0 [ 32.434802] ? task_work_cancel+0x240/0x240 [ 32.439122] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.444658] ? switch_task_namespaces+0xa2/0xd0 [ 32.449325] do_exit+0x1ae4/0x26e0 [ 32.452864] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.457703] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.461934] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.466935] ? kfree+0x1d7/0x210 [ 32.470311] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.474544] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.480272] ? is_bpf_text_address+0xd7/0x170 [ 32.484771] ? kernel_text_address+0x79/0xf0 [ 32.489174] ? __kernel_text_address+0xd/0x40 [ 32.493672] ? unwind_get_return_address+0x61/0xa0 [ 32.498602] ? __save_stack_trace+0x8d/0xf0 [ 32.502931] ? save_stack+0xa9/0xd0 [ 32.506564] ? save_stack+0x43/0xd0 [ 32.510186] ? __kasan_slab_free+0x11a/0x170 [ 32.514594] ? kasan_slab_free+0xe/0x10 [ 32.518562] ? putname+0xf2/0x130 [ 32.522015] ? __x64_sys_openat+0x9d/0x100 [ 32.526253] ? do_syscall_64+0x1b9/0x820 [ 32.530308] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.535669] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.540071] ? kasan_check_read+0x11/0x20 [ 32.544225] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.548632] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.553041] ? initcall_blacklisted+0x9a/0x1e0 [ 32.557633] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.562746] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.568456] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.573998] ? do_vfs_ioctl+0x201/0x1720 [ 32.578060] ? rcu_is_watching+0x8c/0x150 [ 32.582202] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.586550] ? ioctl_preallocate+0x300/0x300 [ 32.590976] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.596515] ? __fget_light+0x2f7/0x440 [ 32.600491] ? fget_raw+0x20/0x20 [ 32.603942] ? putname+0xf2/0x130 [ 32.607406] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.612428] ? kmem_cache_free+0x246/0x280 [ 32.616660] ? putname+0xf7/0x130 [ 32.620114] do_group_exit+0x177/0x440 [ 32.623998] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.628318] ? __ia32_sys_exit+0x50/0x50 [ 32.632374] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.637485] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.643034] ? ksys_ioctl+0x81/0xd0 [ 32.646671] __x64_sys_exit_group+0x3e/0x50 [ 32.650993] do_syscall_64+0x1b9/0x820 [ 32.654878] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.660238] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.665165] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.670003] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.675021] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.680038] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.684882] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.690067] RIP: 0033:0x43ef08 [ 32.693257] Code: Bad RIP value. [ 32.696617] RSP: 002b:00007ffdcc4f51a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.704353] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.711613] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.718875] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.726147] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.733408] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.740675] [ 32.742293] Allocated by task 4648: [ 32.745931] save_stack+0x43/0xd0 [ 32.749385] kasan_kmalloc+0xc4/0xe0 [ 32.753098] kasan_slab_alloc+0x12/0x20 [ 32.757070] kmem_cache_alloc+0x12e/0x710 [ 32.761226] vmx_create_vcpu+0xcf/0x2830 [ 32.765293] kvm_arch_vcpu_create+0xe5/0x220 [ 32.769697] kvm_vm_ioctl+0x488/0x1d80 [ 32.773578] do_vfs_ioctl+0x1de/0x1720 [ 32.777460] ksys_ioctl+0xa9/0xd0 [ 32.780912] __x64_sys_ioctl+0x73/0xb0 [ 32.784797] do_syscall_64+0x1b9/0x820 [ 32.788679] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.794008] [ 32.795626] Freed by task 4648: [ 32.798947] save_stack+0x43/0xd0 [ 32.802400] __kasan_slab_free+0x11a/0x170 [ 32.806662] kasan_slab_free+0xe/0x10 [ 32.810517] kmem_cache_free+0x86/0x280 [ 32.814491] vmx_free_vcpu+0x26b/0x300 [ 32.818809] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.823225] kvm_put_kvm+0x73f/0x1060 [ 32.827120] kvm_vm_release+0x42/0x50 [ 32.830914] __fput+0x38a/0xa40 [ 32.834186] ____fput+0x15/0x20 [ 32.837468] task_work_run+0x1e8/0x2a0 [ 32.841354] do_exit+0x1ae4/0x26e0 [ 32.844888] do_group_exit+0x177/0x440 [ 32.848768] __x64_sys_exit_group+0x3e/0x50 [ 32.853093] do_syscall_64+0x1b9/0x820 [ 32.856986] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.862159] [ 32.863778] The buggy address belongs to the object at ffff8801cfa78040 [ 32.863778] which belongs to the cache kvm_vcpu of size 23872 [ 32.876344] The buggy address is located 24 bytes inside of [ 32.876344] 23872-byte region [ffff8801cfa78040, ffff8801cfa7dd80) [ 32.888304] The buggy address belongs to the page: [ 32.893251] page:ffffea00073e9e00 count:1 mapcount:0 mapping:ffff8801d524dd80 index:0x0 compound_mapcount: 0 [ 32.903223] flags: 0x2fffc0000008100(slab|head) [ 32.907892] raw: 02fffc0000008100 ffff8801d5247b48 ffff8801d5247b48 ffff8801d524dd80 [ 32.915769] raw: 0000000000000000 ffff8801cfa78040 0000000100000001 0000000000000000 [ 32.923651] page dumped because: kasan: bad access detected [ 32.929347] [ 32.930964] Memory state around the buggy address: [ 32.935884] ffff8801cfa77f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.943246] ffff8801cfa77f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.950595] >ffff8801cfa78000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.957942] ^ [ 32.964317] ffff8801cfa78080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.971667] ffff8801cfa78100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.979022] ================================================================== [ 32.986372] Kernel panic - not syncing: panic_on_warn set ... [ 32.986372] [ 32.993736] CPU: 0 PID: 4648 Comm: syz-executor945 Tainted: G B 4.19.0-rc2+ #220 [ 33.002574] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.011915] Call Trace: [ 33.014509] dump_stack+0x1c9/0x2b4 [ 33.018156] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.023343] ? lock_downgrade+0x8f0/0x8f0 [ 33.027514] ? __schedule+0xf54/0x1df0 [ 33.031412] panic+0x238/0x4e7 [ 33.034602] ? add_taint.cold.5+0x16/0x16 [ 33.038836] ? print_shadow_for_address+0xba/0x116 [ 33.043759] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.048159] ? trace_hardirqs_off+0x77/0x2b0 [ 33.052564] ? __schedule+0xf54/0x1df0 [ 33.056445] kasan_end_report+0x47/0x4f [ 33.060414] kasan_report.cold.7+0x76/0x30d [ 33.064736] __asan_report_load8_noabort+0x14/0x20 [ 33.069664] __schedule+0xf54/0x1df0 [ 33.073396] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.078502] ? __sched_text_start+0x8/0x8 [ 33.082650] ? __call_srcu+0x7e7/0x1040 [ 33.086626] ? check_same_owner+0x340/0x340 [ 33.090940] ? mark_held_locks+0x160/0x160 [ 33.095171] ? find_held_lock+0x36/0x1c0 [ 33.099254] preempt_schedule_common+0x22/0x60 [ 33.103835] _cond_resched+0x1d/0x30 [ 33.107558] wait_for_completion+0xa5/0x8d0 [ 33.111879] ? wait_for_completion_interruptible+0x950/0x950 [ 33.117672] ? __lockdep_init_map+0x105/0x590 [ 33.122168] ? __init_waitqueue_head+0x9e/0x150 [ 33.126835] ? init_wait_entry+0x1c0/0x1c0 [ 33.131106] __synchronize_srcu+0x189/0x240 [ 33.135450] ? call_srcu+0x10/0x10 [ 33.138997] ? rcu_unexpedite_gp+0x20/0x20 [ 33.143320] synchronize_srcu+0x335/0x56f [ 33.147459] ? lock_downgrade+0x8f0/0x8f0 [ 33.151621] ? synchronize_srcu_expedited+0x20/0x20 [ 33.156765] ? kasan_check_read+0x11/0x20 [ 33.160897] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.165538] ? kasan_check_write+0x14/0x20 [ 33.169768] ? do_raw_spin_lock+0xc1/0x200 [ 33.174006] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.179758] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.185198] ? kvfree+0x61/0x70 [ 33.188502] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.193518] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.197575] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.201993] ? kvm_arch_sync_events+0x30/0x30 [ 33.206492] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.212057] ? mmu_notifier_unregister+0x474/0x600 [ 33.216996] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.221420] ? kfree+0x111/0x210 [ 33.224791] ? __mmu_notifier_register+0x30/0x30 [ 33.229551] ? __free_pages+0x10a/0x190 [ 33.233525] ? free_unref_page+0x930/0x930 [ 33.237765] kvm_put_kvm+0x73f/0x1060 [ 33.241566] ? kvm_write_guest_cached+0x40/0x40 [ 33.246239] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.250735] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.255234] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.259816] ? kasan_check_write+0x14/0x20 [ 33.264061] ? do_raw_spin_lock+0xc1/0x200 [ 33.268291] ? kvm_irqfd_release+0xdd/0x120 [ 33.272614] ? kvm_irqfd_release+0xdd/0x120 [ 33.276936] ? kvm_put_kvm+0x1060/0x1060 [ 33.280994] kvm_vm_release+0x42/0x50 [ 33.284789] __fput+0x38a/0xa40 [ 33.288067] ? __alloc_file+0x400/0x400 [ 33.292037] ? check_same_owner+0x340/0x340 [ 33.296362] ? kasan_check_write+0x14/0x20 [ 33.300591] ? do_raw_spin_lock+0xc1/0x200 [ 33.304976] ____fput+0x15/0x20 [ 33.308293] task_work_run+0x1e8/0x2a0 [ 33.312173] ? task_work_cancel+0x240/0x240 [ 33.316501] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.322069] ? switch_task_namespaces+0xa2/0xd0 [ 33.326741] do_exit+0x1ae4/0x26e0 [ 33.330296] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.334977] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.339210] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.344236] ? kfree+0x1d7/0x210 [ 33.347599] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.351834] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.357540] ? is_bpf_text_address+0xd7/0x170 [ 33.362513] ? kernel_text_address+0x79/0xf0 [ 33.366916] ? __kernel_text_address+0xd/0x40 [ 33.371409] ? unwind_get_return_address+0x61/0xa0 [ 33.376337] ? __save_stack_trace+0x8d/0xf0 [ 33.380662] ? save_stack+0xa9/0xd0 [ 33.384288] ? save_stack+0x43/0xd0 [ 33.387908] ? __kasan_slab_free+0x11a/0x170 [ 33.392309] ? kasan_slab_free+0xe/0x10 [ 33.396280] ? putname+0xf2/0x130 [ 33.399730] ? __x64_sys_openat+0x9d/0x100 [ 33.403974] ? do_syscall_64+0x1b9/0x820 [ 33.408043] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.413402] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.417803] ? kasan_check_read+0x11/0x20 [ 33.421957] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.426369] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.430782] ? initcall_blacklisted+0x9a/0x1e0 [ 33.435369] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.440473] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.446206] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.451755] ? do_vfs_ioctl+0x201/0x1720 [ 33.455815] ? rcu_is_watching+0x8c/0x150 [ 33.459960] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.464305] ? ioctl_preallocate+0x300/0x300 [ 33.469351] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.474881] ? __fget_light+0x2f7/0x440 [ 33.478878] ? fget_raw+0x20/0x20 [ 33.482340] ? putname+0xf2/0x130 [ 33.485796] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.490808] ? kmem_cache_free+0x246/0x280 [ 33.495038] ? putname+0xf7/0x130 [ 33.498499] do_group_exit+0x177/0x440 [ 33.502384] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.506708] ? __ia32_sys_exit+0x50/0x50 [ 33.510779] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.515887] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.521436] ? ksys_ioctl+0x81/0xd0 [ 33.525076] __x64_sys_exit_group+0x3e/0x50 [ 33.529399] do_syscall_64+0x1b9/0x820 [ 33.533285] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.538655] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.543583] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.548428] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.553450] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.558483] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.563346] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.568531] RIP: 0033:0x43ef08 [ 33.571722] Code: Bad RIP value. [ 33.575078] RSP: 002b:00007ffdcc4f51a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.582801] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 33.590072] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.597344] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.604616] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.611887] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.619164] [ 33.619169] ====================================================== [ 33.619175] WARNING: possible circular locking dependency detected [ 33.619178] 4.19.0-rc2+ #220 Not tainted [ 33.619183] ------------------------------------------------------ [ 33.619188] syz-executor945/4648 is trying to acquire lock: [ 33.619192] 00000000e1137af0 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.619206] [ 33.619210] but task is already holding lock: [ 33.619213] 00000000bc4f6ae6 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.619235] [ 33.619239] which lock already depends on the new lock. [ 33.619242] [ 33.619244] [ 33.619249] the existing dependency chain (in reverse order) is: [ 33.619251] [ 33.619253] -> #3 (report_lock){....}: [ 33.619268] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.619271] kasan_report+0x8e/0x110 [ 33.619276] __asan_report_load8_noabort+0x14/0x20 [ 33.619280] __schedule+0xf54/0x1df0 [ 33.619284] preempt_schedule_common+0x22/0x60 [ 33.619287] _cond_resched+0x1d/0x30 [ 33.619292] wait_for_completion+0xa5/0x8d0 [ 33.619296] __synchronize_srcu+0x189/0x240 [ 33.619300] synchronize_srcu+0x335/0x56f [ 33.619305] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.619308] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.619313] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.619317] kvm_put_kvm+0x73f/0x1060 [ 33.619320] kvm_vm_release+0x42/0x50 [ 33.619324] __fput+0x38a/0xa40 [ 33.619327] ____fput+0x15/0x20 [ 33.619331] task_work_run+0x1e8/0x2a0 [ 33.619335] do_exit+0x1ae4/0x26e0 [ 33.619338] do_group_exit+0x177/0x440 [ 33.619343] __x64_sys_exit_group+0x3e/0x50 [ 33.619346] do_syscall_64+0x1b9/0x820 [ 33.619351] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.619353] [ 33.619355] -> #2 (&rq->lock){-.-.}: [ 33.619369] _raw_spin_lock+0x2a/0x40 [ 33.619373] task_fork_fair+0x93/0x680 [ 33.619376] sched_fork+0x44b/0xbd0 [ 33.619380] copy_process+0x235e/0x7ad0 [ 33.619384] _do_fork+0x1ca/0x1170 [ 33.619387] kernel_thread+0x34/0x40 [ 33.619391] rest_init+0x22/0xe4 [ 33.619394] start_kernel+0x913/0x94e [ 33.619399] x86_64_start_reservations+0x29/0x2b [ 33.619403] x86_64_start_kernel+0x76/0x79 [ 33.619407] secondary_startup_64+0xa4/0xb0 [ 33.619409] [ 33.619411] -> #1 (&p->pi_lock){-.-.}: [ 33.619425] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.619429] try_to_wake_up+0xd2/0x1250 [ 33.619433] wake_up_process+0x10/0x20 [ 33.619437] __up.isra.1+0x1c0/0x2a0 [ 33.619440] up+0x13c/0x1c0 [ 33.619444] __up_console_sem+0xbe/0x1b0 [ 33.619447] console_unlock+0x506/0x10d0 [ 33.619451] vprintk_emit+0x33a/0x910 [ 33.619455] vprintk_default+0x28/0x30 [ 33.619459] vprintk_func+0x7a/0x117 [ 33.619462] printk+0xa7/0xcf [ 33.619465] load_umh+0x51/0xbd [ 33.619469] do_one_initcall+0x127/0x838 [ 33.619473] kernel_init_freeable+0x4bb/0x5ae [ 33.619477] kernel_init+0x11/0x1b3 [ 33.619487] ret_from_fork+0x3a/0x50 [ 33.619489] [ 33.619491] -> #0 ((console_sem).lock){-...}: [ 33.619505] lock_acquire+0x1e4/0x4f0 [ 33.619510] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.619513] down_trylock+0x13/0x70 [ 33.619518] __down_trylock_console_sem+0xae/0x200 [ 33.619521] console_trylock+0x15/0xa0 [ 33.619525] vprintk_emit+0x31f/0x910 [ 33.619529] vprintk_default+0x28/0x30 [ 33.619533] vprintk_func+0x7a/0x117 [ 33.619536] printk+0xa7/0xcf [ 33.619540] kasan_report+0x9e/0x110 [ 33.619544] __asan_report_load8_noabort+0x14/0x20 [ 33.619548] __schedule+0xf54/0x1df0 [ 33.619552] preempt_schedule_common+0x22/0x60 [ 33.619556] _cond_resched+0x1d/0x30 [ 33.619560] wait_for_completion+0xa5/0x8d0 [ 33.619564] __synchronize_srcu+0x189/0x240 [ 33.619568] synchronize_srcu+0x335/0x56f [ 33.619573] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.619576] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.619580] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.619584] kvm_put_kvm+0x73f/0x1060 [ 33.619588] kvm_vm_release+0x42/0x50 [ 33.619592] __fput+0x38a/0xa40 [ 33.619595] ____fput+0x15/0x20 [ 33.619599] task_work_run+0x1e8/0x2a0 [ 33.619602] do_exit+0x1ae4/0x26e0 [ 33.619606] do_group_exit+0x177/0x440 [ 33.619610] __x64_sys_exit_group+0x3e/0x50 [ 33.619614] do_syscall_64+0x1b9/0x820 [ 33.619619] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.619621] [ 33.619625] other info that might help us debug this: [ 33.619627] [ 33.619630] Chain exists of: [ 33.619632] (console_sem).lock --> &rq->lock --> report_lock [ 33.619650] [ 33.619654] Possible unsafe locking scenario: [ 33.619656] [ 33.619660] CPU0 CPU1 [ 33.619664] ---- ---- [ 33.619666] lock(report_lock); [ 33.619675] lock(&rq->lock); [ 33.619684] lock(report_lock); [ 33.619692] lock((console_sem).lock); [ 33.619699] [ 33.619703] *** DEADLOCK *** [ 33.619705] [ 33.619709] 2 locks held by syz-executor945/4648: [ 33.619711] #0: 000000004e25d3c1 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.619727] #1: 00000000bc4f6ae6 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.619744] [ 33.619747] stack backtrace: [ 33.619752] CPU: 0 PID: 4648 Comm: syz-executor945 Not tainted 4.19.0-rc2+ #220 [ 33.619759] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.619762] Call Trace: [ 33.619766] dump_stack+0x1c9/0x2b4 [ 33.619770] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.619774] ? vprintk_func+0x100/0x117 [ 33.619779] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.619783] ? save_trace+0xe0/0x290 [ 33.619787] __lock_acquire+0x3449/0x5020 [ 33.619791] ? mark_held_locks+0x160/0x160 [ 33.619795] ? mark_held_locks+0x160/0x160 [ 33.619799] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.619803] ? is_bpf_text_address+0xd7/0x170 [ 33.619807] ? kernel_text_address+0x79/0xf0 [ 33.619811] ? __kernel_text_address+0xd/0x40 [ 33.619815] ? __save_stack_trace+0x8d/0xf0 [ 33.619819] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.619823] ? save_trace+0x290/0x290 [ 33.619827] ? save_stack_trace+0x1a/0x20 [ 33.619831] ? save_trace+0xe0/0x290 [ 33.619834] ? graph_lock+0x170/0x170 [ 33.619839] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.619843] lock_acquire+0x1e4/0x4f0 [ 33.619846] ? down_trylock+0x13/0x70 [ 33.619850] ? lock_release+0x9f0/0x9f0 [ 33.619854] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.619858] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.619862] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.619866] ? log_store+0x34f/0x4c0 [ 33.619870] ? vprintk_emit+0x31f/0x910 [ 33.619874] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.619877] ? down_trylock+0x13/0x70 [ 33.619881] down_trylock+0x13/0x70 [ 33.619885] __down_trylock_console_sem+0xae/0x200 [ 33.619889] console_trylock+0x15/0xa0 [ 33.619893] vprintk_emit+0x31f/0x910 [ 33.619896] ? wake_up_klogd+0x110/0x110 [ 33.619901] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.619905] ? kasan_check_read+0x11/0x20 [ 33.619909] ? rcu_is_watching+0x8c/0x150 [ 33.619912] ? rcu_pm_notify+0xc0/0xc0 [ 33.619916] ? lock_acquire+0x1e4/0x4f0 [ 33.619920] ? kasan_report+0x8e/0x110 [ 33.619924] ? __schedule+0xf54/0x1df0 [ 33.619927] vprintk_default+0x28/0x30 [ 33.619931] vprintk_func+0x7a/0x117 [ 33.619934] printk+0xa7/0xcf [ 33.619938] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.619942] ? kasan_check_write+0x14/0x20 [ 33.619946] ? do_raw_spin_lock+0xc1/0x200 [ 33.619950] ? do_raw_spin_lock+0xc1/0x200 [ 33.619954] kasan_report+0x9e/0x110 [ 33.619958] __asan_report_load8_noabort+0x14/0x20 [ 33.619962] __schedule+0xf54/0x1df0 [ 33.619966] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.619970] ? __sched_text_start+0x8/0x8 [ 33.619974] ? __call_srcu+0x7e7/0x1040 [ 33.619978] ? check_same_owner+0x340/0x340 [ 33.619983] ? mark_held_locks+0x160/0x160 [ 33.619987] ? find_held_lock+0x36/0x1c0 [ 33.619991] preempt_schedule_common+0x22/0x60 [ 33.619994] _cond_resched+0x1d/0x30 [ 33.619998] wait_for_completion+0xa5/0x8d0 [ 33.620003] ? wait_for_completion_interruptible+0x950/0x950 [ 33.620007] ? __lockdep_init_map+0x105/0x590 [ 33.620012] ? __init_waitqueue_head+0x9e/0x150 [ 33.620015] ? init_wait_entry+0x1c0/0x1c0 [ 33.620019] __synchronize_srcu+0x189/0x240 [ 33.620023] ? call_srcu+0x10/0x10 [ 33.620027] ? rcu_unexpedite_gp+0x20/0x20 [ 33.620031] synchronize_srcu+0x335/0x56f [ 33.620035] ? lock_downgrade+0x8f0/0x8f0 [ 33.620039] ? synchronize_srcu_expedited+0x20/0x20 [ 33.620043] ? kasan_check_read+0x11/0x20 [ 33.620048] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.620051] ? kasan_check_write+0x14/0x20 [ 33.620055] ? do_raw_spin_lock+0xc1/0x200 [ 33.620060] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.620065] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.620068] ? kvfree+0x61/0x70 [ 33.620073] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.620077] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.620081] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.620085] ? kvm_arch_sync_events+0x30/0x30 [ 33.620090] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.620094] ? mmu_notifier_unregister+0x474/0x600 [ 33.620098] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.620102] ? kfree+0x111/0x210 [ 33.620106] ? __mmu_notifier_register+0x30/0x30 [ 33.620110] ? __free_pages+0x10a/0x190 [ 33.620114] ? free_unref_page+0x930/0x930 [ 33.620118] kvm_put_kvm+0x73f/0x1060 [ 33.620122] ? kvm_write_guest_cached+0x40/0x40 [ 33.620126] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.620130] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.620134] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.620138] ? kasan_check_write+0x14/0x20 [ 33.620142] ? do_raw_spin_lock+0xc1/0x200 [ 33.620146] ? kvm_irqfd_release+0xdd/0x120 [ 33.620150] ? kvm_irqfd_release+0xdd/0x120 [ 33.620154] ? kvm_put_kvm+0x1060/0x1060 [ 33.620158] kvm_vm_release+0x42/0x50 [ 33.620161] __fput+0x38a/0xa40 [ 33.620165] ? __alloc_file+0x400/0x400 [ 33.620169] ? check_same_owner+0x340/0x340 [ 33.620173] ? kasan_check_write+0x14/0x20 [ 33.620177] ? do_raw_spin_lock+0xc1/0x200 [ 33.620180] ____fput+0x15/0x20 [ 33.620184] task_work_run+0x1e8/0x2a0 [ 33.620188] ? task_work_cancel+0x240/0x240 [ 33.620193] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.620197] ? switch_task_namespaces+0xa2/0xd0 [ 33.620201] do_exit+0x1ae4/0x26e0 [ 33.620205] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.620209] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.620213] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.620225] ? kfree+0x1d7/0x210 [ 33.620229] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.620234] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.620238] ? is_bpf_text_address+0xd7/0x170 [ 33.620241] ? [ 33.620248] Lost 54 message(s)! [ 34.727997] Shutting down cpus with NMI [ 35.788355] Dumping ftrace buffer: [ 35.791876] (ftrace buffer empty) [ 35.795581] Kernel Offset: disabled [ 35.799194] Rebooting in 86400 seconds..