[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 20.750962] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.571471] random: sshd: uninitialized urandom read (32 bytes read) [ 24.766212] random: sshd: uninitialized urandom read (32 bytes read) [ 25.291221] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.3' (ECDSA) to the list of known hosts. [ 31.121967] urandom_read: 1 callbacks suppressed [ 31.121973] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.221145] L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/l1tf.html for details. [ 31.246116] ================================================================== [ 31.255946] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.262171] Read of size 8 at addr ffff8801bb118058 by task syz-executor244/4317 [ 31.269693] [ 31.271318] CPU: 1 PID: 4317 Comm: syz-executor244 Not tainted 4.18.0+ #208 [ 31.278406] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.287753] Call Trace: [ 31.290347] dump_stack+0x1c9/0x2b4 [ 31.293974] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.299160] ? printk+0xa7/0xcf [ 31.302440] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.307198] ? __schedule+0xf54/0x1df0 [ 31.311095] print_address_description+0x6c/0x20b [ 31.315939] ? __schedule+0xf54/0x1df0 [ 31.319829] kasan_report.cold.7+0x242/0x30d [ 31.324244] __asan_report_load8_noabort+0x14/0x20 [ 31.329173] __schedule+0xf54/0x1df0 [ 31.332888] ? __sched_text_start+0x8/0x8 [ 31.337035] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 31.342140] ? __call_srcu+0x7e7/0x1040 [ 31.346121] ? check_same_owner+0x340/0x340 [ 31.350440] ? mark_held_locks+0x160/0x160 [ 31.354675] ? find_held_lock+0x36/0x1c0 [ 31.358736] preempt_schedule_common+0x22/0x60 [ 31.363315] _cond_resched+0x1d/0x30 [ 31.367027] wait_for_completion+0xa5/0x8d0 [ 31.371347] ? wait_for_completion_interruptible+0x950/0x950 [ 31.377140] ? __lockdep_init_map+0x105/0x590 [ 31.381635] ? __init_waitqueue_head+0x9e/0x150 [ 31.386304] ? init_wait_entry+0x1c0/0x1c0 [ 31.390538] __synchronize_srcu+0x189/0x240 [ 31.394862] ? call_srcu+0x10/0x10 [ 31.398400] ? rcu_unexpedite_gp+0x20/0x20 [ 31.402642] synchronize_srcu+0x335/0x56f [ 31.406784] ? lock_downgrade+0x8f0/0x8f0 [ 31.410929] ? synchronize_srcu_expedited+0x20/0x20 [ 31.415943] ? kasan_check_read+0x11/0x20 [ 31.420098] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.424676] ? kasan_check_write+0x14/0x20 [ 31.428908] ? do_raw_spin_lock+0xc1/0x200 [ 31.433146] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.438860] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.444308] ? kvfree+0x61/0x70 [ 31.447587] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.452601] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.456659] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.461064] ? kvm_arch_sync_events+0x30/0x30 [ 31.465566] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.471109] ? mmu_notifier_unregister+0x474/0x600 [ 31.476031] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.480433] ? kfree+0x111/0x210 [ 31.483795] ? __mmu_notifier_register+0x30/0x30 [ 31.488551] ? __free_pages+0x10a/0x190 [ 31.492524] ? free_unref_page+0x930/0x930 [ 31.496766] kvm_put_kvm+0x73f/0x1060 [ 31.500567] ? kvm_write_guest_cached+0x40/0x40 [ 31.505238] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.509730] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.514222] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.518805] ? kasan_check_write+0x14/0x20 [ 31.523038] ? do_raw_spin_lock+0xc1/0x200 [ 31.527276] ? kvm_irqfd_release+0xdd/0x120 [ 31.531606] ? kvm_irqfd_release+0xdd/0x120 [ 31.535925] ? kvm_put_kvm+0x1060/0x1060 [ 31.539981] kvm_vm_release+0x42/0x50 [ 31.543782] __fput+0x36e/0x8c0 [ 31.547057] ? __alloc_file+0x400/0x400 [ 31.551052] ? check_same_owner+0x340/0x340 [ 31.555376] ? kasan_check_write+0x14/0x20 [ 31.559610] ? do_raw_spin_lock+0xc1/0x200 [ 31.563845] ____fput+0x15/0x20 [ 31.567119] task_work_run+0x1e8/0x2a0 [ 31.571002] ? task_work_cancel+0x240/0x240 [ 31.575325] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.580875] ? switch_task_namespaces+0xa2/0xd0 [ 31.585557] do_exit+0x1ae4/0x26e0 [ 31.589106] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.593776] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.598010] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.603020] ? kfree+0x1d7/0x210 [ 31.606383] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.610619] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.616328] ? is_bpf_text_address+0xd7/0x170 [ 31.620819] ? kernel_text_address+0x79/0xf0 [ 31.625226] ? __kernel_text_address+0xd/0x40 [ 31.629721] ? unwind_get_return_address+0x61/0xa0 [ 31.634651] ? __save_stack_trace+0x8d/0xf0 [ 31.638979] ? save_stack+0xa9/0xd0 [ 31.642603] ? save_stack+0x43/0xd0 [ 31.646224] ? __kasan_slab_free+0x11a/0x170 [ 31.650626] ? kasan_slab_free+0xe/0x10 [ 31.654593] ? putname+0xf2/0x130 [ 31.658043] ? __x64_sys_openat+0x9d/0x100 [ 31.662281] ? do_syscall_64+0x1b9/0x820 [ 31.666342] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.671706] ? trace_hardirqs_off+0xb8/0x2b0 [ 31.676113] ? kasan_check_read+0x11/0x20 [ 31.680257] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.684661] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.689069] ? initcall_blacklisted+0x9a/0x1e0 [ 31.693667] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 31.698768] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.704481] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.710018] ? do_vfs_ioctl+0x201/0x1720 [ 31.714085] ? rcu_is_watching+0x8c/0x150 [ 31.718252] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.722571] ? ioctl_preallocate+0x300/0x300 [ 31.726986] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.732519] ? __fget_light+0x2f7/0x440 [ 31.736490] ? fget_raw+0x20/0x20 [ 31.739940] ? putname+0xf2/0x130 [ 31.743394] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.748410] ? kmem_cache_free+0x246/0x280 [ 31.752641] ? putname+0xf7/0x130 [ 31.756102] do_group_exit+0x177/0x440 [ 31.759991] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.764307] ? __ia32_sys_exit+0x50/0x50 [ 31.768367] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.773471] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.779002] ? ksys_ioctl+0x81/0xd0 [ 31.782627] __x64_sys_exit_group+0x3e/0x50 [ 31.786947] do_syscall_64+0x1b9/0x820 [ 31.790841] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 31.796205] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.801133] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.805972] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 31.810986] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.816004] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.820853] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.826037] RIP: 0033:0x43ef08 [ 31.829230] Code: Bad RIP value. [ 31.832587] RSP: 002b:00007ffcf9cbb048 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.840292] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 31.847557] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.854823] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.862109] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 31.869373] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 31.876642] [ 31.878262] Allocated by task 4317: [ 31.881888] save_stack+0x43/0xd0 [ 31.885334] kasan_kmalloc+0xc4/0xe0 [ 31.889044] kasan_slab_alloc+0x12/0x20 [ 31.893020] kmem_cache_alloc+0x12e/0x710 [ 31.897169] vmx_create_vcpu+0xcf/0x2830 [ 31.901233] kvm_arch_vcpu_create+0xe5/0x220 [ 31.905638] kvm_vm_ioctl+0x488/0x1d80 [ 31.909525] do_vfs_ioctl+0x1de/0x1720 [ 31.913407] ksys_ioctl+0xa9/0xd0 [ 31.916859] __x64_sys_ioctl+0x73/0xb0 [ 31.920828] do_syscall_64+0x1b9/0x820 [ 31.924719] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.930227] [ 31.931858] Freed by task 4317: [ 31.935150] save_stack+0x43/0xd0 [ 31.938625] __kasan_slab_free+0x11a/0x170 [ 31.942858] kasan_slab_free+0xe/0x10 [ 31.946655] kmem_cache_free+0x86/0x280 [ 31.950623] vmx_free_vcpu+0x26b/0x300 [ 31.954505] kvm_arch_destroy_vm+0x365/0x7c0 [ 31.958909] kvm_put_kvm+0x73f/0x1060 [ 31.962707] kvm_vm_release+0x42/0x50 [ 31.966589] __fput+0x36e/0x8c0 [ 31.969869] ____fput+0x15/0x20 [ 31.973142] task_work_run+0x1e8/0x2a0 [ 31.977025] do_exit+0x1ae4/0x26e0 [ 31.980559] do_group_exit+0x177/0x440 [ 31.984441] __x64_sys_exit_group+0x3e/0x50 [ 31.988762] do_syscall_64+0x1b9/0x820 [ 31.992651] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.997826] [ 31.999458] The buggy address belongs to the object at ffff8801bb118040 [ 31.999458] which belongs to the cache kvm_vcpu of size 23872 [ 32.012036] The buggy address is located 24 bytes inside of [ 32.012036] 23872-byte region [ffff8801bb118040, ffff8801bb11dd80) [ 32.023998] The buggy address belongs to the page: [ 32.028925] page:ffffea0006ec4600 count:1 mapcount:0 mapping:ffff8801d4c99dc0 index:0x0 compound_mapcount: 0 [ 32.038896] flags: 0x2fffc0000008100(slab|head) [ 32.043570] raw: 02fffc0000008100 ffff8801d4c90848 ffff8801d4c90848 ffff8801d4c99dc0 [ 32.051451] raw: 0000000000000000 ffff8801bb118040 0000000100000001 0000000000000000 [ 32.059324] page dumped because: kasan: bad access detected [ 32.065534] [ 32.067154] Memory state around the buggy address: [ 32.072089] ffff8801bb117f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.079447] ffff8801bb117f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.086799] >ffff8801bb118000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.094151] ^ [ 32.100378] ffff8801bb118080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.107729] ffff8801bb118100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.115082] ================================================================== [ 32.122434] Kernel panic - not syncing: panic_on_warn set ... [ 32.122434] [ 32.129809] CPU: 1 PID: 4317 Comm: syz-executor244 Tainted: G B 4.18.0+ #208 [ 32.138322] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.147673] Call Trace: [ 32.150439] dump_stack+0x1c9/0x2b4 [ 32.154066] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.159266] ? lock_downgrade+0x8f0/0x8f0 [ 32.163410] ? __schedule+0xf54/0x1df0 [ 32.167295] panic+0x238/0x4e7 [ 32.170484] ? add_taint.cold.5+0x16/0x16 [ 32.174637] ? print_shadow_for_address+0xba/0x116 [ 32.179561] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.183967] ? trace_hardirqs_off+0x77/0x2b0 [ 32.188371] ? __schedule+0xf54/0x1df0 [ 32.192256] kasan_end_report+0x47/0x4f [ 32.196229] kasan_report.cold.7+0x76/0x30d [ 32.200551] __asan_report_load8_noabort+0x14/0x20 [ 32.205476] __schedule+0xf54/0x1df0 [ 32.209191] ? __sched_text_start+0x8/0x8 [ 32.213335] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 32.218435] ? __call_srcu+0x7e7/0x1040 [ 32.222417] ? check_same_owner+0x340/0x340 [ 32.226731] ? mark_held_locks+0x160/0x160 [ 32.230959] ? find_held_lock+0x36/0x1c0 [ 32.235021] preempt_schedule_common+0x22/0x60 [ 32.239602] _cond_resched+0x1d/0x30 [ 32.243313] wait_for_completion+0xa5/0x8d0 [ 32.247634] ? wait_for_completion_interruptible+0x950/0x950 [ 32.253426] ? __lockdep_init_map+0x105/0x590 [ 32.257918] ? __init_waitqueue_head+0x9e/0x150 [ 32.262580] ? init_wait_entry+0x1c0/0x1c0 [ 32.266815] __synchronize_srcu+0x189/0x240 [ 32.271223] ? call_srcu+0x10/0x10 [ 32.274762] ? rcu_unexpedite_gp+0x20/0x20 [ 32.279001] synchronize_srcu+0x335/0x56f [ 32.283150] ? lock_downgrade+0x8f0/0x8f0 [ 32.287296] ? synchronize_srcu_expedited+0x20/0x20 [ 32.292311] ? kasan_check_read+0x11/0x20 [ 32.296464] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.301049] ? kasan_check_write+0x14/0x20 [ 32.305292] ? do_raw_spin_lock+0xc1/0x200 [ 32.309533] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.315244] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.320694] ? kvfree+0x61/0x70 [ 32.323976] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.328993] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.333049] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.337468] ? kvm_arch_sync_events+0x30/0x30 [ 32.341969] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.347505] ? mmu_notifier_unregister+0x474/0x600 [ 32.352434] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.356845] ? kfree+0x111/0x210 [ 32.360219] ? __mmu_notifier_register+0x30/0x30 [ 32.364978] ? __free_pages+0x10a/0x190 [ 32.368953] ? free_unref_page+0x930/0x930 [ 32.373197] kvm_put_kvm+0x73f/0x1060 [ 32.377000] ? kvm_write_guest_cached+0x40/0x40 [ 32.381687] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.386183] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.390673] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.395261] ? kasan_check_write+0x14/0x20 [ 32.399490] ? do_raw_spin_lock+0xc1/0x200 [ 32.403724] ? kvm_irqfd_release+0xdd/0x120 [ 32.408039] ? kvm_irqfd_release+0xdd/0x120 [ 32.412361] ? kvm_put_kvm+0x1060/0x1060 [ 32.416419] kvm_vm_release+0x42/0x50 [ 32.420215] __fput+0x36e/0x8c0 [ 32.423503] ? __alloc_file+0x400/0x400 [ 32.427476] ? check_same_owner+0x340/0x340 [ 32.431795] ? kasan_check_write+0x14/0x20 [ 32.436037] ? do_raw_spin_lock+0xc1/0x200 [ 32.440267] ____fput+0x15/0x20 [ 32.443541] task_work_run+0x1e8/0x2a0 [ 32.447427] ? task_work_cancel+0x240/0x240 [ 32.451748] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.457284] ? switch_task_namespaces+0xa2/0xd0 [ 32.461954] do_exit+0x1ae4/0x26e0 [ 32.465492] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.470166] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.474402] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.479412] ? kfree+0x1d7/0x210 [ 32.482778] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.487012] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.492721] ? is_bpf_text_address+0xd7/0x170 [ 32.497211] ? kernel_text_address+0x79/0xf0 [ 32.501615] ? __kernel_text_address+0xd/0x40 [ 32.506112] ? unwind_get_return_address+0x61/0xa0 [ 32.511041] ? __save_stack_trace+0x8d/0xf0 [ 32.515368] ? save_stack+0xa9/0xd0 [ 32.518993] ? save_stack+0x43/0xd0 [ 32.522614] ? __kasan_slab_free+0x11a/0x170 [ 32.527015] ? kasan_slab_free+0xe/0x10 [ 32.530982] ? putname+0xf2/0x130 [ 32.534431] ? __x64_sys_openat+0x9d/0x100 [ 32.538663] ? do_syscall_64+0x1b9/0x820 [ 32.542727] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.548100] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.552504] ? kasan_check_read+0x11/0x20 [ 32.556651] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.561057] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.565469] ? initcall_blacklisted+0x9a/0x1e0 [ 32.570146] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.575251] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.580960] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.586495] ? do_vfs_ioctl+0x201/0x1720 [ 32.590553] ? rcu_is_watching+0x8c/0x150 [ 32.594693] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.599010] ? ioctl_preallocate+0x300/0x300 [ 32.603417] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.608949] ? __fget_light+0x2f7/0x440 [ 32.612918] ? fget_raw+0x20/0x20 [ 32.616364] ? putname+0xf2/0x130 [ 32.619816] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.624830] ? kmem_cache_free+0x246/0x280 [ 32.629069] ? putname+0xf7/0x130 [ 32.632535] do_group_exit+0x177/0x440 [ 32.636418] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.640736] ? __ia32_sys_exit+0x50/0x50 [ 32.644792] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.649895] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.655426] ? ksys_ioctl+0x81/0xd0 [ 32.659054] __x64_sys_exit_group+0x3e/0x50 [ 32.663381] do_syscall_64+0x1b9/0x820 [ 32.667354] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.672717] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.677660] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.682499] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.687512] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.692531] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.697381] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.702564] RIP: 0033:0x43ef08 [ 32.705758] Code: Bad RIP value. [ 32.709115] RSP: 002b:00007ffcf9cbb048 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.716821] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 32.724109] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.731372] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.738635] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.745897] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.753178] [ 32.753184] ====================================================== [ 32.753189] WARNING: possible circular locking dependency detected [ 32.753193] 4.18.0+ #208 Not tainted [ 32.753198] ------------------------------------------------------ [ 32.753203] syz-executor244/4317 is trying to acquire lock: [ 32.753207] 00000000b091174e ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 32.753221] [ 32.753225] but task is already holding lock: [ 32.753229] 00000000a62ec1cd (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.753243] [ 32.753248] which lock already depends on the new lock. [ 32.753250] [ 32.753253] [ 32.753258] the existing dependency chain (in reverse order) is: [ 32.753260] [ 32.753262] -> #3 (report_lock){....}: [ 32.753277] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.753281] kasan_report+0x8e/0x110 [ 32.753285] __asan_report_load8_noabort+0x14/0x20 [ 32.753289] __schedule+0xf54/0x1df0 [ 32.753294] preempt_schedule_common+0x22/0x60 [ 32.753297] _cond_resched+0x1d/0x30 [ 32.753302] wait_for_completion+0xa5/0x8d0 [ 32.753306] __synchronize_srcu+0x189/0x240 [ 32.753310] synchronize_srcu+0x335/0x56f [ 32.753315] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.753319] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.753323] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.753327] kvm_put_kvm+0x73f/0x1060 [ 32.753331] kvm_vm_release+0x42/0x50 [ 32.753334] __fput+0x36e/0x8c0 [ 32.753338] ____fput+0x15/0x20 [ 32.753342] task_work_run+0x1e8/0x2a0 [ 32.753346] do_exit+0x1ae4/0x26e0 [ 32.753350] do_group_exit+0x177/0x440 [ 32.753354] __x64_sys_exit_group+0x3e/0x50 [ 32.753358] do_syscall_64+0x1b9/0x820 [ 32.753363] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.753365] [ 32.753367] -> #2 (&rq->lock){-.-.}: [ 32.753381] _raw_spin_lock+0x2a/0x40 [ 32.753385] task_fork_fair+0x93/0x680 [ 32.753389] sched_fork+0x44b/0xbd0 [ 32.753393] copy_process+0x235e/0x7ad0 [ 32.753397] _do_fork+0x1ca/0x1170 [ 32.753401] kernel_thread+0x34/0x40 [ 32.753404] rest_init+0x22/0xe4 [ 32.753408] start_kernel+0x913/0x94e [ 32.753413] x86_64_start_reservations+0x29/0x2b [ 32.753417] x86_64_start_kernel+0x76/0x79 [ 32.753421] secondary_startup_64+0xa4/0xb0 [ 32.753423] [ 32.753426] -> #1 (&p->pi_lock){-.-.}: [ 32.753440] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.753444] try_to_wake_up+0xd2/0x1250 [ 32.753448] wake_up_process+0x10/0x20 [ 32.753452] __up.isra.1+0x1c0/0x2a0 [ 32.753455] up+0x13c/0x1c0 [ 32.753459] __up_console_sem+0xbe/0x1b0 [ 32.753463] console_unlock+0x506/0x10d0 [ 32.753467] vprintk_emit+0x33a/0x910 [ 32.753471] vprintk_default+0x28/0x30 [ 32.753475] vprintk_func+0x7a/0x117 [ 32.753478] printk+0xa7/0xcf [ 32.753482] load_umh+0x51/0xbd [ 32.753486] do_one_initcall+0x127/0x838 [ 32.753490] kernel_init_freeable+0x4bb/0x5ae [ 32.753494] kernel_init+0x11/0x1b3 [ 32.753498] ret_from_fork+0x3a/0x50 [ 32.753500] [ 32.753503] -> #0 ((console_sem).lock){-...}: [ 32.753517] lock_acquire+0x1e4/0x4f0 [ 32.753522] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.753525] down_trylock+0x13/0x70 [ 32.753530] __down_trylock_console_sem+0xae/0x200 [ 32.753534] console_trylock+0x15/0xa0 [ 32.753538] vprintk_emit+0x31f/0x910 [ 32.753542] vprintk_default+0x28/0x30 [ 32.753546] vprintk_func+0x7a/0x117 [ 32.753549] printk+0xa7/0xcf [ 32.753553] kasan_report+0x9e/0x110 [ 32.753557] __asan_report_load8_noabort+0x14/0x20 [ 32.753561] __schedule+0xf54/0x1df0 [ 32.753566] preempt_schedule_common+0x22/0x60 [ 32.753569] _cond_resched+0x1d/0x30 [ 32.753574] wait_for_completion+0xa5/0x8d0 [ 32.753578] __synchronize_srcu+0x189/0x240 [ 32.753582] synchronize_srcu+0x335/0x56f [ 32.753587] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.753591] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.753595] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.753599] kvm_put_kvm+0x73f/0x1060 [ 32.753603] kvm_vm_release+0x42/0x50 [ 32.753607] __fput+0x36e/0x8c0 [ 32.753610] ____fput+0x15/0x20 [ 32.753614] task_work_run+0x1e8/0x2a0 [ 32.753618] do_exit+0x1ae4/0x26e0 [ 32.753622] do_group_exit+0x177/0x440 [ 32.753626] __x64_sys_exit_group+0x3e/0x50 [ 32.753630] do_syscall_64+0x1b9/0x820 [ 32.753635] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.753637] [ 32.753641] other info that might help us debug this: [ 32.753643] [ 32.753647] Chain exists of: [ 32.753649] (console_sem).lock --> &rq->lock --> report_lock [ 32.753667] [ 32.753671] Possible unsafe locking scenario: [ 32.753673] [ 32.753677] CPU0 CPU1 [ 32.753682] ---- ---- [ 32.753684] lock(report_lock); [ 32.753693] lock(&rq->lock); [ 32.753703] lock(report_lock); [ 32.753711] lock((console_sem).lock); [ 32.753719] [ 32.753722] *** DEADLOCK *** [ 32.753724] [ 32.753728] 2 locks held by syz-executor244/4317: [ 32.753731] #0: 00000000a3d484d0 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 32.753748] #1: 00000000a62ec1cd (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.753765] [ 32.753768] stack backtrace: [ 32.753773] CPU: 1 PID: 4317 Comm: syz-executor244 Not tainted 4.18.0+ #208 [ 32.753781] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.753784] Call Trace: [ 32.753787] dump_stack+0x1c9/0x2b4 [ 32.753792] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.753796] ? vprintk_func+0x100/0x117 [ 32.753801] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 32.753805] ? save_trace+0xe0/0x290 [ 32.753809] __lock_acquire+0x3449/0x5020 [ 32.753813] ? mark_held_locks+0x160/0x160 [ 32.753817] ? mark_held_locks+0x160/0x160 [ 32.753821] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.753825] ? is_bpf_text_address+0xd7/0x170 [ 32.753830] ? kernel_text_address+0x79/0xf0 [ 32.753834] ? __kernel_text_address+0xd/0x40 [ 32.753844] ? __save_stack_trace+0x8d/0xf0 [ 32.753848] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 32.753852] ? save_trace+0x290/0x290 [ 32.753856] ? save_stack_trace+0x1a/0x20 [ 32.753860] ? save_trace+0xe0/0x290 [ 32.753864] ? graph_lock+0x170/0x170 [ 32.753868] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.753872] lock_acquire+0x1e4/0x4f0 [ 32.753876] ? down_trylock+0x13/0x70 [ 32.753880] ? lock_release+0x9f0/0x9f0 [ 32.753884] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.753888] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.753892] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.753896] ? log_store+0x34f/0x4c0 [ 32.753900] ? vprintk_emit+0x31f/0x910 [ 32.753904] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.753908] ? down_trylock+0x13/0x70 [ 32.753912] down_trylock+0x13/0x70 [ 32.753916] __down_trylock_console_sem+0xae/0x200 [ 32.753920] console_trylock+0x15/0xa0 [ 32.753923] vprintk_emit+0x31f/0x910 [ 32.753927] ? wake_up_klogd+0x110/0x110 [ 32.753932] ? run_rebalance_domains+0x4c0/0x4c0 [ 32.753936] ? kasan_check_read+0x11/0x20 [ 32.753940] ? rcu_is_watching+0x8c/0x150 [ 32.753943] ? rcu_pm_notify+0xc0/0xc0 [ 32.753947] ? lock_acquire+0x1e4/0x4f0 [ 32.753951] ? kasan_report+0x8e/0x110 [ 32.753955] ? __schedule+0xf54/0x1df0 [ 32.753959] vprintk_default+0x28/0x30 [ 32.753963] vprintk_func+0x7a/0x117 [ 32.753966] printk+0xa7/0xcf [ 32.753971] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.753975] ? kasan_check_write+0x14/0x20 [ 32.753979] ? do_raw_spin_lock+0xc1/0x200 [ 32.753983] ? do_raw_spin_lock+0xc1/0x200 [ 32.753987] kasan_report+0x9e/0x110 [ 32.753991] __asan_report_load8_noabort+0x14/0x20 [ 32.753995] __schedule+0xf54/0x1df0 [ 32.753999] ? __sched_text_start+0x8/0x8 [ 32.754003] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 32.754007] ? __call_srcu+0x7e7/0x1040 [ 32.754011] ? check_same_owner+0x340/0x340 [ 32.754016] ? mark_held_locks+0x160/0x160 [ 32.754020] ? find_held_lock+0x36/0x1c0 [ 32.754024] preempt_schedule_common+0x22/0x60 [ 32.754028] _cond_resched+0x1d/0x30 [ 32.754032] wait_for_completion+0xa5/0x8d0 [ 32.754037] ? wait_for_completion_interruptible+0x950/0x950 [ 32.754041] ? __lockdep_init_map+0x105/0x590 [ 32.754045] ? __init_waitqueue_head+0x9e/0x150 [ 32.754049] ? init_wait_entry+0x1c0/0x1c0 [ 32.754054] __synchronize_srcu+0x189/0x240 [ 32.754057] ? call_srcu+0x10/0x10 [ 32.754062] ? rcu_unexpedite_gp+0x20/0x20 [ 32.754066] synchronize_srcu+0x335/0x56f [ 32.754070] ? lock_downgrade+0x8f0/0x8f0 [ 32.754083] ? synchronize_srcu_expedited+0x20/0x20 [ 32.754088] ? kasan_check_read+0x11/0x20 [ 32.754092] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.754096] ? kasan_check_write+0x14/0x20 [ 32.754100] ? do_raw_spin_lock+0xc1/0x200 [ 32.754105] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.754110] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.754114] ? kvfree+0x61/0x70 [ 32.754118] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.754122] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.754126] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.754131] ? kvm_arch_sync_events+0x30/0x30 [ 32.754135] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.754140] ? mmu_notifier_unregister+0x474/0x600 [ 32.754144] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.754148] ? kfree+0x111/0x210 [ 32.754152] ? __mmu_notifier_register+0x30/0x30 [ 32.754156] ? __free_pages+0x10a/0x190 [ 32.754160] ? free_unref_page+0x930/0x930 [ 32.754164] kvm_put_kvm+0x73f/0x1060 [ 32.754168] ? kvm_write_guest_cached+0x40/0x40 [ 32.754173] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.754177] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.754181] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.754185] ? kasan_check_write+0x14/0x20 [ 32.754189] ? do_raw_spin_lock+0xc1/0x200 [ 32.754193] ? kvm_irqfd_release+0xdd/0x120 [ 32.754198] ? kvm_irqfd_release+0xdd/0x120 [ 32.754202] ? kvm_put_kvm+0x1060/0x1060 [ 32.754205] kvm_vm_release+0x42/0x50 [ 32.754209] __fput+0x36e/0x8c0 [ 32.754216] ? __alloc_file+0x400/0x400 [ 32.754220] ? check_same_owner+0x340/0x340 [ 32.754224] ? kasan_check_write+0x14/0x20 [ 32.754228] ? do_raw_spin_lock+0xc1/0x200 [ 32.754231] ____fput+0x15/0x20 [ 32.754235] task_work_run+0x1e8/0x2a0 [ 32.754239] ? task_work_cancel+0x240/0x240 [ 32.754244] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.754249] ? switch_task_namespaces+0xa2/0xd0 [ 32.754252] do_exit+0x1ae4/0x26e0 [ 32.754257] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.754261] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.754265] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.754269] ? kfree+0x1d7/0x210 [ 32.754273] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.754278] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.754282] ? is_bpf_text_address+0xd7/0x170 [ 32.754285] ? kernel_ [ 32.754293] Lost 54 message(s)! [ 33.828403] Shutting down cpus with NMI [ 34.887832] Dumping ftrace buffer: [ 34.891362] (ftrace buffer empty) [ 34.895049] Kernel Offset: disabled [ 34.898656] Rebooting in 86400 seconds..