[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.668886] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.413165] random: sshd: uninitialized urandom read (32 bytes read) [ 27.811881] random: sshd: uninitialized urandom read (32 bytes read) [ 28.370131] random: sshd: uninitialized urandom read (32 bytes read) [ 28.546204] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.210' (ECDSA) to the list of known hosts. [ 34.085071] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.184460] L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/l1tf.html for details. [ 34.210191] ================================================================== [ 34.220044] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.226272] Read of size 8 at addr ffff8801bca90058 by task syz-executor221/4650 [ 34.233794] [ 34.235425] CPU: 1 PID: 4650 Comm: syz-executor221 Not tainted 4.19.0-rc2+ #2 [ 34.242698] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.252044] Call Trace: [ 34.254815] dump_stack+0x1c9/0x2b4 [ 34.258446] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.263643] ? printk+0xa7/0xcf [ 34.266929] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.271687] ? __schedule+0xf54/0x1df0 [ 34.275577] print_address_description+0x6c/0x20b [ 34.280418] ? __schedule+0xf54/0x1df0 [ 34.284301] kasan_report.cold.7+0x242/0x30d [ 34.288724] __asan_report_load8_noabort+0x14/0x20 [ 34.293659] __schedule+0xf54/0x1df0 [ 34.297373] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.302488] ? __sched_text_start+0x8/0x8 [ 34.306644] ? __call_srcu+0x7e7/0x1040 [ 34.310633] ? check_same_owner+0x340/0x340 [ 34.314959] ? mark_held_locks+0x160/0x160 [ 34.319192] ? find_held_lock+0x36/0x1c0 [ 34.323254] preempt_schedule_common+0x22/0x60 [ 34.327839] _cond_resched+0x1d/0x30 [ 34.331558] wait_for_completion+0xa5/0x8d0 [ 34.335883] ? wait_for_completion_interruptible+0x950/0x950 [ 34.341682] ? __lockdep_init_map+0x105/0x590 [ 34.346178] ? __init_waitqueue_head+0x9e/0x150 [ 34.350847] ? init_wait_entry+0x1c0/0x1c0 [ 34.355096] __synchronize_srcu+0x189/0x240 [ 34.359424] ? call_srcu+0x10/0x10 [ 34.362973] ? rcu_unexpedite_gp+0x20/0x20 [ 34.367223] synchronize_srcu+0x335/0x56f [ 34.371374] ? lock_downgrade+0x8f0/0x8f0 [ 34.375521] ? synchronize_srcu_expedited+0x20/0x20 [ 34.380539] ? kasan_check_read+0x11/0x20 [ 34.384683] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.389262] ? kasan_check_write+0x14/0x20 [ 34.393492] ? do_raw_spin_lock+0xc1/0x200 [ 34.397729] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.403438] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.408887] ? kvfree+0x61/0x70 [ 34.412168] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.417183] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.421242] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.425656] ? kvm_arch_sync_events+0x30/0x30 [ 34.430160] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.435697] ? mmu_notifier_unregister+0x474/0x600 [ 34.440635] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.445041] ? kfree+0x111/0x210 [ 34.448406] ? __mmu_notifier_register+0x30/0x30 [ 34.453168] ? __free_pages+0x10a/0x190 [ 34.457152] ? free_unref_page+0x930/0x930 [ 34.461393] kvm_put_kvm+0x73f/0x1060 [ 34.465201] ? kvm_write_guest_cached+0x40/0x40 [ 34.469873] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.474361] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.478859] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.483452] ? kasan_check_write+0x14/0x20 [ 34.487687] ? do_raw_spin_lock+0xc1/0x200 [ 34.491920] ? kvm_irqfd_release+0xdd/0x120 [ 34.496238] ? kvm_irqfd_release+0xdd/0x120 [ 34.500564] ? kvm_put_kvm+0x1060/0x1060 [ 34.504630] kvm_vm_release+0x42/0x50 [ 34.508434] __fput+0x38a/0xa40 [ 34.511712] ? __alloc_file+0x400/0x400 [ 34.515699] ? check_same_owner+0x340/0x340 [ 34.520021] ? kasan_check_write+0x14/0x20 [ 34.524257] ? do_raw_spin_lock+0xc1/0x200 [ 34.528489] ____fput+0x15/0x20 [ 34.531765] task_work_run+0x1e8/0x2a0 [ 34.535653] ? task_work_cancel+0x240/0x240 [ 34.539976] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.545513] ? switch_task_namespaces+0xa2/0xd0 [ 34.550184] do_exit+0x1ae4/0x26e0 [ 34.553729] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.558403] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.562647] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.567758] ? kfree+0x1d7/0x210 [ 34.571121] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.575363] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.581071] ? is_bpf_text_address+0xd7/0x170 [ 34.585563] ? kernel_text_address+0x79/0xf0 [ 34.589970] ? __kernel_text_address+0xd/0x40 [ 34.594460] ? unwind_get_return_address+0x61/0xa0 [ 34.599391] ? __save_stack_trace+0x8d/0xf0 [ 34.603721] ? save_stack+0xa9/0xd0 [ 34.607343] ? save_stack+0x43/0xd0 [ 34.610968] ? __kasan_slab_free+0x11a/0x170 [ 34.615375] ? kasan_slab_free+0xe/0x10 [ 34.619351] ? putname+0xf2/0x130 [ 34.622812] ? __x64_sys_openat+0x9d/0x100 [ 34.627061] ? do_syscall_64+0x1b9/0x820 [ 34.631120] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.636491] ? trace_hardirqs_off+0xb8/0x2c0 [ 34.640896] ? kasan_check_read+0x11/0x20 [ 34.645045] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.649453] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.653870] ? initcall_blacklisted+0x9a/0x1e0 [ 34.658456] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.663567] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.669294] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.674831] ? do_vfs_ioctl+0x201/0x1720 [ 34.678887] ? rcu_is_watching+0x8c/0x150 [ 34.683027] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.687346] ? ioctl_preallocate+0x300/0x300 [ 34.692187] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.697724] ? __fget_light+0x2f7/0x440 [ 34.701695] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.707226] ? smack_file_ioctl+0x210/0x3c0 [ 34.711545] ? fget_raw+0x20/0x20 [ 34.714996] ? smack_file_lock+0x2e0/0x2e0 [ 34.719240] do_group_exit+0x177/0x440 [ 34.723124] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.727446] ? __ia32_sys_exit+0x50/0x50 [ 34.731503] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.736604] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.742151] ? ksys_ioctl+0x81/0xd0 [ 34.745779] __x64_sys_exit_group+0x3e/0x50 [ 34.750100] do_syscall_64+0x1b9/0x820 [ 34.753985] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.759349] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.764276] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.769115] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 34.774137] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.779164] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.784010] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.789190] RIP: 0033:0x43ef08 [ 34.792382] Code: Bad RIP value. [ 34.795743] RSP: 002b:00007ffececb51d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.803452] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.810741] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.818010] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.825273] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.832537] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.839809] [ 34.841430] Allocated by task 4650: [ 34.845060] save_stack+0x43/0xd0 [ 34.848506] kasan_kmalloc+0xc4/0xe0 [ 34.852213] kasan_slab_alloc+0x12/0x20 [ 34.856181] kmem_cache_alloc+0x12e/0x710 [ 34.860325] vmx_create_vcpu+0xcf/0x2830 [ 34.864379] kvm_arch_vcpu_create+0xe5/0x220 [ 34.868781] kvm_vm_ioctl+0x488/0x1d80 [ 34.872665] do_vfs_ioctl+0x1de/0x1720 [ 34.876546] ksys_ioctl+0xa9/0xd0 [ 34.879993] __x64_sys_ioctl+0x73/0xb0 [ 34.883879] do_syscall_64+0x1b9/0x820 [ 34.887781] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.892954] [ 34.894574] Freed by task 4650: [ 34.897852] save_stack+0x43/0xd0 [ 34.901296] __kasan_slab_free+0x11a/0x170 [ 34.905523] kasan_slab_free+0xe/0x10 [ 34.909317] kmem_cache_free+0x86/0x280 [ 34.913284] vmx_free_vcpu+0x26b/0x300 [ 34.917171] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.921579] kvm_put_kvm+0x73f/0x1060 [ 34.925377] kvm_vm_release+0x42/0x50 [ 34.929174] __fput+0x38a/0xa40 [ 34.932444] ____fput+0x15/0x20 [ 34.935716] task_work_run+0x1e8/0x2a0 [ 34.939600] do_exit+0x1ae4/0x26e0 [ 34.943145] do_group_exit+0x177/0x440 [ 34.947026] __x64_sys_exit_group+0x3e/0x50 [ 34.951345] do_syscall_64+0x1b9/0x820 [ 34.955229] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.960401] [ 34.962024] The buggy address belongs to the object at ffff8801bca90040 [ 34.962024] which belongs to the cache kvm_vcpu of size 23872 [ 34.974591] The buggy address is located 24 bytes inside of [ 34.974591] 23872-byte region [ffff8801bca90040, ffff8801bca95d80) [ 34.986550] The buggy address belongs to the page: [ 34.991473] page:ffffea0006f2a400 count:1 mapcount:0 mapping:ffff8801d4d90840 index:0x0 compound_mapcount: 0 [ 35.001436] flags: 0x2fffc0000008100(slab|head) [ 35.006108] raw: 02fffc0000008100 ffff8801d4d96d48 ffff8801d4d96d48 ffff8801d4d90840 [ 35.013985] raw: 0000000000000000 ffff8801bca90040 0000000100000001 0000000000000000 [ 35.021851] page dumped because: kasan: bad access detected [ 35.027545] [ 35.029165] Memory state around the buggy address: [ 35.034091] ffff8801bca8ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.041443] ffff8801bca8ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.048793] >ffff8801bca90000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.056140] ^ [ 35.062373] ffff8801bca90080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.069722] ffff8801bca90100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.077067] ================================================================== [ 35.084417] Kernel panic - not syncing: panic_on_warn set ... [ 35.084417] [ 35.091779] CPU: 1 PID: 4650 Comm: syz-executor221 Tainted: G B 4.19.0-rc2+ #2 [ 35.100432] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.109776] Call Trace: [ 35.112365] dump_stack+0x1c9/0x2b4 [ 35.115990] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.121182] ? lock_downgrade+0x8f0/0x8f0 [ 35.125330] ? __schedule+0xf54/0x1df0 [ 35.129213] panic+0x238/0x4e7 [ 35.132404] ? add_taint.cold.5+0x16/0x16 [ 35.136561] ? print_shadow_for_address+0xba/0x116 [ 35.141484] ? trace_hardirqs_off+0xaf/0x2c0 [ 35.145885] ? trace_hardirqs_off+0x77/0x2c0 [ 35.150290] ? __schedule+0xf54/0x1df0 [ 35.154178] kasan_end_report+0x47/0x4f [ 35.158154] kasan_report.cold.7+0x76/0x30d [ 35.162478] __asan_report_load8_noabort+0x14/0x20 [ 35.167406] __schedule+0xf54/0x1df0 [ 35.171118] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.176224] ? __sched_text_start+0x8/0x8 [ 35.180371] ? __call_srcu+0x7e7/0x1040 [ 35.184348] ? check_same_owner+0x340/0x340 [ 35.188664] ? mark_held_locks+0x160/0x160 [ 35.192891] ? find_held_lock+0x36/0x1c0 [ 35.196952] preempt_schedule_common+0x22/0x60 [ 35.201535] _cond_resched+0x1d/0x30 [ 35.205245] wait_for_completion+0xa5/0x8d0 [ 35.209570] ? wait_for_completion_interruptible+0x950/0x950 [ 35.215366] ? __lockdep_init_map+0x105/0x590 [ 35.219864] ? __init_waitqueue_head+0x9e/0x150 [ 35.224535] ? init_wait_entry+0x1c0/0x1c0 [ 35.228775] __synchronize_srcu+0x189/0x240 [ 35.233097] ? call_srcu+0x10/0x10 [ 35.236645] ? rcu_unexpedite_gp+0x20/0x20 [ 35.240888] synchronize_srcu+0x335/0x56f [ 35.245037] ? lock_downgrade+0x8f0/0x8f0 [ 35.249183] ? synchronize_srcu_expedited+0x20/0x20 [ 35.254207] ? kasan_check_read+0x11/0x20 [ 35.258357] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.262944] ? kasan_check_write+0x14/0x20 [ 35.267179] ? do_raw_spin_lock+0xc1/0x200 [ 35.271436] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.277156] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.282611] ? kvfree+0x61/0x70 [ 35.285901] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.290919] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.294981] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.299386] ? kvm_arch_sync_events+0x30/0x30 [ 35.303881] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.309418] ? mmu_notifier_unregister+0x474/0x600 [ 35.314341] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.318747] ? kfree+0x111/0x210 [ 35.322112] ? __mmu_notifier_register+0x30/0x30 [ 35.326893] ? __free_pages+0x10a/0x190 [ 35.330873] ? free_unref_page+0x930/0x930 [ 35.335116] kvm_put_kvm+0x73f/0x1060 [ 35.338924] ? kvm_write_guest_cached+0x40/0x40 [ 35.343595] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.348092] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.352590] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.357185] ? kasan_check_write+0x14/0x20 [ 35.361416] ? do_raw_spin_lock+0xc1/0x200 [ 35.365655] ? kvm_irqfd_release+0xdd/0x120 [ 35.369973] ? kvm_irqfd_release+0xdd/0x120 [ 35.374297] ? kvm_put_kvm+0x1060/0x1060 [ 35.378358] kvm_vm_release+0x42/0x50 [ 35.382163] __fput+0x38a/0xa40 [ 35.385442] ? __alloc_file+0x400/0x400 [ 35.389416] ? check_same_owner+0x340/0x340 [ 35.393734] ? kasan_check_write+0x14/0x20 [ 35.397964] ? do_raw_spin_lock+0xc1/0x200 [ 35.402197] ____fput+0x15/0x20 [ 35.405475] task_work_run+0x1e8/0x2a0 [ 35.409362] ? task_work_cancel+0x240/0x240 [ 35.413687] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.419222] ? switch_task_namespaces+0xa2/0xd0 [ 35.423890] do_exit+0x1ae4/0x26e0 [ 35.427432] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.432103] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.436337] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.441347] ? kfree+0x1d7/0x210 [ 35.444711] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.448943] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.454741] ? is_bpf_text_address+0xd7/0x170 [ 35.459237] ? kernel_text_address+0x79/0xf0 [ 35.463648] ? __kernel_text_address+0xd/0x40 [ 35.468139] ? unwind_get_return_address+0x61/0xa0 [ 35.473071] ? __save_stack_trace+0x8d/0xf0 [ 35.477396] ? save_stack+0xa9/0xd0 [ 35.481016] ? save_stack+0x43/0xd0 [ 35.484647] ? __kasan_slab_free+0x11a/0x170 [ 35.489049] ? kasan_slab_free+0xe/0x10 [ 35.493021] ? putname+0xf2/0x130 [ 35.496473] ? __x64_sys_openat+0x9d/0x100 [ 35.500709] ? do_syscall_64+0x1b9/0x820 [ 35.504770] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.510131] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.514538] ? kasan_check_read+0x11/0x20 [ 35.518681] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.523084] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.527489] ? initcall_blacklisted+0x9a/0x1e0 [ 35.532070] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.537175] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.542884] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.548420] ? do_vfs_ioctl+0x201/0x1720 [ 35.552477] ? rcu_is_watching+0x8c/0x150 [ 35.556627] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.561403] ? ioctl_preallocate+0x300/0x300 [ 35.565813] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.571348] ? __fget_light+0x2f7/0x440 [ 35.575319] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.580850] ? smack_file_ioctl+0x210/0x3c0 [ 35.585173] ? fget_raw+0x20/0x20 [ 35.588630] ? smack_file_lock+0x2e0/0x2e0 [ 35.592870] do_group_exit+0x177/0x440 [ 35.596751] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.601068] ? __ia32_sys_exit+0x50/0x50 [ 35.605214] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.610314] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.615847] ? ksys_ioctl+0x81/0xd0 [ 35.619476] __x64_sys_exit_group+0x3e/0x50 [ 35.623795] do_syscall_64+0x1b9/0x820 [ 35.627682] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.633045] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.638058] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.642899] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 35.647913] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.652931] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.657772] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.662957] RIP: 0033:0x43ef08 [ 35.666154] Code: Bad RIP value. [ 35.669514] RSP: 002b:00007ffececb51d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.677216] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.684479] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.692187] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.699452] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.706715] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.713989] [ 35.713994] ====================================================== [ 35.714000] WARNING: possible circular locking dependency detected [ 35.714003] 4.19.0-rc2+ #2 Not tainted [ 35.714009] ------------------------------------------------------ [ 35.714014] syz-executor221/4650 is trying to acquire lock: [ 35.714017] 000000006ead2de8 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.714032] [ 35.714036] but task is already holding lock: [ 35.714039] 000000006f20ccb2 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.714053] [ 35.714058] which lock already depends on the new lock. [ 35.714060] [ 35.714063] [ 35.714068] the existing dependency chain (in reverse order) is: [ 35.714070] [ 35.714072] -> #3 (report_lock){....}: [ 35.714087] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.714090] kasan_report+0x8e/0x110 [ 35.714095] __asan_report_load8_noabort+0x14/0x20 [ 35.714099] __schedule+0xf54/0x1df0 [ 35.714103] preempt_schedule_common+0x22/0x60 [ 35.714107] _cond_resched+0x1d/0x30 [ 35.714111] wait_for_completion+0xa5/0x8d0 [ 35.714115] __synchronize_srcu+0x189/0x240 [ 35.714119] synchronize_srcu+0x335/0x56f [ 35.714124] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.714128] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.714133] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.714137] kvm_put_kvm+0x73f/0x1060 [ 35.714146] kvm_vm_release+0x42/0x50 [ 35.714150] __fput+0x38a/0xa40 [ 35.714153] ____fput+0x15/0x20 [ 35.714157] task_work_run+0x1e8/0x2a0 [ 35.714161] do_exit+0x1ae4/0x26e0 [ 35.714165] do_group_exit+0x177/0x440 [ 35.714169] __x64_sys_exit_group+0x3e/0x50 [ 35.714173] do_syscall_64+0x1b9/0x820 [ 35.714178] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.714180] [ 35.714182] -> #2 (&rq->lock){-.-.}: [ 35.714197] _raw_spin_lock+0x2a/0x40 [ 35.714200] task_fork_fair+0x93/0x680 [ 35.714204] sched_fork+0x44b/0xbd0 [ 35.714208] copy_process+0x235e/0x7af0 [ 35.714212] _do_fork+0x1ca/0x1170 [ 35.714216] kernel_thread+0x34/0x40 [ 35.714220] rest_init+0x22/0xe4 [ 35.714224] start_kernel+0x913/0x94e [ 35.714228] x86_64_start_reservations+0x29/0x2b [ 35.714232] x86_64_start_kernel+0x76/0x79 [ 35.714236] secondary_startup_64+0xa4/0xb0 [ 35.714239] [ 35.714241] -> #1 (&p->pi_lock){-.-.}: [ 35.714256] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.714260] try_to_wake_up+0xd2/0x1250 [ 35.714264] wake_up_process+0x10/0x20 [ 35.714267] __up.isra.1+0x1c0/0x2a0 [ 35.714271] up+0x13c/0x1c0 [ 35.714275] __up_console_sem+0xbe/0x1b0 [ 35.714279] console_unlock+0x506/0x10e0 [ 35.714283] vprintk_emit+0x33a/0x910 [ 35.714287] dev_vprintk_emit+0x24c/0x540 [ 35.714291] dev_printk_emit+0xae/0xe0 [ 35.714295] __dev_printk+0xa7/0x110 [ 35.714298] _dev_warn+0x10c/0x170 [ 35.714302] _request_firmware+0xee4/0x14a0 [ 35.714307] request_firmware_work_func+0xeb/0x2e0 [ 35.714311] process_one_work+0xc73/0x1aa0 [ 35.714315] worker_thread+0x189/0x13c0 [ 35.714319] kthread+0x35a/0x420 [ 35.714323] ret_from_fork+0x3a/0x50 [ 35.714325] [ 35.714327] -> #0 ((console_sem).lock){-...}: [ 35.714342] lock_acquire+0x1e4/0x4f0 [ 35.714346] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.714350] down_trylock+0x13/0x70 [ 35.714355] __down_trylock_console_sem+0xae/0x200 [ 35.714358] console_trylock+0x15/0xa0 [ 35.714362] vprintk_emit+0x31f/0x910 [ 35.714366] vprintk_default+0x28/0x30 [ 35.714370] vprintk_func+0x7a/0x117 [ 35.714374] printk+0xa7/0xcf [ 35.714377] kasan_report+0x9e/0x110 [ 35.714382] __asan_report_load8_noabort+0x14/0x20 [ 35.714386] __schedule+0xf54/0x1df0 [ 35.714390] preempt_schedule_common+0x22/0x60 [ 35.714394] _cond_resched+0x1d/0x30 [ 35.714398] wait_for_completion+0xa5/0x8d0 [ 35.714403] __synchronize_srcu+0x189/0x240 [ 35.714407] synchronize_srcu+0x335/0x56f [ 35.714412] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.714416] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.714420] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.714424] kvm_put_kvm+0x73f/0x1060 [ 35.714428] kvm_vm_release+0x42/0x50 [ 35.714431] __fput+0x38a/0xa40 [ 35.714435] ____fput+0x15/0x20 [ 35.714439] task_work_run+0x1e8/0x2a0 [ 35.714443] do_exit+0x1ae4/0x26e0 [ 35.714446] do_group_exit+0x177/0x440 [ 35.714451] __x64_sys_exit_group+0x3e/0x50 [ 35.714455] do_syscall_64+0x1b9/0x820 [ 35.714460] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.714462] [ 35.714466] other info that might help us debug this: [ 35.714468] [ 35.714472] Chain exists of: [ 35.714474] (console_sem).lock --> &rq->lock --> report_lock [ 35.714492] [ 35.714496] Possible unsafe locking scenario: [ 35.714499] [ 35.714503] CPU0 CPU1 [ 35.714507] ---- ---- [ 35.714509] lock(report_lock); [ 35.714519] lock(&rq->lock); [ 35.714528] lock(report_lock); [ 35.714536] lock((console_sem).lock); [ 35.714545] [ 35.714548] *** DEADLOCK *** [ 35.714550] [ 35.714554] 2 locks held by syz-executor221/4650: [ 35.714557] #0: 00000000dd8c788a (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.714574] #1: 000000006f20ccb2 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.714591] [ 35.714594] stack backtrace: [ 35.714600] CPU: 1 PID: 4650 Comm: syz-executor221 Not tainted 4.19.0-rc2+ #2 [ 35.714607] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.714610] Call Trace: [ 35.714614] dump_stack+0x1c9/0x2b4 [ 35.714626] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.714630] ? vprintk_func+0x100/0x117 [ 35.714636] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.714639] ? save_trace+0xe0/0x290 [ 35.714643] __lock_acquire+0x3449/0x5020 [ 35.714648] ? mark_held_locks+0x160/0x160 [ 35.714652] ? mark_held_locks+0x160/0x160 [ 35.714656] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.714661] ? is_bpf_text_address+0xd7/0x170 [ 35.714665] ? kernel_text_address+0x79/0xf0 [ 35.714669] ? __kernel_text_address+0xd/0x40 [ 35.714673] ? __save_stack_trace+0x8d/0xf0 [ 35.714678] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.714682] ? save_trace+0x290/0x290 [ 35.714686] ? save_stack_trace+0x1a/0x20 [ 35.714689] ? save_trace+0xe0/0x290 [ 35.714693] ? graph_lock+0x170/0x170 [ 35.714698] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.714702] lock_acquire+0x1e4/0x4f0 [ 35.714706] ? down_trylock+0x13/0x70 [ 35.714710] ? lock_release+0x9f0/0x9f0 [ 35.714714] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.714718] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.714723] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.714726] ? log_store+0x34f/0x4c0 [ 35.714730] ? vprintk_emit+0x31f/0x910 [ 35.714735] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.714738] ? down_trylock+0x13/0x70 [ 35.714742] down_trylock+0x13/0x70 [ 35.714747] __down_trylock_console_sem+0xae/0x200 [ 35.714751] console_trylock+0x15/0xa0 [ 35.714754] vprintk_emit+0x31f/0x910 [ 35.714758] ? wake_up_klogd+0x110/0x110 [ 35.714763] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.714767] ? kasan_check_read+0x11/0x20 [ 35.714771] ? rcu_is_watching+0x8c/0x150 [ 35.714775] ? rcu_pm_notify+0xc0/0xc0 [ 35.714779] ? lock_acquire+0x1e4/0x4f0 [ 35.714783] ? kasan_report+0x8e/0x110 [ 35.714786] ? __schedule+0xf54/0x1df0 [ 35.714790] vprintk_default+0x28/0x30 [ 35.714794] vprintk_func+0x7a/0x117 [ 35.714798] printk+0xa7/0xcf [ 35.714802] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.714806] ? kasan_check_write+0x14/0x20 [ 35.714810] ? do_raw_spin_lock+0xc1/0x200 [ 35.714814] ? do_raw_spin_lock+0xc1/0x200 [ 35.714818] kasan_report+0x9e/0x110 [ 35.714822] __asan_report_load8_noabort+0x14/0x20 [ 35.714826] __schedule+0xf54/0x1df0 [ 35.714831] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.714835] ? __sched_text_start+0x8/0x8 [ 35.714839] ? __call_srcu+0x7e7/0x1040 [ 35.714843] ? check_same_owner+0x340/0x340 [ 35.714847] ? mark_held_locks+0x160/0x160 [ 35.714851] ? find_held_lock+0x36/0x1c0 [ 35.714855] preempt_schedule_common+0x22/0x60 [ 35.714859] _cond_resched+0x1d/0x30 [ 35.714863] wait_for_completion+0xa5/0x8d0 [ 35.714868] ? wait_for_completion_interruptible+0x950/0x950 [ 35.714873] ? __lockdep_init_map+0x105/0x590 [ 35.714877] ? __init_waitqueue_head+0x9e/0x150 [ 35.714881] ? init_wait_entry+0x1c0/0x1c0 [ 35.714885] __synchronize_srcu+0x189/0x240 [ 35.714889] ? call_srcu+0x10/0x10 [ 35.714893] ? rcu_unexpedite_gp+0x20/0x20 [ 35.714897] synchronize_srcu+0x335/0x56f [ 35.714901] ? lock_downgrade+0x8f0/0x8f0 [ 35.714906] ? synchronize_srcu_expedited+0x20/0x20 [ 35.714910] ? kasan_check_read+0x11/0x20 [ 35.714914] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.714919] ? kasan_check_write+0x14/0x20 [ 35.714923] ? do_raw_spin_lock+0xc1/0x200 [ 35.714928] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.714932] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.714936] ? kvfree+0x61/0x70 [ 35.714941] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.714945] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.714949] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.714953] ? kvm_arch_sync_events+0x30/0x30 [ 35.714958] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.714962] ? mmu_notifier_unregister+0x474/0x600 [ 35.714967] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.714970] ? kfree+0x111/0x210 [ 35.714975] ? __mmu_notifier_register+0x30/0x30 [ 35.714979] ? __free_pages+0x10a/0x190 [ 35.714983] ? free_unref_page+0x930/0x930 [ 35.714986] kvm_put_kvm+0x73f/0x1060 [ 35.714991] ? kvm_write_guest_cached+0x40/0x40 [ 35.714995] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.714999] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.715004] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.715008] ? kasan_check_write+0x14/0x20 [ 35.715012] ? do_raw_spin_lock+0xc1/0x200 [ 35.715016] ? kvm_irqfd_release+0xdd/0x120 [ 35.715020] ? kvm_irqfd_release+0xdd/0x120 [ 35.715024] ? kvm_put_kvm+0x1060/0x1060 [ 35.715028] kvm_vm_release+0x42/0x50 [ 35.715031] __fput+0x38a/0xa40 [ 35.715035] ? __alloc_file+0x400/0x400 [ 35.715040] ? check_same_owner+0x340/0x340 [ 35.715044] ? kasan_check_write+0x14/0x20 [ 35.715048] ? do_raw_spin_lock+0xc1/0x200 [ 35.715051] ____fput+0x15/0x20 [ 35.715055] task_work_run+0x1e8/0x2a0 [ 35.715059] ? task_work_cancel+0x240/0x240 [ 35.715064] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.715068] ? switch_task_namespaces+0xa2/0xd0 [ 35.715072] do_exit+0x1ae4/0x26e0 [ 35.715077] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.715081] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.715085] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.715089] ? kfree+0x1d7/0x210 [ 35.715093] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.715095] [ 35.715102] Lost 55 message(s)! [ 36.779507] Shutting down cpus with NMI [ 37.840216] Dumping ftrace buffer: [ 37.843743] (ftrace buffer empty) [ 37.847428] Kernel Offset: disabled [ 37.851036] Rebooting in 86400 seconds..