[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.320758] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.667002] random: sshd: uninitialized urandom read (32 bytes read) [ 29.090444] random: sshd: uninitialized urandom read (32 bytes read) [ 29.664347] random: sshd: uninitialized urandom read (32 bytes read) [ 29.873416] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.6' (ECDSA) to the list of known hosts. [ 35.561181] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.681128] 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. [ 35.705775] ================================================================== [ 35.715334] BUG: KASAN: use-after-free in __schedule+0xfc3/0x1ed0 [ 35.721651] Read of size 8 at addr ffff8801d9278058 by task syz-executor599/5335 [ 35.729165] [ 35.730796] CPU: 0 PID: 5335 Comm: syz-executor599 Not tainted 4.19.0-rc3+ #231 [ 35.738233] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.747586] Call Trace: [ 35.750181] dump_stack+0x1c4/0x2b4 [ 35.753809] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.758998] ? printk+0xa7/0xcf [ 35.762290] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.767049] print_address_description.cold.8+0x9/0x1ff [ 35.772412] kasan_report.cold.9+0x242/0x309 [ 35.776824] ? __schedule+0xfc3/0x1ed0 [ 35.780714] __asan_report_load8_noabort+0x14/0x20 [ 35.785642] __schedule+0xfc3/0x1ed0 [ 35.789363] ? __sched_text_start+0x8/0x8 [ 35.793518] ? __lock_is_held+0xb5/0x140 [ 35.797579] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 35.802683] ? find_held_lock+0x36/0x1c0 [ 35.806751] ? __call_srcu+0x7f9/0x1070 [ 35.810724] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 35.815824] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 35.820926] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.825512] ? preempt_schedule+0x4d/0x60 [ 35.829663] preempt_schedule_common+0x1f/0xd0 [ 35.834926] preempt_schedule+0x4d/0x60 [ 35.838904] ___preempt_schedule+0x16/0x18 [ 35.843143] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 35.848078] __call_srcu+0x7f9/0x1070 [ 35.851876] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 35.856984] ? srcu_offline_cpu+0x120/0x120 [ 35.861311] ? debug_object_free+0x690/0x690 [ 35.865719] ? mark_held_locks+0x130/0x130 [ 35.869955] ? kvm_arch_destroy_vm+0x414/0x7c0 [ 35.874544] ? lock_release+0x970/0x970 [ 35.878517] ? arch_local_save_flags+0x40/0x40 [ 35.883190] ? depot_save_stack+0x292/0x470 [ 35.887520] ? __lockdep_init_map+0x105/0x590 [ 35.892020] ? __init_waitqueue_head+0x9e/0x150 [ 35.896693] ? init_wait_entry+0x1c0/0x1c0 [ 35.900937] __synchronize_srcu+0x17b/0x230 [ 35.905269] ? call_srcu+0x10/0x10 [ 35.908818] ? rcu_unexpedite_gp+0x20/0x20 [ 35.913059] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.918594] ? check_preemption_disabled+0x48/0x200 [ 35.923613] synchronize_srcu+0x356/0x5ab [ 35.927759] ? lock_downgrade+0x900/0x900 [ 35.931908] ? synchronize_srcu_expedited+0x20/0x20 [ 35.936929] ? kasan_check_read+0x11/0x20 [ 35.941077] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.945662] ? kasan_check_write+0x14/0x20 [ 35.949898] ? do_raw_spin_lock+0xc1/0x200 [ 35.954137] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.959851] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.965347] ? kvfree+0x61/0x70 [ 35.968625] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.973642] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.977702] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.982109] ? kvm_arch_sync_events+0x30/0x30 [ 35.986608] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.992154] ? mmu_notifier_unregister+0x474/0x600 [ 35.997095] ? kfree+0x107/0x230 [ 36.000460] ? __mmu_notifier_register+0x30/0x30 [ 36.005216] ? __free_pages+0x10a/0x190 [ 36.009196] ? free_unref_page+0x960/0x960 [ 36.013444] kvm_put_kvm+0x6c8/0xff0 [ 36.017164] ? kvm_write_guest_cached+0x40/0x40 [ 36.021843] ? kvm_irqfd_release+0xd1/0x120 [ 36.026176] ? _raw_spin_unlock_irq+0x27/0x80 [ 36.030672] ? _raw_spin_unlock_irq+0x27/0x80 [ 36.035177] ? kasan_check_write+0x14/0x20 [ 36.039415] ? do_raw_spin_lock+0xc1/0x200 [ 36.043652] ? kvm_irqfd_release+0xdd/0x120 [ 36.047969] ? kvm_irqfd_release+0xdd/0x120 [ 36.052300] ? kvm_put_kvm+0xff0/0xff0 [ 36.056187] kvm_vm_release+0x42/0x50 [ 36.059988] __fput+0x385/0xa30 [ 36.063319] ? get_max_files+0x20/0x20 [ 36.067204] ? trace_hardirqs_on+0xbd/0x310 [ 36.071541] ? ___might_sleep+0x1ed/0x300 [ 36.075691] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 36.081144] ? arch_local_save_flags+0x40/0x40 [ 36.085727] ? kasan_check_write+0x14/0x20 [ 36.089961] ? do_raw_spin_lock+0xc1/0x200 [ 36.094197] ____fput+0x15/0x20 [ 36.097481] task_work_run+0x1e8/0x2a0 [ 36.101367] ? task_work_cancel+0x240/0x240 [ 36.105688] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.111225] ? switch_task_namespaces+0x9d/0xd0 [ 36.115907] do_exit+0x1ad7/0x2610 [ 36.119450] ? mm_update_next_owner+0x990/0x990 [ 36.124124] ? kvm_vcpu_ioctl+0x29c/0x1150 [ 36.128359] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.133372] ? kfree+0x1fa/0x230 [ 36.136741] ? kvm_vcpu_ioctl+0x2a1/0x1150 [ 36.140975] ? kvm_vcpu_block+0x1030/0x1030 [ 36.145304] ? is_bpf_text_address+0xd3/0x170 [ 36.149803] ? kernel_text_address+0x79/0xf0 [ 36.154212] ? __kernel_text_address+0xd/0x40 [ 36.158707] ? unwind_get_return_address+0x61/0xa0 [ 36.163646] ? __save_stack_trace+0x8d/0xf0 [ 36.167975] ? save_stack+0xa9/0xd0 [ 36.171600] ? save_stack+0x43/0xd0 [ 36.175221] ? __kasan_slab_free+0x102/0x150 [ 36.179636] ? kasan_slab_free+0xe/0x10 [ 36.183608] ? putname+0xf2/0x130 [ 36.187062] ? __x64_sys_openat+0x9d/0x100 [ 36.191298] ? do_syscall_64+0x1b9/0x820 [ 36.195361] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.200729] ? trace_hardirqs_off+0xb8/0x310 [ 36.205164] ? kasan_check_read+0x11/0x20 [ 36.209316] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.213723] ? trace_hardirqs_on+0x310/0x310 [ 36.218135] ? __bpf_trace_initcall_finish+0x2a/0x30 [ 36.223236] ? trace_hardirqs_off+0xb8/0x310 [ 36.227660] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.233195] ? check_preemption_disabled+0x48/0x200 [ 36.238207] ? check_preemption_disabled+0x48/0x200 [ 36.243227] ? kvm_vcpu_block+0x1030/0x1030 [ 36.247558] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.253092] ? do_vfs_ioctl+0x201/0x1720 [ 36.257161] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 36.262440] ? ioctl_preallocate+0x300/0x300 [ 36.266860] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.272395] ? __fget_light+0x2e9/0x430 [ 36.276366] ? fget_raw+0x20/0x20 [ 36.279814] ? putname+0xf2/0x130 [ 36.283279] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.288300] ? kmem_cache_free+0x24f/0x290 [ 36.292536] ? putname+0xf7/0x130 [ 36.295994] do_group_exit+0x177/0x440 [ 36.299884] ? trace_hardirqs_on+0xbd/0x310 [ 36.304201] ? __ia32_sys_exit+0x50/0x50 [ 36.308271] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 36.313727] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.319268] ? ksys_ioctl+0x81/0xd0 [ 36.322908] __x64_sys_exit_group+0x3e/0x50 [ 36.327226] do_syscall_64+0x1b9/0x820 [ 36.331118] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.336483] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.341409] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.346259] ? trace_hardirqs_on_caller+0x310/0x310 [ 36.351287] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.356306] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.361326] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.366187] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.371369] RIP: 0033:0x43ecd8 [ 36.374560] Code: Bad RIP value. [ 36.377916] RSP: 002b:00007fff2d3bd128 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.386080] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 36.393357] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.400623] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.407889] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.415153] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.422425] [ 36.424047] Allocated by task 5335: [ 36.427673] save_stack+0x43/0xd0 [ 36.431130] kasan_kmalloc+0xc7/0xe0 [ 36.434839] kasan_slab_alloc+0x12/0x20 [ 36.438810] kmem_cache_alloc+0x12e/0x730 [ 36.442957] vmx_create_vcpu+0xcf/0x25e0 [ 36.447016] kvm_arch_vcpu_create+0xe5/0x220 [ 36.451422] kvm_vm_ioctl+0x470/0x1d40 [ 36.455307] do_vfs_ioctl+0x1de/0x1720 [ 36.459195] ksys_ioctl+0xa9/0xd0 [ 36.462647] __x64_sys_ioctl+0x73/0xb0 [ 36.466530] do_syscall_64+0x1b9/0x820 [ 36.470423] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.475602] [ 36.477221] Freed by task 5335: [ 36.480506] save_stack+0x43/0xd0 [ 36.483955] __kasan_slab_free+0x102/0x150 [ 36.488186] kasan_slab_free+0xe/0x10 [ 36.491986] kmem_cache_free+0x83/0x290 [ 36.495959] vmx_free_vcpu+0x26b/0x300 [ 36.499844] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.504260] kvm_put_kvm+0x6c8/0xff0 [ 36.507984] kvm_vm_release+0x42/0x50 [ 36.511780] __fput+0x385/0xa30 [ 36.515055] ____fput+0x15/0x20 [ 36.518333] task_work_run+0x1e8/0x2a0 [ 36.522219] do_exit+0x1ad7/0x2610 [ 36.525767] do_group_exit+0x177/0x440 [ 36.529655] __x64_sys_exit_group+0x3e/0x50 [ 36.533974] do_syscall_64+0x1b9/0x820 [ 36.537864] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.543041] [ 36.544665] The buggy address belongs to the object at ffff8801d9278040 [ 36.544665] which belongs to the cache kvm_vcpu of size 23872 [ 36.557256] The buggy address is located 24 bytes inside of [ 36.557256] 23872-byte region [ffff8801d9278040, ffff8801d927dd80) [ 36.569223] The buggy address belongs to the page: [ 36.574159] page:ffffea0007649e00 count:1 mapcount:0 mapping:ffff8801d523f6c0 index:0x0 compound_mapcount: 0 [ 36.584129] flags: 0x2fffc0000008100(slab|head) [ 36.588805] raw: 02fffc0000008100 ffff8801d525e948 ffff8801d525e948 ffff8801d523f6c0 [ 36.596693] raw: 0000000000000000 ffff8801d9278040 0000000100000001 0000000000000000 [ 36.604564] page dumped because: kasan: bad access detected [ 36.610268] [ 36.611892] Memory state around the buggy address: [ 36.616821] ffff8801d9277f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.624174] ffff8801d9277f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.631527] >ffff8801d9278000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.638877] ^ [ 36.645104] ffff8801d9278080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.652549] ffff8801d9278100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.659924] ================================================================== [ 36.667281] Kernel panic - not syncing: panic_on_warn set ... [ 36.667281] [ 36.674649] CPU: 0 PID: 5335 Comm: syz-executor599 Tainted: G B 4.19.0-rc3+ #231 [ 36.683475] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.692821] Call Trace: [ 36.695416] dump_stack+0x1c4/0x2b4 [ 36.699048] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.704243] ? lock_downgrade+0x900/0x900 [ 36.708409] panic+0x238/0x4e7 [ 36.711605] ? add_taint.cold.5+0x16/0x16 [ 36.715782] ? print_shadow_for_address+0xb6/0x116 [ 36.720715] ? trace_hardirqs_off+0xaf/0x310 [ 36.725127] kasan_end_report+0x47/0x4f [ 36.729111] kasan_report.cold.9+0x76/0x309 [ 36.733434] ? __schedule+0xfc3/0x1ed0 [ 36.737326] __asan_report_load8_noabort+0x14/0x20 [ 36.742267] __schedule+0xfc3/0x1ed0 [ 36.745998] ? __sched_text_start+0x8/0x8 [ 36.750152] ? __lock_is_held+0xb5/0x140 [ 36.754211] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 36.759314] ? find_held_lock+0x36/0x1c0 [ 36.763383] ? __call_srcu+0x7f9/0x1070 [ 36.767360] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 36.772460] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 36.777561] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.782143] ? preempt_schedule+0x4d/0x60 [ 36.786300] preempt_schedule_common+0x1f/0xd0 [ 36.790883] preempt_schedule+0x4d/0x60 [ 36.794858] ___preempt_schedule+0x16/0x18 [ 36.799095] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 36.804031] __call_srcu+0x7f9/0x1070 [ 36.807836] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 36.812943] ? srcu_offline_cpu+0x120/0x120 [ 36.817273] ? debug_object_free+0x690/0x690 [ 36.821688] ? mark_held_locks+0x130/0x130 [ 36.825925] ? kvm_arch_destroy_vm+0x414/0x7c0 [ 36.830508] ? lock_release+0x970/0x970 [ 36.834483] ? arch_local_save_flags+0x40/0x40 [ 36.839066] ? depot_save_stack+0x292/0x470 [ 36.843399] ? __lockdep_init_map+0x105/0x590 [ 36.847896] ? __init_waitqueue_head+0x9e/0x150 [ 36.852566] ? init_wait_entry+0x1c0/0x1c0 [ 36.856812] __synchronize_srcu+0x17b/0x230 [ 36.861135] ? call_srcu+0x10/0x10 [ 36.864676] ? rcu_unexpedite_gp+0x20/0x20 [ 36.868921] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.874455] ? check_preemption_disabled+0x48/0x200 [ 36.879473] synchronize_srcu+0x356/0x5ab [ 36.883619] ? lock_downgrade+0x900/0x900 [ 36.887770] ? synchronize_srcu_expedited+0x20/0x20 [ 36.892795] ? kasan_check_read+0x11/0x20 [ 36.896950] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.901535] ? kasan_check_write+0x14/0x20 [ 36.905770] ? do_raw_spin_lock+0xc1/0x200 [ 36.910015] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.915727] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.921180] ? kvfree+0x61/0x70 [ 36.924460] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.929477] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.933540] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.937950] ? kvm_arch_sync_events+0x30/0x30 [ 36.942447] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.947984] ? mmu_notifier_unregister+0x474/0x600 [ 36.952911] ? kfree+0x107/0x230 [ 36.956292] ? __mmu_notifier_register+0x30/0x30 [ 36.961049] ? __free_pages+0x10a/0x190 [ 36.965027] ? free_unref_page+0x960/0x960 [ 36.969291] kvm_put_kvm+0x6c8/0xff0 [ 36.973016] ? kvm_write_guest_cached+0x40/0x40 [ 36.977690] ? kvm_irqfd_release+0xd1/0x120 [ 36.982014] ? _raw_spin_unlock_irq+0x27/0x80 [ 36.986507] ? _raw_spin_unlock_irq+0x27/0x80 [ 36.991021] ? kasan_check_write+0x14/0x20 [ 36.995266] ? do_raw_spin_lock+0xc1/0x200 [ 36.999511] ? kvm_irqfd_release+0xdd/0x120 [ 37.003830] ? kvm_irqfd_release+0xdd/0x120 [ 37.008153] ? kvm_put_kvm+0xff0/0xff0 [ 37.012041] kvm_vm_release+0x42/0x50 [ 37.015840] __fput+0x385/0xa30 [ 37.019121] ? get_max_files+0x20/0x20 [ 37.023010] ? trace_hardirqs_on+0xbd/0x310 [ 37.027362] ? ___might_sleep+0x1ed/0x300 [ 37.031511] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.036961] ? arch_local_save_flags+0x40/0x40 [ 37.041547] ? kasan_check_write+0x14/0x20 [ 37.045789] ? do_raw_spin_lock+0xc1/0x200 [ 37.050025] ____fput+0x15/0x20 [ 37.053312] task_work_run+0x1e8/0x2a0 [ 37.057202] ? task_work_cancel+0x240/0x240 [ 37.061524] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.067064] ? switch_task_namespaces+0x9d/0xd0 [ 37.071735] do_exit+0x1ad7/0x2610 [ 37.075293] ? mm_update_next_owner+0x990/0x990 [ 37.079974] ? kvm_vcpu_ioctl+0x29c/0x1150 [ 37.084212] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.089227] ? kfree+0x1fa/0x230 [ 37.092604] ? kvm_vcpu_ioctl+0x2a1/0x1150 [ 37.096843] ? kvm_vcpu_block+0x1030/0x1030 [ 37.101173] ? is_bpf_text_address+0xd3/0x170 [ 37.105666] ? kernel_text_address+0x79/0xf0 [ 37.110073] ? __kernel_text_address+0xd/0x40 [ 37.114572] ? unwind_get_return_address+0x61/0xa0 [ 37.119505] ? __save_stack_trace+0x8d/0xf0 [ 37.123833] ? save_stack+0xa9/0xd0 [ 37.127460] ? save_stack+0x43/0xd0 [ 37.131083] ? __kasan_slab_free+0x102/0x150 [ 37.135493] ? kasan_slab_free+0xe/0x10 [ 37.139465] ? putname+0xf2/0x130 [ 37.142919] ? __x64_sys_openat+0x9d/0x100 [ 37.147153] ? do_syscall_64+0x1b9/0x820 [ 37.151219] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.156600] ? trace_hardirqs_off+0xb8/0x310 [ 37.161012] ? kasan_check_read+0x11/0x20 [ 37.165160] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.169607] ? trace_hardirqs_on+0x310/0x310 [ 37.174019] ? __bpf_trace_initcall_finish+0x2a/0x30 [ 37.179128] ? trace_hardirqs_off+0xb8/0x310 [ 37.183542] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.189083] ? check_preemption_disabled+0x48/0x200 [ 37.194095] ? check_preemption_disabled+0x48/0x200 [ 37.199114] ? kvm_vcpu_block+0x1030/0x1030 [ 37.203440] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.208980] ? do_vfs_ioctl+0x201/0x1720 [ 37.213042] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 37.218328] ? ioctl_preallocate+0x300/0x300 [ 37.222736] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.228287] ? __fget_light+0x2e9/0x430 [ 37.232271] ? fget_raw+0x20/0x20 [ 37.235731] ? putname+0xf2/0x130 [ 37.239189] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.244210] ? kmem_cache_free+0x24f/0x290 [ 37.248447] ? putname+0xf7/0x130 [ 37.251908] do_group_exit+0x177/0x440 [ 37.255801] ? trace_hardirqs_on+0xbd/0x310 [ 37.260123] ? __ia32_sys_exit+0x50/0x50 [ 37.264189] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.269644] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.275180] ? ksys_ioctl+0x81/0xd0 [ 37.278813] __x64_sys_exit_group+0x3e/0x50 [ 37.283134] do_syscall_64+0x1b9/0x820 [ 37.287026] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.292393] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.297322] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.302168] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.307189] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.312209] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.317228] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.322089] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.327291] RIP: 0033:0x43ecd8 [ 37.330486] Code: Bad RIP value. [ 37.333847] RSP: 002b:00007fff2d3bd128 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.341553] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 37.348828] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.356098] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.363367] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.370635] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.377915] [ 37.377921] ====================================================== [ 37.377927] WARNING: possible circular locking dependency detected [ 37.377931] 4.19.0-rc3+ #231 Not tainted [ 37.377937] ------------------------------------------------------ [ 37.377943] syz-executor599/5335 is trying to acquire lock: [ 37.377947] 00000000b0ad48da ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.377963] [ 37.377968] but task is already holding lock: [ 37.377971] 0000000009cf9afc (report_lock){....}, at: kasan_report+0x8b/0x110 [ 37.377987] [ 37.377992] which lock already depends on the new lock. [ 37.377995] [ 37.377998] [ 37.378004] the existing dependency chain (in reverse order) is: [ 37.378006] [ 37.378009] -> #3 (report_lock){....}: [ 37.378025] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.378029] kasan_report+0x8b/0x110 [ 37.378034] __asan_report_load8_noabort+0x14/0x20 [ 37.378039] __schedule+0xfc3/0x1ed0 [ 37.378043] preempt_schedule_common+0x1f/0xd0 [ 37.378048] preempt_schedule+0x4d/0x60 [ 37.378052] ___preempt_schedule+0x16/0x18 [ 37.378057] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 37.378062] __call_srcu+0x7f9/0x1070 [ 37.378067] __synchronize_srcu+0x17b/0x230 [ 37.378071] synchronize_srcu+0x356/0x5ab [ 37.378077] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.378081] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.378086] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.378090] kvm_put_kvm+0x6c8/0xff0 [ 37.378095] kvm_vm_release+0x42/0x50 [ 37.378098] __fput+0x385/0xa30 [ 37.378103] ____fput+0x15/0x20 [ 37.378107] task_work_run+0x1e8/0x2a0 [ 37.378111] do_exit+0x1ad7/0x2610 [ 37.378116] do_group_exit+0x177/0x440 [ 37.378120] __x64_sys_exit_group+0x3e/0x50 [ 37.378125] do_syscall_64+0x1b9/0x820 [ 37.378130] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.378132] [ 37.378135] -> #2 (&rq->lock){-.-.}: [ 37.378151] _raw_spin_lock+0x2d/0x40 [ 37.378155] task_fork_fair+0xb0/0x6d0 [ 37.378159] sched_fork+0x443/0xba0 [ 37.378164] copy_process+0x2586/0x8780 [ 37.378168] _do_fork+0x1cb/0x11d0 [ 37.378172] kernel_thread+0x34/0x40 [ 37.378176] rest_init+0x22/0xe5 [ 37.378180] start_kernel+0x8f4/0x92f [ 37.378185] x86_64_start_reservations+0x29/0x2b [ 37.378190] x86_64_start_kernel+0x76/0x79 [ 37.378195] secondary_startup_64+0xa4/0xb0 [ 37.378197] [ 37.378200] -> #1 (&p->pi_lock){-.-.}: [ 37.378216] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.378220] try_to_wake_up+0xd2/0x12f0 [ 37.378225] wake_up_process+0x10/0x20 [ 37.378229] __up.isra.1+0x1c0/0x2a0 [ 37.378233] up+0x13c/0x1c0 [ 37.378237] __up_console_sem+0xbe/0x1b0 [ 37.378242] console_unlock+0x524/0x11a0 [ 37.378255] vprintk_emit+0x33d/0x930 [ 37.378259] vprintk_default+0x28/0x30 [ 37.378264] vprintk_func+0x7e/0x181 [ 37.378268] printk+0xa7/0xcf [ 37.378271] load_umh+0x51/0xbd [ 37.378282] do_one_initcall+0x145/0x957 [ 37.378286] kernel_init_freeable+0x4bb/0x5ae [ 37.378291] kernel_init+0x11/0x1b2 [ 37.378295] ret_from_fork+0x3a/0x50 [ 37.378297] [ 37.378300] -> #0 ((console_sem).lock){-...}: [ 37.378316] lock_acquire+0x1ed/0x520 [ 37.378321] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.378325] down_trylock+0x13/0x70 [ 37.378330] __down_trylock_console_sem+0xae/0x200 [ 37.378334] console_trylock+0x15/0xa0 [ 37.378339] vprintk_emit+0x322/0x930 [ 37.378343] vprintk_default+0x28/0x30 [ 37.378347] vprintk_func+0x7e/0x181 [ 37.378351] printk+0xa7/0xcf [ 37.378356] kasan_report+0x9b/0x110 [ 37.378361] __asan_report_load8_noabort+0x14/0x20 [ 37.378365] __schedule+0xfc3/0x1ed0 [ 37.378370] preempt_schedule_common+0x1f/0xd0 [ 37.378374] preempt_schedule+0x4d/0x60 [ 37.378379] ___preempt_schedule+0x16/0x18 [ 37.378384] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 37.378388] __call_srcu+0x7f9/0x1070 [ 37.378393] __synchronize_srcu+0x17b/0x230 [ 37.378397] synchronize_srcu+0x356/0x5ab [ 37.378403] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.378407] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.378412] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.378416] kvm_put_kvm+0x6c8/0xff0 [ 37.378421] kvm_vm_release+0x42/0x50 [ 37.378425] __fput+0x385/0xa30 [ 37.378429] ____fput+0x15/0x20 [ 37.378433] task_work_run+0x1e8/0x2a0 [ 37.378437] do_exit+0x1ad7/0x2610 [ 37.378442] do_group_exit+0x177/0x440 [ 37.378446] __x64_sys_exit_group+0x3e/0x50 [ 37.378451] do_syscall_64+0x1b9/0x820 [ 37.378456] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.378458] [ 37.378463] other info that might help us debug this: [ 37.378466] [ 37.378469] Chain exists of: [ 37.378472] (console_sem).lock --> &rq->lock --> report_lock [ 37.378492] [ 37.378497] Possible unsafe locking scenario: [ 37.378499] [ 37.378504] CPU0 CPU1 [ 37.378509] ---- ---- [ 37.378511] lock(report_lock); [ 37.378522] lock(&rq->lock); [ 37.378532] lock(report_lock); [ 37.378541] lock((console_sem).lock); [ 37.378550] [ 37.378554] *** DEADLOCK *** [ 37.378556] [ 37.378561] 2 locks held by syz-executor599/5335: [ 37.378563] #0: 000000007eba6854 (&rq->lock){-.-.}, at: __schedule+0x236/0x1ed0 [ 37.378582] #1: 0000000009cf9afc (report_lock){....}, at: kasan_report+0x8b/0x110 [ 37.378601] [ 37.378605] stack backtrace: [ 37.378611] CPU: 0 PID: 5335 Comm: syz-executor599 Not tainted 4.19.0-rc3+ #231 [ 37.378619] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.378623] Call Trace: [ 37.378627] dump_stack+0x1c4/0x2b4 [ 37.378632] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.378637] ? vprintk_func+0x85/0x181 [ 37.378642] print_circular_bug.isra.33.cold.54+0x1bd/0x27d [ 37.378646] ? save_trace+0xe0/0x290 [ 37.378651] __lock_acquire+0x33e4/0x4ec0 [ 37.378655] ? mark_held_locks+0x130/0x130 [ 37.378660] ? mark_held_locks+0x130/0x130 [ 37.378664] ? rcu_bh_qs+0xc0/0xc0 [ 37.378668] ? unwind_dump+0x190/0x190 [ 37.378673] ? is_bpf_text_address+0xd3/0x170 [ 37.378678] ? kernel_text_address+0x79/0xf0 [ 37.378683] ? __kernel_text_address+0xd/0x40 [ 37.378687] ? __save_stack_trace+0x8d/0xf0 [ 37.378692] ? add_lock_to_list.isra.26+0x1ec/0x4b0 [ 37.378697] ? save_trace+0x290/0x290 [ 37.378701] ? save_stack_trace+0x1a/0x20 [ 37.378705] ? save_trace+0xe0/0x290 [ 37.378710] ? kasan_check_read+0x11/0x20 [ 37.378714] ? graph_lock+0x170/0x170 [ 37.378719] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.378724] lock_acquire+0x1ed/0x520 [ 37.378728] ? down_trylock+0x13/0x70 [ 37.378732] ? find_held_lock+0x36/0x1c0 [ 37.378737] ? lock_release+0x970/0x970 [ 37.378742] ? trace_hardirqs_off+0xb8/0x310 [ 37.378746] ? vprintk_emit+0x1d3/0x930 [ 37.378751] ? trace_hardirqs_on+0x310/0x310 [ 37.378755] ? trace_hardirqs_off+0xb8/0x310 [ 37.378760] ? log_store+0x344/0x4c0 [ 37.378764] ? vprintk_emit+0x322/0x930 [ 37.378769] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.378773] ? down_trylock+0x13/0x70 [ 37.378777] down_trylock+0x13/0x70 [ 37.378783] __down_trylock_console_sem+0xae/0x200 [ 37.378787] console_trylock+0x15/0xa0 [ 37.378791] vprintk_emit+0x322/0x930 [ 37.378796] ? wake_up_klogd+0x180/0x180 [ 37.378801] ? run_rebalance_domains+0x500/0x500 [ 37.378805] ? wake_up_worker+0x117/0x190 [ 37.378810] ? find_held_lock+0x36/0x1c0 [ 37.378814] ? __queue_work+0x6be/0x1440 [ 37.378819] ? lock_acquire+0x1ed/0x520 [ 37.378823] vprintk_default+0x28/0x30 [ 37.378827] vprintk_func+0x7e/0x181 [ 37.378831] printk+0xa7/0xcf [ 37.378836] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.378840] ? kasan_check_write+0x14/0x20 [ 37.378845] ? do_raw_spin_lock+0xc1/0x200 [ 37.378850] ? do_raw_spin_lock+0xc1/0x200 [ 37.378854] kasan_report+0x9b/0x110 [ 37.378858] ? __schedule+0xfc3/0x1ed0 [ 37.378863] __asan_report_load8_noabort+0x14/0x20 [ 37.378867] __schedule+0xfc3/0x1ed0 [ 37.378872] ? __sched_text_start+0x8/0x8 [ 37.378876] ? __lock_is_held+0xb5/0x140 [ 37.378881] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.378886] ? find_held_lock+0x36/0x1c0 [ 37.378890] ? __call_srcu+0x7f9/0x1070 [ 37.378895] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.378901] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.378905] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.378910] ? preempt_schedule+0x4d/0x60 [ 37.378915] preempt_schedule_common+0x1f/0xd0 [ 37.378919] preempt_schedule+0x4d/0x60 [ 37.378924] ___preempt_schedule+0x16/0x18 [ 37.378929] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 37.378933] __call_srcu+0x7f9/0x1070 [ 37.378938] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 37.378943] ? srcu_offline_cpu+0x120/0x120 [ 37.378947] ? debug_object_free+0x690/0x690 [ 37.378952] ? mark_held_locks+0x130/0x130 [ 37.378957] ? kvm_arch_destroy_vm+0x414/0x7c0 [ 37.378961] ? lock_release+0x970/0x970 [ 37.378966] ? arch_local_save_flags+0x40/0x40 [ 37.378971] ? depot_save_stack+0x292/0x470 [ 37.378975] ? __lockdep_init_map+0x105/0x590 [ 37.378980] ? __init_waitqueue_head+0x9e/0x150 [ 37.378985] ? init_wait_entry+0x1c0/0x1c0 [ 37.378989] __synchronize_srcu+0x17b/0x230 [ 37.378994] ? call_srcu+0x10/0x10 [ 37.378998] ? rcu_unexpedite_gp+0x20/0x20 [ 37.379004] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.379009] ? check_preemption_disabled+0x48/0x200 [ 37.379013] synchronize_srcu+0x356/0x5ab [ 37.379018] ? lock_downgrade+0x900/0x900 [ 37.379023] ? synchronize_srcu_expedited+0x20/0x20 [ 37.379027] ? kasan_check_read+0x11/0x20 [ 37.379032] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.379037] ? kasan_check_write+0x14/0x20 [ 37.379041] ? do_raw_spin_lock+0xc1/0x200 [ 37.379047] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.379052] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.379056] ? kvfree+0x61/0x70 [ 37.379061] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.379065] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.379070] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.379075] ? kvm_arch_sync_events+0x30/0x30 [ 37.379080] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.379085] ? mmu_notifier_unregister+0x474/0x600 [ 37.379089] ? kfree+0x107/0x230 [ 37.379094] ? __mmu_notifier_register+0x30/0x30 [ 37.379099] ? __free_pages+0x10a/0x190 [ 37.379103] ? free_unref_page+0x960/0x960 [ 37.379107] kvm_put_kvm+0x6c8/0xff0 [ 37.379112] ? kvm_write_guest_cached+0x40/0x40 [ 37.379117] ? kvm_irqfd_release+0xd1/0x120 [ 37.379122] ? _raw_spin_unlock_irq+0x27/0x80 [ 37.379126] ? _raw_spin_unlock_irq+0x27/0x80 [ 37.379131] ? kasan_check_write+0x14/0x20 [ 37.379135] ? do_raw_spin_lock+0xc1/0x200 [ 37.379139] ? kvm_irqfd_release+0x [ 37.379147] Lost 82 message(s)! [ 38.505632] Shutting down cpus with NMI [ 39.563014] Dumping ftrace buffer: [ 39.566538] (ftrace buffer empty) [ 39.570794] Kernel Offset: disabled [ 39.574413] Rebooting in 86400 seconds..