[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.195803] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 23.784658] random: sshd: uninitialized urandom read (32 bytes read) [ 24.151467] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.739622] random: sshd: uninitialized urandom read (32 bytes read) [ 24.923641] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.60' (ECDSA) to the list of known hosts. [ 30.719049] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 30.819715] 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. [ 30.845463] ================================================================== [ 30.855313] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 30.861554] Read of size 8 at addr ffff8801b6be8058 by task syz-executor451/4665 [ 30.869083] [ 30.870716] CPU: 1 PID: 4665 Comm: syz-executor451 Not tainted 4.19.0-rc2+ #220 [ 30.878167] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.887526] Call Trace: [ 30.890123] dump_stack+0x1c9/0x2b4 [ 30.893764] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.898965] ? printk+0xa7/0xcf [ 30.902253] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.907042] ? __schedule+0xf54/0x1df0 [ 30.910937] print_address_description+0x6c/0x20b [ 30.915787] ? __schedule+0xf54/0x1df0 [ 30.919680] kasan_report.cold.7+0x242/0x30d [ 30.924100] __asan_report_load8_noabort+0x14/0x20 [ 30.929034] __schedule+0xf54/0x1df0 [ 30.932751] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 30.937861] ? __sched_text_start+0x8/0x8 [ 30.942019] ? __call_srcu+0x7e7/0x1040 [ 30.946008] ? check_same_owner+0x340/0x340 [ 30.950335] ? mark_held_locks+0x160/0x160 [ 30.954575] ? find_held_lock+0x36/0x1c0 [ 30.958642] preempt_schedule_common+0x22/0x60 [ 30.963231] _cond_resched+0x1d/0x30 [ 30.966947] wait_for_completion+0xa5/0x8d0 [ 30.971274] ? wait_for_completion_interruptible+0x950/0x950 [ 30.977074] ? __lockdep_init_map+0x105/0x590 [ 30.981576] ? __init_waitqueue_head+0x9e/0x150 [ 30.986246] ? init_wait_entry+0x1c0/0x1c0 [ 30.990483] __synchronize_srcu+0x189/0x240 [ 30.994808] ? call_srcu+0x10/0x10 [ 30.998356] ? rcu_unexpedite_gp+0x20/0x20 [ 31.002603] synchronize_srcu+0x335/0x56f [ 31.006751] ? lock_downgrade+0x8f0/0x8f0 [ 31.010899] ? synchronize_srcu_expedited+0x20/0x20 [ 31.015936] ? kasan_check_read+0x11/0x20 [ 31.020102] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.024697] ? kasan_check_write+0x14/0x20 [ 31.028974] ? do_raw_spin_lock+0xc1/0x200 [ 31.033219] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.038943] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.044402] ? kvfree+0x61/0x70 [ 31.047696] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.052718] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.056784] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.061194] ? kvm_arch_sync_events+0x30/0x30 [ 31.065696] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.071239] ? mmu_notifier_unregister+0x474/0x600 [ 31.076169] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.080583] ? kfree+0x111/0x210 [ 31.083955] ? __mmu_notifier_register+0x30/0x30 [ 31.088719] ? __free_pages+0x10a/0x190 [ 31.092722] ? free_unref_page+0x930/0x930 [ 31.096988] kvm_put_kvm+0x73f/0x1060 [ 31.101030] ? kvm_write_guest_cached+0x40/0x40 [ 31.105705] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.110203] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.114697] ? lockdep_hardirqs_on+0x421/0x5c0 [ 31.119287] ? kasan_check_write+0x14/0x20 [ 31.123520] ? do_raw_spin_lock+0xc1/0x200 [ 31.127755] ? kvm_irqfd_release+0xdd/0x120 [ 31.132103] ? kvm_irqfd_release+0xdd/0x120 [ 31.136429] ? kvm_put_kvm+0x1060/0x1060 [ 31.140492] kvm_vm_release+0x42/0x50 [ 31.144297] __fput+0x38a/0xa40 [ 31.147578] ? __alloc_file+0x400/0x400 [ 31.151559] ? check_same_owner+0x340/0x340 [ 31.155879] ? kasan_check_write+0x14/0x20 [ 31.160117] ? do_raw_spin_lock+0xc1/0x200 [ 31.164353] ____fput+0x15/0x20 [ 31.167639] task_work_run+0x1e8/0x2a0 [ 31.171529] ? task_work_cancel+0x240/0x240 [ 31.175858] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.181406] ? switch_task_namespaces+0xa2/0xd0 [ 31.186087] do_exit+0x1ae4/0x26e0 [ 31.189635] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.194313] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 31.198552] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.203570] ? kfree+0x1d7/0x210 [ 31.207414] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 31.211652] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.217368] ? is_bpf_text_address+0xd7/0x170 [ 31.221865] ? kernel_text_address+0x79/0xf0 [ 31.226283] ? __kernel_text_address+0xd/0x40 [ 31.230778] ? unwind_get_return_address+0x61/0xa0 [ 31.235710] ? __save_stack_trace+0x8d/0xf0 [ 31.240039] ? save_stack+0xa9/0xd0 [ 31.243667] ? save_stack+0x43/0xd0 [ 31.247292] ? __kasan_slab_free+0x11a/0x170 [ 31.251697] ? kasan_slab_free+0xe/0x10 [ 31.255672] ? putname+0xf2/0x130 [ 31.259129] ? __x64_sys_openat+0x9d/0x100 [ 31.263366] ? do_syscall_64+0x1b9/0x820 [ 31.267441] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.272808] ? trace_hardirqs_off+0xb8/0x2b0 [ 31.277216] ? kasan_check_read+0x11/0x20 [ 31.281367] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.285778] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.290197] ? initcall_blacklisted+0x9a/0x1e0 [ 31.294790] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 31.299912] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 31.305633] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.311179] ? do_vfs_ioctl+0x201/0x1720 [ 31.315249] ? rcu_is_watching+0x8c/0x150 [ 31.319404] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.323737] ? ioctl_preallocate+0x300/0x300 [ 31.328154] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.333706] ? __fget_light+0x2f7/0x440 [ 31.337693] ? fget_raw+0x20/0x20 [ 31.341151] ? putname+0xf2/0x130 [ 31.344618] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.349644] ? kmem_cache_free+0x246/0x280 [ 31.353899] ? putname+0xf7/0x130 [ 31.357366] do_group_exit+0x177/0x440 [ 31.361268] ? trace_hardirqs_on+0xbd/0x2c0 [ 31.365599] ? __ia32_sys_exit+0x50/0x50 [ 31.369666] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.374779] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.380328] ? ksys_ioctl+0x81/0xd0 [ 31.383960] __x64_sys_exit_group+0x3e/0x50 [ 31.388291] do_syscall_64+0x1b9/0x820 [ 31.392185] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 31.397559] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.402494] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.407342] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 31.412365] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 31.417401] ? prepare_exit_to_usermode+0x291/0x3b0 [ 31.422433] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.427285] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.432494] RIP: 0033:0x43ecd8 [ 31.435689] Code: Bad RIP value. [ 31.439052] RSP: 002b:00007ffca4aa1ab8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.446761] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 31.454029] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.461295] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.468576] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 31.475859] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 31.483138] [ 31.484759] Allocated by task 4665: [ 31.488396] save_stack+0x43/0xd0 [ 31.491845] kasan_kmalloc+0xc4/0xe0 [ 31.495564] kasan_slab_alloc+0x12/0x20 [ 31.499533] kmem_cache_alloc+0x12e/0x710 [ 31.503676] vmx_create_vcpu+0xcf/0x2830 [ 31.507736] kvm_arch_vcpu_create+0xe5/0x220 [ 31.512142] kvm_vm_ioctl+0x488/0x1d80 [ 31.516026] do_vfs_ioctl+0x1de/0x1720 [ 31.519913] ksys_ioctl+0xa9/0xd0 [ 31.523364] __x64_sys_ioctl+0x73/0xb0 [ 31.527253] do_syscall_64+0x1b9/0x820 [ 31.531138] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.536321] [ 31.537947] Freed by task 4665: [ 31.541228] save_stack+0x43/0xd0 [ 31.544677] __kasan_slab_free+0x11a/0x170 [ 31.548910] kasan_slab_free+0xe/0x10 [ 31.552708] kmem_cache_free+0x86/0x280 [ 31.556678] vmx_free_vcpu+0x26b/0x300 [ 31.560560] kvm_arch_destroy_vm+0x365/0x7c0 [ 31.564965] kvm_put_kvm+0x73f/0x1060 [ 31.568764] kvm_vm_release+0x42/0x50 [ 31.572559] __fput+0x38a/0xa40 [ 31.575831] ____fput+0x15/0x20 [ 31.579104] task_work_run+0x1e8/0x2a0 [ 31.582990] do_exit+0x1ae4/0x26e0 [ 31.586527] do_group_exit+0x177/0x440 [ 31.590412] __x64_sys_exit_group+0x3e/0x50 [ 31.594732] do_syscall_64+0x1b9/0x820 [ 31.598624] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.603801] [ 31.605425] The buggy address belongs to the object at ffff8801b6be8040 [ 31.605425] which belongs to the cache kvm_vcpu of size 23872 [ 31.618003] The buggy address is located 24 bytes inside of [ 31.618003] 23872-byte region [ffff8801b6be8040, ffff8801b6bedd80) [ 31.629963] The buggy address belongs to the page: [ 31.634899] page:ffffea0006dafa00 count:1 mapcount:0 mapping:ffff8801d52119c0 index:0x0 compound_mapcount: 0 [ 31.644887] flags: 0x2fffc0000008100(slab|head) [ 31.649592] raw: 02fffc0000008100 ffff8801d6ff2048 ffff8801d6ff2048 ffff8801d52119c0 [ 31.657476] raw: 0000000000000000 ffff8801b6be8040 0000000100000001 0000000000000000 [ 31.665348] page dumped because: kasan: bad access detected [ 31.671050] [ 31.672669] Memory state around the buggy address: [ 31.677596] ffff8801b6be7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.684957] ffff8801b6be7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.692313] >ffff8801b6be8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.699664] ^ [ 31.705895] ffff8801b6be8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.713253] ffff8801b6be8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.720607] ================================================================== [ 31.727962] Kernel panic - not syncing: panic_on_warn set ... [ 31.727962] [ 31.735327] CPU: 1 PID: 4665 Comm: syz-executor451 Tainted: G B 4.19.0-rc2+ #220 [ 31.744159] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.753508] Call Trace: [ 31.756101] dump_stack+0x1c9/0x2b4 [ 31.759728] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.764921] ? lock_downgrade+0x8f0/0x8f0 [ 31.769069] ? __schedule+0xf54/0x1df0 [ 31.772956] panic+0x238/0x4e7 [ 31.776150] ? add_taint.cold.5+0x16/0x16 [ 31.780303] ? print_shadow_for_address+0xba/0x116 [ 31.785230] ? trace_hardirqs_off+0xaf/0x2b0 [ 31.789634] ? trace_hardirqs_off+0x77/0x2b0 [ 31.794043] ? __schedule+0xf54/0x1df0 [ 31.797932] kasan_end_report+0x47/0x4f [ 31.801908] kasan_report.cold.7+0x76/0x30d [ 31.806232] __asan_report_load8_noabort+0x14/0x20 [ 31.811164] __schedule+0xf54/0x1df0 [ 31.814886] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 31.819994] ? __sched_text_start+0x8/0x8 [ 31.824146] ? __call_srcu+0x7e7/0x1040 [ 31.828129] ? check_same_owner+0x340/0x340 [ 31.832446] ? mark_held_locks+0x160/0x160 [ 31.836678] ? find_held_lock+0x36/0x1c0 [ 31.840740] preempt_schedule_common+0x22/0x60 [ 31.845323] _cond_resched+0x1d/0x30 [ 31.849035] wait_for_completion+0xa5/0x8d0 [ 31.853357] ? wait_for_completion_interruptible+0x950/0x950 [ 31.859165] ? __lockdep_init_map+0x105/0x590 [ 31.863664] ? __init_waitqueue_head+0x9e/0x150 [ 31.868338] ? init_wait_entry+0x1c0/0x1c0 [ 31.872580] __synchronize_srcu+0x189/0x240 [ 31.876908] ? call_srcu+0x10/0x10 [ 31.880455] ? rcu_unexpedite_gp+0x20/0x20 [ 31.884701] synchronize_srcu+0x335/0x56f [ 31.888850] ? lock_downgrade+0x8f0/0x8f0 [ 31.893006] ? synchronize_srcu_expedited+0x20/0x20 [ 31.898031] ? kasan_check_read+0x11/0x20 [ 31.902181] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.906769] ? kasan_check_write+0x14/0x20 [ 31.911006] ? do_raw_spin_lock+0xc1/0x200 [ 31.915275] kvm_page_track_unregister_notifier+0x17d/0x250 [ 31.920994] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 31.926447] ? kvfree+0x61/0x70 [ 31.929729] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.934746] kvm_mmu_uninit_vm+0x1c/0x20 [ 31.938810] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 31.943219] ? kvm_arch_sync_events+0x30/0x30 [ 31.947719] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.953259] ? mmu_notifier_unregister+0x474/0x600 [ 31.958190] ? trace_hardirqs_on+0x2c0/0x2c0 [ 31.962597] ? kfree+0x111/0x210 [ 31.965983] ? __mmu_notifier_register+0x30/0x30 [ 31.970743] ? __free_pages+0x10a/0x190 [ 31.974717] ? free_unref_page+0x930/0x930 [ 31.978959] kvm_put_kvm+0x73f/0x1060 [ 31.982777] ? kvm_write_guest_cached+0x40/0x40 [ 31.987452] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.991948] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.996457] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.001052] ? kasan_check_write+0x14/0x20 [ 32.005294] ? do_raw_spin_lock+0xc1/0x200 [ 32.009534] ? kvm_irqfd_release+0xdd/0x120 [ 32.013853] ? kvm_irqfd_release+0xdd/0x120 [ 32.018219] ? kvm_put_kvm+0x1060/0x1060 [ 32.022281] kvm_vm_release+0x42/0x50 [ 32.026081] __fput+0x38a/0xa40 [ 32.029367] ? __alloc_file+0x400/0x400 [ 32.033356] ? check_same_owner+0x340/0x340 [ 32.037697] ? kasan_check_write+0x14/0x20 [ 32.041932] ? do_raw_spin_lock+0xc1/0x200 [ 32.046172] ____fput+0x15/0x20 [ 32.049456] task_work_run+0x1e8/0x2a0 [ 32.053348] ? task_work_cancel+0x240/0x240 [ 32.057674] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.063218] ? switch_task_namespaces+0xa2/0xd0 [ 32.067889] do_exit+0x1ae4/0x26e0 [ 32.071442] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.076117] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.080355] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.085375] ? kfree+0x1d7/0x210 [ 32.088750] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.093009] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.098728] ? is_bpf_text_address+0xd7/0x170 [ 32.103225] ? kernel_text_address+0x79/0xf0 [ 32.107635] ? __kernel_text_address+0xd/0x40 [ 32.112130] ? unwind_get_return_address+0x61/0xa0 [ 32.117064] ? __save_stack_trace+0x8d/0xf0 [ 32.121396] ? save_stack+0xa9/0xd0 [ 32.125027] ? save_stack+0x43/0xd0 [ 32.128655] ? __kasan_slab_free+0x11a/0x170 [ 32.133079] ? kasan_slab_free+0xe/0x10 [ 32.137072] ? putname+0xf2/0x130 [ 32.140528] ? __x64_sys_openat+0x9d/0x100 [ 32.144764] ? do_syscall_64+0x1b9/0x820 [ 32.148849] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.154233] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.158641] ? kasan_check_read+0x11/0x20 [ 32.162794] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.167203] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.171612] ? initcall_blacklisted+0x9a/0x1e0 [ 32.176197] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.181328] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.187051] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.192592] ? do_vfs_ioctl+0x201/0x1720 [ 32.196651] ? rcu_is_watching+0x8c/0x150 [ 32.200797] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.205121] ? ioctl_preallocate+0x300/0x300 [ 32.210032] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.215569] ? __fget_light+0x2f7/0x440 [ 32.219546] ? fget_raw+0x20/0x20 [ 32.222999] ? putname+0xf2/0x130 [ 32.226458] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.231474] ? kmem_cache_free+0x246/0x280 [ 32.235710] ? putname+0xf7/0x130 [ 32.239170] do_group_exit+0x177/0x440 [ 32.243059] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.247381] ? __ia32_sys_exit+0x50/0x50 [ 32.251449] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.256557] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.262097] ? ksys_ioctl+0x81/0xd0 [ 32.265728] __x64_sys_exit_group+0x3e/0x50 [ 32.270055] do_syscall_64+0x1b9/0x820 [ 32.273946] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.279312] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.284240] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.289086] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.294110] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.299131] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.304153] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.309002] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.314213] RIP: 0033:0x43ecd8 [ 32.317416] Code: Bad RIP value. [ 32.320776] RSP: 002b:00007ffca4aa1ab8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.328486] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 32.335757] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.343025] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.350294] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.357571] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.364852] [ 32.364858] ====================================================== [ 32.364863] WARNING: possible circular locking dependency detected [ 32.364867] 4.19.0-rc2+ #220 Not tainted [ 32.364880] ------------------------------------------------------ [ 32.364885] syz-executor451/4665 is trying to acquire lock: [ 32.364888] 00000000b1dbf299 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 32.364904] [ 32.364908] but task is already holding lock: [ 32.364911] 00000000c3b0e814 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.364925] [ 32.364930] which lock already depends on the new lock. [ 32.364932] [ 32.364934] [ 32.364939] the existing dependency chain (in reverse order) is: [ 32.364941] [ 32.364944] -> #3 (report_lock){....}: [ 32.364958] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.364962] kasan_report+0x8e/0x110 [ 32.364966] __asan_report_load8_noabort+0x14/0x20 [ 32.364970] __schedule+0xf54/0x1df0 [ 32.364974] preempt_schedule_common+0x22/0x60 [ 32.364978] _cond_resched+0x1d/0x30 [ 32.364982] wait_for_completion+0xa5/0x8d0 [ 32.364986] __synchronize_srcu+0x189/0x240 [ 32.364990] synchronize_srcu+0x335/0x56f [ 32.364995] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.364999] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.365003] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.365007] kvm_put_kvm+0x73f/0x1060 [ 32.365010] kvm_vm_release+0x42/0x50 [ 32.365014] __fput+0x38a/0xa40 [ 32.365017] ____fput+0x15/0x20 [ 32.365021] task_work_run+0x1e8/0x2a0 [ 32.365025] do_exit+0x1ae4/0x26e0 [ 32.365028] do_group_exit+0x177/0x440 [ 32.365032] __x64_sys_exit_group+0x3e/0x50 [ 32.365036] do_syscall_64+0x1b9/0x820 [ 32.365041] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.365043] [ 32.365045] -> #2 (&rq->lock){-.-.}: [ 32.365059] _raw_spin_lock+0x2a/0x40 [ 32.365063] task_fork_fair+0x93/0x680 [ 32.365066] sched_fork+0x44b/0xbd0 [ 32.365070] copy_process+0x235e/0x7ad0 [ 32.365074] _do_fork+0x1ca/0x1170 [ 32.365077] kernel_thread+0x34/0x40 [ 32.365081] rest_init+0x22/0xe4 [ 32.365085] start_kernel+0x913/0x94e [ 32.365089] x86_64_start_reservations+0x29/0x2b [ 32.365093] x86_64_start_kernel+0x76/0x79 [ 32.365097] secondary_startup_64+0xa4/0xb0 [ 32.365099] [ 32.365101] -> #1 (&p->pi_lock){-.-.}: [ 32.365115] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.365119] try_to_wake_up+0xd2/0x1250 [ 32.365123] wake_up_process+0x10/0x20 [ 32.365127] __up.isra.1+0x1c0/0x2a0 [ 32.365130] up+0x13c/0x1c0 [ 32.365134] __up_console_sem+0xbe/0x1b0 [ 32.365137] console_unlock+0x506/0x10d0 [ 32.365141] vprintk_emit+0x33a/0x910 [ 32.365145] vprintk_default+0x28/0x30 [ 32.365149] vprintk_func+0x7a/0x117 [ 32.365152] printk+0xa7/0xcf [ 32.365155] load_umh+0x51/0xbd [ 32.365159] do_one_initcall+0x127/0x838 [ 32.365163] kernel_init_freeable+0x4bb/0x5ae [ 32.365167] kernel_init+0x11/0x1b3 [ 32.365171] ret_from_fork+0x3a/0x50 [ 32.365173] [ 32.365175] -> #0 ((console_sem).lock){-...}: [ 32.365189] lock_acquire+0x1e4/0x4f0 [ 32.365193] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.365197] down_trylock+0x13/0x70 [ 32.365201] __down_trylock_console_sem+0xae/0x200 [ 32.365205] console_trylock+0x15/0xa0 [ 32.365209] vprintk_emit+0x31f/0x910 [ 32.365213] vprintk_default+0x28/0x30 [ 32.365216] vprintk_func+0x7a/0x117 [ 32.365220] printk+0xa7/0xcf [ 32.365223] kasan_report+0x9e/0x110 [ 32.365228] __asan_report_load8_noabort+0x14/0x20 [ 32.365231] __schedule+0xf54/0x1df0 [ 32.365236] preempt_schedule_common+0x22/0x60 [ 32.365239] _cond_resched+0x1d/0x30 [ 32.365243] wait_for_completion+0xa5/0x8d0 [ 32.365247] __synchronize_srcu+0x189/0x240 [ 32.365251] synchronize_srcu+0x335/0x56f [ 32.365256] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.365260] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.365264] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.365268] kvm_put_kvm+0x73f/0x1060 [ 32.365272] kvm_vm_release+0x42/0x50 [ 32.365275] __fput+0x38a/0xa40 [ 32.365279] ____fput+0x15/0x20 [ 32.365282] task_work_run+0x1e8/0x2a0 [ 32.365286] do_exit+0x1ae4/0x26e0 [ 32.365290] do_group_exit+0x177/0x440 [ 32.365294] __x64_sys_exit_group+0x3e/0x50 [ 32.365298] do_syscall_64+0x1b9/0x820 [ 32.365302] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.365305] [ 32.365309] other info that might help us debug this: [ 32.365311] [ 32.365314] Chain exists of: [ 32.365316] (console_sem).lock --> &rq->lock --> report_lock [ 32.365334] [ 32.365338] Possible unsafe locking scenario: [ 32.365340] [ 32.365344] CPU0 CPU1 [ 32.365348] ---- ---- [ 32.365350] lock(report_lock); [ 32.365359] lock(&rq->lock); [ 32.365368] lock(report_lock); [ 32.365376] lock((console_sem).lock); [ 32.365389] [ 32.365392] *** DEADLOCK *** [ 32.365394] [ 32.365399] 2 locks held by syz-executor451/4665: [ 32.365401] #0: 000000008b149a00 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 32.365417] #1: 00000000c3b0e814 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 32.365433] [ 32.365436] stack backtrace: [ 32.365442] CPU: 1 PID: 4665 Comm: syz-executor451 Not tainted 4.19.0-rc2+ #220 [ 32.365449] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.365452] Call Trace: [ 32.365456] dump_stack+0x1c9/0x2b4 [ 32.365460] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.365464] ? vprintk_func+0x100/0x117 [ 32.365469] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 32.365472] ? save_trace+0xe0/0x290 [ 32.365476] __lock_acquire+0x3449/0x5020 [ 32.365480] ? mark_held_locks+0x160/0x160 [ 32.365484] ? mark_held_locks+0x160/0x160 [ 32.365488] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 32.365493] ? is_bpf_text_address+0xd7/0x170 [ 32.365497] ? kernel_text_address+0x79/0xf0 [ 32.365501] ? __kernel_text_address+0xd/0x40 [ 32.365505] ? __save_stack_trace+0x8d/0xf0 [ 32.365509] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 32.365513] ? save_trace+0x290/0x290 [ 32.365517] ? save_stack_trace+0x1a/0x20 [ 32.365520] ? save_trace+0xe0/0x290 [ 32.365524] ? graph_lock+0x170/0x170 [ 32.365529] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.365532] lock_acquire+0x1e4/0x4f0 [ 32.365536] ? down_trylock+0x13/0x70 [ 32.365540] ? lock_release+0x9f0/0x9f0 [ 32.365544] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.365548] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.365552] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.365556] ? log_store+0x34f/0x4c0 [ 32.365560] ? vprintk_emit+0x31f/0x910 [ 32.365564] _raw_spin_lock_irqsave+0x96/0xc0 [ 32.365567] ? down_trylock+0x13/0x70 [ 32.365571] down_trylock+0x13/0x70 [ 32.365575] __down_trylock_console_sem+0xae/0x200 [ 32.365579] console_trylock+0x15/0xa0 [ 32.365583] vprintk_emit+0x31f/0x910 [ 32.365587] ? wake_up_klogd+0x110/0x110 [ 32.365591] ? run_rebalance_domains+0x4c0/0x4c0 [ 32.365595] ? kasan_check_read+0x11/0x20 [ 32.365599] ? rcu_is_watching+0x8c/0x150 [ 32.365602] ? rcu_pm_notify+0xc0/0xc0 [ 32.365606] ? lock_acquire+0x1e4/0x4f0 [ 32.365610] ? kasan_report+0x8e/0x110 [ 32.365614] ? __schedule+0xf54/0x1df0 [ 32.365618] vprintk_default+0x28/0x30 [ 32.365621] vprintk_func+0x7a/0x117 [ 32.365625] printk+0xa7/0xcf [ 32.365629] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.365633] ? kasan_check_write+0x14/0x20 [ 32.365637] ? do_raw_spin_lock+0xc1/0x200 [ 32.365641] ? do_raw_spin_lock+0xc1/0x200 [ 32.365644] kasan_report+0x9e/0x110 [ 32.365649] __asan_report_load8_noabort+0x14/0x20 [ 32.365652] __schedule+0xf54/0x1df0 [ 32.365657] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.365661] ? __sched_text_start+0x8/0x8 [ 32.365665] ? __call_srcu+0x7e7/0x1040 [ 32.365669] ? check_same_owner+0x340/0x340 [ 32.365672] ? mark_held_locks+0x160/0x160 [ 32.365676] ? find_held_lock+0x36/0x1c0 [ 32.365680] preempt_schedule_common+0x22/0x60 [ 32.365684] _cond_resched+0x1d/0x30 [ 32.365688] wait_for_completion+0xa5/0x8d0 [ 32.365693] ? wait_for_completion_interruptible+0x950/0x950 [ 32.365697] ? __lockdep_init_map+0x105/0x590 [ 32.365701] ? __init_waitqueue_head+0x9e/0x150 [ 32.365705] ? init_wait_entry+0x1c0/0x1c0 [ 32.365709] __synchronize_srcu+0x189/0x240 [ 32.365713] ? call_srcu+0x10/0x10 [ 32.365717] ? rcu_unexpedite_gp+0x20/0x20 [ 32.365721] synchronize_srcu+0x335/0x56f [ 32.365725] ? lock_downgrade+0x8f0/0x8f0 [ 32.365729] ? synchronize_srcu_expedited+0x20/0x20 [ 32.365733] ? kasan_check_read+0x11/0x20 [ 32.365737] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.365741] ? kasan_check_write+0x14/0x20 [ 32.365745] ? do_raw_spin_lock+0xc1/0x200 [ 32.365750] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.365754] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.365758] ? kvfree+0x61/0x70 [ 32.365762] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.365766] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.365770] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.365774] ? kvm_arch_sync_events+0x30/0x30 [ 32.365779] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.365783] ? mmu_notifier_unregister+0x474/0x600 [ 32.365787] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.365791] ? kfree+0x111/0x210 [ 32.365795] ? __mmu_notifier_register+0x30/0x30 [ 32.365799] ? __free_pages+0x10a/0x190 [ 32.365803] ? free_unref_page+0x930/0x930 [ 32.365807] kvm_put_kvm+0x73f/0x1060 [ 32.365811] ? kvm_write_guest_cached+0x40/0x40 [ 32.365815] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.365819] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.365823] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.365827] ? kasan_check_write+0x14/0x20 [ 32.365831] ? do_raw_spin_lock+0xc1/0x200 [ 32.365835] ? kvm_irqfd_release+0xdd/0x120 [ 32.365839] ? kvm_irqfd_release+0xdd/0x120 [ 32.365843] ? kvm_put_kvm+0x1060/0x1060 [ 32.365847] kvm_vm_release+0x42/0x50 [ 32.365850] __fput+0x38a/0xa40 [ 32.365854] ? __alloc_file+0x400/0x400 [ 32.365858] ? check_same_owner+0x340/0x340 [ 32.365862] ? kasan_check_write+0x14/0x20 [ 32.365866] ? do_raw_spin_lock+0xc1/0x200 [ 32.365869] ____fput+0x15/0x20 [ 32.365880] task_work_run+0x1e8/0x2a0 [ 32.365884] ? task_work_cancel+0x240/0x240 [ 32.365890] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.365894] ? switch_task_namespaces+0xa2/0xd0 [ 32.365897] do_exit+0x1ae4/0x26e0 [ 32.365902] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.365905] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.365910] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.365913] ? kfree+0x1d7/0x210 [ 32.365917] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.365922] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.365926] ? is_bpf_text_address+0xd7/0x170 [ 32.365928] ? [ 32.365936] Lost 55 message(s)! [ 33.432325] Shutting down cpus with NMI [ 34.492531] Dumping ftrace buffer: [ 34.496069] (ftrace buffer empty) [ 34.499786] Kernel Offset: disabled [ 34.503405] Rebooting in 86400 seconds..