[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.315002] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.097600] random: sshd: uninitialized urandom read (32 bytes read) [ 29.437116] random: sshd: uninitialized urandom read (32 bytes read) [ 30.020889] random: sshd: uninitialized urandom read (32 bytes read) [ 30.200208] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.205' (ECDSA) to the list of known hosts. [ 36.131135] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.231684] 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.258372] ================================================================== [ 36.268299] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 36.274529] Read of size 8 at addr ffff8801d8e60058 by task syz-executor408/4676 [ 36.282051] [ 36.283678] CPU: 0 PID: 4676 Comm: syz-executor408 Not tainted 4.19.0-rc2+ #2 [ 36.290943] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.300289] Call Trace: [ 36.302886] dump_stack+0x1c9/0x2b4 [ 36.306515] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.311704] ? printk+0xa7/0xcf [ 36.314983] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.319742] ? __schedule+0xf54/0x1df0 [ 36.323633] print_address_description+0x6c/0x20b [ 36.328477] ? __schedule+0xf54/0x1df0 [ 36.332374] kasan_report.cold.7+0x242/0x30d [ 36.336792] __asan_report_load8_noabort+0x14/0x20 [ 36.341718] __schedule+0xf54/0x1df0 [ 36.345430] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.350537] ? __sched_text_start+0x8/0x8 [ 36.354683] ? __call_srcu+0x7e7/0x1040 [ 36.358666] ? check_same_owner+0x340/0x340 [ 36.362980] ? mark_held_locks+0x160/0x160 [ 36.367215] ? find_held_lock+0x36/0x1c0 [ 36.371277] preempt_schedule_common+0x22/0x60 [ 36.375857] _cond_resched+0x1d/0x30 [ 36.379564] wait_for_completion+0xa5/0x8d0 [ 36.383893] ? wait_for_completion_interruptible+0x950/0x950 [ 36.389688] ? __lockdep_init_map+0x105/0x590 [ 36.394182] ? __init_waitqueue_head+0x9e/0x150 [ 36.398846] ? init_wait_entry+0x1c0/0x1c0 [ 36.403082] __synchronize_srcu+0x189/0x240 [ 36.407404] ? call_srcu+0x10/0x10 [ 36.410942] ? rcu_unexpedite_gp+0x20/0x20 [ 36.415183] synchronize_srcu+0x335/0x56f [ 36.419325] ? lock_downgrade+0x8f0/0x8f0 [ 36.423473] ? synchronize_srcu_expedited+0x20/0x20 [ 36.428491] ? kasan_check_read+0x11/0x20 [ 36.432641] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.437223] ? kasan_check_write+0x14/0x20 [ 36.441453] ? do_raw_spin_lock+0xc1/0x200 [ 36.445689] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.451411] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.456861] ? kvfree+0x61/0x70 [ 36.460147] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.465173] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.469234] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.473643] ? kvm_arch_sync_events+0x30/0x30 [ 36.478149] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.483690] ? mmu_notifier_unregister+0x474/0x600 [ 36.488618] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.493022] ? kfree+0x111/0x210 [ 36.496388] ? __mmu_notifier_register+0x30/0x30 [ 36.501155] ? __free_pages+0x10a/0x190 [ 36.505127] ? free_unref_page+0x930/0x930 [ 36.509375] kvm_put_kvm+0x73f/0x1060 [ 36.513187] ? kvm_write_guest_cached+0x40/0x40 [ 36.517856] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.522348] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.526838] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.531439] ? kasan_check_write+0x14/0x20 [ 36.535679] ? do_raw_spin_lock+0xc1/0x200 [ 36.539914] ? kvm_irqfd_release+0xdd/0x120 [ 36.544229] ? kvm_irqfd_release+0xdd/0x120 [ 36.548561] ? kvm_put_kvm+0x1060/0x1060 [ 36.552619] kvm_vm_release+0x42/0x50 [ 36.556422] __fput+0x38a/0xa40 [ 36.559699] ? __alloc_file+0x400/0x400 [ 36.563679] ? check_same_owner+0x340/0x340 [ 36.568001] ? kasan_check_write+0x14/0x20 [ 36.572238] ? do_raw_spin_lock+0xc1/0x200 [ 36.576471] ____fput+0x15/0x20 [ 36.579748] task_work_run+0x1e8/0x2a0 [ 36.583636] ? task_work_cancel+0x240/0x240 [ 36.587957] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.593491] ? switch_task_namespaces+0xa2/0xd0 [ 36.598164] do_exit+0x1ae4/0x26e0 [ 36.601711] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.606389] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.610635] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.615661] ? kfree+0x1d7/0x210 [ 36.619029] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.623263] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.628987] ? is_bpf_text_address+0xd7/0x170 [ 36.633481] ? kernel_text_address+0x79/0xf0 [ 36.637882] ? __kernel_text_address+0xd/0x40 [ 36.642376] ? unwind_get_return_address+0x61/0xa0 [ 36.647307] ? __save_stack_trace+0x8d/0xf0 [ 36.651633] ? save_stack+0xa9/0xd0 [ 36.655255] ? save_stack+0x43/0xd0 [ 36.658875] ? __kasan_slab_free+0x11a/0x170 [ 36.663275] ? kasan_slab_free+0xe/0x10 [ 36.667244] ? putname+0xf2/0x130 [ 36.670694] ? __x64_sys_openat+0x9d/0x100 [ 36.674924] ? do_syscall_64+0x1b9/0x820 [ 36.678980] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.684338] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.688738] ? kasan_check_read+0x11/0x20 [ 36.692879] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.697283] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.701692] ? initcall_blacklisted+0x9a/0x1e0 [ 36.706272] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.711377] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.717090] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.722623] ? do_vfs_ioctl+0x201/0x1720 [ 36.726679] ? rcu_is_watching+0x8c/0x150 [ 36.730822] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.735149] ? ioctl_preallocate+0x300/0x300 [ 36.739554] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.745084] ? __fget_light+0x2f7/0x440 [ 36.749058] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.754588] ? smack_file_ioctl+0x210/0x3c0 [ 36.758906] ? fget_raw+0x20/0x20 [ 36.762355] ? smack_file_lock+0x2e0/0x2e0 [ 36.766596] do_group_exit+0x177/0x440 [ 36.770480] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.774797] ? __ia32_sys_exit+0x50/0x50 [ 36.778855] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.783956] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.789493] ? ksys_ioctl+0x81/0xd0 [ 36.793121] __x64_sys_exit_group+0x3e/0x50 [ 36.797452] do_syscall_64+0x1b9/0x820 [ 36.801426] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.806786] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.811711] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.816552] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 36.821571] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.826589] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.831433] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.836614] RIP: 0033:0x43ef08 [ 36.839802] Code: Bad RIP value. [ 36.843169] RSP: 002b:00007ffc372a20f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.850869] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 36.858134] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.865441] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.872709] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.879975] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.887242] [ 36.888864] Allocated by task 4676: [ 36.892491] save_stack+0x43/0xd0 [ 36.895935] kasan_kmalloc+0xc4/0xe0 [ 36.899648] kasan_slab_alloc+0x12/0x20 [ 36.903620] kmem_cache_alloc+0x12e/0x710 [ 36.907775] vmx_create_vcpu+0xcf/0x2830 [ 36.911833] kvm_arch_vcpu_create+0xe5/0x220 [ 36.916242] kvm_vm_ioctl+0x488/0x1d80 [ 36.920126] do_vfs_ioctl+0x1de/0x1720 [ 36.924027] ksys_ioctl+0xa9/0xd0 [ 36.927474] __x64_sys_ioctl+0x73/0xb0 [ 36.931356] do_syscall_64+0x1b9/0x820 [ 36.935236] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.940424] [ 36.942061] Freed by task 4676: [ 36.945358] save_stack+0x43/0xd0 [ 36.948817] __kasan_slab_free+0x11a/0x170 [ 36.953048] kasan_slab_free+0xe/0x10 [ 36.956842] kmem_cache_free+0x86/0x280 [ 36.960808] vmx_free_vcpu+0x26b/0x300 [ 36.964863] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.969268] kvm_put_kvm+0x73f/0x1060 [ 36.973067] kvm_vm_release+0x42/0x50 [ 36.976861] __fput+0x38a/0xa40 [ 36.980136] ____fput+0x15/0x20 [ 36.983423] task_work_run+0x1e8/0x2a0 [ 36.987308] do_exit+0x1ae4/0x26e0 [ 36.990843] do_group_exit+0x177/0x440 [ 36.994722] __x64_sys_exit_group+0x3e/0x50 [ 36.999037] do_syscall_64+0x1b9/0x820 [ 37.003623] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.008795] [ 37.010423] The buggy address belongs to the object at ffff8801d8e60040 [ 37.010423] which belongs to the cache kvm_vcpu of size 23872 [ 37.022990] The buggy address is located 24 bytes inside of [ 37.022990] 23872-byte region [ffff8801d8e60040, ffff8801d8e65d80) [ 37.034940] The buggy address belongs to the page: [ 37.039868] page:ffffea0007639800 count:1 mapcount:0 mapping:ffff8801d4d71c00 index:0x0 compound_mapcount: 0 [ 37.049836] flags: 0x2fffc0000008100(slab|head) [ 37.054507] raw: 02fffc0000008100 ffff8801d4d68248 ffff8801d4d68248 ffff8801d4d71c00 [ 37.062386] raw: 0000000000000000 ffff8801d8e60040 0000000100000001 0000000000000000 [ 37.070266] page dumped because: kasan: bad access detected [ 37.075963] [ 37.077575] Memory state around the buggy address: [ 37.082497] ffff8801d8e5ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.089848] ffff8801d8e5ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.097203] >ffff8801d8e60000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.104553] ^ [ 37.110780] ffff8801d8e60080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.118144] ffff8801d8e60100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.126274] ================================================================== [ 37.133622] Kernel panic - not syncing: panic_on_warn set ... [ 37.133622] [ 37.140998] CPU: 0 PID: 4676 Comm: syz-executor408 Tainted: G B 4.19.0-rc2+ #2 [ 37.149650] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.158998] Call Trace: [ 37.161589] dump_stack+0x1c9/0x2b4 [ 37.165214] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.170437] ? lock_downgrade+0x8f0/0x8f0 [ 37.174581] ? __schedule+0xf54/0x1df0 [ 37.178472] panic+0x238/0x4e7 [ 37.181658] ? add_taint.cold.5+0x16/0x16 [ 37.185808] ? print_shadow_for_address+0xba/0x116 [ 37.190731] ? trace_hardirqs_off+0xaf/0x2c0 [ 37.195132] ? trace_hardirqs_off+0x77/0x2c0 [ 37.199548] ? __schedule+0xf54/0x1df0 [ 37.203433] kasan_end_report+0x47/0x4f [ 37.207417] kasan_report.cold.7+0x76/0x30d [ 37.211739] __asan_report_load8_noabort+0x14/0x20 [ 37.216666] __schedule+0xf54/0x1df0 [ 37.220378] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.225482] ? __sched_text_start+0x8/0x8 [ 37.229633] ? __call_srcu+0x7e7/0x1040 [ 37.233632] ? check_same_owner+0x340/0x340 [ 37.237950] ? mark_held_locks+0x160/0x160 [ 37.242182] ? find_held_lock+0x36/0x1c0 [ 37.246244] preempt_schedule_common+0x22/0x60 [ 37.250836] _cond_resched+0x1d/0x30 [ 37.254545] wait_for_completion+0xa5/0x8d0 [ 37.258864] ? wait_for_completion_interruptible+0x950/0x950 [ 37.264662] ? __lockdep_init_map+0x105/0x590 [ 37.269167] ? __init_waitqueue_head+0x9e/0x150 [ 37.273842] ? init_wait_entry+0x1c0/0x1c0 [ 37.278076] __synchronize_srcu+0x189/0x240 [ 37.282396] ? call_srcu+0x10/0x10 [ 37.285942] ? rcu_unexpedite_gp+0x20/0x20 [ 37.290181] synchronize_srcu+0x335/0x56f [ 37.294328] ? lock_downgrade+0x8f0/0x8f0 [ 37.298474] ? synchronize_srcu_expedited+0x20/0x20 [ 37.303492] ? kasan_check_read+0x11/0x20 [ 37.307635] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.312214] ? kasan_check_write+0x14/0x20 [ 37.316447] ? do_raw_spin_lock+0xc1/0x200 [ 37.320686] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.326405] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.331855] ? kvfree+0x61/0x70 [ 37.335131] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.340161] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.344218] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.348626] ? kvm_arch_sync_events+0x30/0x30 [ 37.353122] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.358662] ? mmu_notifier_unregister+0x474/0x600 [ 37.363588] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.367997] ? kfree+0x111/0x210 [ 37.371364] ? __mmu_notifier_register+0x30/0x30 [ 37.376117] ? __free_pages+0x10a/0x190 [ 37.380094] ? free_unref_page+0x930/0x930 [ 37.384336] kvm_put_kvm+0x73f/0x1060 [ 37.388151] ? kvm_write_guest_cached+0x40/0x40 [ 37.392820] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.397310] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.401802] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.406388] ? kasan_check_write+0x14/0x20 [ 37.410624] ? do_raw_spin_lock+0xc1/0x200 [ 37.414858] ? kvm_irqfd_release+0xdd/0x120 [ 37.419176] ? kvm_irqfd_release+0xdd/0x120 [ 37.423496] ? kvm_put_kvm+0x1060/0x1060 [ 37.427554] kvm_vm_release+0x42/0x50 [ 37.431353] __fput+0x38a/0xa40 [ 37.434633] ? __alloc_file+0x400/0x400 [ 37.438608] ? check_same_owner+0x340/0x340 [ 37.442934] ? kasan_check_write+0x14/0x20 [ 37.447179] ? do_raw_spin_lock+0xc1/0x200 [ 37.451419] ____fput+0x15/0x20 [ 37.454697] task_work_run+0x1e8/0x2a0 [ 37.458579] ? task_work_cancel+0x240/0x240 [ 37.462906] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.468449] ? switch_task_namespaces+0xa2/0xd0 [ 37.473121] do_exit+0x1ae4/0x26e0 [ 37.476682] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.481356] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.485591] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.490615] ? kfree+0x1d7/0x210 [ 37.493982] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.498217] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.503931] ? is_bpf_text_address+0xd7/0x170 [ 37.508439] ? kernel_text_address+0x79/0xf0 [ 37.512849] ? __kernel_text_address+0xd/0x40 [ 37.517342] ? unwind_get_return_address+0x61/0xa0 [ 37.522269] ? __save_stack_trace+0x8d/0xf0 [ 37.526611] ? save_stack+0xa9/0xd0 [ 37.530237] ? save_stack+0x43/0xd0 [ 37.533858] ? __kasan_slab_free+0x11a/0x170 [ 37.538260] ? kasan_slab_free+0xe/0x10 [ 37.542234] ? putname+0xf2/0x130 [ 37.545688] ? __x64_sys_openat+0x9d/0x100 [ 37.549923] ? do_syscall_64+0x1b9/0x820 [ 37.553981] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.559347] ? trace_hardirqs_off+0xb8/0x2c0 [ 37.563758] ? kasan_check_read+0x11/0x20 [ 37.567913] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.572329] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.576747] ? initcall_blacklisted+0x9a/0x1e0 [ 37.581334] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.586443] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.592163] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.597715] ? do_vfs_ioctl+0x201/0x1720 [ 37.601781] ? rcu_is_watching+0x8c/0x150 [ 37.605931] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.610263] ? ioctl_preallocate+0x300/0x300 [ 37.614680] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.620227] ? __fget_light+0x2f7/0x440 [ 37.624206] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.629738] ? smack_file_ioctl+0x210/0x3c0 [ 37.634058] ? fget_raw+0x20/0x20 [ 37.637515] ? smack_file_lock+0x2e0/0x2e0 [ 37.641783] do_group_exit+0x177/0x440 [ 37.645690] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.650078] ? __ia32_sys_exit+0x50/0x50 [ 37.654149] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.659256] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.664800] ? ksys_ioctl+0x81/0xd0 [ 37.668434] __x64_sys_exit_group+0x3e/0x50 [ 37.672754] do_syscall_64+0x1b9/0x820 [ 37.676634] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.681992] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.686919] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.691762] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 37.696773] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.701789] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.706630] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.711813] RIP: 0033:0x43ef08 [ 37.715002] Code: Bad RIP value. [ 37.718360] RSP: 002b:00007ffc372a20f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.726062] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 37.733322] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.740583] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.747849] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.755115] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.762393] [ 37.762405] ====================================================== [ 37.762410] WARNING: possible circular locking dependency detected [ 37.762414] 4.19.0-rc2+ #2 Not tainted [ 37.762419] ------------------------------------------------------ [ 37.762424] syz-executor408/4676 is trying to acquire lock: [ 37.762428] 00000000205e260a ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 37.762443] [ 37.762447] but task is already holding lock: [ 37.762450] 00000000af6b5815 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.762464] [ 37.762469] which lock already depends on the new lock. [ 37.762471] [ 37.762474] [ 37.762479] the existing dependency chain (in reverse order) is: [ 37.762481] [ 37.762483] -> #3 (report_lock){....}: [ 37.762498] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.762502] kasan_report+0x8e/0x110 [ 37.762506] __asan_report_load8_noabort+0x14/0x20 [ 37.762510] __schedule+0xf54/0x1df0 [ 37.762515] preempt_schedule_common+0x22/0x60 [ 37.762519] _cond_resched+0x1d/0x30 [ 37.762523] wait_for_completion+0xa5/0x8d0 [ 37.762527] __synchronize_srcu+0x189/0x240 [ 37.762531] synchronize_srcu+0x335/0x56f [ 37.762536] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.762540] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.762544] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.762548] kvm_put_kvm+0x73f/0x1060 [ 37.762552] kvm_vm_release+0x42/0x50 [ 37.762556] __fput+0x38a/0xa40 [ 37.762559] ____fput+0x15/0x20 [ 37.762563] task_work_run+0x1e8/0x2a0 [ 37.762567] do_exit+0x1ae4/0x26e0 [ 37.762571] do_group_exit+0x177/0x440 [ 37.762575] __x64_sys_exit_group+0x3e/0x50 [ 37.762579] do_syscall_64+0x1b9/0x820 [ 37.762584] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.762586] [ 37.762588] -> #2 (&rq->lock){-.-.}: [ 37.762602] _raw_spin_lock+0x2a/0x40 [ 37.762606] task_fork_fair+0x93/0x680 [ 37.762610] sched_fork+0x44b/0xbd0 [ 37.762614] copy_process+0x235e/0x7af0 [ 37.762617] _do_fork+0x1ca/0x1170 [ 37.762621] kernel_thread+0x34/0x40 [ 37.762625] rest_init+0x22/0xe4 [ 37.762628] start_kernel+0x913/0x94e [ 37.762633] x86_64_start_reservations+0x29/0x2b [ 37.762637] x86_64_start_kernel+0x76/0x79 [ 37.762641] secondary_startup_64+0xa4/0xb0 [ 37.762643] [ 37.762646] -> #1 (&p->pi_lock){-.-.}: [ 37.762660] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.762664] try_to_wake_up+0xd2/0x1250 [ 37.762668] wake_up_process+0x10/0x20 [ 37.762672] __up.isra.1+0x1c0/0x2a0 [ 37.762675] up+0x13c/0x1c0 [ 37.762679] __up_console_sem+0xbe/0x1b0 [ 37.762683] console_unlock+0x506/0x10e0 [ 37.762687] vprintk_emit+0x33a/0x910 [ 37.762691] vprintk_default+0x28/0x30 [ 37.762695] vprintk_func+0x7a/0x117 [ 37.762698] printk+0xa7/0xcf [ 37.762702] load_umh+0x51/0xbd [ 37.762706] do_one_initcall+0x127/0x838 [ 37.762710] kernel_init_freeable+0x4bb/0x5ae [ 37.762714] kernel_init+0x11/0x1b3 [ 37.762717] ret_from_fork+0x3a/0x50 [ 37.762720] [ 37.762722] -> #0 ((console_sem).lock){-...}: [ 37.762737] lock_acquire+0x1e4/0x4f0 [ 37.762741] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.762745] down_trylock+0x13/0x70 [ 37.762749] __down_trylock_console_sem+0xae/0x200 [ 37.762753] console_trylock+0x15/0xa0 [ 37.762757] vprintk_emit+0x31f/0x910 [ 37.762761] vprintk_default+0x28/0x30 [ 37.762765] vprintk_func+0x7a/0x117 [ 37.762768] printk+0xa7/0xcf [ 37.762772] kasan_report+0x9e/0x110 [ 37.762776] __asan_report_load8_noabort+0x14/0x20 [ 37.762780] __schedule+0xf54/0x1df0 [ 37.762785] preempt_schedule_common+0x22/0x60 [ 37.762788] _cond_resched+0x1d/0x30 [ 37.762793] wait_for_completion+0xa5/0x8d0 [ 37.762797] __synchronize_srcu+0x189/0x240 [ 37.762801] synchronize_srcu+0x335/0x56f [ 37.762806] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.762810] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.762814] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.762818] kvm_put_kvm+0x73f/0x1060 [ 37.762822] kvm_vm_release+0x42/0x50 [ 37.762826] __fput+0x38a/0xa40 [ 37.762829] ____fput+0x15/0x20 [ 37.762833] task_work_run+0x1e8/0x2a0 [ 37.762837] do_exit+0x1ae4/0x26e0 [ 37.762841] do_group_exit+0x177/0x440 [ 37.762845] __x64_sys_exit_group+0x3e/0x50 [ 37.762849] do_syscall_64+0x1b9/0x820 [ 37.762853] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.762856] [ 37.762860] other info that might help us debug this: [ 37.762862] [ 37.762865] Chain exists of: [ 37.762867] (console_sem).lock --> &rq->lock --> report_lock [ 37.762886] [ 37.762890] Possible unsafe locking scenario: [ 37.762892] [ 37.762896] CPU0 CPU1 [ 37.762900] ---- ---- [ 37.762903] lock(report_lock); [ 37.762912] lock(&rq->lock); [ 37.762921] lock(report_lock); [ 37.762929] lock((console_sem).lock); [ 37.762937] [ 37.762940] *** DEADLOCK *** [ 37.762943] [ 37.762947] 2 locks held by syz-executor408/4676: [ 37.762949] #0: 00000000fc50035f (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 37.762966] #1: 00000000af6b5815 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 37.762983] [ 37.762986] stack backtrace: [ 37.762992] CPU: 0 PID: 4676 Comm: syz-executor408 Not tainted 4.19.0-rc2+ #2 [ 37.762999] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.763002] Call Trace: [ 37.763006] dump_stack+0x1c9/0x2b4 [ 37.763011] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.763015] ? vprintk_func+0x100/0x117 [ 37.763020] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 37.763023] ? save_trace+0xe0/0x290 [ 37.763027] __lock_acquire+0x3449/0x5020 [ 37.763031] ? mark_held_locks+0x160/0x160 [ 37.763035] ? mark_held_locks+0x160/0x160 [ 37.763040] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 37.763044] ? is_bpf_text_address+0xd7/0x170 [ 37.763048] ? kernel_text_address+0x79/0xf0 [ 37.763053] ? __kernel_text_address+0xd/0x40 [ 37.763057] ? __save_stack_trace+0x8d/0xf0 [ 37.763061] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 37.763065] ? save_trace+0x290/0x290 [ 37.763069] ? save_stack_trace+0x1a/0x20 [ 37.763073] ? save_trace+0xe0/0x290 [ 37.763077] ? graph_lock+0x170/0x170 [ 37.763082] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.763086] lock_acquire+0x1e4/0x4f0 [ 37.763089] ? down_trylock+0x13/0x70 [ 37.763093] ? lock_release+0x9f0/0x9f0 [ 37.763098] ? trace_hardirqs_off+0xb8/0x2c0 [ 37.763102] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.763106] ? trace_hardirqs_off+0xb8/0x2c0 [ 37.763110] ? log_store+0x34f/0x4c0 [ 37.763114] ? vprintk_emit+0x31f/0x910 [ 37.763118] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.763122] ? down_trylock+0x13/0x70 [ 37.763126] down_trylock+0x13/0x70 [ 37.763130] __down_trylock_console_sem+0xae/0x200 [ 37.763134] console_trylock+0x15/0xa0 [ 37.763146] vprintk_emit+0x31f/0x910 [ 37.763150] ? wake_up_klogd+0x110/0x110 [ 37.763155] ? run_rebalance_domains+0x4c0/0x4c0 [ 37.763159] ? kasan_check_read+0x11/0x20 [ 37.763163] ? rcu_is_watching+0x8c/0x150 [ 37.763167] ? rcu_pm_notify+0xc0/0xc0 [ 37.763171] ? lock_acquire+0x1e4/0x4f0 [ 37.763175] ? kasan_report+0x8e/0x110 [ 37.763178] ? __schedule+0xf54/0x1df0 [ 37.763182] vprintk_default+0x28/0x30 [ 37.763186] vprintk_func+0x7a/0x117 [ 37.763189] printk+0xa7/0xcf [ 37.763194] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.763198] ? kasan_check_write+0x14/0x20 [ 37.763202] ? do_raw_spin_lock+0xc1/0x200 [ 37.763206] ? do_raw_spin_lock+0xc1/0x200 [ 37.763210] kasan_report+0x9e/0x110 [ 37.763214] __asan_report_load8_noabort+0x14/0x20 [ 37.763218] __schedule+0xf54/0x1df0 [ 37.763223] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.763227] ? __sched_text_start+0x8/0x8 [ 37.763231] ? __call_srcu+0x7e7/0x1040 [ 37.763235] ? check_same_owner+0x340/0x340 [ 37.763239] ? mark_held_locks+0x160/0x160 [ 37.763243] ? find_held_lock+0x36/0x1c0 [ 37.763247] preempt_schedule_common+0x22/0x60 [ 37.763251] _cond_resched+0x1d/0x30 [ 37.763255] wait_for_completion+0xa5/0x8d0 [ 37.763260] ? wait_for_completion_interruptible+0x950/0x950 [ 37.763265] ? __lockdep_init_map+0x105/0x590 [ 37.763269] ? __init_waitqueue_head+0x9e/0x150 [ 37.763273] ? init_wait_entry+0x1c0/0x1c0 [ 37.763277] __synchronize_srcu+0x189/0x240 [ 37.763281] ? call_srcu+0x10/0x10 [ 37.763285] ? rcu_unexpedite_gp+0x20/0x20 [ 37.763289] synchronize_srcu+0x335/0x56f [ 37.763293] ? lock_downgrade+0x8f0/0x8f0 [ 37.763298] ? synchronize_srcu_expedited+0x20/0x20 [ 37.763302] ? kasan_check_read+0x11/0x20 [ 37.763306] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.763310] ? kasan_check_write+0x14/0x20 [ 37.763314] ? do_raw_spin_lock+0xc1/0x200 [ 37.763319] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.763324] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.763328] ? kvfree+0x61/0x70 [ 37.763332] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.763336] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.763341] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.763345] ? kvm_arch_sync_events+0x30/0x30 [ 37.763350] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.763354] ? mmu_notifier_unregister+0x474/0x600 [ 37.763359] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.763362] ? kfree+0x111/0x210 [ 37.763367] ? __mmu_notifier_register+0x30/0x30 [ 37.763370] ? __free_pages+0x10a/0x190 [ 37.763375] ? free_unref_page+0x930/0x930 [ 37.763378] kvm_put_kvm+0x73f/0x1060 [ 37.763383] ? kvm_write_guest_cached+0x40/0x40 [ 37.763387] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.763391] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.763395] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.763404] ? kasan_check_write+0x14/0x20 [ 37.763409] ? do_raw_spin_lock+0xc1/0x200 [ 37.763413] ? kvm_irqfd_release+0xdd/0x120 [ 37.763417] ? kvm_irqfd_release+0xdd/0x120 [ 37.763421] ? kvm_put_kvm+0x1060/0x1060 [ 37.763425] kvm_vm_release+0x42/0x50 [ 37.763428] __fput+0x38a/0xa40 [ 37.763432] ? __alloc_file+0x400/0x400 [ 37.763436] ? check_same_owner+0x340/0x340 [ 37.763440] ? kasan_check_write+0x14/0x20 [ 37.763444] ? do_raw_spin_lock+0xc1/0x200 [ 37.763448] ____fput+0x15/0x20 [ 37.763452] task_work_run+0x1e8/0x2a0 [ 37.763456] ? task_work_cancel+0x240/0x240 [ 37.763460] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.763465] ? switch_task_namespaces+0xa2/0xd0 [ 37.763468] do_exit+0x1ae4/0x26e0 [ 37.763473] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.763477] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.763481] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.763485] ? kfree+0x1d7/0x210 [ 37.763489] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.763494] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.763498] ? is_bpf_text_address+0xd7/0x170 [ 37.763501] ? ker [ 37.763508] Lost 53 message(s)! [ 38.843224] Shutting down cpus with NMI [ 39.902841] Dumping ftrace buffer: [ 39.906383] (ftrace buffer empty) [ 39.910083] Kernel Offset: disabled [ 39.913691] Rebooting in 86400 seconds..