[....] 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: [ 29.154872] random: sshd: uninitialized urandom read (32 bytes read) [ 29.500747] audit: type=1400 audit(1536307528.217:6): avc: denied { map } for pid=4749 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 [ 29.568961] random: sshd: uninitialized urandom read (32 bytes read) [ 30.261862] random: sshd: uninitialized urandom read (32 bytes read) [ 36.531694] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.19' (ECDSA) to the list of known hosts. [ 42.288722] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 42.408330] audit: type=1400 audit(1536307541.125:7): avc: denied { map } for pid=4765 comm="syz-executor364" path="/root/syz-executor364768904" 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 [ 42.412041] 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. [ 42.460320] ================================================================== [ 42.470173] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 42.476402] Read of size 8 at addr ffff8801b0830058 by task syz-executor364/4765 [ 42.483924] [ 42.485561] CPU: 0 PID: 4765 Comm: syz-executor364 Not tainted 4.19.0-rc2+ #4 [ 42.492830] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.502171] Call Trace: [ 42.504759] dump_stack+0x1c9/0x2b4 [ 42.508389] ? dump_stack_print_info.cold.2+0x52/0x52 [ 42.513578] ? printk+0xa7/0xcf [ 42.516855] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 42.521613] ? __schedule+0xf54/0x1df0 [ 42.525505] print_address_description+0x6c/0x20b [ 42.530347] ? __schedule+0xf54/0x1df0 [ 42.534234] kasan_report.cold.7+0x242/0x30d [ 42.538645] __asan_report_load8_noabort+0x14/0x20 [ 42.543570] __schedule+0xf54/0x1df0 [ 42.547316] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 42.552418] ? __sched_text_start+0x8/0x8 [ 42.556570] ? __call_srcu+0x7e7/0x1040 [ 42.560550] ? check_same_owner+0x340/0x340 [ 42.564869] ? mark_held_locks+0x160/0x160 [ 42.569102] ? find_held_lock+0x36/0x1c0 [ 42.573161] preempt_schedule_common+0x22/0x60 [ 42.577752] _cond_resched+0x1d/0x30 [ 42.581462] wait_for_completion+0xa5/0x8d0 [ 42.585794] ? wait_for_completion_interruptible+0x950/0x950 [ 42.591589] ? __lockdep_init_map+0x105/0x590 [ 42.596083] ? __init_waitqueue_head+0x9e/0x150 [ 42.600749] ? init_wait_entry+0x1c0/0x1c0 [ 42.604985] __synchronize_srcu+0x189/0x240 [ 42.609305] ? call_srcu+0x10/0x10 [ 42.612848] ? rcu_unexpedite_gp+0x20/0x20 [ 42.617091] synchronize_srcu+0x335/0x56f [ 42.621236] ? lock_downgrade+0x8f0/0x8f0 [ 42.625396] ? synchronize_srcu_expedited+0x20/0x20 [ 42.630418] ? kasan_check_read+0x11/0x20 [ 42.634574] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 42.639155] ? kasan_check_write+0x14/0x20 [ 42.643389] ? do_raw_spin_lock+0xc1/0x200 [ 42.647626] kvm_page_track_unregister_notifier+0x17d/0x250 [ 42.653338] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 42.658800] ? kvfree+0x61/0x70 [ 42.662107] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.667123] kvm_mmu_uninit_vm+0x1c/0x20 [ 42.671182] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 42.675589] ? kvm_arch_sync_events+0x30/0x30 [ 42.680091] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 42.685630] ? mmu_notifier_unregister+0x474/0x600 [ 42.690555] ? trace_hardirqs_on+0x2c0/0x2c0 [ 42.694964] ? kfree+0x111/0x210 [ 42.698332] ? __mmu_notifier_register+0x30/0x30 [ 42.703088] ? __free_pages+0x10a/0x190 [ 42.707073] ? free_unref_page+0x930/0x930 [ 42.711314] kvm_put_kvm+0x73f/0x1060 [ 42.715120] ? kvm_write_guest_cached+0x40/0x40 [ 42.719793] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.724288] ? _raw_spin_unlock_irq+0x27/0x70 [ 42.728783] ? lockdep_hardirqs_on+0x421/0x5c0 [ 42.733371] ? kasan_check_write+0x14/0x20 [ 42.737605] ? do_raw_spin_lock+0xc1/0x200 [ 42.741839] ? kvm_irqfd_release+0xdd/0x120 [ 42.746161] ? kvm_irqfd_release+0xdd/0x120 [ 42.750483] ? kvm_put_kvm+0x1060/0x1060 [ 42.754540] kvm_vm_release+0x42/0x50 [ 42.758336] __fput+0x38a/0xa40 [ 42.761613] ? __alloc_file+0x400/0x400 [ 42.765591] ? check_same_owner+0x340/0x340 [ 42.769917] ? kasan_check_write+0x14/0x20 [ 42.774204] ? do_raw_spin_lock+0xc1/0x200 [ 42.778437] ____fput+0x15/0x20 [ 42.781719] task_work_run+0x1e8/0x2a0 [ 42.785603] ? task_work_cancel+0x240/0x240 [ 42.789933] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 42.795478] ? switch_task_namespaces+0xa2/0xd0 [ 42.800147] do_exit+0x1ae4/0x26e0 [ 42.803691] ? mm_update_next_owner+0x9a0/0x9a0 [ 42.808362] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 42.812596] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.817612] ? kfree+0x1d7/0x210 [ 42.820983] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 42.825220] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 42.830944] ? avc_has_extended_perms+0xa97/0x15c0 [ 42.835875] ? kernel_text_address+0x9e/0xf0 [ 42.840289] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 42.845389] ? avc_ss_reset+0x190/0x190 [ 42.849370] ? save_stack+0xa9/0xd0 [ 42.852993] ? save_stack+0x43/0xd0 [ 42.856628] ? __kasan_slab_free+0x11a/0x170 [ 42.861036] ? kasan_slab_free+0xe/0x10 [ 42.865012] ? putname+0xf2/0x130 [ 42.868465] ? __x64_sys_openat+0x9d/0x100 [ 42.872697] ? do_syscall_64+0x1b9/0x820 [ 42.876769] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.882149] ? initcall_blacklisted+0x9a/0x1e0 [ 42.886746] ? rcu_note_context_switch+0x680/0x680 [ 42.891690] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 42.897400] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.902949] ? do_vfs_ioctl+0x201/0x1720 [ 42.907016] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 42.912206] ? ioctl_preallocate+0x300/0x300 [ 42.916613] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.922151] ? selinux_capable+0x40/0x40 [ 42.926223] ? path_pts+0x9f/0x1f0 [ 42.929759] ? rcu_read_lock_sched_held+0x108/0x120 [ 42.934765] ? kmem_cache_free+0x246/0x280 [ 42.939002] ? putname+0xf7/0x130 [ 42.942464] do_group_exit+0x177/0x440 [ 42.946335] ? trace_hardirqs_on+0xbd/0x2c0 [ 42.950639] ? __ia32_sys_exit+0x50/0x50 [ 42.954695] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 42.959779] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.965295] ? ksys_ioctl+0x81/0xd0 [ 42.968903] __x64_sys_exit_group+0x3e/0x50 [ 42.973206] do_syscall_64+0x1b9/0x820 [ 42.977075] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.982422] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.987333] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.992167] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 42.997185] ? prepare_exit_to_usermode+0x291/0x3b0 [ 43.002214] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.007092] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.012282] RIP: 0033:0x43ecd8 [ 43.015471] Code: Bad RIP value. [ 43.018827] RSP: 002b:00007ffda8e17d38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 43.026545] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 43.033810] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 43.041074] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 43.048837] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 43.056102] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 43.063380] [ 43.065002] Allocated by task 4765: [ 43.068628] save_stack+0x43/0xd0 [ 43.072079] kasan_kmalloc+0xc4/0xe0 [ 43.075796] kasan_slab_alloc+0x12/0x20 [ 43.079888] kmem_cache_alloc+0x12e/0x710 [ 43.084039] vmx_create_vcpu+0xcf/0x2830 [ 43.088095] kvm_arch_vcpu_create+0xe5/0x220 [ 43.092499] kvm_vm_ioctl+0x488/0x1d80 [ 43.096381] do_vfs_ioctl+0x1de/0x1720 [ 43.100267] ksys_ioctl+0xa9/0xd0 [ 43.103724] __x64_sys_ioctl+0x73/0xb0 [ 43.107604] do_syscall_64+0x1b9/0x820 [ 43.111512] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.116687] [ 43.118312] Freed by task 4765: [ 43.121586] save_stack+0x43/0xd0 [ 43.125033] __kasan_slab_free+0x11a/0x170 [ 43.129269] kasan_slab_free+0xe/0x10 [ 43.133080] kmem_cache_free+0x86/0x280 [ 43.137064] vmx_free_vcpu+0x26b/0x300 [ 43.140951] kvm_arch_destroy_vm+0x365/0x7c0 [ 43.145361] kvm_put_kvm+0x73f/0x1060 [ 43.149169] kvm_vm_release+0x42/0x50 [ 43.152995] __fput+0x38a/0xa40 [ 43.156409] ____fput+0x15/0x20 [ 43.159683] task_work_run+0x1e8/0x2a0 [ 43.163565] do_exit+0x1ae4/0x26e0 [ 43.167111] do_group_exit+0x177/0x440 [ 43.171007] __x64_sys_exit_group+0x3e/0x50 [ 43.175324] do_syscall_64+0x1b9/0x820 [ 43.179210] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.184389] [ 43.186014] The buggy address belongs to the object at ffff8801b0830040 [ 43.186014] which belongs to the cache kvm_vcpu of size 23872 [ 43.198591] The buggy address is located 24 bytes inside of [ 43.198591] 23872-byte region [ffff8801b0830040, ffff8801b0835d80) [ 43.210543] The buggy address belongs to the page: [ 43.215469] page:ffffea0006c20c00 count:1 mapcount:0 mapping:ffff8801d4ca7900 index:0x0 compound_mapcount: 0 [ 43.225435] flags: 0x2fffc0000008100(slab|head) [ 43.230107] raw: 02fffc0000008100 ffff8801d4ca8848 ffff8801d4ca8848 ffff8801d4ca7900 [ 43.237995] raw: 0000000000000000 ffff8801b0830040 0000000100000001 0000000000000000 [ 43.245861] page dumped because: kasan: bad access detected [ 43.251558] [ 43.253177] Memory state around the buggy address: [ 43.258112] ffff8801b082ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.265481] ffff8801b082ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.272833] >ffff8801b0830000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 43.280180] ^ [ 43.286422] ffff8801b0830080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.293781] ffff8801b0830100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.301128] ================================================================== [ 43.308476] Kernel panic - not syncing: panic_on_warn set ... [ 43.308476] [ 43.315836] CPU: 0 PID: 4765 Comm: syz-executor364 Tainted: G B 4.19.0-rc2+ #4 [ 43.324491] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.333838] Call Trace: [ 43.336431] dump_stack+0x1c9/0x2b4 [ 43.340062] ? dump_stack_print_info.cold.2+0x52/0x52 [ 43.345248] ? lock_downgrade+0x8f0/0x8f0 [ 43.349392] ? __schedule+0xf54/0x1df0 [ 43.353279] panic+0x238/0x4e7 [ 43.356486] ? add_taint.cold.5+0x16/0x16 [ 43.360642] ? print_shadow_for_address+0xba/0x116 [ 43.365568] ? trace_hardirqs_off+0xaf/0x2c0 [ 43.369982] ? trace_hardirqs_off+0x77/0x2c0 [ 43.374388] ? __schedule+0xf54/0x1df0 [ 43.378275] kasan_end_report+0x47/0x4f [ 43.382249] kasan_report.cold.7+0x76/0x30d [ 43.386575] __asan_report_load8_noabort+0x14/0x20 [ 43.391502] __schedule+0xf54/0x1df0 [ 43.395212] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 43.400313] ? __sched_text_start+0x8/0x8 [ 43.404462] ? __call_srcu+0x7e7/0x1040 [ 43.408445] ? check_same_owner+0x340/0x340 [ 43.412768] ? mark_held_locks+0x160/0x160 [ 43.416998] ? find_held_lock+0x36/0x1c0 [ 43.421064] preempt_schedule_common+0x22/0x60 [ 43.425647] _cond_resched+0x1d/0x30 [ 43.429360] wait_for_completion+0xa5/0x8d0 [ 43.433687] ? wait_for_completion_interruptible+0x950/0x950 [ 43.439485] ? __lockdep_init_map+0x105/0x590 [ 43.443980] ? __init_waitqueue_head+0x9e/0x150 [ 43.448646] ? init_wait_entry+0x1c0/0x1c0 [ 43.452887] __synchronize_srcu+0x189/0x240 [ 43.457223] ? call_srcu+0x10/0x10 [ 43.460762] ? rcu_unexpedite_gp+0x20/0x20 [ 43.465006] synchronize_srcu+0x335/0x56f [ 43.469150] ? lock_downgrade+0x8f0/0x8f0 [ 43.473296] ? synchronize_srcu_expedited+0x20/0x20 [ 43.478312] ? kasan_check_read+0x11/0x20 [ 43.482457] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 43.487042] ? kasan_check_write+0x14/0x20 [ 43.491275] ? do_raw_spin_lock+0xc1/0x200 [ 43.495511] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.501224] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 43.506672] ? kvfree+0x61/0x70 [ 43.509995] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.515027] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.519086] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.523496] ? kvm_arch_sync_events+0x30/0x30 [ 43.527996] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.533532] ? mmu_notifier_unregister+0x474/0x600 [ 43.538456] ? trace_hardirqs_on+0x2c0/0x2c0 [ 43.542859] ? kfree+0x111/0x210 [ 43.546239] ? __mmu_notifier_register+0x30/0x30 [ 43.551011] ? __free_pages+0x10a/0x190 [ 43.555001] ? free_unref_page+0x930/0x930 [ 43.559257] kvm_put_kvm+0x73f/0x1060 [ 43.563064] ? kvm_write_guest_cached+0x40/0x40 [ 43.567762] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.572256] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.576751] ? lockdep_hardirqs_on+0x421/0x5c0 [ 43.581336] ? kasan_check_write+0x14/0x20 [ 43.585569] ? do_raw_spin_lock+0xc1/0x200 [ 43.589804] ? kvm_irqfd_release+0xdd/0x120 [ 43.594121] ? kvm_irqfd_release+0xdd/0x120 [ 43.598442] ? kvm_put_kvm+0x1060/0x1060 [ 43.602505] kvm_vm_release+0x42/0x50 [ 43.606332] __fput+0x38a/0xa40 [ 43.609610] ? __alloc_file+0x400/0x400 [ 43.613590] ? check_same_owner+0x340/0x340 [ 43.617946] ? kasan_check_write+0x14/0x20 [ 43.622189] ? do_raw_spin_lock+0xc1/0x200 [ 43.626449] ____fput+0x15/0x20 [ 43.629729] task_work_run+0x1e8/0x2a0 [ 43.633617] ? task_work_cancel+0x240/0x240 [ 43.637948] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.643480] ? switch_task_namespaces+0xa2/0xd0 [ 43.648149] do_exit+0x1ae4/0x26e0 [ 43.651695] ? mm_update_next_owner+0x9a0/0x9a0 [ 43.656365] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 43.660615] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.665625] ? kfree+0x1d7/0x210 [ 43.669006] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 43.673271] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 43.678983] ? avc_has_extended_perms+0xa97/0x15c0 [ 43.683918] ? kernel_text_address+0x9e/0xf0 [ 43.688353] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 43.693452] ? avc_ss_reset+0x190/0x190 [ 43.697432] ? save_stack+0xa9/0xd0 [ 43.701057] ? save_stack+0x43/0xd0 [ 43.704682] ? __kasan_slab_free+0x11a/0x170 [ 43.709102] ? kasan_slab_free+0xe/0x10 [ 43.713086] ? putname+0xf2/0x130 [ 43.716541] ? __x64_sys_openat+0x9d/0x100 [ 43.720774] ? do_syscall_64+0x1b9/0x820 [ 43.724832] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.730200] ? initcall_blacklisted+0x9a/0x1e0 [ 43.734784] ? rcu_note_context_switch+0x680/0x680 [ 43.739721] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 43.745439] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.750978] ? do_vfs_ioctl+0x201/0x1720 [ 43.755042] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 43.760240] ? ioctl_preallocate+0x300/0x300 [ 43.764651] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.770185] ? selinux_capable+0x40/0x40 [ 43.774245] ? path_pts+0x9f/0x1f0 [ 43.777783] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.782799] ? kmem_cache_free+0x246/0x280 [ 43.787037] ? putname+0xf7/0x130 [ 43.790492] do_group_exit+0x177/0x440 [ 43.794379] ? trace_hardirqs_on+0xbd/0x2c0 [ 43.798702] ? __ia32_sys_exit+0x50/0x50 [ 43.802759] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 43.807861] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.813397] ? ksys_ioctl+0x81/0xd0 [ 43.817037] __x64_sys_exit_group+0x3e/0x50 [ 43.821370] do_syscall_64+0x1b9/0x820 [ 43.825257] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 43.830639] ? syscall_return_slowpath+0x5e0/0x5e0 [ 43.835580] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.840419] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 43.845435] ? prepare_exit_to_usermode+0x291/0x3b0 [ 43.850451] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.855298] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.860483] RIP: 0033:0x43ecd8 [ 43.863672] Code: Bad RIP value. [ 43.867033] RSP: 002b:00007ffda8e17d38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 43.874741] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecd8 [ 43.882008] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 43.889272] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 43.896538] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 43.903802] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 43.911074] [ 43.911079] ====================================================== [ 43.911085] WARNING: possible circular locking dependency detected [ 43.911088] 4.19.0-rc2+ #4 Not tainted [ 43.911094] ------------------------------------------------------ [ 43.911098] syz-executor364/4765 is trying to acquire lock: [ 43.911102] 000000004de90b67 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 43.911117] [ 43.911121] but task is already holding lock: [ 43.911124] 000000002ade0909 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 43.911138] [ 43.911142] which lock already depends on the new lock. [ 43.911144] [ 43.911147] [ 43.911152] the existing dependency chain (in reverse order) is: [ 43.911154] [ 43.911156] -> #3 (report_lock){....}: [ 43.911170] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.911174] kasan_report+0x8e/0x110 [ 43.911179] __asan_report_load8_noabort+0x14/0x20 [ 43.911182] __schedule+0xf54/0x1df0 [ 43.911187] preempt_schedule_common+0x22/0x60 [ 43.911190] _cond_resched+0x1d/0x30 [ 43.911194] wait_for_completion+0xa5/0x8d0 [ 43.911198] __synchronize_srcu+0x189/0x240 [ 43.911202] synchronize_srcu+0x335/0x56f [ 43.911207] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.911211] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.911215] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.911219] kvm_put_kvm+0x73f/0x1060 [ 43.911223] kvm_vm_release+0x42/0x50 [ 43.911226] __fput+0x38a/0xa40 [ 43.911229] ____fput+0x15/0x20 [ 43.911233] task_work_run+0x1e8/0x2a0 [ 43.911237] do_exit+0x1ae4/0x26e0 [ 43.911241] do_group_exit+0x177/0x440 [ 43.911245] __x64_sys_exit_group+0x3e/0x50 [ 43.911249] do_syscall_64+0x1b9/0x820 [ 43.911253] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.911255] [ 43.911258] -> #2 (&rq->lock){-.-.}: [ 43.911271] _raw_spin_lock+0x2a/0x40 [ 43.911275] task_fork_fair+0x93/0x680 [ 43.911279] sched_fork+0x44b/0xbd0 [ 43.911283] copy_process+0x235e/0x7af0 [ 43.911286] _do_fork+0x1ca/0x1170 [ 43.911290] kernel_thread+0x34/0x40 [ 43.911293] rest_init+0x22/0xe4 [ 43.911297] start_kernel+0x913/0x94e [ 43.911301] x86_64_start_reservations+0x29/0x2b [ 43.911305] x86_64_start_kernel+0x76/0x79 [ 43.911309] secondary_startup_64+0xa4/0xb0 [ 43.911312] [ 43.911314] -> #1 (&p->pi_lock){-.-.}: [ 43.911328] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.911332] try_to_wake_up+0xd2/0x1250 [ 43.911336] wake_up_process+0x10/0x20 [ 43.911339] __up.isra.1+0x1c0/0x2a0 [ 43.911343] up+0x13c/0x1c0 [ 43.911346] __up_console_sem+0xbe/0x1b0 [ 43.911350] console_unlock+0x506/0x10e0 [ 43.911354] vprintk_emit+0x33a/0x910 [ 43.911358] vprintk_default+0x28/0x30 [ 43.911362] vprintk_func+0x7a/0x117 [ 43.911365] printk+0xa7/0xcf [ 43.911368] load_umh+0x51/0xbd [ 43.911372] do_one_initcall+0x127/0x838 [ 43.911376] kernel_init_freeable+0x4bb/0x5ae [ 43.911380] kernel_init+0x11/0x1b3 [ 43.911384] ret_from_fork+0x3a/0x50 [ 43.911386] [ 43.911388] -> #0 ((console_sem).lock){-...}: [ 43.911402] lock_acquire+0x1e4/0x4f0 [ 43.911406] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.911410] down_trylock+0x13/0x70 [ 43.911415] __down_trylock_console_sem+0xae/0x200 [ 43.911419] console_trylock+0x15/0xa0 [ 43.911423] vprintk_emit+0x31f/0x910 [ 43.911426] vprintk_default+0x28/0x30 [ 43.911430] vprintk_func+0x7a/0x117 [ 43.911433] printk+0xa7/0xcf [ 43.911437] kasan_report+0x9e/0x110 [ 43.911441] __asan_report_load8_noabort+0x14/0x20 [ 43.911445] __schedule+0xf54/0x1df0 [ 43.911449] preempt_schedule_common+0x22/0x60 [ 43.911453] _cond_resched+0x1d/0x30 [ 43.911457] wait_for_completion+0xa5/0x8d0 [ 43.911461] __synchronize_srcu+0x189/0x240 [ 43.911465] synchronize_srcu+0x335/0x56f [ 43.911470] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.911474] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.911478] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.911482] kvm_put_kvm+0x73f/0x1060 [ 43.911486] kvm_vm_release+0x42/0x50 [ 43.911489] __fput+0x38a/0xa40 [ 43.911493] ____fput+0x15/0x20 [ 43.911496] task_work_run+0x1e8/0x2a0 [ 43.911500] do_exit+0x1ae4/0x26e0 [ 43.911504] do_group_exit+0x177/0x440 [ 43.911508] __x64_sys_exit_group+0x3e/0x50 [ 43.911512] do_syscall_64+0x1b9/0x820 [ 43.911516] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.911519] [ 43.911523] other info that might help us debug this: [ 43.911525] [ 43.911528] Chain exists of: [ 43.911530] (console_sem).lock --> &rq->lock --> report_lock [ 43.911548] [ 43.911552] Possible unsafe locking scenario: [ 43.911554] [ 43.911558] CPU0 CPU1 [ 43.911562] ---- ---- [ 43.911564] lock(report_lock); [ 43.911573] lock(&rq->lock); [ 43.911582] lock(report_lock); [ 43.911590] lock((console_sem).lock); [ 43.911598] [ 43.911601] *** DEADLOCK *** [ 43.911603] [ 43.911607] 2 locks held by syz-executor364/4765: [ 43.911610] #0: 00000000d812ad25 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 43.911626] #1: 000000002ade0909 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 43.911643] [ 43.911646] stack backtrace: [ 43.911665] CPU: 0 PID: 4765 Comm: syz-executor364 Not tainted 4.19.0-rc2+ #4 [ 43.911672] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.911675] Call Trace: [ 43.911678] dump_stack+0x1c9/0x2b4 [ 43.911682] ? dump_stack_print_info.cold.2+0x52/0x52 [ 43.911686] ? vprintk_func+0x100/0x117 [ 43.911704] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 43.911708] ? save_trace+0xe0/0x290 [ 43.911712] __lock_acquire+0x3449/0x5020 [ 43.911715] ? mark_held_locks+0x160/0x160 [ 43.911719] ? mark_held_locks+0x160/0x160 [ 43.911723] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 43.911727] ? is_bpf_text_address+0xd7/0x170 [ 43.911731] ? kernel_text_address+0x79/0xf0 [ 43.911734] ? __kernel_text_address+0xd/0x40 [ 43.911738] ? __save_stack_trace+0x8d/0xf0 [ 43.911742] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 43.911746] ? save_trace+0x290/0x290 [ 43.911749] ? save_stack_trace+0x1a/0x20 [ 43.911753] ? save_trace+0xe0/0x290 [ 43.911768] ? graph_lock+0x170/0x170 [ 43.911773] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.911777] lock_acquire+0x1e4/0x4f0 [ 43.911780] ? down_trylock+0x13/0x70 [ 43.911784] ? lock_release+0x9f0/0x9f0 [ 43.911788] ? trace_hardirqs_off+0xb8/0x2c0 [ 43.911792] ? trace_hardirqs_on+0x2c0/0x2c0 [ 43.911796] ? trace_hardirqs_off+0xb8/0x2c0 [ 43.911799] ? log_store+0x34f/0x4c0 [ 43.911803] ? vprintk_emit+0x31f/0x910 [ 43.911807] _raw_spin_lock_irqsave+0x96/0xc0 [ 43.911810] ? down_trylock+0x13/0x70 [ 43.911814] down_trylock+0x13/0x70 [ 43.911818] __down_trylock_console_sem+0xae/0x200 [ 43.911821] console_trylock+0x15/0xa0 [ 43.911825] vprintk_emit+0x31f/0x910 [ 43.911829] ? wake_up_klogd+0x110/0x110 [ 43.911833] ? run_rebalance_domains+0x4c0/0x4c0 [ 43.911837] ? kasan_check_read+0x11/0x20 [ 43.911840] ? rcu_is_watching+0x8c/0x150 [ 43.911844] ? rcu_pm_notify+0xc0/0xc0 [ 43.911848] ? lock_acquire+0x1e4/0x4f0 [ 43.911851] ? kasan_report+0x8e/0x110 [ 43.911855] ? __schedule+0xf54/0x1df0 [ 43.911859] vprintk_default+0x28/0x30 [ 43.911862] vprintk_func+0x7a/0x117 [ 43.911865] printk+0xa7/0xcf [ 43.911869] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 43.911873] ? kasan_check_write+0x14/0x20 [ 43.911877] ? do_raw_spin_lock+0xc1/0x200 [ 43.911881] ? do_raw_spin_lock+0xc1/0x200 [ 43.911884] kasan_report+0x9e/0x110 [ 43.911901] __asan_report_load8_noabort+0x14/0x20 [ 43.911905] __schedule+0xf54/0x1df0 [ 43.911915] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 43.911919] ? __sched_text_start+0x8/0x8 [ 43.911923] ? __call_srcu+0x7e7/0x1040 [ 43.911927] ? check_same_owner+0x340/0x340 [ 43.911931] ? mark_held_locks+0x160/0x160 [ 43.911945] ? find_held_lock+0x36/0x1c0 [ 43.911950] preempt_schedule_common+0x22/0x60 [ 43.911954] _cond_resched+0x1d/0x30 [ 43.911958] wait_for_completion+0xa5/0x8d0 [ 43.911962] ? wait_for_completion_interruptible+0x950/0x950 [ 43.911967] ? __lockdep_init_map+0x105/0x590 [ 43.911971] ? __init_waitqueue_head+0x9e/0x150 [ 43.911975] ? init_wait_entry+0x1c0/0x1c0 [ 43.911979] __synchronize_srcu+0x189/0x240 [ 43.911982] ? call_srcu+0x10/0x10 [ 43.911986] ? rcu_unexpedite_gp+0x20/0x20 [ 43.911990] synchronize_srcu+0x335/0x56f [ 43.911994] ? lock_downgrade+0x8f0/0x8f0 [ 43.911999] ? synchronize_srcu_expedited+0x20/0x20 [ 43.912003] ? kasan_check_read+0x11/0x20 [ 43.912007] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 43.912011] ? kasan_check_write+0x14/0x20 [ 43.912015] ? do_raw_spin_lock+0xc1/0x200 [ 43.912020] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.912024] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 43.912028] ? kvfree+0x61/0x70 [ 43.912032] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.912036] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.912040] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.912045] ? kvm_arch_sync_events+0x30/0x30 [ 43.912049] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.912054] ? mmu_notifier_unregister+0x474/0x600 [ 43.912058] ? trace_hardirqs_on+0x2c0/0x2c0 [ 43.912061] ? kfree+0x111/0x210 [ 43.912066] ? __mmu_notifier_register+0x30/0x30 [ 43.912070] ? __free_pages+0x10a/0x190 [ 43.912074] ? free_unref_page+0x930/0x930 [ 43.912077] kvm_put_kvm+0x73f/0x1060 [ 43.912081] ? kvm_write_guest_cached+0x40/0x40 [ 43.912086] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.912090] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.912094] ? lockdep_hardirqs_on+0x421/0x5c0 [ 43.912098] ? kasan_check_write+0x14/0x20 [ 43.912102] ? do_raw_spin_lock+0xc1/0x200 [ 43.912106] ? kvm_irqfd_release+0xdd/0x120 [ 43.912110] ? kvm_irqfd_release+0xdd/0x120 [ 43.912114] ? kvm_put_kvm+0x1060/0x1060 [ 43.912117] kvm_vm_release+0x42/0x50 [ 43.912121] __fput+0x38a/0xa40 [ 43.912125] ? __alloc_file+0x400/0x400 [ 43.912129] ? check_same_owner+0x340/0x340 [ 43.912133] ? kasan_check_write+0x14/0x20 [ 43.912137] ? do_raw_spin_lock+0xc1/0x200 [ 43.912140] ____fput+0x15/0x20 [ 43.912144] task_work_run+0x1e8/0x2a0 [ 43.912148] ? task_work_cancel+0x240/0x240 [ 43.912152] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.912157] ? switch_task_namespaces+0xa2/0xd0 [ 43.912160] do_exit+0x1ae4/0x26e0 [ 43.912164] ? mm_update_next_owner+0x9a0/0x9a0 [ 43.912168] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 43.912173] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.912176] ? kfree+0x1d7/0x210 [ 43.912180] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 43.912185] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 43.912189] ? avc_has_extended_perms+0xa97/0x15c0 [ 43.912192] [ 43.912199] Lost 47 message(s)! [ 45.028029] Shutting down cpus with NMI [ 46.089209] Dumping ftrace buffer: [ 46.092739] (ftrace buffer empty) [ 46.096428] Kernel Offset: disabled [ 46.100058] Rebooting in 86400 seconds..