[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.369032] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.463082] random: sshd: uninitialized urandom read (32 bytes read) [ 25.820667] random: sshd: uninitialized urandom read (32 bytes read) [ 26.345857] random: sshd: uninitialized urandom read (32 bytes read) [ 26.515618] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.15' (ECDSA) to the list of known hosts. [ 32.122364] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.217036] 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. [ 32.241473] ================================================================== [ 32.251353] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.257585] Read of size 8 at addr ffff8801acad8058 by task syz-executor104/4415 [ 32.265109] [ 32.266741] CPU: 0 PID: 4415 Comm: syz-executor104 Not tainted 4.19.0-rc1+ #212 [ 32.274180] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.283529] Call Trace: [ 32.286127] dump_stack+0x1c9/0x2b4 [ 32.289758] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.294947] ? printk+0xa7/0xcf [ 32.298226] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.302983] ? __schedule+0xf54/0x1df0 [ 32.306880] print_address_description+0x6c/0x20b [ 32.311719] ? __schedule+0xf54/0x1df0 [ 32.315617] kasan_report.cold.7+0x242/0x30d [ 32.320034] __asan_report_load8_noabort+0x14/0x20 [ 32.324965] __schedule+0xf54/0x1df0 [ 32.328680] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.333794] ? __sched_text_start+0x8/0x8 [ 32.337942] ? __call_srcu+0x7e7/0x1040 [ 32.341927] ? check_same_owner+0x340/0x340 [ 32.346247] ? mark_held_locks+0x160/0x160 [ 32.350480] ? find_held_lock+0x36/0x1c0 [ 32.354546] preempt_schedule_common+0x22/0x60 [ 32.359126] _cond_resched+0x1d/0x30 [ 32.362842] wait_for_completion+0xa5/0x8d0 [ 32.367166] ? wait_for_completion_interruptible+0x950/0x950 [ 32.372961] ? __lockdep_init_map+0x105/0x590 [ 32.377468] ? __init_waitqueue_head+0x9e/0x150 [ 32.382140] ? init_wait_entry+0x1c0/0x1c0 [ 32.386388] __synchronize_srcu+0x189/0x240 [ 32.390709] ? call_srcu+0x10/0x10 [ 32.394265] ? rcu_unexpedite_gp+0x20/0x20 [ 32.398508] synchronize_srcu+0x335/0x56f [ 32.402658] ? lock_downgrade+0x8f0/0x8f0 [ 32.406804] ? synchronize_srcu_expedited+0x20/0x20 [ 32.411819] ? kasan_check_read+0x11/0x20 [ 32.415976] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.420559] ? kasan_check_write+0x14/0x20 [ 32.424793] ? do_raw_spin_lock+0xc1/0x200 [ 32.429033] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.434745] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.440194] ? kvfree+0x61/0x70 [ 32.443481] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.448496] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.452562] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.456970] ? kvm_arch_sync_events+0x30/0x30 [ 32.461469] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.467010] ? mmu_notifier_unregister+0x474/0x600 [ 32.471939] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.476345] ? kfree+0x111/0x210 [ 32.479721] ? __mmu_notifier_register+0x30/0x30 [ 32.484480] ? __free_pages+0x10a/0x190 [ 32.488460] ? free_unref_page+0x930/0x930 [ 32.492708] kvm_put_kvm+0x73f/0x1060 [ 32.496518] ? kvm_write_guest_cached+0x40/0x40 [ 32.501191] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.505688] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.510182] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.514768] ? kasan_check_write+0x14/0x20 [ 32.519003] ? do_raw_spin_lock+0xc1/0x200 [ 32.523242] ? kvm_irqfd_release+0xdd/0x120 [ 32.527569] ? kvm_irqfd_release+0xdd/0x120 [ 32.531893] ? kvm_put_kvm+0x1060/0x1060 [ 32.535956] kvm_vm_release+0x42/0x50 [ 32.539760] __fput+0x36e/0x8c0 [ 32.543043] ? __alloc_file+0x400/0x400 [ 32.547033] ? check_same_owner+0x340/0x340 [ 32.551362] ? kasan_check_write+0x14/0x20 [ 32.555604] ? do_raw_spin_lock+0xc1/0x200 [ 32.559843] ____fput+0x15/0x20 [ 32.563122] task_work_run+0x1e8/0x2a0 [ 32.567007] ? task_work_cancel+0x240/0x240 [ 32.571335] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.576881] ? switch_task_namespaces+0xa2/0xd0 [ 32.581563] do_exit+0x1ae4/0x26e0 [ 32.585126] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.589887] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.594127] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.599170] ? kfree+0x1d7/0x210 [ 32.602535] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.606944] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.612756] ? is_bpf_text_address+0xd7/0x170 [ 32.617248] ? kernel_text_address+0x79/0xf0 [ 32.621654] ? __kernel_text_address+0xd/0x40 [ 32.626148] ? unwind_get_return_address+0x61/0xa0 [ 32.631081] ? __save_stack_trace+0x8d/0xf0 [ 32.635407] ? save_stack+0xa9/0xd0 [ 32.639039] ? save_stack+0x43/0xd0 [ 32.642663] ? __kasan_slab_free+0x11a/0x170 [ 32.647067] ? kasan_slab_free+0xe/0x10 [ 32.651042] ? putname+0xf2/0x130 [ 32.654496] ? __x64_sys_openat+0x9d/0x100 [ 32.658752] ? do_syscall_64+0x1b9/0x820 [ 32.662815] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.668177] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.672585] ? kasan_check_read+0x11/0x20 [ 32.676734] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.681137] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.685544] ? initcall_blacklisted+0x9a/0x1e0 [ 32.690131] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.695228] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.700929] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.706458] ? do_vfs_ioctl+0x201/0x1720 [ 32.710509] ? rcu_is_watching+0x8c/0x150 [ 32.714644] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.718948] ? ioctl_preallocate+0x300/0x300 [ 32.723339] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.728858] ? __fget_light+0x2f7/0x440 [ 32.732813] ? fget_raw+0x20/0x20 [ 32.736247] ? putname+0xf2/0x130 [ 32.739687] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.744682] ? kmem_cache_free+0x246/0x280 [ 32.748898] ? putname+0xf7/0x130 [ 32.752407] do_group_exit+0x177/0x440 [ 32.756293] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.760597] ? __ia32_sys_exit+0x50/0x50 [ 32.764742] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.769842] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.775367] ? ksys_ioctl+0x81/0xd0 [ 32.778979] __x64_sys_exit_group+0x3e/0x50 [ 32.783288] do_syscall_64+0x1b9/0x820 [ 32.787161] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.792600] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.797519] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.802347] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.807345] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.812348] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.817350] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.822181] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.827351] RIP: 0033:0x43f028 [ 32.830528] Code: Bad RIP value. [ 32.833877] RSP: 002b:00007ffff9f9f768 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.841569] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 32.848824] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.856075] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.863330] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.870877] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 32.878161] [ 32.879793] Allocated by task 4415: [ 32.883438] save_stack+0x43/0xd0 [ 32.886978] kasan_kmalloc+0xc4/0xe0 [ 32.890688] kasan_slab_alloc+0x12/0x20 [ 32.894663] kmem_cache_alloc+0x12e/0x710 [ 32.898810] vmx_create_vcpu+0xcf/0x2830 [ 32.902872] kvm_arch_vcpu_create+0xe5/0x220 [ 32.907283] kvm_vm_ioctl+0x488/0x1d80 [ 32.911168] do_vfs_ioctl+0x1de/0x1720 [ 32.915055] ksys_ioctl+0xa9/0xd0 [ 32.918503] __x64_sys_ioctl+0x73/0xb0 [ 32.922394] do_syscall_64+0x1b9/0x820 [ 32.926288] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.931468] [ 32.933092] Freed by task 4415: [ 32.936377] save_stack+0x43/0xd0 [ 32.939830] __kasan_slab_free+0x11a/0x170 [ 32.944065] kasan_slab_free+0xe/0x10 [ 32.947863] kmem_cache_free+0x86/0x280 [ 32.951839] vmx_free_vcpu+0x26b/0x300 [ 32.955726] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.960138] kvm_put_kvm+0x73f/0x1060 [ 32.963939] kvm_vm_release+0x42/0x50 [ 32.967740] __fput+0x36e/0x8c0 [ 32.971013] ____fput+0x15/0x20 [ 32.974289] task_work_run+0x1e8/0x2a0 [ 32.978177] do_exit+0x1ae4/0x26e0 [ 32.981714] do_group_exit+0x177/0x440 [ 32.985603] __x64_sys_exit_group+0x3e/0x50 [ 32.989937] do_syscall_64+0x1b9/0x820 [ 32.993831] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.999008] [ 33.000637] The buggy address belongs to the object at ffff8801acad8040 [ 33.000637] which belongs to the cache kvm_vcpu of size 23872 [ 33.013210] The buggy address is located 24 bytes inside of [ 33.013210] 23872-byte region [ffff8801acad8040, ffff8801acaddd80) [ 33.025167] The buggy address belongs to the page: [ 33.030098] page:ffffea0006b2b600 count:1 mapcount:0 mapping:ffff8801d9fef3c0 index:0x0 compound_mapcount: 0 [ 33.040074] flags: 0x2fffc0000008100(slab|head) [ 33.044751] raw: 02fffc0000008100 ffff8801d4c85648 ffff8801d4c85648 ffff8801d9fef3c0 [ 33.052632] raw: 0000000000000000 ffff8801acad8040 0000000100000001 0000000000000000 [ 33.060505] page dumped because: kasan: bad access detected [ 33.066203] [ 33.067821] Memory state around the buggy address: [ 33.072749] ffff8801acad7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.080113] ffff8801acad7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.087469] >ffff8801acad8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.094821] ^ [ 33.101047] ffff8801acad8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.108404] ffff8801acad8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.115762] ================================================================== [ 33.123119] Kernel panic - not syncing: panic_on_warn set ... [ 33.123119] [ 33.130488] CPU: 0 PID: 4415 Comm: syz-executor104 Tainted: G B 4.19.0-rc1+ #212 [ 33.139317] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.148663] Call Trace: [ 33.151264] dump_stack+0x1c9/0x2b4 [ 33.154898] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.160089] ? lock_downgrade+0x8f0/0x8f0 [ 33.164244] ? __schedule+0xf54/0x1df0 [ 33.168141] panic+0x238/0x4e7 [ 33.171338] ? add_taint.cold.5+0x16/0x16 [ 33.175492] ? print_shadow_for_address+0xba/0x116 [ 33.180593] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.185000] ? trace_hardirqs_off+0x77/0x2b0 [ 33.189408] ? __schedule+0xf54/0x1df0 [ 33.193303] kasan_end_report+0x47/0x4f [ 33.197279] kasan_report.cold.7+0x76/0x30d [ 33.201607] __asan_report_load8_noabort+0x14/0x20 [ 33.206536] __schedule+0xf54/0x1df0 [ 33.210248] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.215355] ? __sched_text_start+0x8/0x8 [ 33.219506] ? __call_srcu+0x7e7/0x1040 [ 33.223491] ? check_same_owner+0x340/0x340 [ 33.227811] ? mark_held_locks+0x160/0x160 [ 33.232046] ? find_held_lock+0x36/0x1c0 [ 33.236117] preempt_schedule_common+0x22/0x60 [ 33.240703] _cond_resched+0x1d/0x30 [ 33.244416] wait_for_completion+0xa5/0x8d0 [ 33.248749] ? wait_for_completion_interruptible+0x950/0x950 [ 33.254550] ? __lockdep_init_map+0x105/0x590 [ 33.259047] ? __init_waitqueue_head+0x9e/0x150 [ 33.263716] ? init_wait_entry+0x1c0/0x1c0 [ 33.267977] __synchronize_srcu+0x189/0x240 [ 33.272297] ? call_srcu+0x10/0x10 [ 33.275839] ? rcu_unexpedite_gp+0x20/0x20 [ 33.280082] synchronize_srcu+0x335/0x56f [ 33.284232] ? lock_downgrade+0x8f0/0x8f0 [ 33.288378] ? synchronize_srcu_expedited+0x20/0x20 [ 33.293400] ? kasan_check_read+0x11/0x20 [ 33.297558] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.302147] ? kasan_check_write+0x14/0x20 [ 33.306380] ? do_raw_spin_lock+0xc1/0x200 [ 33.310622] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.316335] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.321788] ? kvfree+0x61/0x70 [ 33.325073] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.330091] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.334177] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.338588] ? kvm_arch_sync_events+0x30/0x30 [ 33.343091] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.348659] ? mmu_notifier_unregister+0x474/0x600 [ 33.353586] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.357992] ? kfree+0x111/0x210 [ 33.361360] ? __mmu_notifier_register+0x30/0x30 [ 33.366128] ? __free_pages+0x10a/0x190 [ 33.370107] ? free_unref_page+0x930/0x930 [ 33.374357] kvm_put_kvm+0x73f/0x1060 [ 33.378185] ? kvm_write_guest_cached+0x40/0x40 [ 33.382862] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.387356] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.391850] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.396448] ? kasan_check_write+0x14/0x20 [ 33.400688] ? do_raw_spin_lock+0xc1/0x200 [ 33.404927] ? kvm_irqfd_release+0xdd/0x120 [ 33.409247] ? kvm_irqfd_release+0xdd/0x120 [ 33.413574] ? kvm_put_kvm+0x1060/0x1060 [ 33.417725] kvm_vm_release+0x42/0x50 [ 33.421527] __fput+0x36e/0x8c0 [ 33.424808] ? __alloc_file+0x400/0x400 [ 33.428789] ? check_same_owner+0x340/0x340 [ 33.433116] ? kasan_check_write+0x14/0x20 [ 33.437353] ? do_raw_spin_lock+0xc1/0x200 [ 33.441586] ____fput+0x15/0x20 [ 33.444866] task_work_run+0x1e8/0x2a0 [ 33.448755] ? task_work_cancel+0x240/0x240 [ 33.453082] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.458624] ? switch_task_namespaces+0xa2/0xd0 [ 33.463297] do_exit+0x1ae4/0x26e0 [ 33.466842] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.471516] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.475756] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.480956] ? kfree+0x1d7/0x210 [ 33.484325] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.488563] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.494274] ? is_bpf_text_address+0xd7/0x170 [ 33.498798] ? kernel_text_address+0x79/0xf0 [ 33.503205] ? __kernel_text_address+0xd/0x40 [ 33.507704] ? unwind_get_return_address+0x61/0xa0 [ 33.512636] ? __save_stack_trace+0x8d/0xf0 [ 33.516966] ? save_stack+0xa9/0xd0 [ 33.520593] ? save_stack+0x43/0xd0 [ 33.524222] ? __kasan_slab_free+0x11a/0x170 [ 33.528631] ? kasan_slab_free+0xe/0x10 [ 33.532605] ? putname+0xf2/0x130 [ 33.536063] ? __x64_sys_openat+0x9d/0x100 [ 33.540298] ? do_syscall_64+0x1b9/0x820 [ 33.544366] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.549733] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.554143] ? kasan_check_read+0x11/0x20 [ 33.558291] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.562699] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.567114] ? initcall_blacklisted+0x9a/0x1e0 [ 33.571703] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.576809] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.582523] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.588060] ? do_vfs_ioctl+0x201/0x1720 [ 33.592126] ? rcu_is_watching+0x8c/0x150 [ 33.596270] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.600592] ? ioctl_preallocate+0x300/0x300 [ 33.605007] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.610546] ? __fget_light+0x2f7/0x440 [ 33.614520] ? fget_raw+0x20/0x20 [ 33.617972] ? putname+0xf2/0x130 [ 33.621437] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.626461] ? kmem_cache_free+0x246/0x280 [ 33.630696] ? putname+0xf7/0x130 [ 33.634154] do_group_exit+0x177/0x440 [ 33.638042] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.642363] ? __ia32_sys_exit+0x50/0x50 [ 33.646421] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.651536] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.657074] ? ksys_ioctl+0x81/0xd0 [ 33.660705] __x64_sys_exit_group+0x3e/0x50 [ 33.665029] do_syscall_64+0x1b9/0x820 [ 33.668922] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.674291] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.679249] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.684092] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.689120] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.694141] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.699163] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.704017] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.709208] RIP: 0033:0x43f028 [ 33.712408] Code: Bad RIP value. [ 33.715777] RSP: 002b:00007ffff9f9f768 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.723574] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 33.730841] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.738113] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.745469] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.752738] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 33.760015] [ 33.760021] ====================================================== [ 33.760027] WARNING: possible circular locking dependency detected [ 33.760030] 4.19.0-rc1+ #212 Not tainted [ 33.760036] ------------------------------------------------------ [ 33.760041] syz-executor104/4415 is trying to acquire lock: [ 33.760044] 00000000d8a17387 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.760059] [ 33.760063] but task is already holding lock: [ 33.760066] 0000000042065492 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.760080] [ 33.760085] which lock already depends on the new lock. [ 33.760087] [ 33.760090] [ 33.760095] the existing dependency chain (in reverse order) is: [ 33.760097] [ 33.760100] -> #3 (report_lock){....}: [ 33.760120] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.760124] kasan_report+0x8e/0x110 [ 33.760129] __asan_report_load8_noabort+0x14/0x20 [ 33.760132] __schedule+0xf54/0x1df0 [ 33.760137] preempt_schedule_common+0x22/0x60 [ 33.760141] _cond_resched+0x1d/0x30 [ 33.760145] wait_for_completion+0xa5/0x8d0 [ 33.760149] __synchronize_srcu+0x189/0x240 [ 33.760153] synchronize_srcu+0x335/0x56f [ 33.760159] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.760163] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.760167] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.760171] kvm_put_kvm+0x73f/0x1060 [ 33.760175] kvm_vm_release+0x42/0x50 [ 33.760178] __fput+0x36e/0x8c0 [ 33.760182] ____fput+0x15/0x20 [ 33.760186] task_work_run+0x1e8/0x2a0 [ 33.760189] do_exit+0x1ae4/0x26e0 [ 33.760193] do_group_exit+0x177/0x440 [ 33.760197] __x64_sys_exit_group+0x3e/0x50 [ 33.760201] do_syscall_64+0x1b9/0x820 [ 33.760206] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.760208] [ 33.760211] -> #2 (&rq->lock){-.-.}: [ 33.760225] _raw_spin_lock+0x2a/0x40 [ 33.760228] task_fork_fair+0x93/0x680 [ 33.760232] sched_fork+0x44b/0xbd0 [ 33.760236] copy_process+0x235e/0x7ad0 [ 33.760240] _do_fork+0x1ca/0x1170 [ 33.760244] kernel_thread+0x34/0x40 [ 33.760247] rest_init+0x22/0xe4 [ 33.760251] start_kernel+0x913/0x94e [ 33.760255] x86_64_start_reservations+0x29/0x2b [ 33.760259] x86_64_start_kernel+0x76/0x79 [ 33.760264] secondary_startup_64+0xa4/0xb0 [ 33.760266] [ 33.760268] -> #1 (&p->pi_lock){-.-.}: [ 33.760282] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.760287] try_to_wake_up+0xd2/0x1250 [ 33.760290] wake_up_process+0x10/0x20 [ 33.760294] __up.isra.1+0x1c0/0x2a0 [ 33.760298] up+0x13c/0x1c0 [ 33.760301] __up_console_sem+0xbe/0x1b0 [ 33.760305] console_unlock+0x506/0x10d0 [ 33.760309] do_con_write+0x1375/0x23d0 [ 33.760313] con_write+0x25/0xc0 [ 33.760317] n_tty_write+0x6c1/0x11a0 [ 33.760320] tty_write+0x3f1/0x880 [ 33.760324] __vfs_write+0x117/0x9d0 [ 33.760328] vfs_write+0x1fc/0x560 [ 33.760332] ksys_write+0x101/0x260 [ 33.760335] __x64_sys_write+0x73/0xb0 [ 33.760339] do_syscall_64+0x1b9/0x820 [ 33.760344] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.760346] [ 33.760349] -> #0 ((console_sem).lock){-...}: [ 33.760363] lock_acquire+0x1e4/0x4f0 [ 33.760367] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.760371] down_trylock+0x13/0x70 [ 33.760375] __down_trylock_console_sem+0xae/0x200 [ 33.760379] console_trylock+0x15/0xa0 [ 33.760383] vprintk_emit+0x31f/0x910 [ 33.760387] vprintk_default+0x28/0x30 [ 33.760391] vprintk_func+0x7a/0x117 [ 33.760394] printk+0xa7/0xcf [ 33.760398] kasan_report+0x9e/0x110 [ 33.760403] __asan_report_load8_noabort+0x14/0x20 [ 33.760407] __schedule+0xf54/0x1df0 [ 33.760411] preempt_schedule_common+0x22/0x60 [ 33.760415] _cond_resched+0x1d/0x30 [ 33.760419] wait_for_completion+0xa5/0x8d0 [ 33.760423] __synchronize_srcu+0x189/0x240 [ 33.760435] synchronize_srcu+0x335/0x56f [ 33.760441] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.760445] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.760449] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.760453] kvm_put_kvm+0x73f/0x1060 [ 33.760457] kvm_vm_release+0x42/0x50 [ 33.760460] __fput+0x36e/0x8c0 [ 33.760464] ____fput+0x15/0x20 [ 33.760468] task_work_run+0x1e8/0x2a0 [ 33.760472] do_exit+0x1ae4/0x26e0 [ 33.760476] do_group_exit+0x177/0x440 [ 33.760480] __x64_sys_exit_group+0x3e/0x50 [ 33.760484] do_syscall_64+0x1b9/0x820 [ 33.760489] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.760491] [ 33.760496] other info that might help us debug this: [ 33.760498] [ 33.760501] Chain exists of: [ 33.760503] (console_sem).lock --> &rq->lock --> report_lock [ 33.760521] [ 33.760525] Possible unsafe locking scenario: [ 33.760527] [ 33.760532] CPU0 CPU1 [ 33.760536] ---- ---- [ 33.760538] lock(report_lock); [ 33.760547] lock(&rq->lock); [ 33.760557] lock(report_lock); [ 33.760564] lock((console_sem).lock); [ 33.760572] [ 33.760576] *** DEADLOCK *** [ 33.760578] [ 33.760582] 2 locks held by syz-executor104/4415: [ 33.760584] #0: 00000000e5e34513 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.760601] #1: 0000000042065492 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.760619] [ 33.760622] stack backtrace: [ 33.760628] CPU: 0 PID: 4415 Comm: syz-executor104 Not tainted 4.19.0-rc1+ #212 [ 33.760635] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.760638] Call Trace: [ 33.760642] dump_stack+0x1c9/0x2b4 [ 33.760646] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.760650] ? vprintk_func+0x100/0x117 [ 33.760655] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.760659] ? save_trace+0xe0/0x290 [ 33.760663] __lock_acquire+0x3449/0x5020 [ 33.760667] ? mark_held_locks+0x160/0x160 [ 33.760671] ? mark_held_locks+0x160/0x160 [ 33.760675] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.760680] ? is_bpf_text_address+0xd7/0x170 [ 33.760684] ? kernel_text_address+0x79/0xf0 [ 33.760688] ? __kernel_text_address+0xd/0x40 [ 33.760692] ? __save_stack_trace+0x8d/0xf0 [ 33.760696] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.760700] ? save_trace+0x290/0x290 [ 33.760704] ? save_stack_trace+0x1a/0x20 [ 33.760708] ? save_trace+0xe0/0x290 [ 33.760712] ? graph_lock+0x170/0x170 [ 33.760717] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.760720] lock_acquire+0x1e4/0x4f0 [ 33.760724] ? down_trylock+0x13/0x70 [ 33.760728] ? lock_release+0x9f0/0x9f0 [ 33.760732] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.760737] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.760741] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.760745] ? log_store+0x34f/0x4c0 [ 33.760749] ? vprintk_emit+0x31f/0x910 [ 33.760753] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.760757] ? down_trylock+0x13/0x70 [ 33.760760] down_trylock+0x13/0x70 [ 33.760765] __down_trylock_console_sem+0xae/0x200 [ 33.760769] console_trylock+0x15/0xa0 [ 33.760772] vprintk_emit+0x31f/0x910 [ 33.760777] ? wake_up_klogd+0x110/0x110 [ 33.760781] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.760785] ? kasan_check_read+0x11/0x20 [ 33.760789] ? rcu_is_watching+0x8c/0x150 [ 33.760793] ? rcu_pm_notify+0xc0/0xc0 [ 33.760797] ? lock_acquire+0x1e4/0x4f0 [ 33.760801] ? kasan_report+0x8e/0x110 [ 33.760804] ? __schedule+0xf54/0x1df0 [ 33.760808] vprintk_default+0x28/0x30 [ 33.760812] vprintk_func+0x7a/0x117 [ 33.760815] printk+0xa7/0xcf [ 33.760820] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.760824] ? kasan_check_write+0x14/0x20 [ 33.760828] ? do_raw_spin_lock+0xc1/0x200 [ 33.760832] ? do_raw_spin_lock+0xc1/0x200 [ 33.760835] kasan_report+0x9e/0x110 [ 33.760840] __asan_report_load8_noabort+0x14/0x20 [ 33.760844] __schedule+0xf54/0x1df0 [ 33.760849] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.760853] ? __sched_text_start+0x8/0x8 [ 33.760857] ? __call_srcu+0x7e7/0x1040 [ 33.760861] ? check_same_owner+0x340/0x340 [ 33.760865] ? mark_held_locks+0x160/0x160 [ 33.760869] ? find_held_lock+0x36/0x1c0 [ 33.760873] preempt_schedule_common+0x22/0x60 [ 33.760877] _cond_resched+0x1d/0x30 [ 33.760881] wait_for_completion+0xa5/0x8d0 [ 33.760886] ? wait_for_completion_interruptible+0x950/0x950 [ 33.760891] ? __lockdep_init_map+0x105/0x590 [ 33.760895] ? __init_waitqueue_head+0x9e/0x150 [ 33.760899] ? init_wait_entry+0x1c0/0x1c0 [ 33.760903] __synchronize_srcu+0x189/0x240 [ 33.760907] ? call_srcu+0x10/0x10 [ 33.760911] ? rcu_unexpedite_gp+0x20/0x20 [ 33.760915] synchronize_srcu+0x335/0x56f [ 33.760919] ? lock_downgrade+0x8f0/0x8f0 [ 33.760923] ? synchronize_srcu_expedited+0x20/0x20 [ 33.760927] ? kasan_check_read+0x11/0x20 [ 33.760932] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.760936] ? kasan_check_write+0x14/0x20 [ 33.760940] ? do_raw_spin_lock+0xc1/0x200 [ 33.760945] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.760950] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.760953] ? kvfree+0x61/0x70 [ 33.760958] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.760962] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.760966] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.760970] ? kvm_arch_sync_events+0x30/0x30 [ 33.760975] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.760979] ? mmu_notifier_unregister+0x474/0x600 [ 33.760984] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.760987] ? kfree+0x111/0x210 [ 33.760991] ? __mmu_notifier_register+0x30/0x30 [ 33.760995] ? __free_pages+0x10a/0x190 [ 33.760999] ? free_unref_page+0x930/0x930 [ 33.761003] kvm_put_kvm+0x73f/0x1060 [ 33.761008] ? kvm_write_guest_cached+0x40/0x40 [ 33.761012] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.761016] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.761020] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.761024] ? kasan_check_write+0x14/0x20 [ 33.761028] ? do_raw_spin_lock+0xc1/0x200 [ 33.761032] ? kvm_irqfd_release+0xdd/0x120 [ 33.761036] ? kvm_irqfd_release+0xdd/0x120 [ 33.761040] ? kvm_put_kvm+0x1060/0x1060 [ 33.761044] kvm_vm_release+0x42/0x50 [ 33.761048] __fput+0x36e/0x8c0 [ 33.761052] ? __alloc_file+0x400/0x400 [ 33.761056] ? check_same_owner+0x340/0x340 [ 33.761060] ? kasan_check_write+0x14/0x20 [ 33.761064] ? do_raw_spin_lock+0xc1/0x200 [ 33.761067] ____fput+0x15/0x20 [ 33.761071] task_work_run+0x1e8/0x2a0 [ 33.761075] ? task_work_cancel+0x240/0x240 [ 33.761080] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.761084] ? switch_task_namespaces+0xa2/0xd0 [ 33.761088] do_exit+0x1ae4/0x26e0 [ 33.761092] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.761096] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.761101] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.761104] ? kfree+0x1d7/0x210 [ 33.761113] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.761118] ? kvm_uevent_notify_change.part.32+0x440/0x [ 33.761125] Lost 57 message(s)! [ 34.836339] Shutting down cpus with NMI [ 35.894750] Dumping ftrace buffer: [ 35.898273] (ftrace buffer empty) [ 35.901963] Kernel Offset: disabled [ 35.905574] Rebooting in 86400 seconds..