[....] 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.541766] random: sshd: uninitialized urandom read (32 bytes read) [ 30.963816] audit: type=1400 audit(1536270422.302:6): avc: denied { map } for pid=4824 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 [ 31.004695] random: sshd: uninitialized urandom read (32 bytes read) [ 31.593409] random: sshd: uninitialized urandom read (32 bytes read) [ 31.787453] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.15.206' (ECDSA) to the list of known hosts. [ 37.589107] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 37.708914] audit: type=1400 audit(1536270429.047:7): avc: denied { map } for pid=4838 comm="syz-executor268" path="/root/syz-executor268425583" 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.712569] 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.761186] ================================================================== [ 37.771007] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 37.777234] Read of size 8 at addr ffff8801c8ff0058 by task syz-executor268/4838 [ 37.784753] [ 37.786382] CPU: 1 PID: 4838 Comm: syz-executor268 Not tainted 4.19.0-rc2+ #3 [ 37.793645] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.802997] Call Trace: [ 37.805587] dump_stack+0x1c9/0x2b4 [ 37.809227] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.814436] ? printk+0xa7/0xcf [ 37.817723] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.822490] ? __schedule+0xf54/0x1df0 [ 37.826380] print_address_description+0x6c/0x20b [ 37.831220] ? __schedule+0xf54/0x1df0 [ 37.835108] kasan_report.cold.7+0x242/0x30d [ 37.839517] __asan_report_load8_noabort+0x14/0x20 [ 37.844452] __schedule+0xf54/0x1df0 [ 37.848167] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.853313] ? __sched_text_start+0x8/0x8 [ 37.857468] ? __call_srcu+0x7e7/0x1040 [ 37.861458] ? check_same_owner+0x340/0x340 [ 37.865782] ? mark_held_locks+0x160/0x160 [ 37.870018] ? find_held_lock+0x36/0x1c0 [ 37.874086] preempt_schedule_common+0x22/0x60 [ 37.878785] _cond_resched+0x1d/0x30 [ 37.882504] wait_for_completion+0xa5/0x8d0 [ 37.886827] ? wait_for_completion_interruptible+0x950/0x950 [ 37.892882] ? __lockdep_init_map+0x105/0x590 [ 37.897376] ? __init_waitqueue_head+0x9e/0x150 [ 37.902038] ? init_wait_entry+0x1c0/0x1c0 [ 37.906570] __synchronize_srcu+0x189/0x240 [ 37.910993] ? call_srcu+0x10/0x10 [ 37.914628] ? rcu_unexpedite_gp+0x20/0x20 [ 37.918870] synchronize_srcu+0x335/0x56f [ 37.923017] ? lock_downgrade+0x8f0/0x8f0 [ 37.927284] ? synchronize_srcu_expedited+0x20/0x20 [ 37.932543] ? kasan_check_read+0x11/0x20 [ 37.936917] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.941616] ? kasan_check_write+0x14/0x20 [ 37.945848] ? do_raw_spin_lock+0xc1/0x200 [ 37.950087] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.956217] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.961667] ? kvfree+0x61/0x70 [ 37.965045] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.970062] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.974123] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.978531] ? kvm_arch_sync_events+0x30/0x30 [ 37.983032] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.988574] ? mmu_notifier_unregister+0x474/0x600 [ 37.993501] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.997910] ? kfree+0x111/0x210 [ 38.001328] ? __mmu_notifier_register+0x30/0x30 [ 38.006088] ? __free_pages+0x10a/0x190 [ 38.010061] ? free_unref_page+0x930/0x930 [ 38.014758] kvm_put_kvm+0x73f/0x1060 [ 38.018568] ? kvm_write_guest_cached+0x40/0x40 [ 38.023238] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.027728] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.032223] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.036808] ? kasan_check_write+0x14/0x20 [ 38.041042] ? do_raw_spin_lock+0xc1/0x200 [ 38.045277] ? kvm_irqfd_release+0xdd/0x120 [ 38.049696] ? kvm_irqfd_release+0xdd/0x120 [ 38.054111] ? kvm_put_kvm+0x1060/0x1060 [ 38.058172] kvm_vm_release+0x42/0x50 [ 38.061971] __fput+0x38a/0xa40 [ 38.065256] ? __alloc_file+0x400/0x400 [ 38.069231] ? check_same_owner+0x340/0x340 [ 38.073557] ? kasan_check_write+0x14/0x20 [ 38.077799] ? do_raw_spin_lock+0xc1/0x200 [ 38.082033] ____fput+0x15/0x20 [ 38.085308] task_work_run+0x1e8/0x2a0 [ 38.089195] ? task_work_cancel+0x240/0x240 [ 38.093516] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.099051] ? switch_task_namespaces+0xa2/0xd0 [ 38.103719] do_exit+0x1ae4/0x26e0 [ 38.107258] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.111927] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.116161] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.121174] ? kfree+0x1d7/0x210 [ 38.124542] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.128774] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.134486] ? avc_has_extended_perms+0xa97/0x15c0 [ 38.139415] ? kernel_text_address+0xbe/0xf0 [ 38.143838] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 38.148939] ? avc_ss_reset+0x190/0x190 [ 38.152914] ? save_stack+0xa9/0xd0 [ 38.156541] ? save_stack+0x43/0xd0 [ 38.160162] ? __kasan_slab_free+0x11a/0x170 [ 38.164563] ? kasan_slab_free+0xe/0x10 [ 38.168532] ? putname+0xf2/0x130 [ 38.171989] ? __x64_sys_openat+0x9d/0x100 [ 38.176221] ? do_syscall_64+0x1b9/0x820 [ 38.180280] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.185650] ? initcall_blacklisted+0x9a/0x1e0 [ 38.190232] ? rcu_note_context_switch+0x680/0x680 [ 38.195161] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.200872] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.206407] ? do_vfs_ioctl+0x201/0x1720 [ 38.210472] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 38.215788] ? ioctl_preallocate+0x300/0x300 [ 38.220196] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.225732] ? selinux_capable+0x40/0x40 [ 38.229790] ? path_pts+0x1bf/0x1f0 [ 38.233416] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.238447] ? kmem_cache_free+0x246/0x280 [ 38.242683] ? putname+0xf7/0x130 [ 38.246137] do_group_exit+0x177/0x440 [ 38.250025] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.254341] ? __ia32_sys_exit+0x50/0x50 [ 38.258400] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.263517] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.269054] ? ksys_ioctl+0x81/0xd0 [ 38.272684] __x64_sys_exit_group+0x3e/0x50 [ 38.277011] do_syscall_64+0x1b9/0x820 [ 38.280895] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.286254] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.291178] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.296017] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 38.301032] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.306049] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.311063] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.315904] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.321092] RIP: 0033:0x43f028 [ 38.324283] Code: Bad RIP value. [ 38.327643] RSP: 002b:00007ffd2784e208 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.335347] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 38.342611] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.349962] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.357234] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.364503] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 38.371777] [ 38.373407] Allocated by task 4838: [ 38.377040] save_stack+0x43/0xd0 [ 38.380492] kasan_kmalloc+0xc4/0xe0 [ 38.384203] kasan_slab_alloc+0x12/0x20 [ 38.388170] kmem_cache_alloc+0x12e/0x710 [ 38.392314] vmx_create_vcpu+0xcf/0x2830 [ 38.396370] kvm_arch_vcpu_create+0xe5/0x220 [ 38.400777] kvm_vm_ioctl+0x488/0x1d80 [ 38.404659] do_vfs_ioctl+0x1de/0x1720 [ 38.408540] ksys_ioctl+0xa9/0xd0 [ 38.411994] __x64_sys_ioctl+0x73/0xb0 [ 38.415876] do_syscall_64+0x1b9/0x820 [ 38.419763] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.424935] [ 38.426552] Freed by task 4838: [ 38.429839] save_stack+0x43/0xd0 [ 38.433286] __kasan_slab_free+0x11a/0x170 [ 38.437515] kasan_slab_free+0xe/0x10 [ 38.441309] kmem_cache_free+0x86/0x280 [ 38.445282] vmx_free_vcpu+0x26b/0x300 [ 38.449162] kvm_arch_destroy_vm+0x365/0x7c0 [ 38.453568] kvm_put_kvm+0x73f/0x1060 [ 38.457365] kvm_vm_release+0x42/0x50 [ 38.461160] __fput+0x38a/0xa40 [ 38.464438] ____fput+0x15/0x20 [ 38.467712] task_work_run+0x1e8/0x2a0 [ 38.471592] do_exit+0x1ae4/0x26e0 [ 38.475126] do_group_exit+0x177/0x440 [ 38.479007] __x64_sys_exit_group+0x3e/0x50 [ 38.483325] do_syscall_64+0x1b9/0x820 [ 38.487210] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.492385] [ 38.494015] The buggy address belongs to the object at ffff8801c8ff0040 [ 38.494015] which belongs to the cache kvm_vcpu of size 23872 [ 38.506583] The buggy address is located 24 bytes inside of [ 38.506583] 23872-byte region [ffff8801c8ff0040, ffff8801c8ff5d80) [ 38.518547] The buggy address belongs to the page: [ 38.523475] page:ffffea000723fc00 count:1 mapcount:0 mapping:ffff8801d4473dc0 index:0x0 compound_mapcount: 0 [ 38.533454] flags: 0x2fffc0000008100(slab|head) [ 38.538127] raw: 02fffc0000008100 ffff8801d4c39048 ffff8801d4c39048 ffff8801d4473dc0 [ 38.546012] raw: 0000000000000000 ffff8801c8ff0040 0000000100000001 0000000000000000 [ 38.553882] page dumped because: kasan: bad access detected [ 38.559580] [ 38.561197] Memory state around the buggy address: [ 38.566126] ffff8801c8feff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.573484] ffff8801c8feff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 38.580844] >ffff8801c8ff0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 38.588195] ^ [ 38.594442] ffff8801c8ff0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.601802] ffff8801c8ff0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.609152] ================================================================== [ 38.616501] Kernel panic - not syncing: panic_on_warn set ... [ 38.616501] [ 38.623882] CPU: 1 PID: 4838 Comm: syz-executor268 Tainted: G B 4.19.0-rc2+ #3 [ 38.632539] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.641885] Call Trace: [ 38.644478] dump_stack+0x1c9/0x2b4 [ 38.648105] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.653292] ? lock_downgrade+0x8f0/0x8f0 [ 38.657446] ? __schedule+0xf54/0x1df0 [ 38.661333] panic+0x238/0x4e7 [ 38.664527] ? add_taint.cold.5+0x16/0x16 [ 38.668679] ? print_shadow_for_address+0xba/0x116 [ 38.673605] ? trace_hardirqs_off+0xaf/0x2b0 [ 38.678008] ? trace_hardirqs_off+0x77/0x2b0 [ 38.682418] ? __schedule+0xf54/0x1df0 [ 38.686316] kasan_end_report+0x47/0x4f [ 38.690289] kasan_report.cold.7+0x76/0x30d [ 38.694609] __asan_report_load8_noabort+0x14/0x20 [ 38.699533] __schedule+0xf54/0x1df0 [ 38.703244] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.708346] ? __sched_text_start+0x8/0x8 [ 38.712494] ? __call_srcu+0x7e7/0x1040 [ 38.716478] ? check_same_owner+0x340/0x340 [ 38.720793] ? mark_held_locks+0x160/0x160 [ 38.725025] ? find_held_lock+0x36/0x1c0 [ 38.729084] preempt_schedule_common+0x22/0x60 [ 38.733665] _cond_resched+0x1d/0x30 [ 38.737379] wait_for_completion+0xa5/0x8d0 [ 38.741703] ? wait_for_completion_interruptible+0x950/0x950 [ 38.747500] ? __lockdep_init_map+0x105/0x590 [ 38.752013] ? __init_waitqueue_head+0x9e/0x150 [ 38.756683] ? init_wait_entry+0x1c0/0x1c0 [ 38.760922] __synchronize_srcu+0x189/0x240 [ 38.765241] ? call_srcu+0x10/0x10 [ 38.768783] ? rcu_unexpedite_gp+0x20/0x20 [ 38.773126] synchronize_srcu+0x335/0x56f [ 38.777354] ? lock_downgrade+0x8f0/0x8f0 [ 38.781604] ? synchronize_srcu_expedited+0x20/0x20 [ 38.786617] ? kasan_check_read+0x11/0x20 [ 38.790766] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.795347] ? kasan_check_write+0x14/0x20 [ 38.799580] ? do_raw_spin_lock+0xc1/0x200 [ 38.803817] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.809530] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.814977] ? kvfree+0x61/0x70 [ 38.818260] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.823274] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.827331] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.831735] ? kvm_arch_sync_events+0x30/0x30 [ 38.836231] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.841765] ? mmu_notifier_unregister+0x474/0x600 [ 38.846688] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.851091] ? kfree+0x111/0x210 [ 38.854462] ? __mmu_notifier_register+0x30/0x30 [ 38.859230] ? __free_pages+0x10a/0x190 [ 38.863217] ? free_unref_page+0x930/0x930 [ 38.867467] kvm_put_kvm+0x73f/0x1060 [ 38.871273] ? kvm_write_guest_cached+0x40/0x40 [ 38.876022] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.880514] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.885529] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.890117] ? kasan_check_write+0x14/0x20 [ 38.894352] ? do_raw_spin_lock+0xc1/0x200 [ 38.898591] ? kvm_irqfd_release+0xdd/0x120 [ 38.902912] ? kvm_irqfd_release+0xdd/0x120 [ 38.907240] ? kvm_put_kvm+0x1060/0x1060 [ 38.911306] kvm_vm_release+0x42/0x50 [ 38.915105] __fput+0x38a/0xa40 [ 38.918383] ? __alloc_file+0x400/0x400 [ 38.922357] ? check_same_owner+0x340/0x340 [ 38.926676] ? kasan_check_write+0x14/0x20 [ 38.930911] ? do_raw_spin_lock+0xc1/0x200 [ 38.935146] ____fput+0x15/0x20 [ 38.938436] task_work_run+0x1e8/0x2a0 [ 38.942325] ? task_work_cancel+0x240/0x240 [ 38.946654] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.952193] ? switch_task_namespaces+0xa2/0xd0 [ 38.956859] do_exit+0x1ae4/0x26e0 [ 38.960403] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.965095] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.969342] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.974363] ? kfree+0x1d7/0x210 [ 38.977730] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.981968] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.987686] ? avc_has_extended_perms+0xa97/0x15c0 [ 38.992618] ? kernel_text_address+0xbe/0xf0 [ 38.997029] ? ptrace_set_breakpoint_addr+0xbb/0x380 [ 39.002132] ? avc_ss_reset+0x190/0x190 [ 39.006109] ? save_stack+0xa9/0xd0 [ 39.009737] ? save_stack+0x43/0xd0 [ 39.013868] ? __kasan_slab_free+0x11a/0x170 [ 39.018279] ? kasan_slab_free+0xe/0x10 [ 39.022250] ? putname+0xf2/0x130 [ 39.025705] ? __x64_sys_openat+0x9d/0x100 [ 39.029939] ? do_syscall_64+0x1b9/0x820 [ 39.034000] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.039370] ? initcall_blacklisted+0x9a/0x1e0 [ 39.043949] ? rcu_note_context_switch+0x680/0x680 [ 39.048883] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.054596] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.060132] ? do_vfs_ioctl+0x201/0x1720 [ 39.064192] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 39.069385] ? ioctl_preallocate+0x300/0x300 [ 39.073792] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.079332] ? selinux_capable+0x40/0x40 [ 39.083487] ? path_pts+0x1bf/0x1f0 [ 39.087114] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.092125] ? kmem_cache_free+0x246/0x280 [ 39.096356] ? putname+0xf7/0x130 [ 39.099812] do_group_exit+0x177/0x440 [ 39.103695] ? trace_hardirqs_on+0xbd/0x2c0 [ 39.108015] ? __ia32_sys_exit+0x50/0x50 [ 39.112072] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.117171] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.122707] ? ksys_ioctl+0x81/0xd0 [ 39.126334] __x64_sys_exit_group+0x3e/0x50 [ 39.130655] do_syscall_64+0x1b9/0x820 [ 39.134539] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.139902] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.144826] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.149663] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 39.154678] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.159698] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.164716] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.169560] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.174745] RIP: 0033:0x43f028 [ 39.177935] Code: Bad RIP value. [ 39.181292] RSP: 002b:00007ffd2784e208 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.189004] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 39.196269] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 39.203533] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 39.210799] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 39.218062] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 39.225333] [ 39.225339] ====================================================== [ 39.225344] WARNING: possible circular locking dependency detected [ 39.225348] 4.19.0-rc2+ #3 Not tainted [ 39.225353] ------------------------------------------------------ [ 39.225357] syz-executor268/4838 is trying to acquire lock: [ 39.225361] 0000000046d21ac5 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 39.225375] [ 39.225379] but task is already holding lock: [ 39.225382] 00000000f084c661 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 39.225396] [ 39.225400] which lock already depends on the new lock. [ 39.225402] [ 39.225405] [ 39.225409] the existing dependency chain (in reverse order) is: [ 39.225412] [ 39.225414] -> #3 (report_lock){....}: [ 39.225438] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.225442] kasan_report+0x8e/0x110 [ 39.225446] __asan_report_load8_noabort+0x14/0x20 [ 39.225450] __schedule+0xf54/0x1df0 [ 39.225454] preempt_schedule_common+0x22/0x60 [ 39.225458] _cond_resched+0x1d/0x30 [ 39.225462] wait_for_completion+0xa5/0x8d0 [ 39.225466] __synchronize_srcu+0x189/0x240 [ 39.225470] synchronize_srcu+0x335/0x56f [ 39.225474] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.225478] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.225482] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.225487] kvm_put_kvm+0x73f/0x1060 [ 39.225491] kvm_vm_release+0x42/0x50 [ 39.225494] __fput+0x38a/0xa40 [ 39.225497] ____fput+0x15/0x20 [ 39.225501] task_work_run+0x1e8/0x2a0 [ 39.225505] do_exit+0x1ae4/0x26e0 [ 39.225508] do_group_exit+0x177/0x440 [ 39.225512] __x64_sys_exit_group+0x3e/0x50 [ 39.225516] do_syscall_64+0x1b9/0x820 [ 39.225521] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.225523] [ 39.225525] -> #2 (&rq->lock){-.-.}: [ 39.225539] _raw_spin_lock+0x2a/0x40 [ 39.225542] task_fork_fair+0x93/0x680 [ 39.225546] sched_fork+0x44b/0xbd0 [ 39.225550] copy_process+0x235e/0x7af0 [ 39.225553] _do_fork+0x1ca/0x1170 [ 39.225557] kernel_thread+0x34/0x40 [ 39.225560] rest_init+0x22/0xe4 [ 39.225564] start_kernel+0x913/0x94e [ 39.225568] x86_64_start_reservations+0x29/0x2b [ 39.225572] x86_64_start_kernel+0x76/0x79 [ 39.225576] secondary_startup_64+0xa4/0xb0 [ 39.225578] [ 39.225581] -> #1 (&p->pi_lock){-.-.}: [ 39.225595] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.225598] try_to_wake_up+0xd2/0x1250 [ 39.225602] wake_up_process+0x10/0x20 [ 39.225606] __up.isra.1+0x1c0/0x2a0 [ 39.225609] up+0x13c/0x1c0 [ 39.225613] __up_console_sem+0xbe/0x1b0 [ 39.225616] console_unlock+0x506/0x10d0 [ 39.225620] do_con_write+0x1375/0x23d0 [ 39.225624] con_write+0x25/0xc0 [ 39.225627] n_tty_write+0x6c1/0x11a0 [ 39.225631] tty_write+0x3f1/0x880 [ 39.225634] __vfs_write+0x117/0x9d0 [ 39.225638] vfs_write+0x1fc/0x560 [ 39.225642] ksys_write+0x101/0x260 [ 39.225645] __x64_sys_write+0x73/0xb0 [ 39.225649] do_syscall_64+0x1b9/0x820 [ 39.225653] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.225656] [ 39.225658] -> #0 ((console_sem).lock){-...}: [ 39.225672] lock_acquire+0x1e4/0x4f0 [ 39.225676] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.225679] down_trylock+0x13/0x70 [ 39.225684] __down_trylock_console_sem+0xae/0x200 [ 39.225687] console_trylock+0x15/0xa0 [ 39.225691] vprintk_emit+0x31f/0x910 [ 39.225695] vprintk_default+0x28/0x30 [ 39.225698] vprintk_func+0x7a/0x117 [ 39.225702] printk+0xa7/0xcf [ 39.225705] kasan_report+0x9e/0x110 [ 39.225710] __asan_report_load8_noabort+0x14/0x20 [ 39.225713] __schedule+0xf54/0x1df0 [ 39.225717] preempt_schedule_common+0x22/0x60 [ 39.225721] _cond_resched+0x1d/0x30 [ 39.225725] wait_for_completion+0xa5/0x8d0 [ 39.225729] __synchronize_srcu+0x189/0x240 [ 39.225733] synchronize_srcu+0x335/0x56f [ 39.225738] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.225741] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.225745] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.225749] kvm_put_kvm+0x73f/0x1060 [ 39.225753] kvm_vm_release+0x42/0x50 [ 39.225756] __fput+0x38a/0xa40 [ 39.225759] ____fput+0x15/0x20 [ 39.225763] task_work_run+0x1e8/0x2a0 [ 39.225767] do_exit+0x1ae4/0x26e0 [ 39.225770] do_group_exit+0x177/0x440 [ 39.225774] __x64_sys_exit_group+0x3e/0x50 [ 39.225778] do_syscall_64+0x1b9/0x820 [ 39.225783] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.225785] [ 39.225789] other info that might help us debug this: [ 39.225791] [ 39.225794] Chain exists of: [ 39.225796] (console_sem).lock --> &rq->lock --> report_lock [ 39.225814] [ 39.225817] Possible unsafe locking scenario: [ 39.225820] [ 39.225823] CPU0 CPU1 [ 39.225827] ---- ---- [ 39.225830] lock(report_lock); [ 39.225839] lock(&rq->lock); [ 39.225847] lock(report_lock); [ 39.225855] lock((console_sem).lock); [ 39.225863] [ 39.225866] *** DEADLOCK *** [ 39.225868] [ 39.225872] 2 locks held by syz-executor268/4838: [ 39.225874] #0: 00000000b627cbff (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 39.225890] #1: 00000000f084c661 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 39.225907] [ 39.225910] stack backtrace: [ 39.225915] CPU: 1 PID: 4838 Comm: syz-executor268 Not tainted 4.19.0-rc2+ #3 [ 39.225922] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.225925] Call Trace: [ 39.225929] dump_stack+0x1c9/0x2b4 [ 39.225933] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.225937] ? vprintk_func+0x100/0x117 [ 39.225941] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 39.225945] ? save_trace+0xe0/0x290 [ 39.225949] __lock_acquire+0x3449/0x5020 [ 39.225953] ? mark_held_locks+0x160/0x160 [ 39.225957] ? mark_held_locks+0x160/0x160 [ 39.225961] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 39.225965] ? is_bpf_text_address+0xd7/0x170 [ 39.225969] ? kernel_text_address+0x79/0xf0 [ 39.225973] ? __kernel_text_address+0xd/0x40 [ 39.225977] ? __save_stack_trace+0x8d/0xf0 [ 39.225987] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 39.225990] ? save_trace+0x290/0x290 [ 39.225994] ? save_stack_trace+0x1a/0x20 [ 39.225998] ? save_trace+0xe0/0x290 [ 39.226001] ? graph_lock+0x170/0x170 [ 39.226006] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.226010] lock_acquire+0x1e4/0x4f0 [ 39.226013] ? down_trylock+0x13/0x70 [ 39.226017] ? lock_release+0x9f0/0x9f0 [ 39.226021] ? trace_hardirqs_off+0xb8/0x2b0 [ 39.226025] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.226029] ? trace_hardirqs_off+0xb8/0x2b0 [ 39.226032] ? log_store+0x34f/0x4c0 [ 39.226036] ? vprintk_emit+0x31f/0x910 [ 39.226040] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.226044] ? down_trylock+0x13/0x70 [ 39.226047] down_trylock+0x13/0x70 [ 39.226052] __down_trylock_console_sem+0xae/0x200 [ 39.226055] console_trylock+0x15/0xa0 [ 39.226059] vprintk_emit+0x31f/0x910 [ 39.226063] ? wake_up_klogd+0x110/0x110 [ 39.226067] ? run_rebalance_domains+0x4c0/0x4c0 [ 39.226071] ? kasan_check_read+0x11/0x20 [ 39.226075] ? rcu_is_watching+0x8c/0x150 [ 39.226078] ? rcu_pm_notify+0xc0/0xc0 [ 39.226082] ? lock_acquire+0x1e4/0x4f0 [ 39.226086] ? kasan_report+0x8e/0x110 [ 39.226089] ? __schedule+0xf54/0x1df0 [ 39.226093] vprintk_default+0x28/0x30 [ 39.226097] vprintk_func+0x7a/0x117 [ 39.226100] printk+0xa7/0xcf [ 39.226104] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.226108] ? kasan_check_write+0x14/0x20 [ 39.226112] ? do_raw_spin_lock+0xc1/0x200 [ 39.226116] ? do_raw_spin_lock+0xc1/0x200 [ 39.226119] kasan_report+0x9e/0x110 [ 39.226124] __asan_report_load8_noabort+0x14/0x20 [ 39.226127] __schedule+0xf54/0x1df0 [ 39.226132] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 39.226135] ? __sched_text_start+0x8/0x8 [ 39.226139] ? __call_srcu+0x7e7/0x1040 [ 39.226143] ? check_same_owner+0x340/0x340 [ 39.226147] ? mark_held_locks+0x160/0x160 [ 39.226151] ? find_held_lock+0x36/0x1c0 [ 39.226155] preempt_schedule_common+0x22/0x60 [ 39.226158] _cond_resched+0x1d/0x30 [ 39.226162] wait_for_completion+0xa5/0x8d0 [ 39.226167] ? wait_for_completion_interruptible+0x950/0x950 [ 39.226171] ? __lockdep_init_map+0x105/0x590 [ 39.226175] ? __init_waitqueue_head+0x9e/0x150 [ 39.226179] ? init_wait_entry+0x1c0/0x1c0 [ 39.226183] __synchronize_srcu+0x189/0x240 [ 39.226187] ? call_srcu+0x10/0x10 [ 39.226191] ? rcu_unexpedite_gp+0x20/0x20 [ 39.226194] synchronize_srcu+0x335/0x56f [ 39.226198] ? lock_downgrade+0x8f0/0x8f0 [ 39.226202] ? synchronize_srcu_expedited+0x20/0x20 [ 39.226206] ? kasan_check_read+0x11/0x20 [ 39.226210] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 39.226214] ? kasan_check_write+0x14/0x20 [ 39.226218] ? do_raw_spin_lock+0xc1/0x200 [ 39.226223] kvm_page_track_unregister_notifier+0x17d/0x250 [ 39.226227] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 39.226231] ? kvfree+0x61/0x70 [ 39.226235] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.226239] kvm_mmu_uninit_vm+0x1c/0x20 [ 39.226243] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 39.226247] ? kvm_arch_sync_events+0x30/0x30 [ 39.226252] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.226256] ? mmu_notifier_unregister+0x474/0x600 [ 39.226260] ? trace_hardirqs_on+0x2c0/0x2c0 [ 39.226263] ? kfree+0x111/0x210 [ 39.226268] ? __mmu_notifier_register+0x30/0x30 [ 39.226271] ? __free_pages+0x10a/0x190 [ 39.226275] ? free_unref_page+0x930/0x930 [ 39.226279] kvm_put_kvm+0x73f/0x1060 [ 39.226283] ? kvm_write_guest_cached+0x40/0x40 [ 39.226287] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.226291] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.226295] ? lockdep_hardirqs_on+0x421/0x5c0 [ 39.226299] ? kasan_check_write+0x14/0x20 [ 39.226303] ? do_raw_spin_lock+0xc1/0x200 [ 39.226307] ? kvm_irqfd_release+0xdd/0x120 [ 39.226311] ? kvm_irqfd_release+0xdd/0x120 [ 39.226314] ? kvm_put_kvm+0x1060/0x1060 [ 39.226318] kvm_vm_release+0x42/0x50 [ 39.226321] __fput+0x38a/0xa40 [ 39.226325] ? __alloc_file+0x400/0x400 [ 39.226329] ? check_same_owner+0x340/0x340 [ 39.226333] ? kasan_check_write+0x14/0x20 [ 39.226337] ? do_raw_spin_lock+0xc1/0x200 [ 39.226340] ____fput+0x15/0x20 [ 39.226344] task_work_run+0x1e8/0x2a0 [ 39.226348] ? task_work_cancel+0x240/0x240 [ 39.226352] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 39.226356] ? switch_task_namespaces+0xa2/0xd0 [ 39.226360] do_exit+0x1ae4/0x26e0 [ 39.226364] ? mm_update_next_owner+0x9a0/0x9a0 [ 39.226368] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 39.226372] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.226375] ? kfree+0x1d7/0x210 [ 39.226379] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 39.226384] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 39.226388] Lost 50 message(s)! [ 40.310292] Shutting down cpus with NMI [ 41.368634] Dumping ftrace buffer: [ 41.372162] (ftrace buffer empty) [ 41.375851] Kernel Offset: disabled [ 41.379461] Rebooting in 86400 seconds..