[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 20.001499] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.749923] random: sshd: uninitialized urandom read (32 bytes read) [ 25.108603] random: sshd: uninitialized urandom read (32 bytes read) [ 25.665072] random: sshd: uninitialized urandom read (32 bytes read) [ 25.842521] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.11' (ECDSA) to the list of known hosts. [ 31.438986] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.536283] 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. [ 31.562379] ================================================================== [ 31.572215] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.578445] Read of size 8 at addr ffff8801cae38058 by task syz-executor741/4291 [ 31.585973] [ 31.587600] CPU: 0 PID: 4291 Comm: syz-executor741 Not tainted 4.19.0-rc2+ #226 [ 31.595050] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.604399] Call Trace: [ 31.606993] dump_stack+0x1c9/0x2b4 [ 31.610626] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.615813] ? printk+0xa7/0xcf [ 31.619091] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.623849] ? __schedule+0xf54/0x1df0 [ 31.627736] print_address_description+0x6c/0x20b [ 31.632579] ? __schedule+0xf54/0x1df0 [ 31.636470] kasan_report.cold.7+0x242/0x30d [ 31.640883] __asan_report_load8_noabort+0x14/0x20 [ 31.645810] __schedule+0xf54/0x1df0 [ 31.649525] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.654628] ? __sched_text_start+0x8/0x8 [ 31.658774] ? __call_srcu+0x7e7/0x1040 [ 31.662762] ? check_same_owner+0x340/0x340 [ 31.667077] ? mark_held_locks+0x160/0x160 [ 31.671308] ? find_held_lock+0x36/0x1c0 [ 31.675371] preempt_schedule_common+0x22/0x60 [ 31.679950] _cond_resched+0x1d/0x30 [ 31.683664] wait_for_completion+0xa5/0x8d0 [ 31.687991] ? wait_for_completion_interruptible+0x950/0x950 [ 31.693791] ? __lockdep_init_map+0x105/0x590 [ 31.698290] ? __init_waitqueue_head+0x9e/0x150 [ 31.702957] ? init_wait_entry+0x1c0/0x1c0 [ 31.707237] __synchronize_srcu+0x189/0x240 [ 31.711557] ? call_srcu+0x10/0x10 [ 31.715095] ? rcu_unexpedite_gp+0x20/0x20 [ 31.719335] synchronize_srcu+0x335/0x56f [ 31.723496] ? lock_downgrade+0x8f0/0x8f0 [ 31.727643] ? synchronize_srcu_expedited+0x20/0x20 [ 31.732662] ? kasan_check_read+0x11/0x20 [ 31.736810] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.741392] ? kasan_check_write+0x14/0x20 [ 31.745623] ? do_raw_spin_lock+0xc1/0x200 [ 31.749858] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.755566] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.761018] ? kvfree+0x61/0x70 [ 31.764297] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.769375] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.773437] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.777863] ? kvm_arch_sync_events+0x30/0x30 [ 31.782376] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.787913] ? mmu_notifier_unregister+0x474/0x600 [ 31.792839] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.797244] ? kfree+0x111/0x210 [ 31.800607] ? __mmu_notifier_register+0x30/0x30 [ 31.805365] ? __free_pages+0x10a/0x190 [ 31.809338] ? free_unref_page+0x930/0x930 [ 31.813670] kvm_put_kvm+0x73f/0x1060 [ 31.817485] ? kvm_write_guest_cached+0x40/0x40 [ 31.822162] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.826651] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.831146] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.835729] ? kasan_check_write+0x14/0x20 [ 31.839960] ? do_raw_spin_lock+0xc1/0x200 [ 31.844220] ? kvm_irqfd_release+0xdd/0x120 [ 31.848550] ? kvm_irqfd_release+0xdd/0x120 [ 31.852872] ? kvm_put_kvm+0x1060/0x1060 [ 31.856930] kvm_vm_release+0x42/0x50 [ 31.860727] __fput+0x38a/0xa40 [ 31.864003] ? __alloc_file+0x400/0x400 [ 31.867979] ? check_same_owner+0x340/0x340 [ 31.872313] ? kasan_check_write+0x14/0x20 [ 31.876542] ? do_raw_spin_lock+0xc1/0x200 [ 31.880772] ____fput+0x15/0x20 [ 31.884048] task_work_run+0x1e8/0x2a0 [ 31.887932] ? task_work_cancel+0x240/0x240 [ 31.892257] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.897792] ? switch_task_namespaces+0xa2/0xd0 [ 31.902470] do_exit+0x1ae4/0x26e0 [ 31.906023] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.910692] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.914927] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.919966] ? kfree+0x1d7/0x210 [ 31.923340] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.927585] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.933298] ? is_bpf_text_address+0xd7/0x170 [ 31.937792] ? kernel_text_address+0x79/0xf0 [ 31.942198] ? __kernel_text_address+0xd/0x40 [ 31.946699] ? unwind_get_return_address+0x61/0xa0 [ 31.951632] ? __save_stack_trace+0x8d/0xf0 [ 31.955960] ? save_stack+0xa9/0xd0 [ 31.959584] ? save_stack+0x43/0xd0 [ 31.963205] ? __kasan_slab_free+0x11a/0x170 [ 31.967621] ? kasan_slab_free+0xe/0x10 [ 31.971598] ? putname+0xf2/0x130 [ 31.975057] ? __x64_sys_openat+0x9d/0x100 [ 31.979292] ? do_syscall_64+0x1b9/0x820 [ 31.983356] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.988725] ? trace_hardirqs_off+0xb8/0x2c0 [ 31.993156] ? kasan_check_read+0x11/0x20 [ 31.997310] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.001717] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.006143] ? initcall_blacklisted+0x9a/0x1e0 [ 32.010729] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.015846] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.021647] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.027183] ? do_vfs_ioctl+0x201/0x1720 [ 32.031242] ? rcu_is_watching+0x8c/0x150 [ 32.035392] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.039712] ? ioctl_preallocate+0x300/0x300 [ 32.044119] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.049656] ? __fget_light+0x2f7/0x440 [ 32.053627] ? fget_raw+0x20/0x20 [ 32.057078] ? putname+0xf2/0x130 [ 32.060530] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.065546] ? kmem_cache_free+0x246/0x280 [ 32.069779] ? putname+0xf7/0x130 [ 32.073238] do_group_exit+0x177/0x440 [ 32.077126] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.081459] ? __ia32_sys_exit+0x50/0x50 [ 32.085526] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.090631] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.096170] ? ksys_ioctl+0x81/0xd0 [ 32.099803] __x64_sys_exit_group+0x3e/0x50 [ 32.104124] do_syscall_64+0x1b9/0x820 [ 32.108012] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.113394] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.118330] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.123178] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 32.128200] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.133232] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.138081] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.143268] RIP: 0033:0x43ef08 [ 32.146486] Code: Bad RIP value. [ 32.149869] RSP: 002b:00007ffeb8900688 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.157574] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.164836] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.172097] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.179366] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.186632] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.193905] [ 32.195544] Allocated by task 4291: [ 32.199193] save_stack+0x43/0xd0 [ 32.202645] kasan_kmalloc+0xc4/0xe0 [ 32.206360] kasan_slab_alloc+0x12/0x20 [ 32.210330] kmem_cache_alloc+0x12e/0x710 [ 32.214481] vmx_create_vcpu+0xcf/0x2830 [ 32.218540] kvm_arch_vcpu_create+0xe5/0x220 [ 32.222950] kvm_vm_ioctl+0x488/0x1d80 [ 32.226839] do_vfs_ioctl+0x1de/0x1720 [ 32.230722] ksys_ioctl+0xa9/0xd0 [ 32.234171] __x64_sys_ioctl+0x73/0xb0 [ 32.238054] do_syscall_64+0x1b9/0x820 [ 32.241940] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.247114] [ 32.248736] Freed by task 4291: [ 32.252019] save_stack+0x43/0xd0 [ 32.255478] __kasan_slab_free+0x11a/0x170 [ 32.259721] kasan_slab_free+0xe/0x10 [ 32.263525] kmem_cache_free+0x86/0x280 [ 32.267501] vmx_free_vcpu+0x26b/0x300 [ 32.271386] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.275793] kvm_put_kvm+0x73f/0x1060 [ 32.279593] kvm_vm_release+0x42/0x50 [ 32.283392] __fput+0x38a/0xa40 [ 32.286665] ____fput+0x15/0x20 [ 32.289939] task_work_run+0x1e8/0x2a0 [ 32.293822] do_exit+0x1ae4/0x26e0 [ 32.297359] do_group_exit+0x177/0x440 [ 32.301240] __x64_sys_exit_group+0x3e/0x50 [ 32.305586] do_syscall_64+0x1b9/0x820 [ 32.309485] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.314673] [ 32.316302] The buggy address belongs to the object at ffff8801cae38040 [ 32.316302] which belongs to the cache kvm_vcpu of size 23872 [ 32.328932] The buggy address is located 24 bytes inside of [ 32.328932] 23872-byte region [ffff8801cae38040, ffff8801cae3dd80) [ 32.341002] The buggy address belongs to the page: [ 32.345939] page:ffffea00072b8e00 count:1 mapcount:0 mapping:ffff8801d9fd8080 index:0x0 compound_mapcount: 0 [ 32.355911] flags: 0x2fffc0000008100(slab|head) [ 32.360587] raw: 02fffc0000008100 ffff8801d61a3b48 ffff8801d61a3b48 ffff8801d9fd8080 [ 32.368475] raw: 0000000000000000 ffff8801cae38040 0000000100000001 0000000000000000 [ 32.376357] page dumped because: kasan: bad access detected [ 32.382056] [ 32.383675] Memory state around the buggy address: [ 32.388599] ffff8801cae37f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.395955] ffff8801cae37f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.403308] >ffff8801cae38000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.410657] ^ [ 32.416890] ffff8801cae38080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.424273] ffff8801cae38100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.431621] ================================================================== [ 32.438974] Kernel panic - not syncing: panic_on_warn set ... [ 32.438974] [ 32.446348] CPU: 0 PID: 4291 Comm: syz-executor741 Tainted: G B 4.19.0-rc2+ #226 [ 32.455184] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.464539] Call Trace: [ 32.467134] dump_stack+0x1c9/0x2b4 [ 32.470769] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.475960] ? lock_downgrade+0x8f0/0x8f0 [ 32.480114] ? __schedule+0xf54/0x1df0 [ 32.484012] panic+0x238/0x4e7 [ 32.487228] ? add_taint.cold.5+0x16/0x16 [ 32.491388] ? print_shadow_for_address+0xba/0x116 [ 32.496323] ? trace_hardirqs_off+0xaf/0x2c0 [ 32.500735] ? trace_hardirqs_off+0x77/0x2c0 [ 32.505148] ? __schedule+0xf54/0x1df0 [ 32.509509] kasan_end_report+0x47/0x4f [ 32.513486] kasan_report.cold.7+0x76/0x30d [ 32.517822] __asan_report_load8_noabort+0x14/0x20 [ 32.522772] __schedule+0xf54/0x1df0 [ 32.526486] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.531597] ? __sched_text_start+0x8/0x8 [ 32.535748] ? __call_srcu+0x7e7/0x1040 [ 32.539730] ? check_same_owner+0x340/0x340 [ 32.544055] ? mark_held_locks+0x160/0x160 [ 32.548285] ? find_held_lock+0x36/0x1c0 [ 32.552356] preempt_schedule_common+0x22/0x60 [ 32.556937] _cond_resched+0x1d/0x30 [ 32.560652] wait_for_completion+0xa5/0x8d0 [ 32.564974] ? wait_for_completion_interruptible+0x950/0x950 [ 32.570777] ? __lockdep_init_map+0x105/0x590 [ 32.575273] ? __init_waitqueue_head+0x9e/0x150 [ 32.579942] ? init_wait_entry+0x1c0/0x1c0 [ 32.584179] __synchronize_srcu+0x189/0x240 [ 32.588520] ? call_srcu+0x10/0x10 [ 32.592064] ? rcu_unexpedite_gp+0x20/0x20 [ 32.596307] synchronize_srcu+0x335/0x56f [ 32.600462] ? lock_downgrade+0x8f0/0x8f0 [ 32.604615] ? synchronize_srcu_expedited+0x20/0x20 [ 32.609635] ? kasan_check_read+0x11/0x20 [ 32.613782] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.618798] ? kasan_check_write+0x14/0x20 [ 32.623032] ? do_raw_spin_lock+0xc1/0x200 [ 32.627274] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.632990] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.638442] ? kvfree+0x61/0x70 [ 32.641734] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.646752] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.650810] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.655221] ? kvm_arch_sync_events+0x30/0x30 [ 32.659726] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.665267] ? mmu_notifier_unregister+0x474/0x600 [ 32.670191] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.674599] ? kfree+0x111/0x210 [ 32.677982] ? __mmu_notifier_register+0x30/0x30 [ 32.682738] ? __free_pages+0x10a/0x190 [ 32.686708] ? free_unref_page+0x930/0x930 [ 32.690949] kvm_put_kvm+0x73f/0x1060 [ 32.694781] ? kvm_write_guest_cached+0x40/0x40 [ 32.699462] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.703961] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.708461] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.713052] ? kasan_check_write+0x14/0x20 [ 32.717283] ? do_raw_spin_lock+0xc1/0x200 [ 32.721523] ? kvm_irqfd_release+0xdd/0x120 [ 32.725840] ? kvm_irqfd_release+0xdd/0x120 [ 32.730164] ? kvm_put_kvm+0x1060/0x1060 [ 32.734226] kvm_vm_release+0x42/0x50 [ 32.738027] __fput+0x38a/0xa40 [ 32.741305] ? __alloc_file+0x400/0x400 [ 32.745280] ? check_same_owner+0x340/0x340 [ 32.749601] ? kasan_check_write+0x14/0x20 [ 32.753834] ? do_raw_spin_lock+0xc1/0x200 [ 32.758071] ____fput+0x15/0x20 [ 32.761352] task_work_run+0x1e8/0x2a0 [ 32.765238] ? task_work_cancel+0x240/0x240 [ 32.769564] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.775100] ? switch_task_namespaces+0xa2/0xd0 [ 32.779769] do_exit+0x1ae4/0x26e0 [ 32.783315] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.787989] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.792225] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.797240] ? kfree+0x1d7/0x210 [ 32.800611] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.804847] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.810560] ? is_bpf_text_address+0xd7/0x170 [ 32.815056] ? kernel_text_address+0x79/0xf0 [ 32.819470] ? __kernel_text_address+0xd/0x40 [ 32.823969] ? unwind_get_return_address+0x61/0xa0 [ 32.828901] ? __save_stack_trace+0x8d/0xf0 [ 32.833232] ? save_stack+0xa9/0xd0 [ 32.836861] ? save_stack+0x43/0xd0 [ 32.840507] ? __kasan_slab_free+0x11a/0x170 [ 32.844911] ? kasan_slab_free+0xe/0x10 [ 32.848882] ? putname+0xf2/0x130 [ 32.852333] ? __x64_sys_openat+0x9d/0x100 [ 32.856570] ? do_syscall_64+0x1b9/0x820 [ 32.860632] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.865999] ? trace_hardirqs_off+0xb8/0x2c0 [ 32.870405] ? kasan_check_read+0x11/0x20 [ 32.874551] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.878958] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.883370] ? initcall_blacklisted+0x9a/0x1e0 [ 32.887957] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.893064] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.898776] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.904316] ? do_vfs_ioctl+0x201/0x1720 [ 32.908395] ? rcu_is_watching+0x8c/0x150 [ 32.912546] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.916885] ? ioctl_preallocate+0x300/0x300 [ 32.921298] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.926840] ? __fget_light+0x2f7/0x440 [ 32.930814] ? fget_raw+0x20/0x20 [ 32.934266] ? putname+0xf2/0x130 [ 32.937719] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.942738] ? kmem_cache_free+0x246/0x280 [ 32.946974] ? putname+0xf7/0x130 [ 32.950439] do_group_exit+0x177/0x440 [ 32.954337] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.958655] ? __ia32_sys_exit+0x50/0x50 [ 32.962713] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.967818] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.973357] ? ksys_ioctl+0x81/0xd0 [ 32.976988] __x64_sys_exit_group+0x3e/0x50 [ 32.981313] do_syscall_64+0x1b9/0x820 [ 32.985199] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.990561] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.995503] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.000350] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 33.005380] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.010405] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.015263] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.020465] RIP: 0033:0x43ef08 [ 33.023675] Code: Bad RIP value. [ 33.027037] RSP: 002b:00007ffeb8900688 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.034756] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 33.042033] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.049315] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.056596] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.063867] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.071149] [ 33.071154] ====================================================== [ 33.071160] WARNING: possible circular locking dependency detected [ 33.071164] 4.19.0-rc2+ #226 Not tainted [ 33.071169] ------------------------------------------------------ [ 33.071174] syz-executor741/4291 is trying to acquire lock: [ 33.071177] 000000006e17d33b ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.071192] [ 33.071196] but task is already holding lock: [ 33.071199] 00000000961aeb41 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.071213] [ 33.071217] which lock already depends on the new lock. [ 33.071219] [ 33.071222] [ 33.071227] the existing dependency chain (in reverse order) is: [ 33.071229] [ 33.071231] -> #3 (report_lock){....}: [ 33.071245] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.071249] kasan_report+0x8e/0x110 [ 33.071254] __asan_report_load8_noabort+0x14/0x20 [ 33.071257] __schedule+0xf54/0x1df0 [ 33.071262] preempt_schedule_common+0x22/0x60 [ 33.071265] _cond_resched+0x1d/0x30 [ 33.071270] wait_for_completion+0xa5/0x8d0 [ 33.071274] __synchronize_srcu+0x189/0x240 [ 33.071278] synchronize_srcu+0x335/0x56f [ 33.071283] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.071286] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.071291] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.071294] kvm_put_kvm+0x73f/0x1060 [ 33.071298] kvm_vm_release+0x42/0x50 [ 33.071302] __fput+0x38a/0xa40 [ 33.071305] ____fput+0x15/0x20 [ 33.071309] task_work_run+0x1e8/0x2a0 [ 33.071312] do_exit+0x1ae4/0x26e0 [ 33.071316] do_group_exit+0x177/0x440 [ 33.071320] __x64_sys_exit_group+0x3e/0x50 [ 33.071324] do_syscall_64+0x1b9/0x820 [ 33.071329] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.071331] [ 33.071333] -> #2 (&rq->lock){-.-.}: [ 33.071347] _raw_spin_lock+0x2a/0x40 [ 33.071350] task_fork_fair+0x93/0x680 [ 33.071354] sched_fork+0x44b/0xbd0 [ 33.071358] copy_process+0x235e/0x7af0 [ 33.071361] _do_fork+0x1ca/0x1170 [ 33.071365] kernel_thread+0x34/0x40 [ 33.071369] rest_init+0x22/0xe4 [ 33.071372] start_kernel+0x913/0x94e [ 33.071377] x86_64_start_reservations+0x29/0x2b [ 33.071381] x86_64_start_kernel+0x76/0x79 [ 33.071385] secondary_startup_64+0xa4/0xb0 [ 33.071387] [ 33.071389] -> #1 (&p->pi_lock){-.-.}: [ 33.071403] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.071407] try_to_wake_up+0xd2/0x1250 [ 33.071411] wake_up_process+0x10/0x20 [ 33.071415] __up.isra.1+0x1c0/0x2a0 [ 33.071418] up+0x13c/0x1c0 [ 33.071422] __up_console_sem+0xbe/0x1b0 [ 33.071426] console_unlock+0x506/0x10e0 [ 33.071429] vprintk_emit+0x33a/0x910 [ 33.071433] vprintk_default+0x28/0x30 [ 33.071437] vprintk_func+0x7a/0x117 [ 33.071440] printk+0xa7/0xcf [ 33.071444] load_umh+0x51/0xbd [ 33.071457] do_one_initcall+0x127/0x838 [ 33.071461] kernel_init_freeable+0x4bb/0x5ae [ 33.071465] kernel_init+0x11/0x1b3 [ 33.071469] ret_from_fork+0x3a/0x50 [ 33.071471] [ 33.071473] -> #0 ((console_sem).lock){-...}: [ 33.071487] lock_acquire+0x1e4/0x4f0 [ 33.071497] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.071501] down_trylock+0x13/0x70 [ 33.071505] __down_trylock_console_sem+0xae/0x200 [ 33.071509] console_trylock+0x15/0xa0 [ 33.071513] vprintk_emit+0x31f/0x910 [ 33.071517] vprintk_default+0x28/0x30 [ 33.071520] vprintk_func+0x7a/0x117 [ 33.071524] printk+0xa7/0xcf [ 33.071528] kasan_report+0x9e/0x110 [ 33.071532] __asan_report_load8_noabort+0x14/0x20 [ 33.071536] __schedule+0xf54/0x1df0 [ 33.071540] preempt_schedule_common+0x22/0x60 [ 33.071544] _cond_resched+0x1d/0x30 [ 33.071548] wait_for_completion+0xa5/0x8d0 [ 33.071552] __synchronize_srcu+0x189/0x240 [ 33.071556] synchronize_srcu+0x335/0x56f [ 33.071561] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.071565] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.071569] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.071573] kvm_put_kvm+0x73f/0x1060 [ 33.071577] kvm_vm_release+0x42/0x50 [ 33.071580] __fput+0x38a/0xa40 [ 33.071584] ____fput+0x15/0x20 [ 33.071588] task_work_run+0x1e8/0x2a0 [ 33.071592] do_exit+0x1ae4/0x26e0 [ 33.071595] do_group_exit+0x177/0x440 [ 33.071600] __x64_sys_exit_group+0x3e/0x50 [ 33.071603] do_syscall_64+0x1b9/0x820 [ 33.071608] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.071610] [ 33.071615] other info that might help us debug this: [ 33.071617] [ 33.071620] Chain exists of: [ 33.071622] (console_sem).lock --> &rq->lock --> report_lock [ 33.071640] [ 33.071644] Possible unsafe locking scenario: [ 33.071646] [ 33.071650] CPU0 CPU1 [ 33.071654] ---- ---- [ 33.071657] lock(report_lock); [ 33.071666] lock(&rq->lock); [ 33.071675] lock(report_lock); [ 33.071683] lock((console_sem).lock); [ 33.071691] [ 33.071694] *** DEADLOCK *** [ 33.071697] [ 33.071701] 2 locks held by syz-executor741/4291: [ 33.071703] #0: 00000000a186b567 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.071720] #1: 00000000961aeb41 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.071736] [ 33.071739] stack backtrace: [ 33.071745] CPU: 0 PID: 4291 Comm: syz-executor741 Not tainted 4.19.0-rc2+ #226 [ 33.071752] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.071755] Call Trace: [ 33.071759] dump_stack+0x1c9/0x2b4 [ 33.071764] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.071767] ? vprintk_func+0x100/0x117 [ 33.071772] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.071776] ? save_trace+0xe0/0x290 [ 33.071780] __lock_acquire+0x3449/0x5020 [ 33.071784] ? mark_held_locks+0x160/0x160 [ 33.071788] ? mark_held_locks+0x160/0x160 [ 33.071792] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.071796] ? is_bpf_text_address+0xd7/0x170 [ 33.071800] ? kernel_text_address+0x79/0xf0 [ 33.071804] ? __kernel_text_address+0xd/0x40 [ 33.071808] ? __save_stack_trace+0x8d/0xf0 [ 33.071813] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.071817] ? save_trace+0x290/0x290 [ 33.071821] ? save_stack_trace+0x1a/0x20 [ 33.071824] ? save_trace+0xe0/0x290 [ 33.071828] ? graph_lock+0x170/0x170 [ 33.071833] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.071836] lock_acquire+0x1e4/0x4f0 [ 33.071840] ? down_trylock+0x13/0x70 [ 33.071844] ? lock_release+0x9f0/0x9f0 [ 33.071848] ? trace_hardirqs_off+0xb8/0x2c0 [ 33.071852] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.071856] ? trace_hardirqs_off+0xb8/0x2c0 [ 33.071860] ? log_store+0x34f/0x4c0 [ 33.071864] ? vprintk_emit+0x31f/0x910 [ 33.071868] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.071872] ? down_trylock+0x13/0x70 [ 33.071875] down_trylock+0x13/0x70 [ 33.071880] __down_trylock_console_sem+0xae/0x200 [ 33.071884] console_trylock+0x15/0xa0 [ 33.071887] vprintk_emit+0x31f/0x910 [ 33.071891] ? wake_up_klogd+0x110/0x110 [ 33.071895] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.071899] ? kasan_check_read+0x11/0x20 [ 33.071903] ? rcu_is_watching+0x8c/0x150 [ 33.071907] ? rcu_pm_notify+0xc0/0xc0 [ 33.071911] ? lock_acquire+0x1e4/0x4f0 [ 33.071915] ? kasan_report+0x8e/0x110 [ 33.071919] ? __schedule+0xf54/0x1df0 [ 33.071922] vprintk_default+0x28/0x30 [ 33.071926] vprintk_func+0x7a/0x117 [ 33.071929] printk+0xa7/0xcf [ 33.071934] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.071938] ? kasan_check_write+0x14/0x20 [ 33.071942] ? do_raw_spin_lock+0xc1/0x200 [ 33.071946] ? do_raw_spin_lock+0xc1/0x200 [ 33.071949] kasan_report+0x9e/0x110 [ 33.071954] __asan_report_load8_noabort+0x14/0x20 [ 33.071957] __schedule+0xf54/0x1df0 [ 33.071962] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.071966] ? __sched_text_start+0x8/0x8 [ 33.071970] ? __call_srcu+0x7e7/0x1040 [ 33.071974] ? check_same_owner+0x340/0x340 [ 33.071978] ? mark_held_locks+0x160/0x160 [ 33.071982] ? find_held_lock+0x36/0x1c0 [ 33.071986] preempt_schedule_common+0x22/0x60 [ 33.071989] _cond_resched+0x1d/0x30 [ 33.071994] wait_for_completion+0xa5/0x8d0 [ 33.071999] ? wait_for_completion_interruptible+0x950/0x950 [ 33.072003] ? __lockdep_init_map+0x105/0x590 [ 33.072008] ? __init_waitqueue_head+0x9e/0x150 [ 33.072012] ? init_wait_entry+0x1c0/0x1c0 [ 33.072016] __synchronize_srcu+0x189/0x240 [ 33.072019] ? call_srcu+0x10/0x10 [ 33.072023] ? rcu_unexpedite_gp+0x20/0x20 [ 33.072027] synchronize_srcu+0x335/0x56f [ 33.072031] ? lock_downgrade+0x8f0/0x8f0 [ 33.072036] ? synchronize_srcu_expedited+0x20/0x20 [ 33.072040] ? kasan_check_read+0x11/0x20 [ 33.072044] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.072048] ? kasan_check_write+0x14/0x20 [ 33.072052] ? do_raw_spin_lock+0xc1/0x200 [ 33.072057] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.072062] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.072065] ? kvfree+0x61/0x70 [ 33.072070] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.072074] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.072078] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.072082] ? kvm_arch_sync_events+0x30/0x30 [ 33.072087] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.072091] ? mmu_notifier_unregister+0x474/0x600 [ 33.072095] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.072099] ? kfree+0x111/0x210 [ 33.072103] ? __mmu_notifier_register+0x30/0x30 [ 33.072107] ? __free_pages+0x10a/0x190 [ 33.072111] ? free_unref_page+0x930/0x930 [ 33.072115] kvm_put_kvm+0x73f/0x1060 [ 33.072119] ? kvm_write_guest_cached+0x40/0x40 [ 33.072123] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.072127] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.072131] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.072135] ? kasan_check_write+0x14/0x20 [ 33.072139] ? do_raw_spin_lock+0xc1/0x200 [ 33.072143] ? kvm_irqfd_release+0xdd/0x120 [ 33.072147] ? kvm_irqfd_release+0xdd/0x120 [ 33.072151] ? kvm_put_kvm+0x1060/0x1060 [ 33.072155] kvm_vm_release+0x42/0x50 [ 33.072159] __fput+0x38a/0xa40 [ 33.072162] ? __alloc_file+0x400/0x400 [ 33.072166] ? check_same_owner+0x340/0x340 [ 33.072170] ? kasan_check_write+0x14/0x20 [ 33.072174] ? do_raw_spin_lock+0xc1/0x200 [ 33.072178] ____fput+0x15/0x20 [ 33.072182] task_work_run+0x1e8/0x2a0 [ 33.072186] ? task_work_cancel+0x240/0x240 [ 33.072190] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.072195] ? switch_task_namespaces+0xa2/0xd0 [ 33.072198] do_exit+0x1ae4/0x26e0 [ 33.072202] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.072206] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.072211] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.072214] ? kfree+0x1d7/0x210 [ 33.072218] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.072223] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.072227] ? is_bpf_text_address+0xd7/0x170 [ 33.072230] ? [ 33.072238] Lost 54 message(s)! [ 34.140941] Shutting down cpus with NMI [ 35.200880] Dumping ftrace buffer: [ 35.204458] (ftrace buffer empty) [ 35.208151] Kernel Offset: disabled [ 35.211759] Rebooting in 86400 seconds..