[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.266193] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.154703] random: sshd: uninitialized urandom read (32 bytes read) [ 27.461483] random: sshd: uninitialized urandom read (32 bytes read) [ 28.024767] random: sshd: uninitialized urandom read (32 bytes read) [ 28.214568] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.28' (ECDSA) to the list of known hosts. [ 33.808445] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.905796] 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. [ 33.931655] ================================================================== [ 33.941439] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.947664] Read of size 8 at addr ffff8801b6ba0058 by task syz-executor265/4663 [ 33.955185] [ 33.956812] CPU: 1 PID: 4663 Comm: syz-executor265 Not tainted 4.19.0-rc2+ #220 [ 33.964248] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.973596] Call Trace: [ 33.976186] dump_stack+0x1c9/0x2b4 [ 33.979820] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.985014] ? printk+0xa7/0xcf [ 33.988296] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.993059] ? __schedule+0xf54/0x1df0 [ 33.996947] print_address_description+0x6c/0x20b [ 34.001790] ? __schedule+0xf54/0x1df0 [ 34.005676] kasan_report.cold.7+0x242/0x30d [ 34.010088] __asan_report_load8_noabort+0x14/0x20 [ 34.015015] __schedule+0xf54/0x1df0 [ 34.018724] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.023827] ? __sched_text_start+0x8/0x8 [ 34.027974] ? __call_srcu+0x7e7/0x1040 [ 34.031953] ? check_same_owner+0x340/0x340 [ 34.036274] ? mark_held_locks+0x160/0x160 [ 34.040507] ? find_held_lock+0x36/0x1c0 [ 34.044567] preempt_schedule_common+0x22/0x60 [ 34.049149] _cond_resched+0x1d/0x30 [ 34.052865] wait_for_completion+0xa5/0x8d0 [ 34.057195] ? wait_for_completion_interruptible+0x950/0x950 [ 34.062990] ? __lockdep_init_map+0x105/0x590 [ 34.067493] ? __init_waitqueue_head+0x9e/0x150 [ 34.072179] ? init_wait_entry+0x1c0/0x1c0 [ 34.076439] __synchronize_srcu+0x189/0x240 [ 34.080760] ? call_srcu+0x10/0x10 [ 34.084302] ? rcu_unexpedite_gp+0x20/0x20 [ 34.088546] synchronize_srcu+0x335/0x56f [ 34.092694] ? lock_downgrade+0x8f0/0x8f0 [ 34.096843] ? synchronize_srcu_expedited+0x20/0x20 [ 34.101893] ? kasan_check_read+0x11/0x20 [ 34.106077] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.110675] ? kasan_check_write+0x14/0x20 [ 34.114913] ? do_raw_spin_lock+0xc1/0x200 [ 34.119152] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.124869] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.130351] ? kvfree+0x61/0x70 [ 34.133661] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.138903] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.142967] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.147385] ? kvm_arch_sync_events+0x30/0x30 [ 34.151888] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.157430] ? mmu_notifier_unregister+0x474/0x600 [ 34.162367] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.166778] ? kfree+0x111/0x210 [ 34.170142] ? __mmu_notifier_register+0x30/0x30 [ 34.174916] ? __free_pages+0x10a/0x190 [ 34.178902] ? free_unref_page+0x930/0x930 [ 34.183155] kvm_put_kvm+0x73f/0x1060 [ 34.186985] ? kvm_write_guest_cached+0x40/0x40 [ 34.191661] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.196163] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.200659] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.205244] ? kasan_check_write+0x14/0x20 [ 34.209564] ? do_raw_spin_lock+0xc1/0x200 [ 34.213802] ? kvm_irqfd_release+0xdd/0x120 [ 34.218167] ? kvm_irqfd_release+0xdd/0x120 [ 34.222504] ? kvm_put_kvm+0x1060/0x1060 [ 34.226575] kvm_vm_release+0x42/0x50 [ 34.230391] __fput+0x38a/0xa40 [ 34.233694] ? __alloc_file+0x400/0x400 [ 34.237673] ? check_same_owner+0x340/0x340 [ 34.242010] ? kasan_check_write+0x14/0x20 [ 34.246249] ? do_raw_spin_lock+0xc1/0x200 [ 34.250499] ____fput+0x15/0x20 [ 34.253784] task_work_run+0x1e8/0x2a0 [ 34.257674] ? task_work_cancel+0x240/0x240 [ 34.262014] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.267558] ? switch_task_namespaces+0xa2/0xd0 [ 34.272229] do_exit+0x1ae4/0x26e0 [ 34.275768] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.280438] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.284676] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.289688] ? kfree+0x1d7/0x210 [ 34.293054] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.297294] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.303012] ? is_bpf_text_address+0xd7/0x170 [ 34.307507] ? kernel_text_address+0x79/0xf0 [ 34.311911] ? __kernel_text_address+0xd/0x40 [ 34.316413] ? unwind_get_return_address+0x61/0xa0 [ 34.321344] ? __save_stack_trace+0x8d/0xf0 [ 34.325679] ? save_stack+0xa9/0xd0 [ 34.329304] ? save_stack+0x43/0xd0 [ 34.332929] ? __kasan_slab_free+0x11a/0x170 [ 34.337332] ? kasan_slab_free+0xe/0x10 [ 34.341307] ? putname+0xf2/0x130 [ 34.344762] ? __x64_sys_openat+0x9d/0x100 [ 34.348996] ? do_syscall_64+0x1b9/0x820 [ 34.353056] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.358422] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.362846] ? kasan_check_read+0x11/0x20 [ 34.366995] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.371411] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.375819] ? initcall_blacklisted+0x9a/0x1e0 [ 34.380750] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.385879] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.391596] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.397136] ? do_vfs_ioctl+0x201/0x1720 [ 34.401194] ? rcu_is_watching+0x8c/0x150 [ 34.405336] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.409687] ? ioctl_preallocate+0x300/0x300 [ 34.414115] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.419653] ? __fget_light+0x2f7/0x440 [ 34.423624] ? fget_raw+0x20/0x20 [ 34.427093] ? putname+0xf2/0x130 [ 34.430571] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.435584] ? kmem_cache_free+0x246/0x280 [ 34.439820] ? putname+0xf7/0x130 [ 34.443298] do_group_exit+0x177/0x440 [ 34.447431] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.451752] ? __ia32_sys_exit+0x50/0x50 [ 34.455811] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.460913] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.466449] ? ksys_ioctl+0x81/0xd0 [ 34.470084] __x64_sys_exit_group+0x3e/0x50 [ 34.474407] do_syscall_64+0x1b9/0x820 [ 34.478296] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.483660] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.488585] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.493445] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.498476] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.503489] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.509059] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.513907] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.519090] RIP: 0033:0x43ed68 [ 34.522304] Code: Bad RIP value. [ 34.525661] RSP: 002b:00007ffc4ebe62f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.533370] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ed68 [ 34.540637] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.547923] RBP: 00000000004be628 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.555184] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.562555] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.569825] [ 34.571444] Allocated by task 4663: [ 34.575069] save_stack+0x43/0xd0 [ 34.578516] kasan_kmalloc+0xc4/0xe0 [ 34.582245] kasan_slab_alloc+0x12/0x20 [ 34.586220] kmem_cache_alloc+0x12e/0x710 [ 34.590382] vmx_create_vcpu+0xcf/0x2830 [ 34.594439] kvm_arch_vcpu_create+0xe5/0x220 [ 34.598847] kvm_vm_ioctl+0x488/0x1d80 [ 34.602753] do_vfs_ioctl+0x1de/0x1720 [ 34.606637] ksys_ioctl+0xa9/0xd0 [ 34.610107] __x64_sys_ioctl+0x73/0xb0 [ 34.613989] do_syscall_64+0x1b9/0x820 [ 34.617880] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.623058] [ 34.624762] Freed by task 4663: [ 34.628054] save_stack+0x43/0xd0 [ 34.631516] __kasan_slab_free+0x11a/0x170 [ 34.635745] kasan_slab_free+0xe/0x10 [ 34.639539] kmem_cache_free+0x86/0x280 [ 34.643517] vmx_free_vcpu+0x26b/0x300 [ 34.647398] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.651801] kvm_put_kvm+0x73f/0x1060 [ 34.655596] kvm_vm_release+0x42/0x50 [ 34.659408] __fput+0x38a/0xa40 [ 34.662683] ____fput+0x15/0x20 [ 34.665957] task_work_run+0x1e8/0x2a0 [ 34.670128] do_exit+0x1ae4/0x26e0 [ 34.673665] do_group_exit+0x177/0x440 [ 34.677550] __x64_sys_exit_group+0x3e/0x50 [ 34.681868] do_syscall_64+0x1b9/0x820 [ 34.685758] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.690963] [ 34.692583] The buggy address belongs to the object at ffff8801b6ba0040 [ 34.692583] which belongs to the cache kvm_vcpu of size 23872 [ 34.705148] The buggy address is located 24 bytes inside of [ 34.705148] 23872-byte region [ffff8801b6ba0040, ffff8801b6ba5d80) [ 34.717188] The buggy address belongs to the page: [ 34.722113] page:ffffea0006dae800 count:1 mapcount:0 mapping:ffff8801d9ea30c0 index:0x0 compound_mapcount: 0 [ 34.732079] flags: 0x2fffc0000008100(slab|head) [ 34.736751] raw: 02fffc0000008100 ffff8801d5236948 ffff8801d5236948 ffff8801d9ea30c0 [ 34.744629] raw: 0000000000000000 ffff8801b6ba0040 0000000100000001 0000000000000000 [ 34.752496] page dumped because: kasan: bad access detected [ 34.758191] [ 34.759978] Memory state around the buggy address: [ 34.764903] ffff8801b6b9ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.772253] ffff8801b6b9ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.779607] >ffff8801b6ba0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.786958] ^ [ 34.793181] ffff8801b6ba0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.800530] ffff8801b6ba0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.807881] ================================================================== [ 34.815249] Kernel panic - not syncing: panic_on_warn set ... [ 34.815249] [ 34.822610] CPU: 1 PID: 4663 Comm: syz-executor265 Tainted: G B 4.19.0-rc2+ #220 [ 34.831436] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.840782] Call Trace: [ 34.843380] dump_stack+0x1c9/0x2b4 [ 34.847008] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.852197] ? lock_downgrade+0x8f0/0x8f0 [ 34.856344] ? __schedule+0xf54/0x1df0 [ 34.860241] panic+0x238/0x4e7 [ 34.863435] ? add_taint.cold.5+0x16/0x16 [ 34.867586] ? print_shadow_for_address+0xba/0x116 [ 34.872530] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.876959] ? trace_hardirqs_off+0x77/0x2b0 [ 34.881378] ? __schedule+0xf54/0x1df0 [ 34.885264] kasan_end_report+0x47/0x4f [ 34.889250] kasan_report.cold.7+0x76/0x30d [ 34.893572] __asan_report_load8_noabort+0x14/0x20 [ 34.898500] __schedule+0xf54/0x1df0 [ 34.902213] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.907319] ? __sched_text_start+0x8/0x8 [ 34.911469] ? __call_srcu+0x7e7/0x1040 [ 34.915468] ? check_same_owner+0x340/0x340 [ 34.919783] ? mark_held_locks+0x160/0x160 [ 34.924019] ? find_held_lock+0x36/0x1c0 [ 34.928085] preempt_schedule_common+0x22/0x60 [ 34.932708] _cond_resched+0x1d/0x30 [ 34.936418] wait_for_completion+0xa5/0x8d0 [ 34.940740] ? wait_for_completion_interruptible+0x950/0x950 [ 34.946537] ? __lockdep_init_map+0x105/0x590 [ 34.951071] ? __init_waitqueue_head+0x9e/0x150 [ 34.955738] ? init_wait_entry+0x1c0/0x1c0 [ 34.959976] __synchronize_srcu+0x189/0x240 [ 34.964294] ? call_srcu+0x10/0x10 [ 34.967849] ? rcu_unexpedite_gp+0x20/0x20 [ 34.972094] synchronize_srcu+0x335/0x56f [ 34.976241] ? lock_downgrade+0x8f0/0x8f0 [ 34.980425] ? synchronize_srcu_expedited+0x20/0x20 [ 34.985440] ? kasan_check_read+0x11/0x20 [ 34.989586] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.994164] ? kasan_check_write+0x14/0x20 [ 34.998402] ? do_raw_spin_lock+0xc1/0x200 [ 35.002659] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.008375] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.013828] ? kvfree+0x61/0x70 [ 35.017105] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.022120] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.026178] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.030587] ? kvm_arch_sync_events+0x30/0x30 [ 35.035083] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.040616] ? mmu_notifier_unregister+0x474/0x600 [ 35.045539] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.049951] ? kfree+0x111/0x210 [ 35.053315] ? __mmu_notifier_register+0x30/0x30 [ 35.058068] ? __free_pages+0x10a/0x190 [ 35.062040] ? free_unref_page+0x930/0x930 [ 35.066289] kvm_put_kvm+0x73f/0x1060 [ 35.070090] ? kvm_write_guest_cached+0x40/0x40 [ 35.074763] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.079255] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.083745] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.088329] ? kasan_check_write+0x14/0x20 [ 35.092572] ? do_raw_spin_lock+0xc1/0x200 [ 35.096803] ? kvm_irqfd_release+0xdd/0x120 [ 35.101123] ? kvm_irqfd_release+0xdd/0x120 [ 35.105446] ? kvm_put_kvm+0x1060/0x1060 [ 35.109506] kvm_vm_release+0x42/0x50 [ 35.113303] __fput+0x38a/0xa40 [ 35.116581] ? __alloc_file+0x400/0x400 [ 35.120554] ? check_same_owner+0x340/0x340 [ 35.124878] ? kasan_check_write+0x14/0x20 [ 35.129109] ? do_raw_spin_lock+0xc1/0x200 [ 35.133377] ____fput+0x15/0x20 [ 35.136661] task_work_run+0x1e8/0x2a0 [ 35.140547] ? task_work_cancel+0x240/0x240 [ 35.144867] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.150408] ? switch_task_namespaces+0xa2/0xd0 [ 35.155076] do_exit+0x1ae4/0x26e0 [ 35.158636] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.163310] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.167545] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.172561] ? kfree+0x1d7/0x210 [ 35.175925] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.180161] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.185869] ? is_bpf_text_address+0xd7/0x170 [ 35.190379] ? kernel_text_address+0x79/0xf0 [ 35.194785] ? __kernel_text_address+0xd/0x40 [ 35.199278] ? unwind_get_return_address+0x61/0xa0 [ 35.204203] ? __save_stack_trace+0x8d/0xf0 [ 35.208528] ? save_stack+0xa9/0xd0 [ 35.212149] ? save_stack+0x43/0xd0 [ 35.215770] ? __kasan_slab_free+0x11a/0x170 [ 35.220172] ? kasan_slab_free+0xe/0x10 [ 35.224143] ? putname+0xf2/0x130 [ 35.227595] ? __x64_sys_openat+0x9d/0x100 [ 35.231825] ? do_syscall_64+0x1b9/0x820 [ 35.235888] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.241249] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.245653] ? kasan_check_read+0x11/0x20 [ 35.249809] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.254215] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.258625] ? initcall_blacklisted+0x9a/0x1e0 [ 35.263204] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.268305] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.274019] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.279571] ? do_vfs_ioctl+0x201/0x1720 [ 35.283647] ? rcu_is_watching+0x8c/0x150 [ 35.287813] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.292131] ? ioctl_preallocate+0x300/0x300 [ 35.296552] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.302087] ? __fget_light+0x2f7/0x440 [ 35.306078] ? fget_raw+0x20/0x20 [ 35.309544] ? putname+0xf2/0x130 [ 35.312997] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.318005] ? kmem_cache_free+0x246/0x280 [ 35.322232] ? putname+0xf7/0x130 [ 35.325685] do_group_exit+0x177/0x440 [ 35.329569] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.333898] ? __ia32_sys_exit+0x50/0x50 [ 35.337979] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.343078] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.348614] ? ksys_ioctl+0x81/0xd0 [ 35.352242] __x64_sys_exit_group+0x3e/0x50 [ 35.356561] do_syscall_64+0x1b9/0x820 [ 35.360450] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.365812] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.370734] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.375595] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.380610] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.385623] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.390640] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.395483] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.400669] RIP: 0033:0x43ed68 [ 35.403892] Code: Bad RIP value. [ 35.407248] RSP: 002b:00007ffc4ebe62f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.414953] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ed68 [ 35.422217] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.429485] RBP: 00000000004be628 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.436755] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.444018] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.451311] [ 35.451317] ====================================================== [ 35.451322] WARNING: possible circular locking dependency detected [ 35.451326] 4.19.0-rc2+ #220 Not tainted [ 35.451331] ------------------------------------------------------ [ 35.451336] syz-executor265/4663 is trying to acquire lock: [ 35.451339] 00000000b12b7925 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.451354] [ 35.451358] but task is already holding lock: [ 35.451368] 00000000913d7ca7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.451383] [ 35.451387] which lock already depends on the new lock. [ 35.451389] [ 35.451392] [ 35.451397] the existing dependency chain (in reverse order) is: [ 35.451399] [ 35.451401] -> #3 (report_lock){....}: [ 35.451415] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.451419] kasan_report+0x8e/0x110 [ 35.451423] __asan_report_load8_noabort+0x14/0x20 [ 35.451427] __schedule+0xf54/0x1df0 [ 35.451431] preempt_schedule_common+0x22/0x60 [ 35.451435] _cond_resched+0x1d/0x30 [ 35.451439] wait_for_completion+0xa5/0x8d0 [ 35.451443] __synchronize_srcu+0x189/0x240 [ 35.451447] synchronize_srcu+0x335/0x56f [ 35.451452] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.451456] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.451460] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.451464] kvm_put_kvm+0x73f/0x1060 [ 35.451468] kvm_vm_release+0x42/0x50 [ 35.451471] __fput+0x38a/0xa40 [ 35.451474] ____fput+0x15/0x20 [ 35.451478] task_work_run+0x1e8/0x2a0 [ 35.451482] do_exit+0x1ae4/0x26e0 [ 35.451486] do_group_exit+0x177/0x440 [ 35.451490] __x64_sys_exit_group+0x3e/0x50 [ 35.451493] do_syscall_64+0x1b9/0x820 [ 35.451498] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.451500] [ 35.451503] -> #2 (&rq->lock){-.-.}: [ 35.451516] _raw_spin_lock+0x2a/0x40 [ 35.451520] task_fork_fair+0x93/0x680 [ 35.451523] sched_fork+0x44b/0xbd0 [ 35.451527] copy_process+0x235e/0x7ad0 [ 35.451531] _do_fork+0x1ca/0x1170 [ 35.451535] kernel_thread+0x34/0x40 [ 35.451538] rest_init+0x22/0xe4 [ 35.451542] start_kernel+0x913/0x94e [ 35.451546] x86_64_start_reservations+0x29/0x2b [ 35.451550] x86_64_start_kernel+0x76/0x79 [ 35.451554] secondary_startup_64+0xa4/0xb0 [ 35.451556] [ 35.451559] -> #1 (&p->pi_lock){-.-.}: [ 35.451573] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.451576] try_to_wake_up+0xd2/0x1250 [ 35.451580] wake_up_process+0x10/0x20 [ 35.451584] __up.isra.1+0x1c0/0x2a0 [ 35.451587] up+0x13c/0x1c0 [ 35.451591] __up_console_sem+0xbe/0x1b0 [ 35.451595] console_unlock+0x506/0x10d0 [ 35.451599] vprintk_emit+0x33a/0x910 [ 35.451602] vprintk_default+0x28/0x30 [ 35.451606] vprintk_func+0x7a/0x117 [ 35.451609] printk+0xa7/0xcf [ 35.451613] load_umh+0x51/0xbd [ 35.451617] do_one_initcall+0x127/0x838 [ 35.451621] kernel_init_freeable+0x4bb/0x5ae [ 35.451624] kernel_init+0x11/0x1b3 [ 35.451628] ret_from_fork+0x3a/0x50 [ 35.451630] [ 35.451632] -> #0 ((console_sem).lock){-...}: [ 35.451647] lock_acquire+0x1e4/0x4f0 [ 35.451651] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.451655] down_trylock+0x13/0x70 [ 35.451659] __down_trylock_console_sem+0xae/0x200 [ 35.451663] console_trylock+0x15/0xa0 [ 35.451666] vprintk_emit+0x31f/0x910 [ 35.451670] vprintk_default+0x28/0x30 [ 35.451674] vprintk_func+0x7a/0x117 [ 35.451677] printk+0xa7/0xcf [ 35.451681] kasan_report+0x9e/0x110 [ 35.451685] __asan_report_load8_noabort+0x14/0x20 [ 35.451689] __schedule+0xf54/0x1df0 [ 35.451693] preempt_schedule_common+0x22/0x60 [ 35.451697] _cond_resched+0x1d/0x30 [ 35.451701] wait_for_completion+0xa5/0x8d0 [ 35.451705] __synchronize_srcu+0x189/0x240 [ 35.451709] synchronize_srcu+0x335/0x56f [ 35.451714] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.451718] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.451722] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.451726] kvm_put_kvm+0x73f/0x1060 [ 35.451730] kvm_vm_release+0x42/0x50 [ 35.451733] __fput+0x38a/0xa40 [ 35.451736] ____fput+0x15/0x20 [ 35.451740] task_work_run+0x1e8/0x2a0 [ 35.451744] do_exit+0x1ae4/0x26e0 [ 35.451748] do_group_exit+0x177/0x440 [ 35.451752] __x64_sys_exit_group+0x3e/0x50 [ 35.451755] do_syscall_64+0x1b9/0x820 [ 35.451760] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.451762] [ 35.451766] other info that might help us debug this: [ 35.451769] [ 35.451772] Chain exists of: [ 35.451774] (console_sem).lock --> &rq->lock --> report_lock [ 35.451791] [ 35.451795] Possible unsafe locking scenario: [ 35.451797] [ 35.451801] CPU0 CPU1 [ 35.451805] ---- ---- [ 35.451808] lock(report_lock); [ 35.451817] lock(&rq->lock); [ 35.451826] lock(report_lock); [ 35.451833] lock((console_sem).lock); [ 35.451841] [ 35.451844] *** DEADLOCK *** [ 35.451846] [ 35.451850] 2 locks held by syz-executor265/4663: [ 35.451853] #0: 00000000f86a429b (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.451869] #1: 00000000913d7ca7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.451891] [ 35.451895] stack backtrace: [ 35.451900] CPU: 1 PID: 4663 Comm: syz-executor265 Not tainted 4.19.0-rc2+ #220 [ 35.451907] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.451910] Call Trace: [ 35.451914] dump_stack+0x1c9/0x2b4 [ 35.451918] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.451922] ? vprintk_func+0x100/0x117 [ 35.451927] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.451931] ? save_trace+0xe0/0x290 [ 35.451935] __lock_acquire+0x3449/0x5020 [ 35.451939] ? mark_held_locks+0x160/0x160 [ 35.451943] ? mark_held_locks+0x160/0x160 [ 35.451947] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.451951] ? is_bpf_text_address+0xd7/0x170 [ 35.451956] ? kernel_text_address+0x79/0xf0 [ 35.451960] ? __kernel_text_address+0xd/0x40 [ 35.451964] ? __save_stack_trace+0x8d/0xf0 [ 35.451968] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.451972] ? save_trace+0x290/0x290 [ 35.451976] ? save_stack_trace+0x1a/0x20 [ 35.451979] ? save_trace+0xe0/0x290 [ 35.451983] ? graph_lock+0x170/0x170 [ 35.451988] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.451992] lock_acquire+0x1e4/0x4f0 [ 35.451995] ? down_trylock+0x13/0x70 [ 35.451999] ? lock_release+0x9f0/0x9f0 [ 35.452003] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.452007] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.452011] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.452015] ? log_store+0x34f/0x4c0 [ 35.452019] ? vprintk_emit+0x31f/0x910 [ 35.452023] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.452027] ? down_trylock+0x13/0x70 [ 35.452030] down_trylock+0x13/0x70 [ 35.452035] __down_trylock_console_sem+0xae/0x200 [ 35.452038] console_trylock+0x15/0xa0 [ 35.452042] vprintk_emit+0x31f/0x910 [ 35.452046] ? wake_up_klogd+0x110/0x110 [ 35.452050] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.452054] ? kasan_check_read+0x11/0x20 [ 35.452058] ? rcu_is_watching+0x8c/0x150 [ 35.452062] ? rcu_pm_notify+0xc0/0xc0 [ 35.452066] ? lock_acquire+0x1e4/0x4f0 [ 35.452069] ? kasan_report+0x8e/0x110 [ 35.452073] ? __schedule+0xf54/0x1df0 [ 35.452077] vprintk_default+0x28/0x30 [ 35.452081] vprintk_func+0x7a/0x117 [ 35.452084] printk+0xa7/0xcf [ 35.452088] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.452092] ? kasan_check_write+0x14/0x20 [ 35.452096] ? do_raw_spin_lock+0xc1/0x200 [ 35.452100] ? do_raw_spin_lock+0xc1/0x200 [ 35.452104] kasan_report+0x9e/0x110 [ 35.452108] __asan_report_load8_noabort+0x14/0x20 [ 35.452112] __schedule+0xf54/0x1df0 [ 35.452116] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.452120] ? __sched_text_start+0x8/0x8 [ 35.452124] ? __call_srcu+0x7e7/0x1040 [ 35.452128] ? check_same_owner+0x340/0x340 [ 35.452132] ? mark_held_locks+0x160/0x160 [ 35.452136] ? find_held_lock+0x36/0x1c0 [ 35.452140] preempt_schedule_common+0x22/0x60 [ 35.452144] _cond_resched+0x1d/0x30 [ 35.452148] wait_for_completion+0xa5/0x8d0 [ 35.452153] ? wait_for_completion_interruptible+0x950/0x950 [ 35.452157] ? __lockdep_init_map+0x105/0x590 [ 35.452161] ? __init_waitqueue_head+0x9e/0x150 [ 35.452165] ? init_wait_entry+0x1c0/0x1c0 [ 35.452169] __synchronize_srcu+0x189/0x240 [ 35.452173] ? call_srcu+0x10/0x10 [ 35.452176] ? rcu_unexpedite_gp+0x20/0x20 [ 35.452180] synchronize_srcu+0x335/0x56f [ 35.452184] ? lock_downgrade+0x8f0/0x8f0 [ 35.452189] ? synchronize_srcu_expedited+0x20/0x20 [ 35.452193] ? kasan_check_read+0x11/0x20 [ 35.452197] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.452201] ? kasan_check_write+0x14/0x20 [ 35.452205] ? do_raw_spin_lock+0xc1/0x200 [ 35.452210] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.452214] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.452218] ? kvfree+0x61/0x70 [ 35.452222] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.452226] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.452230] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.452234] ? kvm_arch_sync_events+0x30/0x30 [ 35.452239] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.452243] ? mmu_notifier_unregister+0x474/0x600 [ 35.452247] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.452251] ? kfree+0x111/0x210 [ 35.452255] ? __mmu_notifier_register+0x30/0x30 [ 35.452259] ? __free_pages+0x10a/0x190 [ 35.452263] ? free_unref_page+0x930/0x930 [ 35.452267] kvm_put_kvm+0x73f/0x1060 [ 35.452271] ? kvm_write_guest_cached+0x40/0x40 [ 35.452275] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.452279] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.452283] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.452287] ? kasan_check_write+0x14/0x20 [ 35.452291] ? do_raw_spin_lock+0xc1/0x200 [ 35.452295] ? kvm_irqfd_release+0xdd/0x120 [ 35.452299] ? kvm_irqfd_release+0xdd/0x120 [ 35.452303] ? kvm_put_kvm+0x1060/0x1060 [ 35.452306] kvm_vm_release+0x42/0x50 [ 35.452310] __fput+0x38a/0xa40 [ 35.452314] ? __alloc_file+0x400/0x400 [ 35.452318] ? check_same_owner+0x340/0x340 [ 35.452322] ? kasan_check_write+0x14/0x20 [ 35.452326] ? do_raw_spin_lock+0xc1/0x200 [ 35.452329] ____fput+0x15/0x20 [ 35.452333] task_work_run+0x1e8/0x2a0 [ 35.452337] ? task_work_cancel+0x240/0x240 [ 35.452341] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.452346] ? switch_task_namespaces+0xa2/0xd0 [ 35.452349] do_exit+0x1ae4/0x26e0 [ 35.452353] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.452357] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.452367] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.452370] ? kfree+0x1d7/0x210 [ 35.452374] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.452380] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.452384] ? is_bpf_text_address+0xd7/0x170 [ 35.452386] ? [ 35.452393] Lost 55 message(s)! [ 36.528405] Shutting down cpus with NMI [ 37.587906] Dumping ftrace buffer: [ 37.591434] (ftrace buffer empty) [ 37.595148] Kernel Offset: disabled [ 37.598765] Rebooting in 86400 seconds..