[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.682727] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.360209] random: sshd: uninitialized urandom read (32 bytes read) [ 27.839192] random: sshd: uninitialized urandom read (32 bytes read) [ 28.425673] random: sshd: uninitialized urandom read (32 bytes read) [ 32.740722] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.57' (ECDSA) to the list of known hosts. [ 38.439006] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 38.536267] 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.561090] ================================================================== [ 38.570892] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 38.577121] Read of size 8 at addr ffff8801b48c8058 by task syz-executor666/4415 [ 38.584647] [ 38.586275] CPU: 0 PID: 4415 Comm: syz-executor666 Not tainted 4.19.0-rc1+ #211 [ 38.593720] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.603099] Call Trace: [ 38.605699] dump_stack+0x1c9/0x2b4 [ 38.609333] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.614534] ? printk+0xa7/0xcf [ 38.617826] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.622589] ? __schedule+0xf54/0x1df0 [ 38.626484] print_address_description+0x6c/0x20b [ 38.631336] ? __schedule+0xf54/0x1df0 [ 38.635224] kasan_report.cold.7+0x242/0x30d [ 38.639665] __asan_report_load8_noabort+0x14/0x20 [ 38.644597] __schedule+0xf54/0x1df0 [ 38.648315] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.653424] ? __sched_text_start+0x8/0x8 [ 38.657588] ? __call_srcu+0x7e7/0x1040 [ 38.661574] ? check_same_owner+0x340/0x340 [ 38.665896] ? mark_held_locks+0x160/0x160 [ 38.670131] ? find_held_lock+0x36/0x1c0 [ 38.674197] preempt_schedule_common+0x22/0x60 [ 38.678784] _cond_resched+0x1d/0x30 [ 38.682519] wait_for_completion+0xa5/0x8d0 [ 38.686855] ? wait_for_completion_interruptible+0x950/0x950 [ 38.692673] ? __lockdep_init_map+0x105/0x590 [ 38.697182] ? __init_waitqueue_head+0x9e/0x150 [ 38.701855] ? init_wait_entry+0x1c0/0x1c0 [ 38.706098] __synchronize_srcu+0x189/0x240 [ 38.710423] ? call_srcu+0x10/0x10 [ 38.713972] ? rcu_unexpedite_gp+0x20/0x20 [ 38.718216] synchronize_srcu+0x335/0x56f [ 38.722367] ? lock_downgrade+0x8f0/0x8f0 [ 38.726521] ? synchronize_srcu_expedited+0x20/0x20 [ 38.731544] ? kasan_check_read+0x11/0x20 [ 38.735696] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.740279] ? kasan_check_write+0x14/0x20 [ 38.744518] ? do_raw_spin_lock+0xc1/0x200 [ 38.748765] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.754523] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.759976] ? kvfree+0x61/0x70 [ 38.763266] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.768289] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.772358] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.776771] ? kvm_arch_sync_events+0x30/0x30 [ 38.781282] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.786835] ? mmu_notifier_unregister+0x474/0x600 [ 38.791766] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.796206] ? kfree+0x111/0x210 [ 38.799582] ? __mmu_notifier_register+0x30/0x30 [ 38.804343] ? __free_pages+0x10a/0x190 [ 38.808325] ? free_unref_page+0x930/0x930 [ 38.812570] kvm_put_kvm+0x73f/0x1060 [ 38.816384] ? kvm_write_guest_cached+0x40/0x40 [ 38.821062] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.825597] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.830139] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.834741] ? kasan_check_write+0x14/0x20 [ 38.838989] ? do_raw_spin_lock+0xc1/0x200 [ 38.843239] ? kvm_irqfd_release+0xdd/0x120 [ 38.847571] ? kvm_irqfd_release+0xdd/0x120 [ 38.851900] ? kvm_put_kvm+0x1060/0x1060 [ 38.855962] kvm_vm_release+0x42/0x50 [ 38.859766] __fput+0x36e/0x8c0 [ 38.863054] ? __alloc_file+0x400/0x400 [ 38.867039] ? check_same_owner+0x340/0x340 [ 38.871368] ? kasan_check_write+0x14/0x20 [ 38.875608] ? do_raw_spin_lock+0xc1/0x200 [ 38.879850] ____fput+0x15/0x20 [ 38.883131] task_work_run+0x1e8/0x2a0 [ 38.887020] ? task_work_cancel+0x240/0x240 [ 38.891349] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.896896] ? switch_task_namespaces+0xa2/0xd0 [ 38.901568] do_exit+0x1ae4/0x26e0 [ 38.905120] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.909802] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.914047] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.919065] ? kfree+0x1d7/0x210 [ 38.922439] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.926699] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.932417] ? is_bpf_text_address+0xd7/0x170 [ 38.937191] ? kernel_text_address+0x79/0xf0 [ 38.941691] ? __kernel_text_address+0xd/0x40 [ 38.946193] ? unwind_get_return_address+0x61/0xa0 [ 38.951136] ? __save_stack_trace+0x8d/0xf0 [ 38.955490] ? save_stack+0xa9/0xd0 [ 38.959144] ? save_stack+0x43/0xd0 [ 38.962781] ? __kasan_slab_free+0x11a/0x170 [ 38.967209] ? kasan_slab_free+0xe/0x10 [ 38.971191] ? putname+0xf2/0x130 [ 38.974656] ? __x64_sys_openat+0x9d/0x100 [ 38.978897] ? do_syscall_64+0x1b9/0x820 [ 38.982973] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.988355] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.992776] ? kasan_check_read+0x11/0x20 [ 38.996948] ? do_raw_spin_unlock+0xa7/0x2f0 [ 39.001371] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.005800] ? initcall_blacklisted+0x9a/0x1e0 [ 39.010406] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 39.015529] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.021260] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.026819] ? do_vfs_ioctl+0x201/0x1720 [ 39.030894] ? rcu_is_watching+0x8c/0x150 [ 39.035052] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.039388] ? ioctl_preallocate+0x300/0x300 [ 39.043814] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.049386] ? __fget_light+0x2f7/0x440 [ 39.053371] ? fget_raw+0x20/0x20 [ 39.056834] ? putname+0xf2/0x130 [ 39.060299] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.065330] ? kmem_cache_free+0x246/0x280 [ 39.069577] ? putname+0xf7/0x130 [ 39.073046] do_group_exit+0x177/0x440 [ 39.076947] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.081278] ? __ia32_sys_exit+0x50/0x50 [ 39.085348] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.090493] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.096043] ? ksys_ioctl+0x81/0xd0 [ 39.099676] __x64_sys_exit_group+0x3e/0x50 [ 39.104006] do_syscall_64+0x1b9/0x820 [ 39.107897] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.113263] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.118192] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.123038] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 39.128055] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.133071] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.138090] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.142947] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.148135] RIP: 0033:0x43ef08 [ 39.151329] Code: Bad RIP value. [ 39.154687] RSP: 002b:00007fff3bcee028 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.162392] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 39.169656] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 39.176929] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 39.184200] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 39.191470] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 39.198742] [ 39.200367] Allocated by task 4415: [ 39.203997] save_stack+0x43/0xd0 [ 39.207506] kasan_kmalloc+0xc4/0xe0 [ 39.211220] kasan_slab_alloc+0x12/0x20 [ 39.215191] kmem_cache_alloc+0x12e/0x710 [ 39.219341] vmx_create_vcpu+0xcf/0x2830 [ 39.223406] kvm_arch_vcpu_create+0xe5/0x220 [ 39.227822] kvm_vm_ioctl+0x488/0x1d80 [ 39.231804] do_vfs_ioctl+0x1de/0x1720 [ 39.235691] ksys_ioctl+0xa9/0xd0 [ 39.239146] __x64_sys_ioctl+0x73/0xb0 [ 39.243035] do_syscall_64+0x1b9/0x820 [ 39.246926] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.252104] [ 39.253729] Freed by task 4415: [ 39.257011] save_stack+0x43/0xd0 [ 39.260469] __kasan_slab_free+0x11a/0x170 [ 39.264715] kasan_slab_free+0xe/0x10 [ 39.268530] kmem_cache_free+0x86/0x280 [ 39.272518] vmx_free_vcpu+0x26b/0x300 [ 39.276416] kvm_arch_destroy_vm+0x365/0x7c0 [ 39.280831] kvm_put_kvm+0x73f/0x1060 [ 39.284641] kvm_vm_release+0x42/0x50 [ 39.288459] __fput+0x36e/0x8c0 [ 39.291740] ____fput+0x15/0x20 [ 39.295025] task_work_run+0x1e8/0x2a0 [ 39.298929] do_exit+0x1ae4/0x26e0 [ 39.302489] do_group_exit+0x177/0x440 [ 39.306386] __x64_sys_exit_group+0x3e/0x50 [ 39.310718] do_syscall_64+0x1b9/0x820 [ 39.314627] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.319819] [ 39.321453] The buggy address belongs to the object at ffff8801b48c8040 [ 39.321453] which belongs to the cache kvm_vcpu of size 23872 [ 39.334046] The buggy address is located 24 bytes inside of [ 39.334046] 23872-byte region [ffff8801b48c8040, ffff8801b48cdd80) [ 39.346013] The buggy address belongs to the page: [ 39.350967] page:ffffea0006d23200 count:1 mapcount:0 mapping:ffff8801d4b75480 index:0x0 compound_mapcount: 0 [ 39.360949] flags: 0x2fffc0000008100(slab|head) [ 39.365636] raw: 02fffc0000008100 ffff8801d4b79548 ffff8801d4b79548 ffff8801d4b75480 [ 39.373530] raw: 0000000000000000 ffff8801b48c8040 0000000100000001 0000000000000000 [ 39.381417] page dumped because: kasan: bad access detected [ 39.387126] [ 39.388749] Memory state around the buggy address: [ 39.393690] ffff8801b48c7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.401068] ffff8801b48c7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.408443] >ffff8801b48c8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 39.415811] ^ [ 39.422050] ffff8801b48c8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.429421] ffff8801b48c8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.436780] ================================================================== [ 39.444152] Kernel panic - not syncing: panic_on_warn set ... [ 39.444152] [ 39.451534] CPU: 0 PID: 4415 Comm: syz-executor666 Tainted: G B 4.19.0-rc1+ #211 [ 39.460376] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.469766] Call Trace: [ 39.472377] dump_stack+0x1c9/0x2b4 [ 39.476015] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.481224] ? lock_downgrade+0x8f0/0x8f0 [ 39.485381] ? __schedule+0xf54/0x1df0 [ 39.489279] panic+0x238/0x4e7 [ 39.492478] ? add_taint.cold.5+0x16/0x16 [ 39.496645] ? print_shadow_for_address+0xba/0x116 [ 39.501581] ? trace_hardirqs_off+0xaf/0x2b0 [ 39.506005] ? trace_hardirqs_off+0x77/0x2b0 [ 39.510425] ? __schedule+0xf54/0x1df0 [ 39.514322] kasan_end_report+0x47/0x4f [ 39.518308] kasan_report.cold.7+0x76/0x30d [ 39.522644] __asan_report_load8_noabort+0x14/0x20 [ 39.527593] __schedule+0xf54/0x1df0 [ 39.531321] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.536440] ? __sched_text_start+0x8/0x8 [ 39.540603] ? __call_srcu+0x7e7/0x1040 [ 39.544599] ? check_same_owner+0x340/0x340 [ 39.548933] ? mark_held_locks+0x160/0x160 [ 39.553178] ? find_held_lock+0x36/0x1c0 [ 39.557254] preempt_schedule_common+0x22/0x60 [ 39.561852] _cond_resched+0x1d/0x30 [ 39.565575] wait_for_completion+0xa5/0x8d0 [ 39.569918] ? wait_for_completion_interruptible+0x950/0x950 [ 39.575729] ? __lockdep_init_map+0x105/0x590 [ 39.580238] ? __init_waitqueue_head+0x9e/0x150 [ 39.584916] ? init_wait_entry+0x1c0/0x1c0 [ 39.589163] __synchronize_srcu+0x189/0x240 [ 39.593499] ? call_srcu+0x10/0x10 [ 39.597049] ? rcu_unexpedite_gp+0x20/0x20 [ 39.601302] synchronize_srcu+0x335/0x56f [ 39.605469] ? lock_downgrade+0x8f0/0x8f0 [ 39.609633] ? synchronize_srcu_expedited+0x20/0x20 [ 39.614668] ? kasan_check_read+0x11/0x20 [ 39.618838] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 39.623439] ? kasan_check_write+0x14/0x20 [ 39.627686] ? do_raw_spin_lock+0xc1/0x200 [ 39.631938] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.637671] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 39.643143] ? kvfree+0x61/0x70 [ 39.646447] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.651503] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.655601] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.660025] ? kvm_arch_sync_events+0x30/0x30 [ 39.664535] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.670089] ? mmu_notifier_unregister+0x474/0x600 [ 39.675034] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.679451] ? kfree+0x111/0x210 [ 39.682835] ? __mmu_notifier_register+0x30/0x30 [ 39.687608] ? __free_pages+0x10a/0x190 [ 39.691598] ? free_unref_page+0x930/0x930 [ 39.695860] kvm_put_kvm+0x73f/0x1060 [ 39.699687] ? kvm_write_guest_cached+0x40/0x40 [ 39.704388] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.708905] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.713415] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.718016] ? kasan_check_write+0x14/0x20 [ 39.722270] ? do_raw_spin_lock+0xc1/0x200 [ 39.726533] ? kvm_irqfd_release+0xdd/0x120 [ 39.730873] ? kvm_irqfd_release+0xdd/0x120 [ 39.735220] ? kvm_put_kvm+0x1060/0x1060 [ 39.739301] kvm_vm_release+0x42/0x50 [ 39.743122] __fput+0x36e/0x8c0 [ 39.746423] ? __alloc_file+0x400/0x400 [ 39.750419] ? check_same_owner+0x340/0x340 [ 39.754754] ? kasan_check_write+0x14/0x20 [ 39.759002] ? do_raw_spin_lock+0xc1/0x200 [ 39.763247] ____fput+0x15/0x20 [ 39.766561] task_work_run+0x1e8/0x2a0 [ 39.770466] ? task_work_cancel+0x240/0x240 [ 39.774830] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.780397] ? switch_task_namespaces+0xa2/0xd0 [ 39.785109] do_exit+0x1ae4/0x26e0 [ 39.788671] ? mm_update_next_owner+0x9a0/0x9a0 [ 39.793374] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 39.797632] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.802664] ? kfree+0x1d7/0x210 [ 39.806046] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 39.810450] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.816205] ? is_bpf_text_address+0xd7/0x170 [ 39.820712] ? kernel_text_address+0x79/0xf0 [ 39.825132] ? __kernel_text_address+0xd/0x40 [ 39.829644] ? unwind_get_return_address+0x61/0xa0 [ 39.834591] ? __save_stack_trace+0x8d/0xf0 [ 39.838931] ? save_stack+0xa9/0xd0 [ 39.842568] ? save_stack+0x43/0xd0 [ 39.846202] ? __kasan_slab_free+0x11a/0x170 [ 39.850620] ? kasan_slab_free+0xe/0x10 [ 39.854603] ? putname+0xf2/0x130 [ 39.858072] ? __x64_sys_openat+0x9d/0x100 [ 39.862322] ? do_syscall_64+0x1b9/0x820 [ 39.866405] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.871783] ? trace_hardirqs_off+0xb8/0x2b0 [ 39.876211] ? kasan_check_read+0x11/0x20 [ 39.880380] ? do_raw_spin_unlock+0xa7/0x2f0 [ 39.884810] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.889260] ? initcall_blacklisted+0x9a/0x1e0 [ 39.893982] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 39.899116] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.904948] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.910508] ? do_vfs_ioctl+0x201/0x1720 [ 39.914586] ? rcu_is_watching+0x8c/0x150 [ 39.918743] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.923088] ? ioctl_preallocate+0x300/0x300 [ 39.927518] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.933068] ? __fget_light+0x2f7/0x440 [ 39.937081] ? fget_raw+0x20/0x20 [ 39.940542] ? putname+0xf2/0x130 [ 39.944008] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.949036] ? kmem_cache_free+0x246/0x280 [ 39.953285] ? putname+0xf7/0x130 [ 39.956754] do_group_exit+0x177/0x440 [ 39.960654] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.965081] ? __ia32_sys_exit+0x50/0x50 [ 39.969161] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.974279] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.979843] ? ksys_ioctl+0x81/0xd0 [ 39.983486] __x64_sys_exit_group+0x3e/0x50 [ 39.987831] do_syscall_64+0x1b9/0x820 [ 39.991737] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.997205] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.002149] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.007007] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 40.012044] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.017080] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.022120] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.026986] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.032189] RIP: 0033:0x43ef08 [ 40.035392] Code: Bad RIP value. [ 40.038782] RSP: 002b:00007fff3bcee028 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.046508] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 40.053793] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.061068] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.068348] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 40.075645] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 40.082936] [ 40.082942] ====================================================== [ 40.082947] WARNING: possible circular locking dependency detected [ 40.082951] 4.19.0-rc1+ #211 Not tainted [ 40.082956] ------------------------------------------------------ [ 40.082961] syz-executor666/4415 is trying to acquire lock: [ 40.082964] 00000000fd9898a8 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 40.082979] [ 40.082983] but task is already holding lock: [ 40.082986] 00000000208e7972 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 40.083000] [ 40.083004] which lock already depends on the new lock. [ 40.083006] [ 40.083009] [ 40.083014] the existing dependency chain (in reverse order) is: [ 40.083016] [ 40.083018] -> #3 (report_lock){....}: [ 40.083033] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.083036] kasan_report+0x8e/0x110 [ 40.083041] __asan_report_load8_noabort+0x14/0x20 [ 40.083044] __schedule+0xf54/0x1df0 [ 40.083049] preempt_schedule_common+0x22/0x60 [ 40.083053] _cond_resched+0x1d/0x30 [ 40.083057] wait_for_completion+0xa5/0x8d0 [ 40.083061] __synchronize_srcu+0x189/0x240 [ 40.083065] synchronize_srcu+0x335/0x56f [ 40.083070] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.083073] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.083077] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.083081] kvm_put_kvm+0x73f/0x1060 [ 40.083085] kvm_vm_release+0x42/0x50 [ 40.083088] __fput+0x36e/0x8c0 [ 40.083092] ____fput+0x15/0x20 [ 40.083096] task_work_run+0x1e8/0x2a0 [ 40.083099] do_exit+0x1ae4/0x26e0 [ 40.083103] do_group_exit+0x177/0x440 [ 40.083107] __x64_sys_exit_group+0x3e/0x50 [ 40.083111] do_syscall_64+0x1b9/0x820 [ 40.083115] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.083117] [ 40.083120] -> #2 (&rq->lock){-.-.}: [ 40.083133] _raw_spin_lock+0x2a/0x40 [ 40.083137] task_fork_fair+0x93/0x680 [ 40.083140] sched_fork+0x44b/0xbd0 [ 40.083144] copy_process+0x235e/0x7ad0 [ 40.083148] _do_fork+0x1ca/0x1170 [ 40.083152] kernel_thread+0x34/0x40 [ 40.083155] rest_init+0x22/0xe4 [ 40.083159] start_kernel+0x913/0x94e [ 40.083163] x86_64_start_reservations+0x29/0x2b [ 40.083167] x86_64_start_kernel+0x76/0x79 [ 40.083171] secondary_startup_64+0xa4/0xb0 [ 40.083173] [ 40.083175] -> #1 (&p->pi_lock){-.-.}: [ 40.083189] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.083193] try_to_wake_up+0xd2/0x1250 [ 40.083197] wake_up_process+0x10/0x20 [ 40.083201] __up.isra.1+0x1c0/0x2a0 [ 40.083204] up+0x13c/0x1c0 [ 40.083208] __up_console_sem+0xbe/0x1b0 [ 40.083212] console_unlock+0x506/0x10d0 [ 40.083215] vprintk_emit+0x33a/0x910 [ 40.083219] vprintk_default+0x28/0x30 [ 40.083223] vprintk_func+0x7a/0x117 [ 40.083226] printk+0xa7/0xcf [ 40.083230] load_umh+0x51/0xbd [ 40.083234] do_one_initcall+0x127/0x838 [ 40.083238] kernel_init_freeable+0x4bb/0x5ae [ 40.083241] kernel_init+0x11/0x1b3 [ 40.083245] ret_from_fork+0x3a/0x50 [ 40.083247] [ 40.083249] -> #0 ((console_sem).lock){-...}: [ 40.083263] lock_acquire+0x1e4/0x4f0 [ 40.083267] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.083271] down_trylock+0x13/0x70 [ 40.083275] __down_trylock_console_sem+0xae/0x200 [ 40.083279] console_trylock+0x15/0xa0 [ 40.083282] vprintk_emit+0x31f/0x910 [ 40.083286] vprintk_default+0x28/0x30 [ 40.083290] vprintk_func+0x7a/0x117 [ 40.083293] printk+0xa7/0xcf [ 40.083296] kasan_report+0x9e/0x110 [ 40.083302] __asan_report_load8_noabort+0x14/0x20 [ 40.083305] __schedule+0xf54/0x1df0 [ 40.083309] preempt_schedule_common+0x22/0x60 [ 40.083313] _cond_resched+0x1d/0x30 [ 40.083317] wait_for_completion+0xa5/0x8d0 [ 40.083321] __synchronize_srcu+0x189/0x240 [ 40.083325] synchronize_srcu+0x335/0x56f [ 40.083330] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.083333] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.083338] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.083341] kvm_put_kvm+0x73f/0x1060 [ 40.083345] kvm_vm_release+0x42/0x50 [ 40.083348] __fput+0x36e/0x8c0 [ 40.083352] ____fput+0x15/0x20 [ 40.083355] task_work_run+0x1e8/0x2a0 [ 40.083359] do_exit+0x1ae4/0x26e0 [ 40.083363] do_group_exit+0x177/0x440 [ 40.083367] __x64_sys_exit_group+0x3e/0x50 [ 40.083371] do_syscall_64+0x1b9/0x820 [ 40.083375] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.083378] [ 40.083382] other info that might help us debug this: [ 40.083384] [ 40.083387] Chain exists of: [ 40.083389] (console_sem).lock --> &rq->lock --> report_lock [ 40.083407] [ 40.083411] Possible unsafe locking scenario: [ 40.083413] [ 40.083417] CPU0 CPU1 [ 40.083421] ---- ---- [ 40.083423] lock(report_lock); [ 40.083432] lock(&rq->lock); [ 40.083442] lock(report_lock); [ 40.083449] lock((console_sem).lock); [ 40.083457] [ 40.083460] *** DEADLOCK *** [ 40.083462] [ 40.083467] 2 locks held by syz-executor666/4415: [ 40.083469] #0: 00000000e51dd9bb (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 40.083485] #1: 00000000208e7972 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 40.083502] [ 40.083505] stack backtrace: [ 40.083511] CPU: 0 PID: 4415 Comm: syz-executor666 Not tainted 4.19.0-rc1+ #211 [ 40.083518] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.083521] Call Trace: [ 40.083524] dump_stack+0x1c9/0x2b4 [ 40.083529] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.083533] ? vprintk_func+0x100/0x117 [ 40.083537] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 40.083541] ? save_trace+0xe0/0x290 [ 40.083545] __lock_acquire+0x3449/0x5020 [ 40.083549] ? mark_held_locks+0x160/0x160 [ 40.083553] ? mark_held_locks+0x160/0x160 [ 40.083557] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 40.083561] ? is_bpf_text_address+0xd7/0x170 [ 40.083565] ? kernel_text_address+0x79/0xf0 [ 40.083569] ? __kernel_text_address+0xd/0x40 [ 40.083573] ? __save_stack_trace+0x8d/0xf0 [ 40.083577] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 40.083581] ? save_trace+0x290/0x290 [ 40.083585] ? save_stack_trace+0x1a/0x20 [ 40.083588] ? save_trace+0xe0/0x290 [ 40.083592] ? graph_lock+0x170/0x170 [ 40.083596] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.083599] lock_acquire+0x1e4/0x4f0 [ 40.083603] ? down_trylock+0x13/0x70 [ 40.083607] ? lock_release+0x9f0/0x9f0 [ 40.083611] ? trace_hardirqs_off+0xb8/0x2b0 [ 40.083615] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.083619] ? trace_hardirqs_off+0xb8/0x2b0 [ 40.083622] ? log_store+0x34f/0x4c0 [ 40.083626] ? vprintk_emit+0x31f/0x910 [ 40.083630] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.083634] ? down_trylock+0x13/0x70 [ 40.083637] down_trylock+0x13/0x70 [ 40.083642] __down_trylock_console_sem+0xae/0x200 [ 40.083645] console_trylock+0x15/0xa0 [ 40.083649] vprintk_emit+0x31f/0x910 [ 40.083653] ? wake_up_klogd+0x110/0x110 [ 40.083657] ? run_rebalance_domains+0x4c0/0x4c0 [ 40.083661] ? kasan_check_read+0x11/0x20 [ 40.083665] ? rcu_is_watching+0x8c/0x150 [ 40.083669] ? rcu_pm_notify+0xc0/0xc0 [ 40.083672] ? lock_acquire+0x1e4/0x4f0 [ 40.083676] ? kasan_report+0x8e/0x110 [ 40.083680] ? __schedule+0xf54/0x1df0 [ 40.083684] vprintk_default+0x28/0x30 [ 40.083687] vprintk_func+0x7a/0x117 [ 40.083691] printk+0xa7/0xcf [ 40.083695] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 40.083699] ? kasan_check_write+0x14/0x20 [ 40.083703] ? do_raw_spin_lock+0xc1/0x200 [ 40.083707] ? do_raw_spin_lock+0xc1/0x200 [ 40.083711] kasan_report+0x9e/0x110 [ 40.083715] __asan_report_load8_noabort+0x14/0x20 [ 40.083719] __schedule+0xf54/0x1df0 [ 40.083723] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 40.083727] ? __sched_text_start+0x8/0x8 [ 40.083731] ? __call_srcu+0x7e7/0x1040 [ 40.083735] ? check_same_owner+0x340/0x340 [ 40.083739] ? mark_held_locks+0x160/0x160 [ 40.083743] ? find_held_lock+0x36/0x1c0 [ 40.083747] preempt_schedule_common+0x22/0x60 [ 40.083750] _cond_resched+0x1d/0x30 [ 40.083755] wait_for_completion+0xa5/0x8d0 [ 40.083759] ? wait_for_completion_interruptible+0x950/0x950 [ 40.083764] ? __lockdep_init_map+0x105/0x590 [ 40.083768] ? __init_waitqueue_head+0x9e/0x150 [ 40.083772] ? init_wait_entry+0x1c0/0x1c0 [ 40.083776] __synchronize_srcu+0x189/0x240 [ 40.083779] ? call_srcu+0x10/0x10 [ 40.083783] ? rcu_unexpedite_gp+0x20/0x20 [ 40.083787] synchronize_srcu+0x335/0x56f [ 40.083798] ? lock_downgrade+0x8f0/0x8f0 [ 40.083803] ? synchronize_srcu_expedited+0x20/0x20 [ 40.083807] ? kasan_check_read+0x11/0x20 [ 40.083811] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 40.083815] ? kasan_check_write+0x14/0x20 [ 40.083819] ? do_raw_spin_lock+0xc1/0x200 [ 40.083824] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.083828] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 40.083832] ? kvfree+0x61/0x70 [ 40.083836] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.083840] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.083844] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.083848] ? kvm_arch_sync_events+0x30/0x30 [ 40.083853] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.083858] ? mmu_notifier_unregister+0x474/0x600 [ 40.083862] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.083865] ? kfree+0x111/0x210 [ 40.083869] ? __mmu_notifier_register+0x30/0x30 [ 40.083873] ? __free_pages+0x10a/0x190 [ 40.083877] ? free_unref_page+0x930/0x930 [ 40.083881] kvm_put_kvm+0x73f/0x1060 [ 40.083885] ? kvm_write_guest_cached+0x40/0x40 [ 40.083889] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.083893] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.083897] ? lockdep_hardirqs_on+0x421/0x5c0 [ 40.083901] ? kasan_check_write+0x14/0x20 [ 40.083905] ? do_raw_spin_lock+0xc1/0x200 [ 40.083909] ? kvm_irqfd_release+0xdd/0x120 [ 40.083913] ? kvm_irqfd_release+0xdd/0x120 [ 40.083917] ? kvm_put_kvm+0x1060/0x1060 [ 40.083921] kvm_vm_release+0x42/0x50 [ 40.083924] __fput+0x36e/0x8c0 [ 40.083928] ? __alloc_file+0x400/0x400 [ 40.083932] ? check_same_owner+0x340/0x340 [ 40.083936] ? kasan_check_write+0x14/0x20 [ 40.083940] ? do_raw_spin_lock+0xc1/0x200 [ 40.083943] ____fput+0x15/0x20 [ 40.083947] task_work_run+0x1e8/0x2a0 [ 40.083951] ? task_work_cancel+0x240/0x240 [ 40.083956] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.083960] ? switch_task_namespaces+0xa2/0xd0 [ 40.083963] do_exit+0x1ae4/0x26e0 [ 40.083968] ? mm_update_next_owner+0x9a0/0x9a0 [ 40.083971] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 40.083976] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.083979] ? kfree+0x1d7/0x210 [ 40.083983] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 40.083988] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.083992] ? is_bpf_text_address+0xd7/0x170 [ 40.083994] ? [ 40.084004] Lost 55 message(s)! [ 41.143078] Shutting down cpus with NMI [ 42.203579] Dumping ftrace buffer: [ 42.207123] (ftrace buffer empty) [ 42.210819] Kernel Offset: disabled [ 42.214441] Rebooting in 86400 seconds..