[....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 31.724369] random: sshd: uninitialized urandom read (32 bytes read) [ 32.067376] audit: type=1400 audit(1536284773.389:6): avc: denied { map } for pid=4863 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 32.126959] random: sshd: uninitialized urandom read (32 bytes read) [ 32.707396] random: sshd: uninitialized urandom read (32 bytes read) [ 32.905786] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.202' (ECDSA) to the list of known hosts. [ 38.614706] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 38.730476] audit: type=1400 audit(1536284780.052:7): avc: denied { map } for pid=4877 comm="syz-executor312" path="/root/syz-executor312149929" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 38.734018] 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. [ 38.782144] ================================================================== [ 38.791909] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 38.798153] Read of size 8 at addr ffff8801d7a68058 by task syz-executor312/4877 [ 38.805681] [ 38.807302] CPU: 0 PID: 4877 Comm: syz-executor312 Not tainted 4.19.0-rc2+ #4 [ 38.814589] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.823945] Call Trace: [ 38.826531] dump_stack+0x1c9/0x2b4 [ 38.830156] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.835344] ? printk+0xa7/0xcf [ 38.838620] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.843372] ? __schedule+0xf54/0x1df0 [ 38.847269] print_address_description+0x6c/0x20b [ 38.852111] ? __schedule+0xf54/0x1df0 [ 38.856002] kasan_report.cold.7+0x242/0x30d [ 38.860435] __asan_report_load8_noabort+0x14/0x20 [ 38.865374] __schedule+0xf54/0x1df0 [ 38.869096] ? __sched_text_start+0x8/0x8 [ 38.873241] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 38.878339] ? __call_srcu+0x7e7/0x1040 [ 38.882323] ? check_same_owner+0x340/0x340 [ 38.886645] ? mark_held_locks+0x160/0x160 [ 38.890876] ? find_held_lock+0x36/0x1c0 [ 38.894937] preempt_schedule_common+0x22/0x60 [ 38.899516] _cond_resched+0x1d/0x30 [ 38.903226] wait_for_completion+0xa5/0x8d0 [ 38.907546] ? wait_for_completion_interruptible+0x950/0x950 [ 38.913340] ? __lockdep_init_map+0x105/0x590 [ 38.917837] ? __init_waitqueue_head+0x9e/0x150 [ 38.922529] ? init_wait_entry+0x1c0/0x1c0 [ 38.926765] __synchronize_srcu+0x189/0x240 [ 38.931094] ? call_srcu+0x10/0x10 [ 38.934641] ? rcu_unexpedite_gp+0x20/0x20 [ 38.938885] synchronize_srcu+0x335/0x56f [ 38.943034] ? lock_downgrade+0x8f0/0x8f0 [ 38.947180] ? synchronize_srcu_expedited+0x20/0x20 [ 38.952197] ? kasan_check_read+0x11/0x20 [ 38.956342] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.960927] ? kasan_check_write+0x14/0x20 [ 38.965156] ? do_raw_spin_lock+0xc1/0x200 [ 38.969392] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.975099] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.980551] ? kvfree+0x61/0x70 [ 38.983831] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.988854] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.992935] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.997373] ? kvm_arch_sync_events+0x30/0x30 [ 39.001888] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.007422] ? mmu_notifier_unregister+0x474/0x600 [ 39.012347] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.016750] ? kfree+0x111/0x210 [ 39.020113] ? __mmu_notifier_register+0x30/0x30 [ 39.024871] ? __free_pages+0x10a/0x190 [ 39.028850] ? free_unref_page+0x930/0x930 [ 39.033092] kvm_put_kvm+0x73f/0x1060 [ 39.036894] ? kvm_write_guest_cached+0x40/0x40 [ 39.041561] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.046060] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.050551] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.055144] ? kasan_check_write+0x14/0x20 [ 39.059383] ? do_raw_spin_lock+0xc1/0x200 [ 39.063624] ? kvm_irqfd_release+0xdd/0x120 [ 39.067942] ? kvm_irqfd_release+0xdd/0x120 [ 39.072273] ? kvm_put_kvm+0x1060/0x1060 [ 39.076327] kvm_vm_release+0x42/0x50 [ 39.080123] __fput+0x38a/0xa40 [ 39.083400] ? __alloc_file+0x400/0x400 [ 39.087377] ? check_same_owner+0x340/0x340 [ 39.091715] ? kasan_check_write+0x14/0x20 [ 39.095953] ? do_raw_spin_lock+0xc1/0x200 [ 39.100182] ____fput+0x15/0x20 [ 39.103464] task_work_run+0x1e8/0x2a0 [ 39.107350] ? task_work_cancel+0x240/0x240 [ 39.111669] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.117202] ? switch_task_namespaces+0xa2/0xd0 [ 39.121872] do_exit+0x1ae4/0x26e0 [ 39.125409] ? mm_update_next_owner+0x9a0/0x9a0 [ 39.130077] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 39.134314] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.139351] ? kfree+0x1d7/0x210 [ 39.142730] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 39.146965] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.152677] ? avc_has_extended_perms+0xa97/0x15c0 [ 39.157603] ? kernel_text_address+0x9e/0xf0 [ 39.162012] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 39.167110] ? avc_ss_reset+0x190/0x190 [ 39.171084] ? save_stack+0xa9/0xd0 [ 39.174704] ? save_stack+0x43/0xd0 [ 39.178325] ? __kasan_slab_free+0x11a/0x170 [ 39.182729] ? kasan_slab_free+0xe/0x10 [ 39.186712] ? putname+0xf2/0x130 [ 39.190186] ? __x64_sys_openat+0x9d/0x100 [ 39.194417] ? do_syscall_64+0x1b9/0x820 [ 39.198496] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.203905] ? initcall_blacklisted+0x9a/0x1e0 [ 39.208490] ? rcu_note_context_switch+0x680/0x680 [ 39.213419] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.219124] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.224665] ? do_vfs_ioctl+0x201/0x1720 [ 39.228732] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.233927] ? ioctl_preallocate+0x300/0x300 [ 39.238331] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.243867] ? selinux_capable+0x40/0x40 [ 39.247926] ? path_pts+0x9f/0x1f0 [ 39.251463] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.256485] ? kmem_cache_free+0x246/0x280 [ 39.260728] ? putname+0xf7/0x130 [ 39.264184] do_group_exit+0x177/0x440 [ 39.268065] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.272381] ? __ia32_sys_exit+0x50/0x50 [ 39.276447] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.281571] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.287106] ? ksys_ioctl+0x81/0xd0 [ 39.290730] __x64_sys_exit_group+0x3e/0x50 [ 39.295051] do_syscall_64+0x1b9/0x820 [ 39.298935] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.304295] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.309244] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.314087] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 39.319100] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.324114] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.329132] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.333974] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.339158] RIP: 0033:0x43edb8 [ 39.342359] Code: Bad RIP value. [ 39.345717] RSP: 002b:00007fff0c011848 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.353421] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043edb8 [ 39.360681] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 39.367943] RBP: 00000000004be668 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 39.375207] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 39.382468] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 39.389749] [ 39.391367] Allocated by task 4877: [ 39.395004] save_stack+0x43/0xd0 [ 39.398455] kasan_kmalloc+0xc4/0xe0 [ 39.402163] kasan_slab_alloc+0x12/0x20 [ 39.406131] kmem_cache_alloc+0x12e/0x710 [ 39.410274] vmx_create_vcpu+0xcf/0x2830 [ 39.414323] kvm_arch_vcpu_create+0xe5/0x220 [ 39.418726] kvm_vm_ioctl+0x488/0x1d80 [ 39.422626] do_vfs_ioctl+0x1de/0x1720 [ 39.426505] ksys_ioctl+0xa9/0xd0 [ 39.429961] __x64_sys_ioctl+0x73/0xb0 [ 39.433872] do_syscall_64+0x1b9/0x820 [ 39.437764] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.443413] [ 39.445029] Freed by task 4877: [ 39.448312] save_stack+0x43/0xd0 [ 39.451755] __kasan_slab_free+0x11a/0x170 [ 39.455983] kasan_slab_free+0xe/0x10 [ 39.459772] kmem_cache_free+0x86/0x280 [ 39.463762] vmx_free_vcpu+0x26b/0x300 [ 39.467668] kvm_arch_destroy_vm+0x365/0x7c0 [ 39.472069] kvm_put_kvm+0x73f/0x1060 [ 39.475878] kvm_vm_release+0x42/0x50 [ 39.479674] __fput+0x38a/0xa40 [ 39.482945] ____fput+0x15/0x20 [ 39.486215] task_work_run+0x1e8/0x2a0 [ 39.490094] do_exit+0x1ae4/0x26e0 [ 39.493632] do_group_exit+0x177/0x440 [ 39.497513] __x64_sys_exit_group+0x3e/0x50 [ 39.501831] do_syscall_64+0x1b9/0x820 [ 39.505721] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.510894] [ 39.512514] The buggy address belongs to the object at ffff8801d7a68040 [ 39.512514] which belongs to the cache kvm_vcpu of size 23872 [ 39.525077] The buggy address is located 24 bytes inside of [ 39.525077] 23872-byte region [ffff8801d7a68040, ffff8801d7a6dd80) [ 39.537040] The buggy address belongs to the page: [ 39.541967] page:ffffea00075e9a00 count:1 mapcount:0 mapping:ffff8801d9fef0c0 index:0x0 compound_mapcount: 0 [ 39.551957] flags: 0x2fffc0000008100(slab|head) [ 39.556622] raw: 02fffc0000008100 ffff8801d4cb0c48 ffff8801d4cb0c48 ffff8801d9fef0c0 [ 39.564497] raw: 0000000000000000 ffff8801d7a68040 0000000100000001 0000000000000000 [ 39.572364] page dumped because: kasan: bad access detected [ 39.578057] [ 39.579696] Memory state around the buggy address: [ 39.584628] ffff8801d7a67f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.591978] ffff8801d7a67f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 39.599332] >ffff8801d7a68000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 39.606683] ^ [ 39.612940] ffff8801d7a68080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.620296] ffff8801d7a68100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.627660] ================================================================== [ 39.635008] Kernel panic - not syncing: panic_on_warn set ... [ 39.635008] [ 39.642401] CPU: 0 PID: 4877 Comm: syz-executor312 Tainted: G B 4.19.0-rc2+ #4 [ 39.651055] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.660399] Call Trace: [ 39.662990] dump_stack+0x1c9/0x2b4 [ 39.666618] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.671816] ? lock_downgrade+0x8f0/0x8f0 [ 39.676008] ? __schedule+0xf54/0x1df0 [ 39.679893] panic+0x238/0x4e7 [ 39.683077] ? add_taint.cold.5+0x16/0x16 [ 39.687237] ? print_shadow_for_address+0xba/0x116 [ 39.692187] ? trace_hardirqs_off+0xaf/0x2c0 [ 39.696591] ? trace_hardirqs_off+0x77/0x2c0 [ 39.701023] ? __schedule+0xf54/0x1df0 [ 39.704907] kasan_end_report+0x47/0x4f [ 39.708878] kasan_report.cold.7+0x76/0x30d [ 39.713214] __asan_report_load8_noabort+0x14/0x20 [ 39.718142] __schedule+0xf54/0x1df0 [ 39.721901] ? __sched_text_start+0x8/0x8 [ 39.726056] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 39.731156] ? __call_srcu+0x7e7/0x1040 [ 39.735134] ? check_same_owner+0x340/0x340 [ 39.739449] ? mark_held_locks+0x160/0x160 [ 39.743680] ? find_held_lock+0x36/0x1c0 [ 39.747738] preempt_schedule_common+0x22/0x60 [ 39.752319] _cond_resched+0x1d/0x30 [ 39.756055] wait_for_completion+0xa5/0x8d0 [ 39.760376] ? wait_for_completion_interruptible+0x950/0x950 [ 39.766169] ? __lockdep_init_map+0x105/0x590 [ 39.770661] ? __init_waitqueue_head+0x9e/0x150 [ 39.775341] ? init_wait_entry+0x1c0/0x1c0 [ 39.779587] __synchronize_srcu+0x189/0x240 [ 39.783905] ? call_srcu+0x10/0x10 [ 39.787442] ? rcu_unexpedite_gp+0x20/0x20 [ 39.791703] synchronize_srcu+0x335/0x56f [ 39.795851] ? lock_downgrade+0x8f0/0x8f0 [ 39.800001] ? synchronize_srcu_expedited+0x20/0x20 [ 39.805018] ? kasan_check_read+0x11/0x20 [ 39.809163] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 39.813753] ? kasan_check_write+0x14/0x20 [ 39.817987] ? do_raw_spin_lock+0xc1/0x200 [ 39.822226] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.827944] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 39.833393] ? kvfree+0x61/0x70 [ 39.836669] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.841694] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.845750] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.850155] ? kvm_arch_sync_events+0x30/0x30 [ 39.854659] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.860197] ? mmu_notifier_unregister+0x474/0x600 [ 39.865121] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.869525] ? kfree+0x111/0x210 [ 39.872893] ? __mmu_notifier_register+0x30/0x30 [ 39.877660] ? __free_pages+0x10a/0x190 [ 39.881636] ? free_unref_page+0x930/0x930 [ 39.885878] kvm_put_kvm+0x73f/0x1060 [ 39.889697] ? kvm_write_guest_cached+0x40/0x40 [ 39.894367] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.898862] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.903355] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.907942] ? kasan_check_write+0x14/0x20 [ 39.912189] ? do_raw_spin_lock+0xc1/0x200 [ 39.916428] ? kvm_irqfd_release+0xdd/0x120 [ 39.920742] ? kvm_irqfd_release+0xdd/0x120 [ 39.925100] ? kvm_put_kvm+0x1060/0x1060 [ 39.929158] kvm_vm_release+0x42/0x50 [ 39.932958] __fput+0x38a/0xa40 [ 39.936244] ? __alloc_file+0x400/0x400 [ 39.940232] ? check_same_owner+0x340/0x340 [ 39.944574] ? kasan_check_write+0x14/0x20 [ 39.948804] ? do_raw_spin_lock+0xc1/0x200 [ 39.953042] ____fput+0x15/0x20 [ 39.956333] task_work_run+0x1e8/0x2a0 [ 39.960241] ? task_work_cancel+0x240/0x240 [ 39.964587] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.970135] ? switch_task_namespaces+0xa2/0xd0 [ 39.974822] do_exit+0x1ae4/0x26e0 [ 39.978389] ? mm_update_next_owner+0x9a0/0x9a0 [ 39.983065] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 39.987305] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.992323] ? kfree+0x1d7/0x210 [ 39.995692] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 39.999931] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.005644] ? avc_has_extended_perms+0xa97/0x15c0 [ 40.010573] ? kernel_text_address+0x9e/0xf0 [ 40.014986] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 40.020087] ? avc_ss_reset+0x190/0x190 [ 40.024074] ? save_stack+0xa9/0xd0 [ 40.027703] ? save_stack+0x43/0xd0 [ 40.031325] ? __kasan_slab_free+0x11a/0x170 [ 40.035736] ? kasan_slab_free+0xe/0x10 [ 40.039710] ? putname+0xf2/0x130 [ 40.043161] ? __x64_sys_openat+0x9d/0x100 [ 40.047393] ? do_syscall_64+0x1b9/0x820 [ 40.051455] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.056853] ? initcall_blacklisted+0x9a/0x1e0 [ 40.061439] ? rcu_note_context_switch+0x680/0x680 [ 40.066387] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.072105] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.077643] ? do_vfs_ioctl+0x201/0x1720 [ 40.081706] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 40.086913] ? ioctl_preallocate+0x300/0x300 [ 40.091330] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.096876] ? selinux_capable+0x40/0x40 [ 40.100935] ? path_pts+0x9f/0x1f0 [ 40.104504] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.109523] ? kmem_cache_free+0x246/0x280 [ 40.113757] ? putname+0xf7/0x130 [ 40.117229] do_group_exit+0x177/0x440 [ 40.121127] ? trace_hardirqs_on+0xbd/0x2c0 [ 40.125447] ? __ia32_sys_exit+0x50/0x50 [ 40.129507] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 40.134609] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.140143] ? ksys_ioctl+0x81/0xd0 [ 40.143768] __x64_sys_exit_group+0x3e/0x50 [ 40.148112] do_syscall_64+0x1b9/0x820 [ 40.152024] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.157387] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.162323] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.167162] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 40.172193] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.177209] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.182255] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.187095] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.192288] RIP: 0033:0x43edb8 [ 40.195481] Code: Bad RIP value. [ 40.198850] RSP: 002b:00007fff0c011848 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.206556] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043edb8 [ 40.213818] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.221084] RBP: 00000000004be668 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.228349] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 40.235613] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 40.242889] [ 40.242894] ====================================================== [ 40.242900] WARNING: possible circular locking dependency detected [ 40.242903] 4.19.0-rc2+ #4 Not tainted [ 40.242909] ------------------------------------------------------ [ 40.242913] syz-executor312/4877 is trying to acquire lock: [ 40.242917] 00000000f06756d7 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 40.242931] [ 40.242935] but task is already holding lock: [ 40.242938] 00000000a4aa5b14 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 40.242952] [ 40.242956] which lock already depends on the new lock. [ 40.242958] [ 40.242961] [ 40.242966] the existing dependency chain (in reverse order) is: [ 40.242968] [ 40.242970] -> #3 (report_lock){....}: [ 40.242984] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.242988] kasan_report+0x8e/0x110 [ 40.242992] __asan_report_load8_noabort+0x14/0x20 [ 40.242996] __schedule+0xf54/0x1df0 [ 40.243000] preempt_schedule_common+0x22/0x60 [ 40.243004] _cond_resched+0x1d/0x30 [ 40.243008] wait_for_completion+0xa5/0x8d0 [ 40.243012] __synchronize_srcu+0x189/0x240 [ 40.243016] synchronize_srcu+0x335/0x56f [ 40.243021] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.243025] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.243029] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.243033] kvm_put_kvm+0x73f/0x1060 [ 40.243037] kvm_vm_release+0x42/0x50 [ 40.243040] __fput+0x38a/0xa40 [ 40.243044] ____fput+0x15/0x20 [ 40.243047] task_work_run+0x1e8/0x2a0 [ 40.243051] do_exit+0x1ae4/0x26e0 [ 40.243055] do_group_exit+0x177/0x440 [ 40.243059] __x64_sys_exit_group+0x3e/0x50 [ 40.243063] do_syscall_64+0x1b9/0x820 [ 40.243067] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.243070] [ 40.243072] -> #2 (&rq->lock){-.-.}: [ 40.243085] _raw_spin_lock+0x2a/0x40 [ 40.243089] task_fork_fair+0x93/0x680 [ 40.243093] sched_fork+0x44b/0xbd0 [ 40.243097] copy_process+0x235e/0x7af0 [ 40.243100] _do_fork+0x1ca/0x1170 [ 40.243104] kernel_thread+0x34/0x40 [ 40.243108] rest_init+0x22/0xe4 [ 40.243111] start_kernel+0x913/0x94e [ 40.243116] x86_64_start_reservations+0x29/0x2b [ 40.243120] x86_64_start_kernel+0x76/0x79 [ 40.243124] secondary_startup_64+0xa4/0xb0 [ 40.243126] [ 40.243128] -> #1 (&p->pi_lock){-.-.}: [ 40.243142] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.243146] try_to_wake_up+0xd2/0x1250 [ 40.243150] wake_up_process+0x10/0x20 [ 40.243153] __up.isra.1+0x1c0/0x2a0 [ 40.243157] up+0x13c/0x1c0 [ 40.243160] __up_console_sem+0xbe/0x1b0 [ 40.243164] console_unlock+0x506/0x10e0 [ 40.243168] vprintk_emit+0x33a/0x910 [ 40.243172] vprintk_default+0x28/0x30 [ 40.243175] vprintk_func+0x7a/0x117 [ 40.243179] printk+0xa7/0xcf [ 40.243182] load_umh+0x51/0xbd [ 40.243186] do_one_initcall+0x127/0x838 [ 40.243190] kernel_init_freeable+0x4bb/0x5ae [ 40.243194] kernel_init+0x11/0x1b3 [ 40.243197] ret_from_fork+0x3a/0x50 [ 40.243200] [ 40.243202] -> #0 ((console_sem).lock){-...}: [ 40.243216] lock_acquire+0x1e4/0x4f0 [ 40.243220] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.243224] down_trylock+0x13/0x70 [ 40.243228] __down_trylock_console_sem+0xae/0x200 [ 40.243232] console_trylock+0x15/0xa0 [ 40.243236] vprintk_emit+0x31f/0x910 [ 40.243240] vprintk_default+0x28/0x30 [ 40.243243] vprintk_func+0x7a/0x117 [ 40.243247] printk+0xa7/0xcf [ 40.243250] kasan_report+0x9e/0x110 [ 40.243255] __asan_report_load8_noabort+0x14/0x20 [ 40.243258] __schedule+0xf54/0x1df0 [ 40.243263] preempt_schedule_common+0x22/0x60 [ 40.243266] _cond_resched+0x1d/0x30 [ 40.243271] wait_for_completion+0xa5/0x8d0 [ 40.243275] __synchronize_srcu+0x189/0x240 [ 40.243279] synchronize_srcu+0x335/0x56f [ 40.243284] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.243287] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.243292] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.243295] kvm_put_kvm+0x73f/0x1060 [ 40.243299] kvm_vm_release+0x42/0x50 [ 40.243302] __fput+0x38a/0xa40 [ 40.243306] ____fput+0x15/0x20 [ 40.243310] task_work_run+0x1e8/0x2a0 [ 40.243313] do_exit+0x1ae4/0x26e0 [ 40.243317] do_group_exit+0x177/0x440 [ 40.243321] __x64_sys_exit_group+0x3e/0x50 [ 40.243325] do_syscall_64+0x1b9/0x820 [ 40.243329] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.243331] [ 40.243336] other info that might help us debug this: [ 40.243338] [ 40.243341] Chain exists of: [ 40.243343] (console_sem).lock --> &rq->lock --> report_lock [ 40.243361] [ 40.243365] Possible unsafe locking scenario: [ 40.243367] [ 40.243371] CPU0 CPU1 [ 40.243375] ---- ---- [ 40.243378] lock(report_lock); [ 40.243387] lock(&rq->lock); [ 40.243396] lock(report_lock); [ 40.243403] lock((console_sem).lock); [ 40.243411] [ 40.243414] *** DEADLOCK *** [ 40.243416] [ 40.243420] 2 locks held by syz-executor312/4877: [ 40.243423] #0: 0000000063b07f18 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 40.243439] #1: 00000000a4aa5b14 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 40.243456] [ 40.243459] stack backtrace: [ 40.243464] CPU: 0 PID: 4877 Comm: syz-executor312 Not tainted 4.19.0-rc2+ #4 [ 40.243472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.243475] Call Trace: [ 40.243478] dump_stack+0x1c9/0x2b4 [ 40.243483] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.243487] ? vprintk_func+0x100/0x117 [ 40.243491] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 40.243495] ? save_trace+0xe0/0x290 [ 40.243499] __lock_acquire+0x3449/0x5020 [ 40.243503] ? mark_held_locks+0x160/0x160 [ 40.243507] ? mark_held_locks+0x160/0x160 [ 40.243511] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 40.243515] ? is_bpf_text_address+0xd7/0x170 [ 40.243531] ? kernel_text_address+0x79/0xf0 [ 40.243535] ? __kernel_text_address+0xd/0x40 [ 40.243539] ? __save_stack_trace+0x8d/0xf0 [ 40.243543] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 40.243547] ? save_trace+0x290/0x290 [ 40.243551] ? save_stack_trace+0x1a/0x20 [ 40.243554] ? save_trace+0xe0/0x290 [ 40.243558] ? graph_lock+0x170/0x170 [ 40.243562] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.243566] lock_acquire+0x1e4/0x4f0 [ 40.243570] ? down_trylock+0x13/0x70 [ 40.243573] ? lock_release+0x9f0/0x9f0 [ 40.243577] ? trace_hardirqs_off+0xb8/0x2c0 [ 40.243581] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.243585] ? trace_hardirqs_off+0xb8/0x2c0 [ 40.243589] ? log_store+0x34f/0x4c0 [ 40.243592] ? vprintk_emit+0x31f/0x910 [ 40.243596] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.243600] ? down_trylock+0x13/0x70 [ 40.243615] down_trylock+0x13/0x70 [ 40.243620] __down_trylock_console_sem+0xae/0x200 [ 40.243623] console_trylock+0x15/0xa0 [ 40.243627] vprintk_emit+0x31f/0x910 [ 40.243631] ? wake_up_klogd+0x110/0x110 [ 40.243635] ? run_rebalance_domains+0x4c0/0x4c0 [ 40.243639] ? kasan_check_read+0x11/0x20 [ 40.243643] ? rcu_is_watching+0x8c/0x150 [ 40.243647] ? rcu_pm_notify+0xc0/0xc0 [ 40.243650] ? lock_acquire+0x1e4/0x4f0 [ 40.243654] ? kasan_report+0x8e/0x110 [ 40.243658] ? __schedule+0xf54/0x1df0 [ 40.243662] vprintk_default+0x28/0x30 [ 40.243665] vprintk_func+0x7a/0x117 [ 40.243669] printk+0xa7/0xcf [ 40.243673] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 40.243677] ? kasan_check_write+0x14/0x20 [ 40.243681] ? do_raw_spin_lock+0xc1/0x200 [ 40.243685] ? do_raw_spin_lock+0xc1/0x200 [ 40.243688] kasan_report+0x9e/0x110 [ 40.243693] __asan_report_load8_noabort+0x14/0x20 [ 40.243696] __schedule+0xf54/0x1df0 [ 40.243700] ? __sched_text_start+0x8/0x8 [ 40.243705] ? _raw_spin_unlock_irqrestore+0xa1/0xc0 [ 40.243709] ? __call_srcu+0x7e7/0x1040 [ 40.243712] ? check_same_owner+0x340/0x340 [ 40.243716] ? mark_held_locks+0x160/0x160 [ 40.243720] ? find_held_lock+0x36/0x1c0 [ 40.243724] preempt_schedule_common+0x22/0x60 [ 40.243728] _cond_resched+0x1d/0x30 [ 40.243732] wait_for_completion+0xa5/0x8d0 [ 40.243737] ? wait_for_completion_interruptible+0x950/0x950 [ 40.243741] ? __lockdep_init_map+0x105/0x590 [ 40.243745] ? __init_waitqueue_head+0x9e/0x150 [ 40.243749] ? init_wait_entry+0x1c0/0x1c0 [ 40.243753] __synchronize_srcu+0x189/0x240 [ 40.243757] ? call_srcu+0x10/0x10 [ 40.243761] ? rcu_unexpedite_gp+0x20/0x20 [ 40.243764] synchronize_srcu+0x335/0x56f [ 40.243768] ? lock_downgrade+0x8f0/0x8f0 [ 40.243773] ? synchronize_srcu_expedited+0x20/0x20 [ 40.243777] ? kasan_check_read+0x11/0x20 [ 40.243781] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 40.243785] ? kasan_check_write+0x14/0x20 [ 40.243789] ? do_raw_spin_lock+0xc1/0x200 [ 40.243794] kvm_page_track_unregister_notifier+0x17d/0x250 [ 40.243798] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 40.243802] ? kvfree+0x61/0x70 [ 40.243806] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.243810] kvm_mmu_uninit_vm+0x1c/0x20 [ 40.243814] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 40.243818] ? kvm_arch_sync_events+0x30/0x30 [ 40.243823] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.243828] ? mmu_notifier_unregister+0x474/0x600 [ 40.243832] ? trace_hardirqs_on+0x2c0/0x2c0 [ 40.243835] ? kfree+0x111/0x210 [ 40.243846] ? __mmu_notifier_register+0x30/0x30 [ 40.243850] ? __free_pages+0x10a/0x190 [ 40.243854] ? free_unref_page+0x930/0x930 [ 40.243858] kvm_put_kvm+0x73f/0x1060 [ 40.243862] ? kvm_write_guest_cached+0x40/0x40 [ 40.243866] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.243870] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.243874] ? lockdep_hardirqs_on+0x421/0x5c0 [ 40.243878] ? kasan_check_write+0x14/0x20 [ 40.243882] ? do_raw_spin_lock+0xc1/0x200 [ 40.243887] ? kvm_irqfd_release+0xdd/0x120 [ 40.243891] ? kvm_irqfd_release+0xdd/0x120 [ 40.243894] ? kvm_put_kvm+0x1060/0x1060 [ 40.243898] kvm_vm_release+0x42/0x50 [ 40.243902] __fput+0x38a/0xa40 [ 40.243905] ? __alloc_file+0x400/0x400 [ 40.243909] ? check_same_owner+0x340/0x340 [ 40.243913] ? kasan_check_write+0x14/0x20 [ 40.243917] ? do_raw_spin_lock+0xc1/0x200 [ 40.243921] ____fput+0x15/0x20 [ 40.243925] task_work_run+0x1e8/0x2a0 [ 40.243929] ? task_work_cancel+0x240/0x240 [ 40.243933] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 40.243938] ? switch_task_namespaces+0xa2/0xd0 [ 40.243941] do_exit+0x1ae4/0x26e0 [ 40.243945] ? mm_update_next_owner+0x9a0/0x9a0 [ 40.243949] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 40.243954] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.243957] ? kfree+0x1d7/0x210 [ 40.243961] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 40.243966] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 40.243970] ? avc_has_extended_perms+0xa97/0x15c0 [ 40.243972] [ 40.243979] Lost 48 message(s)! [ 41.337833] Shutting down cpus with NMI [ 42.397910] Dumping ftrace buffer: [ 42.401566] (ftrace buffer empty) [ 42.405254] Kernel Offset: disabled [ 42.408875] Rebooting in 86400 seconds..