[....] 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[ 22.491825] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.136451] random: sshd: uninitialized urandom read (32 bytes read) [ 26.408970] random: sshd: uninitialized urandom read (32 bytes read) [ 26.947987] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.4' (ECDSA) to the list of known hosts. [ 32.675605] urandom_read: 1 callbacks suppressed [ 32.675611] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.775350] 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.799372] ================================================================== [ 32.809230] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.815459] Read of size 8 at addr ffff8801d9f78058 by task syz-executor807/4456 [ 32.822978] [ 32.824616] CPU: 1 PID: 4456 Comm: syz-executor807 Not tainted 4.18.0+ #208 [ 32.831706] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.841048] Call Trace: [ 32.843634] dump_stack+0x1c9/0x2b4 [ 32.847263] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.852451] ? printk+0xa7/0xcf [ 32.855726] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.860487] ? __schedule+0xf54/0x1df0 [ 32.864374] print_address_description+0x6c/0x20b [ 32.869214] ? __schedule+0xf54/0x1df0 [ 32.873103] kasan_report.cold.7+0x242/0x30d [ 32.877514] __asan_report_load8_noabort+0x14/0x20 [ 32.882438] __schedule+0xf54/0x1df0 [ 32.886151] ? __sched_text_start+0x8/0x8 [ 32.890299] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 32.895401] ? __call_srcu+0x7e7/0x1040 [ 32.899379] ? check_same_owner+0x340/0x340 [ 32.903697] ? mark_held_locks+0x160/0x160 [ 32.907928] ? find_held_lock+0x36/0x1c0 [ 32.911988] preempt_schedule_common+0x22/0x60 [ 32.916581] _cond_resched+0x1d/0x30 [ 32.920292] wait_for_completion+0xa5/0x8d0 [ 32.924617] ? wait_for_completion_interruptible+0x950/0x950 [ 32.930413] ? __lockdep_init_map+0x105/0x590 [ 32.934908] ? __init_waitqueue_head+0x9e/0x150 [ 32.939573] ? init_wait_entry+0x1c0/0x1c0 [ 32.943808] __synchronize_srcu+0x189/0x240 [ 32.948132] ? call_srcu+0x10/0x10 [ 32.951671] ? rcu_unexpedite_gp+0x20/0x20 [ 32.955910] synchronize_srcu+0x335/0x56f [ 32.960054] ? lock_downgrade+0x8f0/0x8f0 [ 32.964197] ? synchronize_srcu_expedited+0x20/0x20 [ 32.969215] ? kasan_check_read+0x11/0x20 [ 32.973362] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.977941] ? kasan_check_write+0x14/0x20 [ 32.982176] ? do_raw_spin_lock+0xc1/0x200 [ 32.986412] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.992120] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.997566] ? kvfree+0x61/0x70 [ 33.000849] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.005863] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.009920] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.014329] ? kvm_arch_sync_events+0x30/0x30 [ 33.018826] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.024365] ? mmu_notifier_unregister+0x474/0x600 [ 33.029615] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.034029] ? kfree+0x111/0x210 [ 33.037396] ? __mmu_notifier_register+0x30/0x30 [ 33.042156] ? __free_pages+0x10a/0x190 [ 33.046134] ? free_unref_page+0x930/0x930 [ 33.050384] kvm_put_kvm+0x73f/0x1060 [ 33.054192] ? kvm_write_guest_cached+0x40/0x40 [ 33.058865] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.063359] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.067854] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.072440] ? kasan_check_write+0x14/0x20 [ 33.076672] ? do_raw_spin_lock+0xc1/0x200 [ 33.080906] ? kvm_irqfd_release+0xdd/0x120 [ 33.085222] ? kvm_irqfd_release+0xdd/0x120 [ 33.089542] ? kvm_put_kvm+0x1060/0x1060 [ 33.093599] kvm_vm_release+0x42/0x50 [ 33.097400] __fput+0x36e/0x8c0 [ 33.100676] ? __alloc_file+0x400/0x400 [ 33.104654] ? check_same_owner+0x340/0x340 [ 33.108976] ? kasan_check_write+0x14/0x20 [ 33.113220] ? do_raw_spin_lock+0xc1/0x200 [ 33.117455] ____fput+0x15/0x20 [ 33.120731] task_work_run+0x1e8/0x2a0 [ 33.124624] ? task_work_cancel+0x240/0x240 [ 33.128952] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.134488] ? switch_task_namespaces+0xa2/0xd0 [ 33.139161] do_exit+0x1ae4/0x26e0 [ 33.142704] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.147381] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.151617] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.156628] ? kfree+0x1d7/0x210 [ 33.160513] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.164753] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.170572] ? is_bpf_text_address+0xd7/0x170 [ 33.175070] ? kernel_text_address+0x79/0xf0 [ 33.179475] ? __kernel_text_address+0xd/0x40 [ 33.183968] ? unwind_get_return_address+0x61/0xa0 [ 33.188906] ? __save_stack_trace+0x8d/0xf0 [ 33.193233] ? save_stack+0xa9/0xd0 [ 33.196859] ? save_stack+0x43/0xd0 [ 33.200482] ? __kasan_slab_free+0x11a/0x170 [ 33.204888] ? kasan_slab_free+0xe/0x10 [ 33.208856] ? putname+0xf2/0x130 [ 33.212307] ? __x64_sys_openat+0x9d/0x100 [ 33.216540] ? do_syscall_64+0x1b9/0x820 [ 33.220600] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.225962] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.230371] ? kasan_check_read+0x11/0x20 [ 33.234514] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.238921] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.243329] ? initcall_blacklisted+0x9a/0x1e0 [ 33.247916] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.253031] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.258743] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.264280] ? do_vfs_ioctl+0x201/0x1720 [ 33.268337] ? rcu_is_watching+0x8c/0x150 [ 33.272483] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.276810] ? ioctl_preallocate+0x300/0x300 [ 33.281233] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.286772] ? __fget_light+0x2f7/0x440 [ 33.290743] ? fget_raw+0x20/0x20 [ 33.294195] ? putname+0xf2/0x130 [ 33.297653] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.302665] ? kmem_cache_free+0x246/0x280 [ 33.306898] ? putname+0xf7/0x130 [ 33.310351] do_group_exit+0x177/0x440 [ 33.314235] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.318555] ? __ia32_sys_exit+0x50/0x50 [ 33.322612] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.327717] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.333255] ? ksys_ioctl+0x81/0xd0 [ 33.336891] __x64_sys_exit_group+0x3e/0x50 [ 33.341214] do_syscall_64+0x1b9/0x820 [ 33.345102] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.350465] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.355394] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.360234] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.365252] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.370269] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.375117] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.380302] RIP: 0033:0x43ecd8 [ 33.383493] Code: Bad RIP value. [ 33.386862] RSP: 002b:00007ffde16af5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.394566] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 33.401832] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.409093] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.416357] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.423619] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.430888] [ 33.432510] Allocated by task 4456: [ 33.436159] save_stack+0x43/0xd0 [ 33.439609] kasan_kmalloc+0xc4/0xe0 [ 33.443318] kasan_slab_alloc+0x12/0x20 [ 33.447288] kmem_cache_alloc+0x12e/0x710 [ 33.451430] vmx_create_vcpu+0xcf/0x2830 [ 33.455487] kvm_arch_vcpu_create+0xe5/0x220 [ 33.459893] kvm_vm_ioctl+0x488/0x1d80 [ 33.463784] do_vfs_ioctl+0x1de/0x1720 [ 33.467668] ksys_ioctl+0xa9/0xd0 [ 33.471117] __x64_sys_ioctl+0x73/0xb0 [ 33.475027] do_syscall_64+0x1b9/0x820 [ 33.478919] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.484099] [ 33.485716] Freed by task 4456: [ 33.488991] save_stack+0x43/0xd0 [ 33.492449] __kasan_slab_free+0x11a/0x170 [ 33.496679] kasan_slab_free+0xe/0x10 [ 33.500479] kmem_cache_free+0x86/0x280 [ 33.504450] vmx_free_vcpu+0x26b/0x300 [ 33.508331] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.512741] kvm_put_kvm+0x73f/0x1060 [ 33.516543] kvm_vm_release+0x42/0x50 [ 33.520381] __fput+0x36e/0x8c0 [ 33.523657] ____fput+0x15/0x20 [ 33.526934] task_work_run+0x1e8/0x2a0 [ 33.530818] do_exit+0x1ae4/0x26e0 [ 33.534355] do_group_exit+0x177/0x440 [ 33.538240] __x64_sys_exit_group+0x3e/0x50 [ 33.542558] do_syscall_64+0x1b9/0x820 [ 33.546444] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.551621] [ 33.553242] The buggy address belongs to the object at ffff8801d9f78040 [ 33.553242] which belongs to the cache kvm_vcpu of size 23872 [ 33.565813] The buggy address is located 24 bytes inside of [ 33.565813] 23872-byte region [ffff8801d9f78040, ffff8801d9f7dd80) [ 33.577768] The buggy address belongs to the page: [ 33.582702] page:ffffea000767de00 count:1 mapcount:0 mapping:ffff8801d86a8300 index:0x0 compound_mapcount: 0 [ 33.592669] flags: 0x2fffc0000008100(slab|head) [ 33.597342] raw: 02fffc0000008100 ffff8801d5248e48 ffff8801d5248e48 ffff8801d86a8300 [ 33.605224] raw: 0000000000000000 ffff8801d9f78040 0000000100000001 0000000000000000 [ 33.613094] page dumped because: kasan: bad access detected [ 33.618787] [ 33.620400] Memory state around the buggy address: [ 33.625324] ffff8801d9f77f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.632676] ffff8801d9f77f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.640031] >ffff8801d9f78000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.647378] ^ [ 33.653600] ffff8801d9f78080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.660954] ffff8801d9f78100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.668300] ================================================================== [ 33.675648] Kernel panic - not syncing: panic_on_warn set ... [ 33.675648] [ 33.683021] CPU: 1 PID: 4456 Comm: syz-executor807 Tainted: G B 4.18.0+ #208 [ 33.691500] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.700845] Call Trace: [ 33.703435] dump_stack+0x1c9/0x2b4 [ 33.707061] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.712250] ? lock_downgrade+0x8f0/0x8f0 [ 33.716396] ? __schedule+0xf54/0x1df0 [ 33.720281] panic+0x238/0x4e7 [ 33.723475] ? add_taint.cold.5+0x16/0x16 [ 33.727626] ? print_shadow_for_address+0xba/0x116 [ 33.732553] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.736982] ? trace_hardirqs_off+0x77/0x2b0 [ 33.741401] ? __schedule+0xf54/0x1df0 [ 33.745287] kasan_end_report+0x47/0x4f [ 33.749271] kasan_report.cold.7+0x76/0x30d [ 33.753601] __asan_report_load8_noabort+0x14/0x20 [ 33.758528] __schedule+0xf54/0x1df0 [ 33.762248] ? __sched_text_start+0x8/0x8 [ 33.766400] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 33.771503] ? __call_srcu+0x7e7/0x1040 [ 33.775485] ? check_same_owner+0x340/0x340 [ 33.779802] ? mark_held_locks+0x160/0x160 [ 33.784051] ? find_held_lock+0x36/0x1c0 [ 33.788115] preempt_schedule_common+0x22/0x60 [ 33.792696] _cond_resched+0x1d/0x30 [ 33.796407] wait_for_completion+0xa5/0x8d0 [ 33.800733] ? wait_for_completion_interruptible+0x950/0x950 [ 33.806535] ? __lockdep_init_map+0x105/0x590 [ 33.811041] ? __init_waitqueue_head+0x9e/0x150 [ 33.815708] ? init_wait_entry+0x1c0/0x1c0 [ 33.819945] __synchronize_srcu+0x189/0x240 [ 33.824309] ? call_srcu+0x10/0x10 [ 33.827852] ? rcu_unexpedite_gp+0x20/0x20 [ 33.832097] synchronize_srcu+0x335/0x56f [ 33.836242] ? lock_downgrade+0x8f0/0x8f0 [ 33.840392] ? synchronize_srcu_expedited+0x20/0x20 [ 33.845410] ? kasan_check_read+0x11/0x20 [ 33.849560] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.854230] ? kasan_check_write+0x14/0x20 [ 33.858461] ? do_raw_spin_lock+0xc1/0x200 [ 33.862699] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.868410] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.873859] ? kvfree+0x61/0x70 [ 33.877143] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.882164] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.886227] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.890637] ? kvm_arch_sync_events+0x30/0x30 [ 33.895138] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.900678] ? mmu_notifier_unregister+0x474/0x600 [ 33.905602] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.910023] ? kfree+0x111/0x210 [ 33.913406] ? __mmu_notifier_register+0x30/0x30 [ 33.918167] ? __free_pages+0x10a/0x190 [ 33.922145] ? free_unref_page+0x930/0x930 [ 33.926389] kvm_put_kvm+0x73f/0x1060 [ 33.930199] ? kvm_write_guest_cached+0x40/0x40 [ 33.934882] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.939379] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.943873] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.948462] ? kasan_check_write+0x14/0x20 [ 33.952700] ? do_raw_spin_lock+0xc1/0x200 [ 33.956938] ? kvm_irqfd_release+0xdd/0x120 [ 33.961258] ? kvm_irqfd_release+0xdd/0x120 [ 33.965584] ? kvm_put_kvm+0x1060/0x1060 [ 33.969647] kvm_vm_release+0x42/0x50 [ 33.973447] __fput+0x36e/0x8c0 [ 33.976732] ? __alloc_file+0x400/0x400 [ 33.980710] ? check_same_owner+0x340/0x340 [ 33.985036] ? kasan_check_write+0x14/0x20 [ 33.989272] ? do_raw_spin_lock+0xc1/0x200 [ 33.993509] ____fput+0x15/0x20 [ 33.996791] task_work_run+0x1e8/0x2a0 [ 34.000680] ? task_work_cancel+0x240/0x240 [ 34.005014] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.010555] ? switch_task_namespaces+0xa2/0xd0 [ 34.015227] do_exit+0x1ae4/0x26e0 [ 34.018775] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.023455] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.027695] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.032710] ? kfree+0x1d7/0x210 [ 34.036079] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.040316] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.046039] ? is_bpf_text_address+0xd7/0x170 [ 34.050536] ? kernel_text_address+0x79/0xf0 [ 34.054943] ? __kernel_text_address+0xd/0x40 [ 34.059438] ? unwind_get_return_address+0x61/0xa0 [ 34.064374] ? __save_stack_trace+0x8d/0xf0 [ 34.068708] ? save_stack+0xa9/0xd0 [ 34.072341] ? save_stack+0x43/0xd0 [ 34.075967] ? __kasan_slab_free+0x11a/0x170 [ 34.080383] ? kasan_slab_free+0xe/0x10 [ 34.084354] ? putname+0xf2/0x130 [ 34.087809] ? __x64_sys_openat+0x9d/0x100 [ 34.092049] ? do_syscall_64+0x1b9/0x820 [ 34.096114] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.101481] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.105896] ? kasan_check_read+0x11/0x20 [ 34.110072] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.114488] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.118901] ? initcall_blacklisted+0x9a/0x1e0 [ 34.123491] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.128600] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.134326] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.139872] ? do_vfs_ioctl+0x201/0x1720 [ 34.143938] ? rcu_is_watching+0x8c/0x150 [ 34.148091] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.152421] ? ioctl_preallocate+0x300/0x300 [ 34.156831] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.163876] ? __fget_light+0x2f7/0x440 [ 34.167853] ? fget_raw+0x20/0x20 [ 34.171305] ? putname+0xf2/0x130 [ 34.174764] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.179782] ? kmem_cache_free+0x246/0x280 [ 34.184024] ? putname+0xf7/0x130 [ 34.187484] do_group_exit+0x177/0x440 [ 34.191372] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.195691] ? __ia32_sys_exit+0x50/0x50 [ 34.199747] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.204852] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.210388] ? ksys_ioctl+0x81/0xd0 [ 34.214023] __x64_sys_exit_group+0x3e/0x50 [ 34.218348] do_syscall_64+0x1b9/0x820 [ 34.222236] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.227599] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.232525] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.237364] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.242382] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.247402] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.252253] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.257440] RIP: 0033:0x43ecd8 [ 34.260632] Code: Bad RIP value. [ 34.263988] RSP: 002b:00007ffde16af5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.271702] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 34.278967] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.286238] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.293501] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.300774] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.308050] [ 34.308056] ====================================================== [ 34.308061] WARNING: possible circular locking dependency detected [ 34.308065] 4.18.0+ #208 Not tainted [ 34.308070] ------------------------------------------------------ [ 34.308075] syz-executor807/4456 is trying to acquire lock: [ 34.308079] 000000005121b603 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.308094] [ 34.308098] but task is already holding lock: [ 34.308101] 00000000d80c4b27 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.308115] [ 34.308120] which lock already depends on the new lock. [ 34.308122] [ 34.308125] [ 34.308130] the existing dependency chain (in reverse order) is: [ 34.308132] [ 34.308134] -> #3 (report_lock){....}: [ 34.308149] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.308153] kasan_report+0x8e/0x110 [ 34.308158] __asan_report_load8_noabort+0x14/0x20 [ 34.308161] __schedule+0xf54/0x1df0 [ 34.308166] preempt_schedule_common+0x22/0x60 [ 34.308170] _cond_resched+0x1d/0x30 [ 34.308174] wait_for_completion+0xa5/0x8d0 [ 34.308178] __synchronize_srcu+0x189/0x240 [ 34.308182] synchronize_srcu+0x335/0x56f [ 34.308187] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.308191] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.308195] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.308199] kvm_put_kvm+0x73f/0x1060 [ 34.308203] kvm_vm_release+0x42/0x50 [ 34.308207] __fput+0x36e/0x8c0 [ 34.308210] ____fput+0x15/0x20 [ 34.308214] task_work_run+0x1e8/0x2a0 [ 34.308218] do_exit+0x1ae4/0x26e0 [ 34.308222] do_group_exit+0x177/0x440 [ 34.308226] __x64_sys_exit_group+0x3e/0x50 [ 34.308230] do_syscall_64+0x1b9/0x820 [ 34.308234] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.308237] [ 34.308239] -> #2 (&rq->lock){-.-.}: [ 34.308253] _raw_spin_lock+0x2a/0x40 [ 34.308257] task_fork_fair+0x93/0x680 [ 34.308260] sched_fork+0x44b/0xbd0 [ 34.308265] copy_process+0x235e/0x7ad0 [ 34.308269] _do_fork+0x1ca/0x1170 [ 34.308272] kernel_thread+0x34/0x40 [ 34.308276] rest_init+0x22/0xe4 [ 34.308280] start_kernel+0x913/0x94e [ 34.308284] x86_64_start_reservations+0x29/0x2b [ 34.308289] x86_64_start_kernel+0x76/0x79 [ 34.308293] secondary_startup_64+0xa4/0xb0 [ 34.308295] [ 34.308297] -> #1 (&p->pi_lock){-.-.}: [ 34.308312] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.308316] try_to_wake_up+0xd2/0x1250 [ 34.308320] wake_up_process+0x10/0x20 [ 34.308323] __up.isra.1+0x1c0/0x2a0 [ 34.308327] up+0x13c/0x1c0 [ 34.308331] __up_console_sem+0xbe/0x1b0 [ 34.308335] console_unlock+0x506/0x10d0 [ 34.308339] vprintk_emit+0x33a/0x910 [ 34.308343] vprintk_default+0x28/0x30 [ 34.308346] vprintk_func+0x7a/0x117 [ 34.308350] printk+0xa7/0xcf [ 34.308353] load_umh+0x51/0xbd [ 34.308357] do_one_initcall+0x127/0x838 [ 34.308362] kernel_init_freeable+0x4bb/0x5ae [ 34.308366] kernel_init+0x11/0x1b3 [ 34.308369] ret_from_fork+0x3a/0x50 [ 34.308372] [ 34.308374] -> #0 ((console_sem).lock){-...}: [ 34.308389] lock_acquire+0x1e4/0x4f0 [ 34.308393] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.308397] down_trylock+0x13/0x70 [ 34.308401] __down_trylock_console_sem+0xae/0x200 [ 34.308405] console_trylock+0x15/0xa0 [ 34.308409] vprintk_emit+0x31f/0x910 [ 34.308413] vprintk_default+0x28/0x30 [ 34.308417] vprintk_func+0x7a/0x117 [ 34.308420] printk+0xa7/0xcf [ 34.308424] kasan_report+0x9e/0x110 [ 34.308428] __asan_report_load8_noabort+0x14/0x20 [ 34.308432] __schedule+0xf54/0x1df0 [ 34.308437] preempt_schedule_common+0x22/0x60 [ 34.308440] _cond_resched+0x1d/0x30 [ 34.308445] wait_for_completion+0xa5/0x8d0 [ 34.308449] __synchronize_srcu+0x189/0x240 [ 34.308453] synchronize_srcu+0x335/0x56f [ 34.308458] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.308462] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.308466] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.308470] kvm_put_kvm+0x73f/0x1060 [ 34.308474] kvm_vm_release+0x42/0x50 [ 34.308478] __fput+0x36e/0x8c0 [ 34.308481] ____fput+0x15/0x20 [ 34.308485] task_work_run+0x1e8/0x2a0 [ 34.308489] do_exit+0x1ae4/0x26e0 [ 34.308493] do_group_exit+0x177/0x440 [ 34.308497] __x64_sys_exit_group+0x3e/0x50 [ 34.308501] do_syscall_64+0x1b9/0x820 [ 34.308506] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.308508] [ 34.308512] other info that might help us debug this: [ 34.308515] [ 34.308518] Chain exists of: [ 34.308520] (console_sem).lock --> &rq->lock --> report_lock [ 34.308538] [ 34.308542] Possible unsafe locking scenario: [ 34.308544] [ 34.308548] CPU0 CPU1 [ 34.308553] ---- ---- [ 34.308555] lock(report_lock); [ 34.308564] lock(&rq->lock); [ 34.308574] lock(report_lock); [ 34.308582] lock((console_sem).lock); [ 34.308590] [ 34.308593] *** DEADLOCK *** [ 34.308595] [ 34.308599] 2 locks held by syz-executor807/4456: [ 34.308601] #0: 00000000eeeb423a (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.308618] #1: 00000000d80c4b27 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.308635] [ 34.308638] stack backtrace: [ 34.308644] CPU: 1 PID: 4456 Comm: syz-executor807 Not tainted 4.18.0+ #208 [ 34.308651] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.308655] Call Trace: [ 34.308658] dump_stack+0x1c9/0x2b4 [ 34.308663] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.308667] ? vprintk_func+0x100/0x117 [ 34.308672] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.308676] ? save_trace+0xe0/0x290 [ 34.308680] __lock_acquire+0x3449/0x5020 [ 34.308684] ? mark_held_locks+0x160/0x160 [ 34.308688] ? mark_held_locks+0x160/0x160 [ 34.308692] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.308696] ? is_bpf_text_address+0xd7/0x170 [ 34.308700] ? kernel_text_address+0x79/0xf0 [ 34.308705] ? __kernel_text_address+0xd/0x40 [ 34.308709] ? __save_stack_trace+0x8d/0xf0 [ 34.308713] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.308717] ? save_trace+0x290/0x290 [ 34.308721] ? save_stack_trace+0x1a/0x20 [ 34.308725] ? save_trace+0xe0/0x290 [ 34.308729] ? graph_lock+0x170/0x170 [ 34.308734] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.308737] lock_acquire+0x1e4/0x4f0 [ 34.308741] ? down_trylock+0x13/0x70 [ 34.308745] ? lock_release+0x9f0/0x9f0 [ 34.308749] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.308753] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.308763] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.308767] ? log_store+0x34f/0x4c0 [ 34.308771] ? vprintk_emit+0x31f/0x910 [ 34.308776] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.308779] ? down_trylock+0x13/0x70 [ 34.308783] down_trylock+0x13/0x70 [ 34.308788] __down_trylock_console_sem+0xae/0x200 [ 34.308792] console_trylock+0x15/0xa0 [ 34.308795] vprintk_emit+0x31f/0x910 [ 34.308799] ? wake_up_klogd+0x110/0x110 [ 34.308804] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.308808] ? kasan_check_read+0x11/0x20 [ 34.308812] ? rcu_is_watching+0x8c/0x150 [ 34.308816] ? rcu_pm_notify+0xc0/0xc0 [ 34.308820] ? lock_acquire+0x1e4/0x4f0 [ 34.308824] ? kasan_report+0x8e/0x110 [ 34.308827] ? __schedule+0xf54/0x1df0 [ 34.308831] vprintk_default+0x28/0x30 [ 34.308835] vprintk_func+0x7a/0x117 [ 34.308839] printk+0xa7/0xcf [ 34.308843] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.308847] ? kasan_check_write+0x14/0x20 [ 34.308851] ? do_raw_spin_lock+0xc1/0x200 [ 34.308855] ? do_raw_spin_lock+0xc1/0x200 [ 34.308859] kasan_report+0x9e/0x110 [ 34.308863] __asan_report_load8_noabort+0x14/0x20 [ 34.308867] __schedule+0xf54/0x1df0 [ 34.308871] ? __sched_text_start+0x8/0x8 [ 34.308876] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 34.308880] ? __call_srcu+0x7e7/0x1040 [ 34.308884] ? check_same_owner+0x340/0x340 [ 34.308888] ? mark_held_locks+0x160/0x160 [ 34.308892] ? find_held_lock+0x36/0x1c0 [ 34.308897] preempt_schedule_common+0x22/0x60 [ 34.308900] _cond_resched+0x1d/0x30 [ 34.308905] wait_for_completion+0xa5/0x8d0 [ 34.308910] ? wait_for_completion_interruptible+0x950/0x950 [ 34.308914] ? __lockdep_init_map+0x105/0x590 [ 34.308918] ? __init_waitqueue_head+0x9e/0x150 [ 34.308922] ? init_wait_entry+0x1c0/0x1c0 [ 34.308927] __synchronize_srcu+0x189/0x240 [ 34.308930] ? call_srcu+0x10/0x10 [ 34.308935] ? rcu_unexpedite_gp+0x20/0x20 [ 34.308939] synchronize_srcu+0x335/0x56f [ 34.308943] ? lock_downgrade+0x8f0/0x8f0 [ 34.308947] ? synchronize_srcu_expedited+0x20/0x20 [ 34.308951] ? kasan_check_read+0x11/0x20 [ 34.308956] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.308960] ? kasan_check_write+0x14/0x20 [ 34.308964] ? do_raw_spin_lock+0xc1/0x200 [ 34.308969] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.308974] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.308977] ? kvfree+0x61/0x70 [ 34.308982] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.308986] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.308990] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.308994] ? kvm_arch_sync_events+0x30/0x30 [ 34.309008] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.309012] ? mmu_notifier_unregister+0x474/0x600 [ 34.309016] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.309020] ? kfree+0x111/0x210 [ 34.309025] ? __mmu_notifier_register+0x30/0x30 [ 34.309028] ? __free_pages+0x10a/0x190 [ 34.309033] ? free_unref_page+0x930/0x930 [ 34.309036] kvm_put_kvm+0x73f/0x1060 [ 34.309041] ? kvm_write_guest_cached+0x40/0x40 [ 34.309045] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.309049] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.309054] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.309058] ? kasan_check_write+0x14/0x20 [ 34.309062] ? do_raw_spin_lock+0xc1/0x200 [ 34.309066] ? kvm_irqfd_release+0xdd/0x120 [ 34.309070] ? kvm_irqfd_release+0xdd/0x120 [ 34.309074] ? kvm_put_kvm+0x1060/0x1060 [ 34.309078] kvm_vm_release+0x42/0x50 [ 34.309082] __fput+0x36e/0x8c0 [ 34.309086] ? __alloc_file+0x400/0x400 [ 34.309090] ? check_same_owner+0x340/0x340 [ 34.309094] ? kasan_check_write+0x14/0x20 [ 34.309098] ? do_raw_spin_lock+0xc1/0x200 [ 34.309102] ____fput+0x15/0x20 [ 34.309106] task_work_run+0x1e8/0x2a0 [ 34.309110] ? task_work_cancel+0x240/0x240 [ 34.309115] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.309119] ? switch_task_namespaces+0xa2/0xd0 [ 34.309123] do_exit+0x1ae4/0x26e0 [ 34.309127] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.309131] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.309136] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.309139] ? kfree+0x1d7/0x210 [ 34.309144] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.309149] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.309153] ? is_bpf_text_address+0xd7/0x170 [ 34.309156] ? kernel_ [ 34.309163] Lost 54 message(s)! [ 35.378559] Shutting down cpus with NMI [ 36.438418] Dumping ftrace buffer: [ 36.441950] (ftrace buffer empty) [ 36.445655] Kernel Offset: disabled [ 36.449266] Rebooting in 86400 seconds..