[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 21.570902] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.967518] random: sshd: uninitialized urandom read (32 bytes read) [ 25.244438] random: sshd: uninitialized urandom read (32 bytes read) [ 25.768978] random: sshd: uninitialized urandom read (32 bytes read) [ 32.254296] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.50' (ECDSA) to the list of known hosts. [ 37.965150] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 38.060039] 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. [ 38.083327] ================================================================== [ 38.092145] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 38.098483] Read of size 8 at addr ffff8801b03f0058 by task syz-executor470/4398 [ 38.106011] [ 38.107632] CPU: 0 PID: 4398 Comm: syz-executor470 Not tainted 4.18.0+ #209 [ 38.114718] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.124061] Call Trace: [ 38.126648] dump_stack+0x1c9/0x2b4 [ 38.130264] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.135445] ? printk+0xa7/0xcf [ 38.138856] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.143603] ? __schedule+0xf54/0x1df0 [ 38.147480] print_address_description+0x6c/0x20b [ 38.152450] ? __schedule+0xf54/0x1df0 [ 38.156336] kasan_report.cold.7+0x242/0x30d [ 38.160738] __asan_report_load8_noabort+0x14/0x20 [ 38.165678] __schedule+0xf54/0x1df0 [ 38.169588] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.174702] ? __sched_text_start+0x8/0x8 [ 38.178839] ? __call_srcu+0x7e7/0x1040 [ 38.182925] ? check_same_owner+0x340/0x340 [ 38.187247] ? mark_held_locks+0x160/0x160 [ 38.191474] ? find_held_lock+0x36/0x1c0 [ 38.195650] preempt_schedule_common+0x22/0x60 [ 38.200356] _cond_resched+0x1d/0x30 [ 38.204061] wait_for_completion+0xa5/0x8d0 [ 38.208375] ? wait_for_completion_interruptible+0x950/0x950 [ 38.214279] ? __lockdep_init_map+0x105/0x590 [ 38.218774] ? __init_waitqueue_head+0x9e/0x150 [ 38.223622] ? init_wait_entry+0x1c0/0x1c0 [ 38.227854] __synchronize_srcu+0x189/0x240 [ 38.232173] ? call_srcu+0x10/0x10 [ 38.235710] ? rcu_unexpedite_gp+0x20/0x20 [ 38.240077] synchronize_srcu+0x335/0x56f [ 38.244320] ? lock_downgrade+0x8f0/0x8f0 [ 38.248462] ? synchronize_srcu_expedited+0x20/0x20 [ 38.253472] ? kasan_check_read+0x11/0x20 [ 38.257612] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.262293] ? kasan_check_write+0x14/0x20 [ 38.266614] ? do_raw_spin_lock+0xc1/0x200 [ 38.270961] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.276667] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.282113] ? kvfree+0x61/0x70 [ 38.285382] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.290391] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.294546] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.298952] ? kvm_arch_sync_events+0x30/0x30 [ 38.303445] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.308988] ? mmu_notifier_unregister+0x474/0x600 [ 38.313909] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.318309] ? kfree+0x111/0x210 [ 38.321670] ? __mmu_notifier_register+0x30/0x30 [ 38.326418] ? __free_pages+0x10a/0x190 [ 38.330384] ? free_unref_page+0x930/0x930 [ 38.334617] kvm_put_kvm+0x73f/0x1060 [ 38.338412] ? kvm_write_guest_cached+0x40/0x40 [ 38.343077] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.347566] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.352055] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.356635] ? kasan_check_write+0x14/0x20 [ 38.360861] ? do_raw_spin_lock+0xc1/0x200 [ 38.365193] ? kvm_irqfd_release+0xdd/0x120 [ 38.369515] ? kvm_irqfd_release+0xdd/0x120 [ 38.373831] ? kvm_put_kvm+0x1060/0x1060 [ 38.377881] kvm_vm_release+0x42/0x50 [ 38.381768] __fput+0x36e/0x8c0 [ 38.385041] ? __alloc_file+0x400/0x400 [ 38.389007] ? check_same_owner+0x340/0x340 [ 38.393326] ? kasan_check_write+0x14/0x20 [ 38.397550] ? do_raw_spin_lock+0xc1/0x200 [ 38.401774] ____fput+0x15/0x20 [ 38.405192] task_work_run+0x1e8/0x2a0 [ 38.409163] ? task_work_cancel+0x240/0x240 [ 38.413487] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.419020] ? switch_task_namespaces+0xa2/0xd0 [ 38.423688] do_exit+0x1ae4/0x26e0 [ 38.427238] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.431906] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.436135] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.441147] ? kfree+0x1d7/0x210 [ 38.444508] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.448856] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.454579] ? is_bpf_text_address+0xd7/0x170 [ 38.459063] ? kernel_text_address+0x79/0xf0 [ 38.463461] ? __kernel_text_address+0xd/0x40 [ 38.467948] ? unwind_get_return_address+0x61/0xa0 [ 38.472871] ? __save_stack_trace+0x8d/0xf0 [ 38.477188] ? save_stack+0xa9/0xd0 [ 38.480801] ? save_stack+0x43/0xd0 [ 38.484416] ? __kasan_slab_free+0x11a/0x170 [ 38.488865] ? kasan_slab_free+0xe/0x10 [ 38.492896] ? putname+0xf2/0x130 [ 38.496362] ? __x64_sys_openat+0x9d/0x100 [ 38.500608] ? do_syscall_64+0x1b9/0x820 [ 38.504675] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.510042] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.514540] ? kasan_check_read+0x11/0x20 [ 38.518688] ? do_raw_spin_unlock+0xa7/0x2f0 [ 38.523089] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.527492] ? initcall_blacklisted+0x9a/0x1e0 [ 38.532073] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 38.537176] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.542896] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.548448] ? do_vfs_ioctl+0x201/0x1720 [ 38.552520] ? rcu_is_watching+0x8c/0x150 [ 38.556672] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.560992] ? ioctl_preallocate+0x300/0x300 [ 38.565401] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.570943] ? __fget_light+0x2f7/0x440 [ 38.574912] ? fget_raw+0x20/0x20 [ 38.578360] ? putname+0xf2/0x130 [ 38.581810] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.586831] ? kmem_cache_free+0x246/0x280 [ 38.591060] ? putname+0xf7/0x130 [ 38.594614] do_group_exit+0x177/0x440 [ 38.598496] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.602810] ? __ia32_sys_exit+0x50/0x50 [ 38.606861] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.611958] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.617564] ? ksys_ioctl+0x81/0xd0 [ 38.621200] __x64_sys_exit_group+0x3e/0x50 [ 38.625526] do_syscall_64+0x1b9/0x820 [ 38.629411] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.634894] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.639818] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.644652] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 38.649664] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.654673] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.659683] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.664527] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.669709] RIP: 0033:0x43f028 [ 38.672899] Code: Bad RIP value. [ 38.676250] RSP: 002b:00007ffd568458a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.683950] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 38.691742] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.699009] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.706276] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.713541] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 38.720815] [ 38.722432] Allocated by task 4398: [ 38.726052] save_stack+0x43/0xd0 [ 38.729492] kasan_kmalloc+0xc4/0xe0 [ 38.733192] kasan_slab_alloc+0x12/0x20 [ 38.737157] kmem_cache_alloc+0x12e/0x710 [ 38.741648] vmx_create_vcpu+0xcf/0x2830 [ 38.745705] kvm_arch_vcpu_create+0xe5/0x220 [ 38.750114] kvm_vm_ioctl+0x488/0x1d80 [ 38.754071] do_vfs_ioctl+0x1de/0x1720 [ 38.757953] ksys_ioctl+0xa9/0xd0 [ 38.761391] __x64_sys_ioctl+0x73/0xb0 [ 38.765270] do_syscall_64+0x1b9/0x820 [ 38.769145] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.774313] [ 38.775924] Freed by task 4398: [ 38.779192] save_stack+0x43/0xd0 [ 38.782634] __kasan_slab_free+0x11a/0x170 [ 38.786862] kasan_slab_free+0xe/0x10 [ 38.790730] kmem_cache_free+0x86/0x280 [ 38.794698] vmx_free_vcpu+0x26b/0x300 [ 38.798577] kvm_arch_destroy_vm+0x365/0x7c0 [ 38.802978] kvm_put_kvm+0x73f/0x1060 [ 38.806771] kvm_vm_release+0x42/0x50 [ 38.810561] __fput+0x36e/0x8c0 [ 38.813828] ____fput+0x15/0x20 [ 38.817094] task_work_run+0x1e8/0x2a0 [ 38.820974] do_exit+0x1ae4/0x26e0 [ 38.824512] do_group_exit+0x177/0x440 [ 38.828398] __x64_sys_exit_group+0x3e/0x50 [ 38.832730] do_syscall_64+0x1b9/0x820 [ 38.836623] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.841807] [ 38.843428] The buggy address belongs to the object at ffff8801b03f0040 [ 38.843428] which belongs to the cache kvm_vcpu of size 23872 [ 38.855994] The buggy address is located 24 bytes inside of [ 38.855994] 23872-byte region [ffff8801b03f0040, ffff8801b03f5d80) [ 38.867951] The buggy address belongs to the page: [ 38.872974] page:ffffea0006c0fc00 count:1 mapcount:0 mapping:ffff8801d871f040 index:0x0 compound_mapcount: 0 [ 38.882937] flags: 0x2fffc0000008100(slab|head) [ 38.887595] raw: 02fffc0000008100 ffff8801d56d3d48 ffff8801d56d3d48 ffff8801d871f040 [ 38.895476] raw: 0000000000000000 ffff8801b03f0040 0000000100000001 0000000000000000 [ 38.903434] page dumped because: kasan: bad access detected [ 38.909138] [ 38.910746] Memory state around the buggy address: [ 38.915665] ffff8801b03eff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.923021] ffff8801b03eff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.930378] >ffff8801b03f0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 38.937734] ^ [ 38.943961] ffff8801b03f0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.951318] ffff8801b03f0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.958667] ================================================================== [ 38.966127] Kernel panic - not syncing: panic_on_warn set ... [ 38.966127] [ 38.973597] CPU: 0 PID: 4398 Comm: syz-executor470 Tainted: G B 4.18.0+ #209 [ 38.982084] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.991434] Call Trace: [ 38.994017] dump_stack+0x1c9/0x2b4 [ 38.997735] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.002926] ? lock_downgrade+0x8f0/0x8f0 [ 39.007064] ? __schedule+0xf54/0x1df0 [ 39.010964] panic+0x238/0x4e7 [ 39.014145] ? add_taint.cold.5+0x16/0x16 [ 39.018294] ? print_shadow_for_address+0xba/0x116 [ 39.023306] ? trace_hardirqs_off+0xaf/0x2b0 [ 39.027712] ? trace_hardirqs_off+0x77/0x2b0 [ 39.032115] ? __schedule+0xf54/0x1df0 [ 39.035993] kasan_end_report+0x47/0x4f [ 39.039974] kasan_report.cold.7+0x76/0x30d [ 39.044296] __asan_report_load8_noabort+0x14/0x20 [ 39.049245] __schedule+0xf54/0x1df0 [ 39.052951] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.058136] ? __sched_text_start+0x8/0x8 [ 39.062409] ? __call_srcu+0x7e7/0x1040 [ 39.066382] ? check_same_owner+0x340/0x340 [ 39.070694] ? mark_held_locks+0x160/0x160 [ 39.074924] ? find_held_lock+0x36/0x1c0 [ 39.078983] preempt_schedule_common+0x22/0x60 [ 39.083559] _cond_resched+0x1d/0x30 [ 39.087277] wait_for_completion+0xa5/0x8d0 [ 39.091605] ? wait_for_completion_interruptible+0x950/0x950 [ 39.097401] ? __lockdep_init_map+0x105/0x590 [ 39.101892] ? __init_waitqueue_head+0x9e/0x150 [ 39.106560] ? init_wait_entry+0x1c0/0x1c0 [ 39.110816] __synchronize_srcu+0x189/0x240 [ 39.115136] ? call_srcu+0x10/0x10 [ 39.118679] ? rcu_unexpedite_gp+0x20/0x20 [ 39.122913] synchronize_srcu+0x335/0x56f [ 39.127063] ? lock_downgrade+0x8f0/0x8f0 [ 39.131209] ? synchronize_srcu_expedited+0x20/0x20 [ 39.136251] ? kasan_check_read+0x11/0x20 [ 39.140402] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 39.144984] ? kasan_check_write+0x14/0x20 [ 39.149215] ? do_raw_spin_lock+0xc1/0x200 [ 39.153456] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.159163] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 39.164611] ? kvfree+0x61/0x70 [ 39.167886] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.172895] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.176945] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.181534] ? kvm_arch_sync_events+0x30/0x30 [ 39.186029] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.191571] ? mmu_notifier_unregister+0x474/0x600 [ 39.196496] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.201017] ? kfree+0x111/0x210 [ 39.204378] ? __mmu_notifier_register+0x30/0x30 [ 39.209135] ? __free_pages+0x10a/0x190 [ 39.213101] ? free_unref_page+0x930/0x930 [ 39.217334] kvm_put_kvm+0x73f/0x1060 [ 39.221268] ? kvm_write_guest_cached+0x40/0x40 [ 39.225947] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.230501] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.234994] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.239681] ? kasan_check_write+0x14/0x20 [ 39.243905] ? do_raw_spin_lock+0xc1/0x200 [ 39.248129] ? kvm_irqfd_release+0xdd/0x120 [ 39.252443] ? kvm_irqfd_release+0xdd/0x120 [ 39.256756] ? kvm_put_kvm+0x1060/0x1060 [ 39.260813] kvm_vm_release+0x42/0x50 [ 39.264612] __fput+0x36e/0x8c0 [ 39.267885] ? __alloc_file+0x400/0x400 [ 39.271850] ? check_same_owner+0x340/0x340 [ 39.276159] ? kasan_check_write+0x14/0x20 [ 39.280383] ? do_raw_spin_lock+0xc1/0x200 [ 39.284612] ____fput+0x15/0x20 [ 39.287882] task_work_run+0x1e8/0x2a0 [ 39.291757] ? task_work_cancel+0x240/0x240 [ 39.296072] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.301617] ? switch_task_namespaces+0xa2/0xd0 [ 39.306284] do_exit+0x1ae4/0x26e0 [ 39.309816] ? mm_update_next_owner+0x9a0/0x9a0 [ 39.314481] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 39.318712] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.323723] ? kfree+0x1d7/0x210 [ 39.327080] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 39.331308] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.337021] ? is_bpf_text_address+0xd7/0x170 [ 39.341508] ? kernel_text_address+0x79/0xf0 [ 39.345906] ? __kernel_text_address+0xd/0x40 [ 39.350509] ? unwind_get_return_address+0x61/0xa0 [ 39.355434] ? __save_stack_trace+0x8d/0xf0 [ 39.359749] ? save_stack+0xa9/0xd0 [ 39.363369] ? save_stack+0x43/0xd0 [ 39.366988] ? __kasan_slab_free+0x11a/0x170 [ 39.371386] ? kasan_slab_free+0xe/0x10 [ 39.375355] ? putname+0xf2/0x130 [ 39.378803] ? __x64_sys_openat+0x9d/0x100 [ 39.383031] ? do_syscall_64+0x1b9/0x820 [ 39.387087] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.392445] ? trace_hardirqs_off+0xb8/0x2b0 [ 39.396845] ? kasan_check_read+0x11/0x20 [ 39.400986] ? do_raw_spin_unlock+0xa7/0x2f0 [ 39.405386] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.409790] ? initcall_blacklisted+0x9a/0x1e0 [ 39.414369] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 39.419466] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.425179] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.430782] ? do_vfs_ioctl+0x201/0x1720 [ 39.434839] ? rcu_is_watching+0x8c/0x150 [ 39.438974] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.443355] ? ioctl_preallocate+0x300/0x300 [ 39.447765] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.453293] ? __fget_light+0x2f7/0x440 [ 39.457256] ? fget_raw+0x20/0x20 [ 39.460703] ? putname+0xf2/0x130 [ 39.464148] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.469153] ? kmem_cache_free+0x246/0x280 [ 39.473376] ? putname+0xf7/0x130 [ 39.476822] do_group_exit+0x177/0x440 [ 39.480702] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.485008] ? __ia32_sys_exit+0x50/0x50 [ 39.489056] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.494149] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.499679] ? ksys_ioctl+0x81/0xd0 [ 39.503298] __x64_sys_exit_group+0x3e/0x50 [ 39.507618] do_syscall_64+0x1b9/0x820 [ 39.511499] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.516852] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.521775] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.526613] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 39.531628] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.536635] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.541653] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.546492] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.551670] RIP: 0033:0x43f028 [ 39.554856] Code: Bad RIP value. [ 39.558204] RSP: 002b:00007ffd568458a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.565910] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 39.573171] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 39.580438] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 39.587767] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 39.595033] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 39.602296] [ 39.602300] ====================================================== [ 39.602303] WARNING: possible circular locking dependency detected [ 39.602305] 4.18.0+ #209 Not tainted [ 39.602309] ------------------------------------------------------ [ 39.602312] syz-executor470/4398 is trying to acquire lock: [ 39.602314] 000000000aec3605 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 39.602322] [ 39.602325] but task is already holding lock: [ 39.602327] 000000000ee7a4ff (report_lock){....}, at: kasan_report+0x8e/0x110 [ 39.602345] [ 39.602347] which lock already depends on the new lock. [ 39.602349] [ 39.602350] [ 39.602353] the existing dependency chain (in reverse order) is: [ 39.602354] [ 39.602355] -> #3 (report_lock){....}: [ 39.602364] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.602366] kasan_report+0x8e/0x110 [ 39.602369] __asan_report_load8_noabort+0x14/0x20 [ 39.602371] __schedule+0xf54/0x1df0 [ 39.602374] preempt_schedule_common+0x22/0x60 [ 39.602376] _cond_resched+0x1d/0x30 [ 39.602381] wait_for_completion+0xa5/0x8d0 [ 39.602384] __synchronize_srcu+0x189/0x240 [ 39.602387] synchronize_srcu+0x335/0x56f [ 39.602390] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.602392] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.602395] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.602397] kvm_put_kvm+0x73f/0x1060 [ 39.602399] kvm_vm_release+0x42/0x50 [ 39.602401] __fput+0x36e/0x8c0 [ 39.602403] ____fput+0x15/0x20 [ 39.602405] task_work_run+0x1e8/0x2a0 [ 39.602408] do_exit+0x1ae4/0x26e0 [ 39.602410] do_group_exit+0x177/0x440 [ 39.602412] __x64_sys_exit_group+0x3e/0x50 [ 39.602415] do_syscall_64+0x1b9/0x820 [ 39.602417] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.602419] [ 39.602420] -> #2 (&rq->lock){-.-.}: [ 39.602427] _raw_spin_lock+0x2a/0x40 [ 39.602430] task_fork_fair+0x93/0x680 [ 39.602432] sched_fork+0x44b/0xbd0 [ 39.602434] copy_process+0x235e/0x7ad0 [ 39.602436] _do_fork+0x1ca/0x1170 [ 39.602438] kernel_thread+0x34/0x40 [ 39.602440] rest_init+0x22/0xe4 [ 39.602442] start_kernel+0x913/0x94e [ 39.602445] x86_64_start_reservations+0x29/0x2b [ 39.602447] x86_64_start_kernel+0x76/0x79 [ 39.602450] secondary_startup_64+0xa4/0xb0 [ 39.602451] [ 39.602452] -> #1 (&p->pi_lock){-.-.}: [ 39.602460] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.602462] try_to_wake_up+0xd2/0x1250 [ 39.602464] wake_up_process+0x10/0x20 [ 39.602467] __up.isra.1+0x1c0/0x2a0 [ 39.602468] up+0x13c/0x1c0 [ 39.602477] __up_console_sem+0xbe/0x1b0 [ 39.602479] console_unlock+0x506/0x10d0 [ 39.602482] vprintk_emit+0x33a/0x910 [ 39.602484] vprintk_default+0x28/0x30 [ 39.602486] vprintk_func+0x7a/0x117 [ 39.602488] printk+0xa7/0xcf [ 39.602490] load_umh+0x51/0xbd [ 39.602492] do_one_initcall+0x127/0x838 [ 39.602495] kernel_init_freeable+0x4bb/0x5ae [ 39.602497] kernel_init+0x11/0x1b3 [ 39.602499] ret_from_fork+0x3a/0x50 [ 39.602500] [ 39.602502] -> #0 ((console_sem).lock){-...}: [ 39.602509] lock_acquire+0x1e4/0x4f0 [ 39.602512] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.602514] down_trylock+0x13/0x70 [ 39.602517] __down_trylock_console_sem+0xae/0x200 [ 39.602519] console_trylock+0x15/0xa0 [ 39.602521] vprintk_emit+0x31f/0x910 [ 39.602523] vprintk_default+0x28/0x30 [ 39.602526] vprintk_func+0x7a/0x117 [ 39.602528] printk+0xa7/0xcf [ 39.602530] kasan_report+0x9e/0x110 [ 39.602532] __asan_report_load8_noabort+0x14/0x20 [ 39.602535] __schedule+0xf54/0x1df0 [ 39.602537] preempt_schedule_common+0x22/0x60 [ 39.602539] _cond_resched+0x1d/0x30 [ 39.602542] wait_for_completion+0xa5/0x8d0 [ 39.602544] __synchronize_srcu+0x189/0x240 [ 39.602547] synchronize_srcu+0x335/0x56f [ 39.602550] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.602553] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.602555] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.602558] kvm_put_kvm+0x73f/0x1060 [ 39.602560] kvm_vm_release+0x42/0x50 [ 39.602562] __fput+0x36e/0x8c0 [ 39.602564] ____fput+0x15/0x20 [ 39.602566] task_work_run+0x1e8/0x2a0 [ 39.602569] do_exit+0x1ae4/0x26e0 [ 39.602571] do_group_exit+0x177/0x440 [ 39.602574] __x64_sys_exit_group+0x3e/0x50 [ 39.602576] do_syscall_64+0x1b9/0x820 [ 39.602579] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.602580] [ 39.602582] other info that might help us debug this: [ 39.602584] [ 39.602585] Chain exists of: [ 39.602587] (console_sem).lock --> &rq->lock --> report_lock [ 39.602596] [ 39.602599] Possible unsafe locking scenario: [ 39.602600] [ 39.602602] CPU0 CPU1 [ 39.602605] ---- ---- [ 39.602606] lock(report_lock); [ 39.602611] lock(&rq->lock); [ 39.602616] lock(report_lock); [ 39.602620] lock((console_sem).lock); [ 39.602625] [ 39.602626] *** DEADLOCK *** [ 39.602628] [ 39.602630] 2 locks held by syz-executor470/4398: [ 39.602631] #0: 00000000b2f03d35 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 39.602640] #1: 000000000ee7a4ff (report_lock){....}, at: kasan_report+0x8e/0x110 [ 39.602650] [ 39.602651] stack backtrace: [ 39.602655] CPU: 0 PID: 4398 Comm: syz-executor470 Not tainted 4.18.0+ #209 [ 39.602659] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.602661] Call Trace: [ 39.602663] dump_stack+0x1c9/0x2b4 [ 39.602666] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.602668] ? vprintk_func+0x100/0x117 [ 39.602671] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 39.602673] ? save_trace+0xe0/0x290 [ 39.602675] __lock_acquire+0x3449/0x5020 [ 39.602677] ? mark_held_locks+0x160/0x160 [ 39.602680] ? mark_held_locks+0x160/0x160 [ 39.602682] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 39.602684] ? is_bpf_text_address+0xd7/0x170 [ 39.602687] ? kernel_text_address+0x79/0xf0 [ 39.602689] ? __kernel_text_address+0xd/0x40 [ 39.602692] ? __save_stack_trace+0x8d/0xf0 [ 39.602694] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 39.602696] ? save_trace+0x290/0x290 [ 39.602699] ? save_stack_trace+0x1a/0x20 [ 39.602701] ? save_trace+0xe0/0x290 [ 39.602703] ? graph_lock+0x170/0x170 [ 39.602706] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.602708] lock_acquire+0x1e4/0x4f0 [ 39.602710] ? down_trylock+0x13/0x70 [ 39.602712] ? lock_release+0x9f0/0x9f0 [ 39.602715] ? trace_hardirqs_off+0xb8/0x2b0 [ 39.602717] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.602719] ? trace_hardirqs_off+0xb8/0x2b0 [ 39.602721] ? log_store+0x34f/0x4c0 [ 39.602724] ? vprintk_emit+0x31f/0x910 [ 39.602726] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.602728] ? down_trylock+0x13/0x70 [ 39.602730] down_trylock+0x13/0x70 [ 39.602733] __down_trylock_console_sem+0xae/0x200 [ 39.602735] console_trylock+0x15/0xa0 [ 39.602737] vprintk_emit+0x31f/0x910 [ 39.602739] ? wake_up_klogd+0x110/0x110 [ 39.602742] ? run_rebalance_domains+0x4c0/0x4c0 [ 39.602744] ? kasan_check_read+0x11/0x20 [ 39.602746] ? rcu_is_watching+0x8c/0x150 [ 39.602748] ? rcu_pm_notify+0xc0/0xc0 [ 39.602751] ? lock_acquire+0x1e4/0x4f0 [ 39.602753] ? kasan_report+0x8e/0x110 [ 39.602755] ? __schedule+0xf54/0x1df0 [ 39.602757] vprintk_default+0x28/0x30 [ 39.602759] vprintk_func+0x7a/0x117 [ 39.602761] printk+0xa7/0xcf [ 39.602764] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.602766] ? kasan_check_write+0x14/0x20 [ 39.602768] ? do_raw_spin_lock+0xc1/0x200 [ 39.602770] ? do_raw_spin_lock+0xc1/0x200 [ 39.602773] kasan_report+0x9e/0x110 [ 39.602775] __asan_report_load8_noabort+0x14/0x20 [ 39.602777] __schedule+0xf54/0x1df0 [ 39.602780] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.602782] ? __sched_text_start+0x8/0x8 [ 39.602784] ? __call_srcu+0x7e7/0x1040 [ 39.602787] ? check_same_owner+0x340/0x340 [ 39.602789] ? mark_held_locks+0x160/0x160 [ 39.602791] ? find_held_lock+0x36/0x1c0 [ 39.602794] preempt_schedule_common+0x22/0x60 [ 39.602796] _cond_resched+0x1d/0x30 [ 39.602798] wait_for_completion+0xa5/0x8d0 [ 39.602801] ? wait_for_completion_interruptible+0x950/0x950 [ 39.602804] ? __lockdep_init_map+0x105/0x590 [ 39.602806] ? __init_waitqueue_head+0x9e/0x150 [ 39.602809] ? init_wait_entry+0x1c0/0x1c0 [ 39.602811] __synchronize_srcu+0x189/0x240 [ 39.602813] ? call_srcu+0x10/0x10 [ 39.602816] ? rcu_unexpedite_gp+0x20/0x20 [ 39.602818] synchronize_srcu+0x335/0x56f [ 39.602820] ? lock_downgrade+0x8f0/0x8f0 [ 39.602823] ? synchronize_srcu_expedited+0x20/0x20 [ 39.602825] ? kasan_check_read+0x11/0x20 [ 39.602828] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 39.602830] ? kasan_check_write+0x14/0x20 [ 39.602833] ? do_raw_spin_lock+0xc1/0x200 [ 39.602835] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.602838] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 39.602840] ? kvfree+0x61/0x70 [ 39.602843] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.602845] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.602848] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.602850] ? kvm_arch_sync_events+0x30/0x30 [ 39.602853] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.602855] ? mmu_notifier_unregister+0x474/0x600 [ 39.602858] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.602860] ? kfree+0x111/0x210 [ 39.602862] ? __mmu_notifier_register+0x30/0x30 [ 39.602864] ? __free_pages+0x10a/0x190 [ 39.602867] ? free_unref_page+0x930/0x930 [ 39.602869] kvm_put_kvm+0x73f/0x1060 [ 39.602871] ? kvm_write_guest_cached+0x40/0x40 [ 39.602874] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.602876] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.602879] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.602881] ? kasan_check_write+0x14/0x20 [ 39.602883] ? do_raw_spin_lock+0xc1/0x200 [ 39.602885] ? kvm_irqfd_release+0xdd/0x120 [ 39.602888] ? kvm_irqfd_release+0xdd/0x120 [ 39.602890] ? kvm_put_kvm+0x1060/0x1060 [ 39.602892] kvm_vm_release+0x42/0x50 [ 39.602894] __fput+0x36e/0x8c0 [ 39.602896] ? __alloc_file+0x400/0x400 [ 39.602899] ? check_same_owner+0x340/0x340 [ 39.602901] ? kasan_check_write+0x14/0x20 [ 39.602903] ? do_raw_spin_lock+0xc1/0x200 [ 39.602905] ____fput+0x15/0x20 [ 39.602907] task_work_run+0x1e8/0x2a0 [ 39.602910] ? task_work_cancel+0x240/0x240 [ 39.602912] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.602915] ? switch_task_namespaces+0xa2/0xd0 [ 39.602917] do_exit+0x1ae4/0x26e0 [ 39.602919] ? mm_update_next_owner+0x9a0/0x9a0 [ 39.602922] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 39.602924] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.602926] ? kfree+0x1d7/0x210 [ 39.602929] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 39.602931] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.602934] ? is_bpf_text_address+0xd7/0x170 [ 39.602935] ? kernel_ [ 39.602941] Lost 55 message(s)! [ 40.687913] Shutting down cpus with NMI [ 41.746675] Dumping ftrace buffer: [ 41.750201] (ftrace buffer empty) [ 41.753897] Kernel Offset: disabled [ 41.757506] Rebooting in 86400 seconds..