[....] 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: [ 30.086800] random: sshd: uninitialized urandom read (32 bytes read) [ 30.575638] audit: type=1400 audit(1536261316.390:6): avc: denied { map } for pid=4744 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 [ 30.617183] random: sshd: uninitialized urandom read (32 bytes read) [ 31.197519] random: sshd: uninitialized urandom read (32 bytes read) [ 31.392562] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.207' (ECDSA) to the list of known hosts. [ 36.956499] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 37.066636] audit: type=1400 audit(1536261322.881:7): avc: denied { map } for pid=4758 comm="syz-executor132" path="/root/syz-executor132848992" 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 [ 37.071034] 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. [ 37.118028] ================================================================== [ 37.128006] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 37.134230] Read of size 8 at addr ffff8801c1510058 by task syz-executor132/4758 [ 37.141750] [ 37.143818] CPU: 0 PID: 4758 Comm: syz-executor132 Not tainted 4.19.0-rc2+ #3 [ 37.151085] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.160438] Call Trace: [ 37.163048] dump_stack+0x1c9/0x2b4 [ 37.166677] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.171870] ? printk+0xa7/0xcf [ 37.175148] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.179907] ? __schedule+0xf54/0x1df0 [ 37.183794] print_address_description+0x6c/0x20b [ 37.188637] ? __schedule+0xf54/0x1df0 [ 37.192524] kasan_report.cold.7+0x242/0x30d [ 37.196935] __asan_report_load8_noabort+0x14/0x20 [ 37.201866] __schedule+0xf54/0x1df0 [ 37.205579] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.210684] ? __sched_text_start+0x8/0x8 [ 37.214834] ? __call_srcu+0x7e7/0x1040 [ 37.218912] ? check_same_owner+0x340/0x340 [ 37.223235] ? mark_held_locks+0x160/0x160 [ 37.227475] ? find_held_lock+0x36/0x1c0 [ 37.231547] preempt_schedule_common+0x22/0x60 [ 37.236128] _cond_resched+0x1d/0x30 [ 37.239839] wait_for_completion+0xa5/0x8d0 [ 37.244165] ? wait_for_completion_interruptible+0x950/0x950 [ 37.249968] ? __lockdep_init_map+0x105/0x590 [ 37.254480] ? __init_waitqueue_head+0x9e/0x150 [ 37.259153] ? init_wait_entry+0x1c0/0x1c0 [ 37.263399] __synchronize_srcu+0x189/0x240 [ 37.268506] ? call_srcu+0x10/0x10 [ 37.272047] ? rcu_unexpedite_gp+0x20/0x20 [ 37.276704] synchronize_srcu+0x335/0x56f [ 37.280850] ? lock_downgrade+0x8f0/0x8f0 [ 37.284998] ? synchronize_srcu_expedited+0x20/0x20 [ 37.290016] ? kasan_check_read+0x11/0x20 [ 37.294166] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.298748] ? kasan_check_write+0x14/0x20 [ 37.302984] ? do_raw_spin_lock+0xc1/0x200 [ 37.307221] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.312940] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.318391] ? kvfree+0x61/0x70 [ 37.321668] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.326680] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.330736] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.335146] ? kvm_arch_sync_events+0x30/0x30 [ 37.339642] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.345182] ? mmu_notifier_unregister+0x474/0x600 [ 37.350105] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.354514] ? kfree+0x111/0x210 [ 37.357881] ? __mmu_notifier_register+0x30/0x30 [ 37.362639] ? __free_pages+0x10a/0x190 [ 37.366608] ? free_unref_page+0x930/0x930 [ 37.370849] kvm_put_kvm+0x73f/0x1060 [ 37.374660] ? kvm_write_guest_cached+0x40/0x40 [ 37.379337] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.383827] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.388320] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.392903] ? kasan_check_write+0x14/0x20 [ 37.397148] ? do_raw_spin_lock+0xc1/0x200 [ 37.401388] ? kvm_irqfd_release+0xdd/0x120 [ 37.405705] ? kvm_irqfd_release+0xdd/0x120 [ 37.410026] ? kvm_put_kvm+0x1060/0x1060 [ 37.414087] kvm_vm_release+0x42/0x50 [ 37.417884] __fput+0x38a/0xa40 [ 37.421246] ? __alloc_file+0x400/0x400 [ 37.425222] ? check_same_owner+0x340/0x340 [ 37.429549] ? kasan_check_write+0x14/0x20 [ 37.433783] ? do_raw_spin_lock+0xc1/0x200 [ 37.438016] ____fput+0x15/0x20 [ 37.441295] task_work_run+0x1e8/0x2a0 [ 37.445180] ? task_work_cancel+0x240/0x240 [ 37.449512] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.455052] ? switch_task_namespaces+0xa2/0xd0 [ 37.459723] do_exit+0x1ae4/0x26e0 [ 37.463274] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.467957] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.472472] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.477509] ? kfree+0x1d7/0x210 [ 37.480884] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.485122] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.490837] ? avc_has_extended_perms+0xa97/0x15c0 [ 37.495761] ? kernel_text_address+0xbe/0xf0 [ 37.500169] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 37.505270] ? avc_ss_reset+0x190/0x190 [ 37.509248] ? save_stack+0xa9/0xd0 [ 37.512870] ? save_stack+0x43/0xd0 [ 37.516499] ? __kasan_slab_free+0x11a/0x170 [ 37.520903] ? kasan_slab_free+0xe/0x10 [ 37.524871] ? putname+0xf2/0x130 [ 37.528326] ? __x64_sys_openat+0x9d/0x100 [ 37.532558] ? do_syscall_64+0x1b9/0x820 [ 37.536616] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.541981] ? initcall_blacklisted+0x9a/0x1e0 [ 37.546563] ? rcu_note_context_switch+0x680/0x680 [ 37.551502] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.557211] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.562749] ? do_vfs_ioctl+0x201/0x1720 [ 37.566980] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 37.572173] ? ioctl_preallocate+0x300/0x300 [ 37.576598] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.582144] ? selinux_capable+0x40/0x40 [ 37.586203] ? path_pts+0x1bf/0x1f0 [ 37.589831] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.594843] ? kmem_cache_free+0x246/0x280 [ 37.599076] ? putname+0xf7/0x130 [ 37.602528] do_group_exit+0x177/0x440 [ 37.606410] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.610733] ? __ia32_sys_exit+0x50/0x50 [ 37.614789] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.619894] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.625431] ? ksys_ioctl+0x81/0xd0 [ 37.629064] __x64_sys_exit_group+0x3e/0x50 [ 37.633386] do_syscall_64+0x1b9/0x820 [ 37.637273] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.642638] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.647565] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.652403] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.657417] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.662535] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.667381] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.672568] RIP: 0033:0x43ecc8 [ 37.675760] Code: Bad RIP value. [ 37.679119] RSP: 002b:00007ffd37295de8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.686829] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 37.694097] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.701366] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.708662] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.715944] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.723243] [ 37.724872] Allocated by task 4758: [ 37.728515] save_stack+0x43/0xd0 [ 37.731974] kasan_kmalloc+0xc4/0xe0 [ 37.735686] kasan_slab_alloc+0x12/0x20 [ 37.739657] kmem_cache_alloc+0x12e/0x710 [ 37.743810] vmx_create_vcpu+0xcf/0x2830 [ 37.747870] kvm_arch_vcpu_create+0xe5/0x220 [ 37.752282] kvm_vm_ioctl+0x488/0x1d80 [ 37.756191] do_vfs_ioctl+0x1de/0x1720 [ 37.760096] ksys_ioctl+0xa9/0xd0 [ 37.763544] __x64_sys_ioctl+0x73/0xb0 [ 37.767435] do_syscall_64+0x1b9/0x820 [ 37.771332] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.776512] [ 37.778311] Freed by task 4758: [ 37.781855] save_stack+0x43/0xd0 [ 37.785312] __kasan_slab_free+0x11a/0x170 [ 37.789554] kasan_slab_free+0xe/0x10 [ 37.793355] kmem_cache_free+0x86/0x280 [ 37.797333] vmx_free_vcpu+0x26b/0x300 [ 37.801216] kvm_arch_destroy_vm+0x365/0x7c0 [ 37.805652] kvm_put_kvm+0x73f/0x1060 [ 37.809462] kvm_vm_release+0x42/0x50 [ 37.813263] __fput+0x38a/0xa40 [ 37.816536] ____fput+0x15/0x20 [ 37.819898] task_work_run+0x1e8/0x2a0 [ 37.823780] do_exit+0x1ae4/0x26e0 [ 37.827316] do_group_exit+0x177/0x440 [ 37.831195] __x64_sys_exit_group+0x3e/0x50 [ 37.835516] do_syscall_64+0x1b9/0x820 [ 37.839434] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.844618] [ 37.846240] The buggy address belongs to the object at ffff8801c1510040 [ 37.846240] which belongs to the cache kvm_vcpu of size 23872 [ 37.858818] The buggy address is located 24 bytes inside of [ 37.858818] 23872-byte region [ffff8801c1510040, ffff8801c1515d80) [ 37.870795] The buggy address belongs to the page: [ 37.875744] page:ffffea0007054400 count:1 mapcount:0 mapping:ffff8801d4c5ca80 index:0x0 compound_mapcount: 0 [ 37.885731] flags: 0x2fffc0000008100(slab|head) [ 37.890415] raw: 02fffc0000008100 ffff8801d4c56648 ffff8801d4c56648 ffff8801d4c5ca80 [ 37.898320] raw: 0000000000000000 ffff8801c1510040 0000000100000001 0000000000000000 [ 37.906196] page dumped because: kasan: bad access detected [ 37.911983] [ 37.913601] Memory state around the buggy address: [ 37.918527] ffff8801c150ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.925887] ffff8801c150ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.933246] >ffff8801c1510000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.940600] ^ [ 37.946828] ffff8801c1510080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.954191] ffff8801c1510100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.961548] ================================================================== [ 37.968921] Kernel panic - not syncing: panic_on_warn set ... [ 37.968921] [ 37.976290] CPU: 0 PID: 4758 Comm: syz-executor132 Tainted: G B 4.19.0-rc2+ #3 [ 37.984946] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.994312] Call Trace: [ 37.996912] dump_stack+0x1c9/0x2b4 [ 38.000537] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.005727] ? lock_downgrade+0x8f0/0x8f0 [ 38.009876] ? __schedule+0xf54/0x1df0 [ 38.013761] panic+0x238/0x4e7 [ 38.016953] ? add_taint.cold.5+0x16/0x16 [ 38.021103] ? print_shadow_for_address+0xba/0x116 [ 38.026031] ? trace_hardirqs_off+0xaf/0x2b0 [ 38.030432] ? trace_hardirqs_off+0x77/0x2b0 [ 38.034852] ? __schedule+0xf54/0x1df0 [ 38.044683] kasan_end_report+0x47/0x4f [ 38.048665] kasan_report.cold.7+0x76/0x30d [ 38.052988] __asan_report_load8_noabort+0x14/0x20 [ 38.057921] __schedule+0xf54/0x1df0 [ 38.061656] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.066759] ? __sched_text_start+0x8/0x8 [ 38.070905] ? __call_srcu+0x7e7/0x1040 [ 38.074886] ? check_same_owner+0x340/0x340 [ 38.079203] ? mark_held_locks+0x160/0x160 [ 38.083438] ? find_held_lock+0x36/0x1c0 [ 38.087535] preempt_schedule_common+0x22/0x60 [ 38.092124] _cond_resched+0x1d/0x30 [ 38.095836] wait_for_completion+0xa5/0x8d0 [ 38.100161] ? wait_for_completion_interruptible+0x950/0x950 [ 38.105967] ? __lockdep_init_map+0x105/0x590 [ 38.110473] ? __init_waitqueue_head+0x9e/0x150 [ 38.115144] ? init_wait_entry+0x1c0/0x1c0 [ 38.119381] __synchronize_srcu+0x189/0x240 [ 38.123696] ? call_srcu+0x10/0x10 [ 38.127237] ? rcu_unexpedite_gp+0x20/0x20 [ 38.131497] synchronize_srcu+0x335/0x56f [ 38.135642] ? lock_downgrade+0x8f0/0x8f0 [ 38.139788] ? synchronize_srcu_expedited+0x20/0x20 [ 38.144914] ? kasan_check_read+0x11/0x20 [ 38.149065] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.153645] ? kasan_check_write+0x14/0x20 [ 38.157877] ? do_raw_spin_lock+0xc1/0x200 [ 38.162116] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.167824] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.173270] ? kvfree+0x61/0x70 [ 38.176553] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.181662] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.185722] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.190131] ? kvm_arch_sync_events+0x30/0x30 [ 38.194626] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.200166] ? mmu_notifier_unregister+0x474/0x600 [ 38.205089] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.209497] ? kfree+0x111/0x210 [ 38.212866] ? __mmu_notifier_register+0x30/0x30 [ 38.217627] ? __free_pages+0x10a/0x190 [ 38.221600] ? free_unref_page+0x930/0x930 [ 38.225845] kvm_put_kvm+0x73f/0x1060 [ 38.229650] ? kvm_write_guest_cached+0x40/0x40 [ 38.234320] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.238809] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.243301] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.247885] ? kasan_check_write+0x14/0x20 [ 38.252118] ? do_raw_spin_lock+0xc1/0x200 [ 38.256356] ? kvm_irqfd_release+0xdd/0x120 [ 38.260681] ? kvm_irqfd_release+0xdd/0x120 [ 38.265010] ? kvm_put_kvm+0x1060/0x1060 [ 38.269071] kvm_vm_release+0x42/0x50 [ 38.272868] __fput+0x38a/0xa40 [ 38.276148] ? __alloc_file+0x400/0x400 [ 38.280127] ? check_same_owner+0x340/0x340 [ 38.284456] ? kasan_check_write+0x14/0x20 [ 38.288693] ? do_raw_spin_lock+0xc1/0x200 [ 38.292924] ____fput+0x15/0x20 [ 38.296201] task_work_run+0x1e8/0x2a0 [ 38.300087] ? task_work_cancel+0x240/0x240 [ 38.304410] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.309972] ? switch_task_namespaces+0xa2/0xd0 [ 38.314644] do_exit+0x1ae4/0x26e0 [ 38.318188] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.322869] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.327105] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.332123] ? kfree+0x1d7/0x210 [ 38.335496] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.339730] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.345442] ? avc_has_extended_perms+0xa97/0x15c0 [ 38.350380] ? kernel_text_address+0xbe/0xf0 [ 38.354791] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 38.359893] ? avc_ss_reset+0x190/0x190 [ 38.363874] ? save_stack+0xa9/0xd0 [ 38.367510] ? save_stack+0x43/0xd0 [ 38.371137] ? __kasan_slab_free+0x11a/0x170 [ 38.375543] ? kasan_slab_free+0xe/0x10 [ 38.379520] ? putname+0xf2/0x130 [ 38.382974] ? __x64_sys_openat+0x9d/0x100 [ 38.387212] ? do_syscall_64+0x1b9/0x820 [ 38.391273] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.396644] ? initcall_blacklisted+0x9a/0x1e0 [ 38.401225] ? rcu_note_context_switch+0x680/0x680 [ 38.406156] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.411869] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.417407] ? do_vfs_ioctl+0x201/0x1720 [ 38.421473] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 38.426672] ? ioctl_preallocate+0x300/0x300 [ 38.431078] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.436614] ? selinux_capable+0x40/0x40 [ 38.440673] ? path_pts+0x1bf/0x1f0 [ 38.444302] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.449313] ? kmem_cache_free+0x246/0x280 [ 38.453550] ? putname+0xf7/0x130 [ 38.457008] do_group_exit+0x177/0x440 [ 38.460895] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.465212] ? __ia32_sys_exit+0x50/0x50 [ 38.469275] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.474385] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.479938] ? ksys_ioctl+0x81/0xd0 [ 38.483564] __x64_sys_exit_group+0x3e/0x50 [ 38.487925] do_syscall_64+0x1b9/0x820 [ 38.491822] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.497186] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.502112] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.506953] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 38.511973] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.516996] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.521844] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.527029] RIP: 0033:0x43ecc8 [ 38.530224] Code: Bad RIP value. [ 38.533581] RSP: 002b:00007ffd37295de8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.541290] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 38.548559] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.555825] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.563090] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.570359] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 38.577736] [ 38.577745] ====================================================== [ 38.577756] WARNING: possible circular locking dependency detected [ 38.577760] 4.19.0-rc2+ #3 Not tainted [ 38.577765] ------------------------------------------------------ [ 38.577770] syz-executor132/4758 is trying to acquire lock: [ 38.577774] 00000000b40ac53c ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 38.577788] [ 38.577792] but task is already holding lock: [ 38.577795] 00000000a714d5ad (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.577809] [ 38.577814] which lock already depends on the new lock. [ 38.577816] [ 38.577818] [ 38.577823] the existing dependency chain (in reverse order) is: [ 38.577826] [ 38.577828] -> #3 (report_lock){....}: [ 38.577842] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.577846] kasan_report+0x8e/0x110 [ 38.577850] __asan_report_load8_noabort+0x14/0x20 [ 38.577854] __schedule+0xf54/0x1df0 [ 38.577858] preempt_schedule_common+0x22/0x60 [ 38.577862] _cond_resched+0x1d/0x30 [ 38.577866] wait_for_completion+0xa5/0x8d0 [ 38.577870] __synchronize_srcu+0x189/0x240 [ 38.577874] synchronize_srcu+0x335/0x56f [ 38.577879] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.577883] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.577887] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.577891] kvm_put_kvm+0x73f/0x1060 [ 38.577895] kvm_vm_release+0x42/0x50 [ 38.577898] __fput+0x38a/0xa40 [ 38.577902] ____fput+0x15/0x20 [ 38.577906] task_work_run+0x1e8/0x2a0 [ 38.577909] do_exit+0x1ae4/0x26e0 [ 38.577913] do_group_exit+0x177/0x440 [ 38.577917] __x64_sys_exit_group+0x3e/0x50 [ 38.577921] do_syscall_64+0x1b9/0x820 [ 38.577926] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.577928] [ 38.577930] -> #2 (&rq->lock){-.-.}: [ 38.577944] _raw_spin_lock+0x2a/0x40 [ 38.577948] task_fork_fair+0x93/0x680 [ 38.577951] sched_fork+0x44b/0xbd0 [ 38.577955] copy_process+0x235e/0x7af0 [ 38.577959] _do_fork+0x1ca/0x1170 [ 38.577963] kernel_thread+0x34/0x40 [ 38.577966] rest_init+0x22/0xe4 [ 38.577970] start_kernel+0x913/0x94e [ 38.577974] x86_64_start_reservations+0x29/0x2b [ 38.577978] x86_64_start_kernel+0x76/0x79 [ 38.577982] secondary_startup_64+0xa4/0xb0 [ 38.577984] [ 38.577987] -> #1 (&p->pi_lock){-.-.}: [ 38.578002] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.578006] try_to_wake_up+0xd2/0x1250 [ 38.578010] wake_up_process+0x10/0x20 [ 38.578013] __up.isra.1+0x1c0/0x2a0 [ 38.578017] up+0x13c/0x1c0 [ 38.578020] __up_console_sem+0xbe/0x1b0 [ 38.578024] console_unlock+0x506/0x10d0 [ 38.578028] vprintk_emit+0x33a/0x910 [ 38.578032] vprintk_default+0x28/0x30 [ 38.578036] vprintk_func+0x7a/0x117 [ 38.578039] printk+0xa7/0xcf [ 38.578043] load_umh+0x51/0xbd [ 38.578047] do_one_initcall+0x127/0x838 [ 38.578051] kernel_init_freeable+0x4bb/0x5ae [ 38.578055] kernel_init+0x11/0x1b3 [ 38.578058] ret_from_fork+0x3a/0x50 [ 38.578061] [ 38.578063] -> #0 ((console_sem).lock){-...}: [ 38.578077] lock_acquire+0x1e4/0x4f0 [ 38.578081] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.578085] down_trylock+0x13/0x70 [ 38.578090] __down_trylock_console_sem+0xae/0x200 [ 38.578093] console_trylock+0x15/0xa0 [ 38.578097] vprintk_emit+0x31f/0x910 [ 38.578101] vprintk_default+0x28/0x30 [ 38.578105] vprintk_func+0x7a/0x117 [ 38.578108] printk+0xa7/0xcf [ 38.578112] kasan_report+0x9e/0x110 [ 38.578116] __asan_report_load8_noabort+0x14/0x20 [ 38.578120] __schedule+0xf54/0x1df0 [ 38.578124] preempt_schedule_common+0x22/0x60 [ 38.578128] _cond_resched+0x1d/0x30 [ 38.578132] wait_for_completion+0xa5/0x8d0 [ 38.578136] __synchronize_srcu+0x189/0x240 [ 38.578140] synchronize_srcu+0x335/0x56f [ 38.578145] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.578149] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.578153] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.578157] kvm_put_kvm+0x73f/0x1060 [ 38.578161] kvm_vm_release+0x42/0x50 [ 38.578164] __fput+0x38a/0xa40 [ 38.578168] ____fput+0x15/0x20 [ 38.578172] task_work_run+0x1e8/0x2a0 [ 38.578175] do_exit+0x1ae4/0x26e0 [ 38.578179] do_group_exit+0x177/0x440 [ 38.578183] __x64_sys_exit_group+0x3e/0x50 [ 38.578187] do_syscall_64+0x1b9/0x820 [ 38.578192] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.578194] [ 38.578198] other info that might help us debug this: [ 38.578200] [ 38.578203] Chain exists of: [ 38.578206] (console_sem).lock --> &rq->lock --> report_lock [ 38.578223] [ 38.578227] Possible unsafe locking scenario: [ 38.578230] [ 38.578234] CPU0 CPU1 [ 38.578238] ---- ---- [ 38.578240] lock(report_lock); [ 38.578249] lock(&rq->lock); [ 38.578258] lock(report_lock); [ 38.578266] lock((console_sem).lock); [ 38.578274] [ 38.578277] *** DEADLOCK *** [ 38.578279] [ 38.578283] 2 locks held by syz-executor132/4758: [ 38.578286] #0: 00000000d8998595 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 38.578302] #1: 00000000a714d5ad (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.578319] [ 38.578322] stack backtrace: [ 38.578328] CPU: 0 PID: 4758 Comm: syz-executor132 Not tainted 4.19.0-rc2+ #3 [ 38.578335] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.578338] Call Trace: [ 38.578342] dump_stack+0x1c9/0x2b4 [ 38.578346] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.578350] ? vprintk_func+0x100/0x117 [ 38.578355] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 38.578359] ? save_trace+0xe0/0x290 [ 38.578363] __lock_acquire+0x3449/0x5020 [ 38.578367] ? mark_held_locks+0x160/0x160 [ 38.578371] ? mark_held_locks+0x160/0x160 [ 38.578375] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 38.578379] ? is_bpf_text_address+0xd7/0x170 [ 38.578383] ? kernel_text_address+0x79/0xf0 [ 38.578387] ? __kernel_text_address+0xd/0x40 [ 38.578391] ? __save_stack_trace+0x8d/0xf0 [ 38.578396] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 38.578399] ? save_trace+0x290/0x290 [ 38.578403] ? save_stack_trace+0x1a/0x20 [ 38.578407] ? save_trace+0xe0/0x290 [ 38.578411] ? graph_lock+0x170/0x170 [ 38.578415] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.578419] lock_acquire+0x1e4/0x4f0 [ 38.578423] ? down_trylock+0x13/0x70 [ 38.578427] ? lock_release+0x9f0/0x9f0 [ 38.578431] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.578435] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.578439] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.578443] ? log_store+0x34f/0x4c0 [ 38.578447] ? vprintk_emit+0x31f/0x910 [ 38.578458] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.578462] ? down_trylock+0x13/0x70 [ 38.578466] down_trylock+0x13/0x70 [ 38.578470] __down_trylock_console_sem+0xae/0x200 [ 38.578474] console_trylock+0x15/0xa0 [ 38.578478] vprintk_emit+0x31f/0x910 [ 38.578487] ? wake_up_klogd+0x110/0x110 [ 38.578491] ? run_rebalance_domains+0x4c0/0x4c0 [ 38.578495] ? kasan_check_read+0x11/0x20 [ 38.578499] ? rcu_is_watching+0x8c/0x150 [ 38.578503] ? rcu_pm_notify+0xc0/0xc0 [ 38.578507] ? lock_acquire+0x1e4/0x4f0 [ 38.578511] ? kasan_report+0x8e/0x110 [ 38.578514] ? __schedule+0xf54/0x1df0 [ 38.578518] vprintk_default+0x28/0x30 [ 38.578522] vprintk_func+0x7a/0x117 [ 38.578525] printk+0xa7/0xcf [ 38.578530] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.578534] ? kasan_check_write+0x14/0x20 [ 38.578537] ? do_raw_spin_lock+0xc1/0x200 [ 38.578541] ? do_raw_spin_lock+0xc1/0x200 [ 38.578545] kasan_report+0x9e/0x110 [ 38.578549] __asan_report_load8_noabort+0x14/0x20 [ 38.578553] __schedule+0xf54/0x1df0 [ 38.578558] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.578562] ? __sched_text_start+0x8/0x8 [ 38.578565] ? __call_srcu+0x7e7/0x1040 [ 38.578569] ? check_same_owner+0x340/0x340 [ 38.578573] ? mark_held_locks+0x160/0x160 [ 38.578577] ? find_held_lock+0x36/0x1c0 [ 38.578582] preempt_schedule_common+0x22/0x60 [ 38.578585] _cond_resched+0x1d/0x30 [ 38.578589] wait_for_completion+0xa5/0x8d0 [ 38.578594] ? wait_for_completion_interruptible+0x950/0x950 [ 38.578598] ? __lockdep_init_map+0x105/0x590 [ 38.578603] ? __init_waitqueue_head+0x9e/0x150 [ 38.578607] ? init_wait_entry+0x1c0/0x1c0 [ 38.578611] __synchronize_srcu+0x189/0x240 [ 38.578614] ? call_srcu+0x10/0x10 [ 38.578618] ? rcu_unexpedite_gp+0x20/0x20 [ 38.578622] synchronize_srcu+0x335/0x56f [ 38.578626] ? lock_downgrade+0x8f0/0x8f0 [ 38.578631] ? synchronize_srcu_expedited+0x20/0x20 [ 38.578634] ? kasan_check_read+0x11/0x20 [ 38.578639] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.578643] ? kasan_check_write+0x14/0x20 [ 38.578647] ? do_raw_spin_lock+0xc1/0x200 [ 38.578652] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.578656] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.578660] ? kvfree+0x61/0x70 [ 38.578664] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.578668] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.578672] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.578677] ? kvm_arch_sync_events+0x30/0x30 [ 38.578681] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.578686] ? mmu_notifier_unregister+0x474/0x600 [ 38.578690] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.578693] ? kfree+0x111/0x210 [ 38.578698] ? __mmu_notifier_register+0x30/0x30 [ 38.578701] ? __free_pages+0x10a/0x190 [ 38.578706] ? free_unref_page+0x930/0x930 [ 38.578709] kvm_put_kvm+0x73f/0x1060 [ 38.578714] ? kvm_write_guest_cached+0x40/0x40 [ 38.578718] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.578722] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.578726] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.578730] ? kasan_check_write+0x14/0x20 [ 38.578734] ? do_raw_spin_lock+0xc1/0x200 [ 38.578738] ? kvm_irqfd_release+0xdd/0x120 [ 38.578742] ? kvm_irqfd_release+0xdd/0x120 [ 38.578746] ? kvm_put_kvm+0x1060/0x1060 [ 38.578750] kvm_vm_release+0x42/0x50 [ 38.578753] __fput+0x38a/0xa40 [ 38.578757] ? __alloc_file+0x400/0x400 [ 38.578761] ? check_same_owner+0x340/0x340 [ 38.578765] ? kasan_check_write+0x14/0x20 [ 38.578769] ? do_raw_spin_lock+0xc1/0x200 [ 38.578772] ____fput+0x15/0x20 [ 38.578776] task_work_run+0x1e8/0x2a0 [ 38.578780] ? task_work_cancel+0x240/0x240 [ 38.578785] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.578789] ? switch_task_namespaces+0xa2/0xd0 [ 38.578793] do_exit+0x1ae4/0x26e0 [ 38.578797] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.578801] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.578805] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.578809] ? kfree+0x1d7/0x210 [ 38.578813] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.578818] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.578822] ? avc_has_extended_perms+0xa97/0x15c0 [ 38.578824] [ 38.578833] Lost 47 message(s)! [ 39.651727] Shutting down cpus with NMI [ 40.711814] Dumping ftrace buffer: [ 40.715338] (ftrace buffer empty) [ 40.719023] Kernel Offset: disabled [ 40.722631] Rebooting in 86400 seconds..