[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.976914] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.315846] random: sshd: uninitialized urandom read (32 bytes read) [ 29.577693] random: sshd: uninitialized urandom read (32 bytes read) [ 30.160224] random: sshd: uninitialized urandom read (32 bytes read) [ 30.380749] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.212' (ECDSA) to the list of known hosts. [ 35.956495] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.085806] 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. [ 36.111622] ================================================================== [ 36.121499] BUG: KASAN: use-after-free in __schedule+0xfc3/0x1ed0 [ 36.127733] Read of size 8 at addr ffff8801c52d8058 by task syz-executor736/5336 [ 36.135255] [ 36.136880] CPU: 0 PID: 5336 Comm: syz-executor736 Not tainted 4.19.0-rc2+ #228 [ 36.144319] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.153665] Call Trace: [ 36.156259] dump_stack+0x1c4/0x2b4 [ 36.159903] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.165091] ? printk+0xa7/0xcf [ 36.168368] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.173130] print_address_description.cold.8+0x9/0x1ff [ 36.178516] kasan_report.cold.9+0x242/0x309 [ 36.182924] ? __schedule+0xfc3/0x1ed0 [ 36.186810] __asan_report_load8_noabort+0x14/0x20 [ 36.191738] __schedule+0xfc3/0x1ed0 [ 36.195454] ? __sched_text_start+0x8/0x8 [ 36.199633] ? __lock_is_held+0xb5/0x140 [ 36.203690] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 36.208793] ? find_held_lock+0x36/0x1c0 [ 36.212855] ? __call_srcu+0x7f9/0x1070 [ 36.216826] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 36.221924] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 36.227026] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.231608] ? preempt_schedule+0x4d/0x60 [ 36.235759] preempt_schedule_common+0x1f/0xd0 [ 36.240343] preempt_schedule+0x4d/0x60 [ 36.244317] ___preempt_schedule+0x16/0x18 [ 36.248554] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 36.253481] __call_srcu+0x7f9/0x1070 [ 36.257291] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 36.262398] ? srcu_offline_cpu+0x120/0x120 [ 36.266723] ? debug_object_free+0x690/0x690 [ 36.271130] ? mark_held_locks+0x130/0x130 [ 36.275362] ? kvm_arch_destroy_vm+0x414/0x7c0 [ 36.279948] ? lock_release+0x970/0x970 [ 36.283927] ? arch_local_save_flags+0x40/0x40 [ 36.288526] ? depot_save_stack+0x292/0x470 [ 36.292856] ? __lockdep_init_map+0x105/0x590 [ 36.297353] ? __init_waitqueue_head+0x9e/0x150 [ 36.302018] ? init_wait_entry+0x1c0/0x1c0 [ 36.306259] __synchronize_srcu+0x17b/0x230 [ 36.310581] ? call_srcu+0x10/0x10 [ 36.314116] ? rcu_unexpedite_gp+0x20/0x20 [ 36.318353] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.323885] ? check_preemption_disabled+0x48/0x200 [ 36.328920] synchronize_srcu+0x356/0x5ab [ 36.333064] ? lock_downgrade+0x900/0x900 [ 36.337211] ? synchronize_srcu_expedited+0x20/0x20 [ 36.342232] ? kasan_check_read+0x11/0x20 [ 36.346380] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.350965] ? kasan_check_write+0x14/0x20 [ 36.355204] ? do_raw_spin_lock+0xc1/0x200 [ 36.359444] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.365169] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.370630] ? kvfree+0x61/0x70 [ 36.373922] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.378953] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.383028] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.387450] ? kvm_arch_sync_events+0x30/0x30 [ 36.391946] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.397493] ? mmu_notifier_unregister+0x474/0x600 [ 36.402429] ? kfree+0x107/0x230 [ 36.405795] ? __mmu_notifier_register+0x30/0x30 [ 36.410548] ? __free_pages+0x10a/0x190 [ 36.414527] ? free_unref_page+0x960/0x960 [ 36.418778] kvm_put_kvm+0x6c8/0xff0 [ 36.422528] ? kvm_write_guest_cached+0x40/0x40 [ 36.427205] ? kvm_irqfd_release+0xd1/0x120 [ 36.431530] ? _raw_spin_unlock_irq+0x27/0x80 [ 36.436019] ? _raw_spin_unlock_irq+0x27/0x80 [ 36.440535] ? kasan_check_write+0x14/0x20 [ 36.444773] ? do_raw_spin_lock+0xc1/0x200 [ 36.449006] ? kvm_irqfd_release+0xdd/0x120 [ 36.453326] ? kvm_irqfd_release+0xdd/0x120 [ 36.457651] ? kvm_put_kvm+0xff0/0xff0 [ 36.461544] kvm_vm_release+0x42/0x50 [ 36.465341] __fput+0x385/0xa30 [ 36.468624] ? get_max_files+0x20/0x20 [ 36.472533] ? trace_hardirqs_on+0xbd/0x310 [ 36.476868] ? ___might_sleep+0x1ed/0x300 [ 36.481017] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 36.486466] ? arch_local_save_flags+0x40/0x40 [ 36.491054] ? kasan_check_write+0x14/0x20 [ 36.495286] ? do_raw_spin_lock+0xc1/0x200 [ 36.499526] ____fput+0x15/0x20 [ 36.502809] task_work_run+0x1e8/0x2a0 [ 36.506699] ? task_work_cancel+0x240/0x240 [ 36.511028] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.516571] ? switch_task_namespaces+0x9d/0xd0 [ 36.521246] do_exit+0x1ad7/0x2610 [ 36.524790] ? mm_update_next_owner+0x990/0x990 [ 36.529461] ? kvm_vcpu_ioctl+0x29c/0x1150 [ 36.533703] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.538719] ? kfree+0x1fa/0x230 [ 36.542083] ? kvm_vcpu_ioctl+0x2a1/0x1150 [ 36.546317] ? kvm_vcpu_block+0x1030/0x1030 [ 36.550645] ? is_bpf_text_address+0xd3/0x170 [ 36.555141] ? kernel_text_address+0x79/0xf0 [ 36.559544] ? __kernel_text_address+0xd/0x40 [ 36.564035] ? unwind_get_return_address+0x61/0xa0 [ 36.568963] ? __save_stack_trace+0x8d/0xf0 [ 36.573290] ? save_stack+0xa9/0xd0 [ 36.576910] ? save_stack+0x43/0xd0 [ 36.580534] ? __kasan_slab_free+0x102/0x150 [ 36.584935] ? kasan_slab_free+0xe/0x10 [ 36.588912] ? putname+0xf2/0x130 [ 36.592363] ? __x64_sys_openat+0x9d/0x100 [ 36.596597] ? do_syscall_64+0x1b9/0x820 [ 36.600654] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.606015] ? trace_hardirqs_off+0xb8/0x310 [ 36.610420] ? kasan_check_read+0x11/0x20 [ 36.614566] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.618969] ? trace_hardirqs_on+0x310/0x310 [ 36.623380] ? __bpf_trace_initcall_finish+0x2a/0x30 [ 36.628490] ? trace_hardirqs_off+0xb8/0x310 [ 36.632902] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.638437] ? check_preemption_disabled+0x48/0x200 [ 36.643454] ? check_preemption_disabled+0x48/0x200 [ 36.648493] ? kvm_vcpu_block+0x1030/0x1030 [ 36.652822] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.658354] ? do_vfs_ioctl+0x201/0x1720 [ 36.662411] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 36.667691] ? ioctl_preallocate+0x300/0x300 [ 36.672098] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.677640] ? __fget_light+0x2e9/0x430 [ 36.681620] ? fget_raw+0x20/0x20 [ 36.685068] ? putname+0xf2/0x130 [ 36.688530] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.693560] ? kmem_cache_free+0x24f/0x290 [ 36.697819] ? putname+0xf7/0x130 [ 36.701298] do_group_exit+0x177/0x440 [ 36.705189] ? trace_hardirqs_on+0xbd/0x310 [ 36.709524] ? __ia32_sys_exit+0x50/0x50 [ 36.713584] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 36.719035] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.724581] ? ksys_ioctl+0x81/0xd0 [ 36.728213] __x64_sys_exit_group+0x3e/0x50 [ 36.732538] do_syscall_64+0x1b9/0x820 [ 36.736428] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.741795] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.746725] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.751569] ? trace_hardirqs_on_caller+0x310/0x310 [ 36.756580] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.761597] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.766615] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.771464] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.776654] RIP: 0033:0x43ecc8 [ 36.779846] Code: Bad RIP value. [ 36.783202] RSP: 002b:00007ffe5c47a838 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.792431] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.799699] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.806963] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.814235] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.821518] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.828790] [ 36.830442] Allocated by task 5336: [ 36.834068] save_stack+0x43/0xd0 [ 36.837522] kasan_kmalloc+0xc7/0xe0 [ 36.841231] kasan_slab_alloc+0x12/0x20 [ 36.845204] kmem_cache_alloc+0x12e/0x730 [ 36.849348] vmx_create_vcpu+0xcf/0x25e0 [ 36.853405] kvm_arch_vcpu_create+0xe5/0x220 [ 36.857810] kvm_vm_ioctl+0x470/0x1d40 [ 36.861693] do_vfs_ioctl+0x1de/0x1720 [ 36.865578] ksys_ioctl+0xa9/0xd0 [ 36.869714] __x64_sys_ioctl+0x73/0xb0 [ 36.873604] do_syscall_64+0x1b9/0x820 [ 36.877498] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.882678] [ 36.884300] Freed by task 5336: [ 36.887577] save_stack+0x43/0xd0 [ 36.891028] __kasan_slab_free+0x102/0x150 [ 36.895256] kasan_slab_free+0xe/0x10 [ 36.899056] kmem_cache_free+0x83/0x290 [ 36.903028] vmx_free_vcpu+0x26b/0x300 [ 36.906917] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.911327] kvm_put_kvm+0x6c8/0xff0 [ 36.915038] kvm_vm_release+0x42/0x50 [ 36.919218] __fput+0x385/0xa30 [ 36.922497] ____fput+0x15/0x20 [ 36.925780] task_work_run+0x1e8/0x2a0 [ 36.929674] do_exit+0x1ad7/0x2610 [ 36.933215] do_group_exit+0x177/0x440 [ 36.937106] __x64_sys_exit_group+0x3e/0x50 [ 36.941426] do_syscall_64+0x1b9/0x820 [ 36.945310] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.950490] [ 36.952177] The buggy address belongs to the object at ffff8801c52d8040 [ 36.952177] which belongs to the cache kvm_vcpu of size 23872 [ 36.964748] The buggy address is located 24 bytes inside of [ 36.964748] 23872-byte region [ffff8801c52d8040, ffff8801c52ddd80) [ 36.976704] The buggy address belongs to the page: [ 36.981631] page:ffffea000714b600 count:1 mapcount:0 mapping:ffff8801d7939340 index:0x0 compound_mapcount: 0 [ 36.991598] flags: 0x2fffc0000008100(slab|head) [ 36.996272] raw: 02fffc0000008100 ffff8801d5938148 ffff8801d5938148 ffff8801d7939340 [ 37.004156] raw: 0000000000000000 ffff8801c52d8040 0000000100000001 0000000000000000 [ 37.012025] page dumped because: kasan: bad access detected [ 37.017721] [ 37.019337] Memory state around the buggy address: [ 37.024269] ffff8801c52d7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.031628] ffff8801c52d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.038982] >ffff8801c52d8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.046331] ^ [ 37.052556] ffff8801c52d8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.059908] ffff8801c52d8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.067263] ================================================================== [ 37.074616] Kernel panic - not syncing: panic_on_warn set ... [ 37.074616] [ 37.081986] CPU: 0 PID: 5336 Comm: syz-executor736 Tainted: G B 4.19.0-rc2+ #228 [ 37.090817] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.100165] Call Trace: [ 37.102756] dump_stack+0x1c4/0x2b4 [ 37.106382] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.111598] ? lock_downgrade+0x900/0x900 [ 37.115757] panic+0x238/0x4e7 [ 37.118949] ? add_taint.cold.5+0x16/0x16 [ 37.123100] ? print_shadow_for_address+0xb6/0x116 [ 37.128033] ? trace_hardirqs_off+0xaf/0x310 [ 37.132450] kasan_end_report+0x47/0x4f [ 37.136423] kasan_report.cold.9+0x76/0x309 [ 37.140754] ? __schedule+0xfc3/0x1ed0 [ 37.144649] __asan_report_load8_noabort+0x14/0x20 [ 37.149587] __schedule+0xfc3/0x1ed0 [ 37.153310] ? __sched_text_start+0x8/0x8 [ 37.157465] ? __lock_is_held+0xb5/0x140 [ 37.161544] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.166650] ? find_held_lock+0x36/0x1c0 [ 37.170713] ? __call_srcu+0x7f9/0x1070 [ 37.174687] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.179789] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.184890] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.189472] ? preempt_schedule+0x4d/0x60 [ 37.193631] preempt_schedule_common+0x1f/0xd0 [ 37.198212] preempt_schedule+0x4d/0x60 [ 37.202186] ___preempt_schedule+0x16/0x18 [ 37.206423] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 37.211352] __call_srcu+0x7f9/0x1070 [ 37.215151] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 37.220255] ? srcu_offline_cpu+0x120/0x120 [ 37.224572] ? debug_object_free+0x690/0x690 [ 37.228979] ? mark_held_locks+0x130/0x130 [ 37.233211] ? kvm_arch_destroy_vm+0x414/0x7c0 [ 37.237792] ? lock_release+0x970/0x970 [ 37.241766] ? arch_local_save_flags+0x40/0x40 [ 37.246350] ? depot_save_stack+0x292/0x470 [ 37.250687] ? __lockdep_init_map+0x105/0x590 [ 37.255187] ? __init_waitqueue_head+0x9e/0x150 [ 37.259854] ? init_wait_entry+0x1c0/0x1c0 [ 37.264267] __synchronize_srcu+0x17b/0x230 [ 37.268587] ? call_srcu+0x10/0x10 [ 37.272120] ? rcu_unexpedite_gp+0x20/0x20 [ 37.276355] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.281889] ? check_preemption_disabled+0x48/0x200 [ 37.286902] synchronize_srcu+0x356/0x5ab [ 37.291044] ? lock_downgrade+0x900/0x900 [ 37.295187] ? synchronize_srcu_expedited+0x20/0x20 [ 37.300202] ? kasan_check_read+0x11/0x20 [ 37.304352] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.308931] ? kasan_check_write+0x14/0x20 [ 37.313163] ? do_raw_spin_lock+0xc1/0x200 [ 37.317401] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.323111] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.328558] ? kvfree+0x61/0x70 [ 37.331834] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.336850] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.340905] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.345313] ? kvm_arch_sync_events+0x30/0x30 [ 37.349807] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.355338] ? mmu_notifier_unregister+0x474/0x600 [ 37.360263] ? kfree+0x107/0x230 [ 37.363624] ? __mmu_notifier_register+0x30/0x30 [ 37.368378] ? __free_pages+0x10a/0x190 [ 37.372349] ? free_unref_page+0x960/0x960 [ 37.376593] kvm_put_kvm+0x6c8/0xff0 [ 37.380318] ? kvm_write_guest_cached+0x40/0x40 [ 37.384989] ? kvm_irqfd_release+0xd1/0x120 [ 37.389314] ? _raw_spin_unlock_irq+0x27/0x80 [ 37.393809] ? _raw_spin_unlock_irq+0x27/0x80 [ 37.398312] ? kasan_check_write+0x14/0x20 [ 37.402544] ? do_raw_spin_lock+0xc1/0x200 [ 37.406781] ? kvm_irqfd_release+0xdd/0x120 [ 37.411099] ? kvm_irqfd_release+0xdd/0x120 [ 37.415422] ? kvm_put_kvm+0xff0/0xff0 [ 37.419308] kvm_vm_release+0x42/0x50 [ 37.423122] __fput+0x385/0xa30 [ 37.426414] ? get_max_files+0x20/0x20 [ 37.430300] ? trace_hardirqs_on+0xbd/0x310 [ 37.434620] ? ___might_sleep+0x1ed/0x300 [ 37.438766] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.444217] ? arch_local_save_flags+0x40/0x40 [ 37.448803] ? kasan_check_write+0x14/0x20 [ 37.453039] ? do_raw_spin_lock+0xc1/0x200 [ 37.457276] ____fput+0x15/0x20 [ 37.460554] task_work_run+0x1e8/0x2a0 [ 37.464439] ? task_work_cancel+0x240/0x240 [ 37.468764] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.474304] ? switch_task_namespaces+0x9d/0xd0 [ 37.478984] do_exit+0x1ad7/0x2610 [ 37.482712] ? mm_update_next_owner+0x990/0x990 [ 37.487390] ? kvm_vcpu_ioctl+0x29c/0x1150 [ 37.491632] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.496653] ? kfree+0x1fa/0x230 [ 37.500026] ? kvm_vcpu_ioctl+0x2a1/0x1150 [ 37.504268] ? kvm_vcpu_block+0x1030/0x1030 [ 37.508617] ? is_bpf_text_address+0xd3/0x170 [ 37.513121] ? kernel_text_address+0x79/0xf0 [ 37.517539] ? __kernel_text_address+0xd/0x40 [ 37.522036] ? unwind_get_return_address+0x61/0xa0 [ 37.526973] ? __save_stack_trace+0x8d/0xf0 [ 37.531304] ? save_stack+0xa9/0xd0 [ 37.534932] ? save_stack+0x43/0xd0 [ 37.538557] ? __kasan_slab_free+0x102/0x150 [ 37.542961] ? kasan_slab_free+0xe/0x10 [ 37.546940] ? putname+0xf2/0x130 [ 37.550395] ? __x64_sys_openat+0x9d/0x100 [ 37.554634] ? do_syscall_64+0x1b9/0x820 [ 37.558702] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.564067] ? trace_hardirqs_off+0xb8/0x310 [ 37.568478] ? kasan_check_read+0x11/0x20 [ 37.572643] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.577052] ? trace_hardirqs_on+0x310/0x310 [ 37.581458] ? __bpf_trace_initcall_finish+0x2a/0x30 [ 37.586569] ? trace_hardirqs_off+0xb8/0x310 [ 37.590976] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.596523] ? check_preemption_disabled+0x48/0x200 [ 37.601539] ? check_preemption_disabled+0x48/0x200 [ 37.606558] ? kvm_vcpu_block+0x1030/0x1030 [ 37.610877] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.616413] ? do_vfs_ioctl+0x201/0x1720 [ 37.620473] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 37.625759] ? ioctl_preallocate+0x300/0x300 [ 37.630167] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.635700] ? __fget_light+0x2e9/0x430 [ 37.639676] ? fget_raw+0x20/0x20 [ 37.643129] ? putname+0xf2/0x130 [ 37.646580] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.651596] ? kmem_cache_free+0x24f/0x290 [ 37.655827] ? putname+0xf7/0x130 [ 37.659281] do_group_exit+0x177/0x440 [ 37.663168] ? trace_hardirqs_on+0xbd/0x310 [ 37.667491] ? __ia32_sys_exit+0x50/0x50 [ 37.671557] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.677006] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.682545] ? ksys_ioctl+0x81/0xd0 [ 37.686173] __x64_sys_exit_group+0x3e/0x50 [ 37.690501] do_syscall_64+0x1b9/0x820 [ 37.694398] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.699761] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.704693] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.709536] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.714572] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.719588] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.724606] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.729464] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.734659] RIP: 0033:0x43ecc8 [ 37.737847] Code: Bad RIP value. [ 37.741212] RSP: 002b:00007ffe5c47a838 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.748917] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 37.756180] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.763446] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.770712] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.777979] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.785688] [ 37.785694] ====================================================== [ 37.785700] WARNING: possible circular locking dependency detected [ 37.785704] 4.19.0-rc2+ #228 Not tainted [ 37.785710] ------------------------------------------------------ [ 37.785715] syz-executor736/5336 is trying to acquire lock: [ 37.785719] 00000000242c83fd ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.785735] [ 37.785740] but task is already holding lock: [ 37.785743] 00000000a14e94ed (report_lock){....}, at: kasan_report+0x8b/0x110 [ 37.785759] [ 37.785763] which lock already depends on the new lock. [ 37.785766] [ 37.785769] [ 37.785774] the existing dependency chain (in reverse order) is: [ 37.785777] [ 37.785779] -> #3 (report_lock){....}: [ 37.785795] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.785799] kasan_report+0x8b/0x110 [ 37.785804] __asan_report_load8_noabort+0x14/0x20 [ 37.785808] __schedule+0xfc3/0x1ed0 [ 37.785813] preempt_schedule_common+0x1f/0xd0 [ 37.785817] preempt_schedule+0x4d/0x60 [ 37.785822] ___preempt_schedule+0x16/0x18 [ 37.785827] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 37.785831] __call_srcu+0x7f9/0x1070 [ 37.785835] __synchronize_srcu+0x17b/0x230 [ 37.785840] synchronize_srcu+0x356/0x5ab [ 37.785845] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.785849] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.785854] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.785858] kvm_put_kvm+0x6c8/0xff0 [ 37.785862] kvm_vm_release+0x42/0x50 [ 37.785866] __fput+0x385/0xa30 [ 37.785870] ____fput+0x15/0x20 [ 37.785874] task_work_run+0x1e8/0x2a0 [ 37.785878] do_exit+0x1ad7/0x2610 [ 37.785883] do_group_exit+0x177/0x440 [ 37.785887] __x64_sys_exit_group+0x3e/0x50 [ 37.785891] do_syscall_64+0x1b9/0x820 [ 37.785897] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.785899] [ 37.785902] -> #2 (&rq->lock){-.-.}: [ 37.785917] _raw_spin_lock+0x2d/0x40 [ 37.785921] task_fork_fair+0xb0/0x6d0 [ 37.785925] sched_fork+0x443/0xba0 [ 37.785930] copy_process+0x2586/0x8780 [ 37.785934] _do_fork+0x1cb/0x11d0 [ 37.785938] kernel_thread+0x34/0x40 [ 37.785942] rest_init+0x22/0xe5 [ 37.785946] start_kernel+0x8f4/0x92f [ 37.785951] x86_64_start_reservations+0x29/0x2b [ 37.785955] x86_64_start_kernel+0x76/0x79 [ 37.785960] secondary_startup_64+0xa4/0xb0 [ 37.785962] [ 37.785965] -> #1 (&p->pi_lock){-.-.}: [ 37.785981] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.785985] try_to_wake_up+0xd2/0x12f0 [ 37.785989] wake_up_process+0x10/0x20 [ 37.785993] __up.isra.1+0x1c0/0x2a0 [ 37.785997] up+0x13c/0x1c0 [ 37.786001] __up_console_sem+0xbe/0x1b0 [ 37.786006] console_unlock+0x524/0x11a0 [ 37.786009] vprintk_emit+0x33d/0x930 [ 37.786014] vprintk_default+0x28/0x30 [ 37.786019] vprintk_func+0x7e/0x181 [ 37.786022] printk+0xa7/0xcf [ 37.786026] load_umh+0x51/0xbd [ 37.786031] do_one_initcall+0x145/0x957 [ 37.786035] kernel_init_freeable+0x4bb/0x5ae [ 37.786040] kernel_init+0x11/0x1b2 [ 37.786044] ret_from_fork+0x3a/0x50 [ 37.786046] [ 37.786049] -> #0 ((console_sem).lock){-...}: [ 37.786064] lock_acquire+0x1ed/0x520 [ 37.786069] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.786073] down_trylock+0x13/0x70 [ 37.786078] __down_trylock_console_sem+0xae/0x200 [ 37.786082] console_trylock+0x15/0xa0 [ 37.786087] vprintk_emit+0x322/0x930 [ 37.786091] vprintk_default+0x28/0x30 [ 37.786095] vprintk_func+0x7e/0x181 [ 37.786099] printk+0xa7/0xcf [ 37.786103] kasan_report+0x9b/0x110 [ 37.786108] __asan_report_load8_noabort+0x14/0x20 [ 37.786112] __schedule+0xfc3/0x1ed0 [ 37.786117] preempt_schedule_common+0x1f/0xd0 [ 37.786121] preempt_schedule+0x4d/0x60 [ 37.786126] ___preempt_schedule+0x16/0x18 [ 37.786131] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 37.786135] __call_srcu+0x7f9/0x1070 [ 37.786139] __synchronize_srcu+0x17b/0x230 [ 37.786144] synchronize_srcu+0x356/0x5ab [ 37.786149] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.786153] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.786158] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.786162] kvm_put_kvm+0x6c8/0xff0 [ 37.786166] kvm_vm_release+0x42/0x50 [ 37.786170] __fput+0x385/0xa30 [ 37.786174] ____fput+0x15/0x20 [ 37.786178] task_work_run+0x1e8/0x2a0 [ 37.786182] do_exit+0x1ad7/0x2610 [ 37.786186] do_group_exit+0x177/0x440 [ 37.786191] __x64_sys_exit_group+0x3e/0x50 [ 37.786195] do_syscall_64+0x1b9/0x820 [ 37.786200] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.786203] [ 37.786208] other info that might help us debug this: [ 37.786210] [ 37.786214] Chain exists of: [ 37.786216] (console_sem).lock --> &rq->lock --> report_lock [ 37.786236] [ 37.786240] Possible unsafe locking scenario: [ 37.786243] [ 37.786247] CPU0 CPU1 [ 37.786252] ---- ---- [ 37.786254] lock(report_lock); [ 37.786264] lock(&rq->lock); [ 37.786274] lock(report_lock); [ 37.786283] lock((console_sem).lock); [ 37.786292] [ 37.786295] *** DEADLOCK *** [ 37.786298] [ 37.786302] 2 locks held by syz-executor736/5336: [ 37.786305] #0: 00000000e4149eaf (&rq->lock){-.-.}, at: __schedule+0x236/0x1ed0 [ 37.786323] #1: 00000000a14e94ed (report_lock){....}, at: kasan_report+0x8b/0x110 [ 37.786342] [ 37.786345] stack backtrace: [ 37.786352] CPU: 0 PID: 5336 Comm: syz-executor736 Not tainted 4.19.0-rc2+ #228 [ 37.786360] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.786363] Call Trace: [ 37.786367] dump_stack+0x1c4/0x2b4 [ 37.786372] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.786376] ? vprintk_func+0x85/0x181 [ 37.786382] print_circular_bug.isra.33.cold.54+0x1bd/0x27d [ 37.786386] ? save_trace+0xe0/0x290 [ 37.786390] __lock_acquire+0x33e4/0x4ec0 [ 37.786395] ? mark_held_locks+0x130/0x130 [ 37.786399] ? mark_held_locks+0x130/0x130 [ 37.786403] ? rcu_bh_qs+0xc0/0xc0 [ 37.786407] ? unwind_dump+0x190/0x190 [ 37.786412] ? is_bpf_text_address+0xd3/0x170 [ 37.786417] ? kernel_text_address+0x79/0xf0 [ 37.786421] ? __kernel_text_address+0xd/0x40 [ 37.786426] ? __save_stack_trace+0x8d/0xf0 [ 37.786430] ? add_lock_to_list.isra.26+0x1ec/0x4b0 [ 37.786435] ? save_trace+0x290/0x290 [ 37.786439] ? save_stack_trace+0x1a/0x20 [ 37.786443] ? save_trace+0xe0/0x290 [ 37.786447] ? kasan_check_read+0x11/0x20 [ 37.786451] ? graph_lock+0x170/0x170 [ 37.786457] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.786461] lock_acquire+0x1ed/0x520 [ 37.786465] ? down_trylock+0x13/0x70 [ 37.786469] ? find_held_lock+0x36/0x1c0 [ 37.786473] ? lock_release+0x970/0x970 [ 37.786478] ? trace_hardirqs_off+0xb8/0x310 [ 37.786482] ? vprintk_emit+0x1d3/0x930 [ 37.786495] ? trace_hardirqs_on+0x310/0x310 [ 37.786499] ? trace_hardirqs_off+0xb8/0x310 [ 37.786503] ? log_store+0x344/0x4c0 [ 37.786513] ? vprintk_emit+0x322/0x930 [ 37.786518] _raw_spin_lock_irqsave+0x99/0xd0 [ 37.786522] ? down_trylock+0x13/0x70 [ 37.786526] down_trylock+0x13/0x70 [ 37.786531] __down_trylock_console_sem+0xae/0x200 [ 37.786535] console_trylock+0x15/0xa0 [ 37.786539] vprintk_emit+0x322/0x930 [ 37.786544] ? wake_up_klogd+0x180/0x180 [ 37.786548] ? run_rebalance_domains+0x500/0x500 [ 37.786553] ? wake_up_worker+0x117/0x190 [ 37.786557] ? find_held_lock+0x36/0x1c0 [ 37.786561] ? __queue_work+0x6be/0x1440 [ 37.786566] ? lock_acquire+0x1ed/0x520 [ 37.786570] vprintk_default+0x28/0x30 [ 37.786574] vprintk_func+0x7e/0x181 [ 37.786578] printk+0xa7/0xcf [ 37.786582] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.786587] ? kasan_check_write+0x14/0x20 [ 37.786591] ? do_raw_spin_lock+0xc1/0x200 [ 37.786596] ? do_raw_spin_lock+0xc1/0x200 [ 37.786600] kasan_report+0x9b/0x110 [ 37.786604] ? __schedule+0xfc3/0x1ed0 [ 37.786609] __asan_report_load8_noabort+0x14/0x20 [ 37.786613] __schedule+0xfc3/0x1ed0 [ 37.786617] ? __sched_text_start+0x8/0x8 [ 37.786621] ? __lock_is_held+0xb5/0x140 [ 37.786626] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.786631] ? find_held_lock+0x36/0x1c0 [ 37.786635] ? __call_srcu+0x7f9/0x1070 [ 37.786640] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.786645] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 37.786650] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.786654] ? preempt_schedule+0x4d/0x60 [ 37.786659] preempt_schedule_common+0x1f/0xd0 [ 37.786663] preempt_schedule+0x4d/0x60 [ 37.786667] ___preempt_schedule+0x16/0x18 [ 37.786672] _raw_spin_unlock_irqrestore+0xbb/0xd0 [ 37.786676] __call_srcu+0x7f9/0x1070 [ 37.786681] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 37.786686] ? srcu_offline_cpu+0x120/0x120 [ 37.786690] ? debug_object_free+0x690/0x690 [ 37.786695] ? mark_held_locks+0x130/0x130 [ 37.786699] ? kvm_arch_destroy_vm+0x414/0x7c0 [ 37.786703] ? lock_release+0x970/0x970 [ 37.786708] ? arch_local_save_flags+0x40/0x40 [ 37.786713] ? depot_save_stack+0x292/0x470 [ 37.786717] ? __lockdep_init_map+0x105/0x590 [ 37.786722] ? __init_waitqueue_head+0x9e/0x150 [ 37.786726] ? init_wait_entry+0x1c0/0x1c0 [ 37.786731] __synchronize_srcu+0x17b/0x230 [ 37.786735] ? call_srcu+0x10/0x10 [ 37.786739] ? rcu_unexpedite_gp+0x20/0x20 [ 37.786745] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.786750] ? check_preemption_disabled+0x48/0x200 [ 37.786754] synchronize_srcu+0x356/0x5ab [ 37.786758] ? lock_downgrade+0x900/0x900 [ 37.786763] ? synchronize_srcu_expedited+0x20/0x20 [ 37.786768] ? kasan_check_read+0x11/0x20 [ 37.786772] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.786777] ? kasan_check_write+0x14/0x20 [ 37.786781] ? do_raw_spin_lock+0xc1/0x200 [ 37.786786] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.786792] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.786795] ? kvfree+0x61/0x70 [ 37.786800] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.786805] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.786809] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.786814] ? kvm_arch_sync_events+0x30/0x30 [ 37.786819] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.786824] ? mmu_notifier_unregister+0x474/0x600 [ 37.786828] ? kfree+0x107/0x230 [ 37.786832] ? __mmu_notifier_register+0x30/0x30 [ 37.786837] ? __free_pages+0x10a/0x190 [ 37.786841] ? free_unref_page+0x960/0x960 [ 37.786845] kvm_put_kvm+0x6c8/0xff0 [ 37.786850] ? kvm_write_guest_cached+0x40/0x40 [ 37.786854] ? kvm_irqfd_release+0xd1/0x120 [ 37.786859] ? _raw_spin_unlock_irq+0x27/0x80 [ 37.786863] ? _raw_spin_unlock_irq+0x27/0x80 [ 37.786868] ? kasan_check_write+0x14/0x20 [ 37.786872] ? do_raw_spin_lock+0xc1/0x200 [ 37.786876] ? kvm_irqfd_release+0x [ 37.786884] Lost 82 message(s)! [ 38.927209] Shutting down cpus with NMI [ 39.984072] Dumping ftrace buffer: [ 39.987619] (ftrace buffer empty) [ 39.991814] Kernel Offset: disabled [ 39.995433] Rebooting in 86400 seconds..