[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.468483] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.060547] random: sshd: uninitialized urandom read (32 bytes read) [ 28.271485] random: sshd: uninitialized urandom read (32 bytes read) [ 28.825138] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.61' (ECDSA) to the list of known hosts. [ 34.632804] urandom_read: 1 callbacks suppressed [ 34.632817] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.739421] 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. [ 34.765928] ================================================================== [ 34.775890] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.782114] Read of size 8 at addr ffff8801cf8b8058 by task syz-executor883/4790 [ 34.789631] [ 34.791257] CPU: 0 PID: 4790 Comm: syz-executor883 Not tainted 4.19.0-rc2+ #225 [ 34.798691] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.808039] Call Trace: [ 34.810640] dump_stack+0x1c9/0x2b4 [ 34.814268] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.819454] ? printk+0xa7/0xcf [ 34.822732] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.827489] ? __schedule+0xf54/0x1df0 [ 34.831387] print_address_description+0x6c/0x20b [ 34.836229] ? __schedule+0xf54/0x1df0 [ 34.840114] kasan_report.cold.7+0x242/0x30d [ 34.844541] __asan_report_load8_noabort+0x14/0x20 [ 34.849472] __schedule+0xf54/0x1df0 [ 34.853186] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.858294] ? __sched_text_start+0x8/0x8 [ 34.862447] ? __call_srcu+0x7e7/0x1040 [ 34.866434] ? check_same_owner+0x340/0x340 [ 34.870756] ? mark_held_locks+0x160/0x160 [ 34.875007] ? find_held_lock+0x36/0x1c0 [ 34.879081] preempt_schedule_common+0x22/0x60 [ 34.883678] _cond_resched+0x1d/0x30 [ 34.887395] wait_for_completion+0xa5/0x8d0 [ 34.891720] ? wait_for_completion_interruptible+0x950/0x950 [ 34.897518] ? __lockdep_init_map+0x105/0x590 [ 34.902013] ? __init_waitqueue_head+0x9e/0x150 [ 34.906680] ? init_wait_entry+0x1c0/0x1c0 [ 34.910917] __synchronize_srcu+0x189/0x240 [ 34.915236] ? call_srcu+0x10/0x10 [ 34.918784] ? rcu_unexpedite_gp+0x20/0x20 [ 34.923023] synchronize_srcu+0x335/0x56f [ 34.927193] ? lock_downgrade+0x8f0/0x8f0 [ 34.931346] ? synchronize_srcu_expedited+0x20/0x20 [ 34.936373] ? kasan_check_read+0x11/0x20 [ 34.940523] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.945108] ? kasan_check_write+0x14/0x20 [ 34.949349] ? do_raw_spin_lock+0xc1/0x200 [ 34.953590] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.959321] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.964781] ? kvfree+0x61/0x70 [ 34.968065] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.973088] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.977156] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.981579] ? kvm_arch_sync_events+0x30/0x30 [ 34.986089] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.991636] ? mmu_notifier_unregister+0x474/0x600 [ 34.996559] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.000964] ? kfree+0x111/0x210 [ 35.004326] ? __mmu_notifier_register+0x30/0x30 [ 35.009102] ? __free_pages+0x10a/0x190 [ 35.013076] ? free_unref_page+0x930/0x930 [ 35.017367] kvm_put_kvm+0x73f/0x1060 [ 35.021173] ? kvm_write_guest_cached+0x40/0x40 [ 35.025843] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.030346] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.034844] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.039430] ? kasan_check_write+0x14/0x20 [ 35.043663] ? do_raw_spin_lock+0xc1/0x200 [ 35.047898] ? kvm_irqfd_release+0xdd/0x120 [ 35.052217] ? kvm_irqfd_release+0xdd/0x120 [ 35.056544] ? kvm_put_kvm+0x1060/0x1060 [ 35.060610] kvm_vm_release+0x42/0x50 [ 35.064415] __fput+0x38a/0xa40 [ 35.067691] ? __alloc_file+0x400/0x400 [ 35.071667] ? check_same_owner+0x340/0x340 [ 35.075997] ? kasan_check_write+0x14/0x20 [ 35.080249] ? do_raw_spin_lock+0xc1/0x200 [ 35.084488] ____fput+0x15/0x20 [ 35.087776] task_work_run+0x1e8/0x2a0 [ 35.091662] ? task_work_cancel+0x240/0x240 [ 35.095985] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.101520] ? switch_task_namespaces+0xa2/0xd0 [ 35.106191] do_exit+0x1ae4/0x26e0 [ 35.109732] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.114404] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.118654] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.123670] ? kfree+0x1d7/0x210 [ 35.127034] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.131285] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.137005] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.141497] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.146003] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.150619] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.154946] ? kasan_check_read+0x11/0x20 [ 35.159095] ? __schedule+0x14b6/0x1df0 [ 35.163070] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.168170] ? lock_repin_lock+0x430/0x430 [ 35.172403] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.176897] ? __sched_text_start+0x8/0x8 [ 35.181047] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.185463] ? kasan_check_read+0x11/0x20 [ 35.189613] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.194020] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.198630] ? initcall_blacklisted+0x9a/0x1e0 [ 35.203227] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.208350] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.214068] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.219625] ? do_vfs_ioctl+0x201/0x1720 [ 35.223701] ? ioctl_preallocate+0x300/0x300 [ 35.228107] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.233643] ? __fget_light+0x2f7/0x440 [ 35.237621] ? __schedule+0x1df0/0x1df0 [ 35.241603] ? fget_raw+0x20/0x20 [ 35.245057] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.249464] ? kmem_cache_free+0x246/0x280 [ 35.253699] ? do_syscall_64+0x6be/0x820 [ 35.257759] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.262162] ? putname+0xf7/0x130 [ 35.265621] do_group_exit+0x177/0x440 [ 35.269506] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.273827] ? __ia32_sys_exit+0x50/0x50 [ 35.277884] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.282986] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.288518] ? ksys_ioctl+0x81/0xd0 [ 35.292146] __x64_sys_exit_group+0x3e/0x50 [ 35.296470] do_syscall_64+0x1b9/0x820 [ 35.300365] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.305973] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.310905] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.315743] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 35.320760] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.325772] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.330799] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.335653] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.340839] RIP: 0033:0x43ecc8 [ 35.344029] Code: Bad RIP value. [ 35.347398] RSP: 002b:00007ffcb26622d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.355102] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 35.362395] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.369657] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.376924] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.384187] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.391458] [ 35.393081] Allocated by task 4790: [ 35.396712] save_stack+0x43/0xd0 [ 35.400158] kasan_kmalloc+0xc4/0xe0 [ 35.403877] kasan_slab_alloc+0x12/0x20 [ 35.407849] kmem_cache_alloc+0x12e/0x710 [ 35.411994] vmx_create_vcpu+0xcf/0x2830 [ 35.416075] kvm_arch_vcpu_create+0xe5/0x220 [ 35.420485] kvm_vm_ioctl+0x488/0x1d80 [ 35.424369] do_vfs_ioctl+0x1de/0x1720 [ 35.428253] ksys_ioctl+0xa9/0xd0 [ 35.431701] __x64_sys_ioctl+0x73/0xb0 [ 35.435582] do_syscall_64+0x1b9/0x820 [ 35.439505] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.444693] [ 35.446315] Freed by task 4790: [ 35.449621] save_stack+0x43/0xd0 [ 35.453071] __kasan_slab_free+0x11a/0x170 [ 35.457325] kasan_slab_free+0xe/0x10 [ 35.461149] kmem_cache_free+0x86/0x280 [ 35.465139] vmx_free_vcpu+0x26b/0x300 [ 35.469033] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.473448] kvm_put_kvm+0x73f/0x1060 [ 35.477243] kvm_vm_release+0x42/0x50 [ 35.481036] __fput+0x38a/0xa40 [ 35.484308] ____fput+0x15/0x20 [ 35.487588] task_work_run+0x1e8/0x2a0 [ 35.491478] do_exit+0x1ae4/0x26e0 [ 35.495024] do_group_exit+0x177/0x440 [ 35.498921] __x64_sys_exit_group+0x3e/0x50 [ 35.503250] do_syscall_64+0x1b9/0x820 [ 35.507136] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.512320] [ 35.513962] The buggy address belongs to the object at ffff8801cf8b8040 [ 35.513962] which belongs to the cache kvm_vcpu of size 23872 [ 35.526535] The buggy address is located 24 bytes inside of [ 35.526535] 23872-byte region [ffff8801cf8b8040, ffff8801cf8bdd80) [ 35.538495] The buggy address belongs to the page: [ 35.543417] page:ffffea00073e2e00 count:1 mapcount:0 mapping:ffff8801d52409c0 index:0x0 compound_mapcount: 0 [ 35.553388] flags: 0x2fffc0000008100(slab|head) [ 35.558064] raw: 02fffc0000008100 ffff8801d5249f48 ffff8801d5249f48 ffff8801d52409c0 [ 35.565954] raw: 0000000000000000 ffff8801cf8b8040 0000000100000001 0000000000000000 [ 35.573821] page dumped because: kasan: bad access detected [ 35.579529] [ 35.581145] Memory state around the buggy address: [ 35.586066] ffff8801cf8b7f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.593420] ffff8801cf8b7f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 35.600772] >ffff8801cf8b8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.608131] ^ [ 35.614383] ffff8801cf8b8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.621736] ffff8801cf8b8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.629083] ================================================================== [ 35.636434] Kernel panic - not syncing: panic_on_warn set ... [ 35.636434] [ 35.643797] CPU: 0 PID: 4790 Comm: syz-executor883 Tainted: G B 4.19.0-rc2+ #225 [ 35.652629] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.661982] Call Trace: [ 35.664594] dump_stack+0x1c9/0x2b4 [ 35.668231] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.673424] ? lock_downgrade+0x8f0/0x8f0 [ 35.677569] ? __schedule+0xf54/0x1df0 [ 35.681461] panic+0x238/0x4e7 [ 35.684656] ? add_taint.cold.5+0x16/0x16 [ 35.688807] ? print_shadow_for_address+0xba/0x116 [ 35.693736] ? trace_hardirqs_off+0xaf/0x2c0 [ 35.698142] ? trace_hardirqs_off+0x77/0x2c0 [ 35.702549] ? __schedule+0xf54/0x1df0 [ 35.706436] kasan_end_report+0x47/0x4f [ 35.710406] kasan_report.cold.7+0x76/0x30d [ 35.714727] __asan_report_load8_noabort+0x14/0x20 [ 35.719655] __schedule+0xf54/0x1df0 [ 35.723375] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.728488] ? __sched_text_start+0x8/0x8 [ 35.732663] ? __call_srcu+0x7e7/0x1040 [ 35.736666] ? check_same_owner+0x340/0x340 [ 35.740985] ? mark_held_locks+0x160/0x160 [ 35.745219] ? find_held_lock+0x36/0x1c0 [ 35.749281] preempt_schedule_common+0x22/0x60 [ 35.753860] _cond_resched+0x1d/0x30 [ 35.757571] wait_for_completion+0xa5/0x8d0 [ 35.761900] ? wait_for_completion_interruptible+0x950/0x950 [ 35.767692] ? __lockdep_init_map+0x105/0x590 [ 35.772186] ? __init_waitqueue_head+0x9e/0x150 [ 35.776852] ? init_wait_entry+0x1c0/0x1c0 [ 35.781088] __synchronize_srcu+0x189/0x240 [ 35.785408] ? call_srcu+0x10/0x10 [ 35.788947] ? rcu_unexpedite_gp+0x20/0x20 [ 35.793193] synchronize_srcu+0x335/0x56f [ 35.797346] ? lock_downgrade+0x8f0/0x8f0 [ 35.801496] ? synchronize_srcu_expedited+0x20/0x20 [ 35.806513] ? kasan_check_read+0x11/0x20 [ 35.810660] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.815239] ? kasan_check_write+0x14/0x20 [ 35.819471] ? do_raw_spin_lock+0xc1/0x200 [ 35.823708] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.829418] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.834865] ? kvfree+0x61/0x70 [ 35.838143] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.843161] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.847219] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.851632] ? kvm_arch_sync_events+0x30/0x30 [ 35.856129] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.861665] ? mmu_notifier_unregister+0x474/0x600 [ 35.866617] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.871027] ? kfree+0x111/0x210 [ 35.874396] ? __mmu_notifier_register+0x30/0x30 [ 35.879149] ? __free_pages+0x10a/0x190 [ 35.883130] ? free_unref_page+0x930/0x930 [ 35.887384] kvm_put_kvm+0x73f/0x1060 [ 35.891186] ? kvm_write_guest_cached+0x40/0x40 [ 35.895855] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.900354] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.904848] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.909433] ? kasan_check_write+0x14/0x20 [ 35.913686] ? do_raw_spin_lock+0xc1/0x200 [ 35.917938] ? kvm_irqfd_release+0xdd/0x120 [ 35.922253] ? kvm_irqfd_release+0xdd/0x120 [ 35.926572] ? kvm_put_kvm+0x1060/0x1060 [ 35.930636] kvm_vm_release+0x42/0x50 [ 35.934434] __fput+0x38a/0xa40 [ 35.937717] ? __alloc_file+0x400/0x400 [ 35.941698] ? check_same_owner+0x340/0x340 [ 35.946021] ? kasan_check_write+0x14/0x20 [ 35.950258] ? do_raw_spin_lock+0xc1/0x200 [ 35.954490] ____fput+0x15/0x20 [ 35.957767] task_work_run+0x1e8/0x2a0 [ 35.961655] ? task_work_cancel+0x240/0x240 [ 35.965978] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.971513] ? switch_task_namespaces+0xa2/0xd0 [ 35.976184] do_exit+0x1ae4/0x26e0 [ 35.979727] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.984402] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.988642] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.993657] ? kfree+0x1d7/0x210 [ 35.997025] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.001264] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.006974] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.011470] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.015965] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.020542] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.024863] ? kasan_check_read+0x11/0x20 [ 36.029012] ? __schedule+0x14b6/0x1df0 [ 36.032985] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.038091] ? lock_repin_lock+0x430/0x430 [ 36.042367] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.046870] ? __sched_text_start+0x8/0x8 [ 36.051019] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.055430] ? kasan_check_read+0x11/0x20 [ 36.059578] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.063992] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.068407] ? initcall_blacklisted+0x9a/0x1e0 [ 36.072989] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.078093] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.083808] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.089354] ? do_vfs_ioctl+0x201/0x1720 [ 36.093430] ? ioctl_preallocate+0x300/0x300 [ 36.097839] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.103374] ? __fget_light+0x2f7/0x440 [ 36.107356] ? __schedule+0x1df0/0x1df0 [ 36.111328] ? fget_raw+0x20/0x20 [ 36.114810] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.119217] ? kmem_cache_free+0x246/0x280 [ 36.123472] ? do_syscall_64+0x6be/0x820 [ 36.127533] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.131938] ? putname+0xf7/0x130 [ 36.135408] do_group_exit+0x177/0x440 [ 36.139289] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.143615] ? __ia32_sys_exit+0x50/0x50 [ 36.147685] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.152805] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.158384] ? ksys_ioctl+0x81/0xd0 [ 36.162032] __x64_sys_exit_group+0x3e/0x50 [ 36.166369] do_syscall_64+0x1b9/0x820 [ 36.170257] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.175628] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.180567] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.185414] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 36.190430] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.195444] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.200983] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.205829] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.211019] RIP: 0033:0x43ecc8 [ 36.214217] Code: Bad RIP value. [ 36.217576] RSP: 002b:00007ffcb26622d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.225288] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.233165] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.240429] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.247709] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.254976] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.262250] [ 36.262256] ====================================================== [ 36.262261] WARNING: possible circular locking dependency detected [ 36.262265] 4.19.0-rc2+ #225 Not tainted [ 36.262270] ------------------------------------------------------ [ 36.262275] syz-executor883/4790 is trying to acquire lock: [ 36.262279] 00000000966fc080 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.262294] [ 36.262298] but task is already holding lock: [ 36.262301] 0000000061576015 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.262315] [ 36.262320] which lock already depends on the new lock. [ 36.262322] [ 36.262324] [ 36.262329] the existing dependency chain (in reverse order) is: [ 36.262331] [ 36.262343] -> #3 (report_lock){....}: [ 36.262357] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.262361] kasan_report+0x8e/0x110 [ 36.262366] __asan_report_load8_noabort+0x14/0x20 [ 36.262369] __schedule+0xf54/0x1df0 [ 36.262374] preempt_schedule_common+0x22/0x60 [ 36.262377] _cond_resched+0x1d/0x30 [ 36.262382] wait_for_completion+0xa5/0x8d0 [ 36.262386] __synchronize_srcu+0x189/0x240 [ 36.262390] synchronize_srcu+0x335/0x56f [ 36.262395] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.262399] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.262403] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.262407] kvm_put_kvm+0x73f/0x1060 [ 36.262411] kvm_vm_release+0x42/0x50 [ 36.262414] __fput+0x38a/0xa40 [ 36.262418] ____fput+0x15/0x20 [ 36.262422] task_work_run+0x1e8/0x2a0 [ 36.262425] do_exit+0x1ae4/0x26e0 [ 36.262429] do_group_exit+0x177/0x440 [ 36.262433] __x64_sys_exit_group+0x3e/0x50 [ 36.262437] do_syscall_64+0x1b9/0x820 [ 36.262442] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.262444] [ 36.262446] -> #2 (&rq->lock){-.-.}: [ 36.262460] _raw_spin_lock+0x2a/0x40 [ 36.262463] task_fork_fair+0x93/0x680 [ 36.262467] sched_fork+0x44b/0xbd0 [ 36.262471] copy_process+0x235e/0x7af0 [ 36.262474] _do_fork+0x1ca/0x1170 [ 36.262478] kernel_thread+0x34/0x40 [ 36.262482] rest_init+0x22/0xe4 [ 36.262485] start_kernel+0x913/0x94e [ 36.262490] x86_64_start_reservations+0x29/0x2b [ 36.262494] x86_64_start_kernel+0x76/0x79 [ 36.262498] secondary_startup_64+0xa4/0xb0 [ 36.262500] [ 36.262502] -> #1 (&p->pi_lock){-.-.}: [ 36.262516] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.262520] try_to_wake_up+0xd2/0x1250 [ 36.262524] wake_up_process+0x10/0x20 [ 36.262527] __up.isra.1+0x1c0/0x2a0 [ 36.262531] up+0x13c/0x1c0 [ 36.262535] __up_console_sem+0xbe/0x1b0 [ 36.262538] console_unlock+0x506/0x10e0 [ 36.262542] vprintk_emit+0x33a/0x910 [ 36.262546] vprintk_default+0x28/0x30 [ 36.262550] vprintk_func+0x7a/0x117 [ 36.262553] printk+0xa7/0xcf [ 36.262556] load_umh+0x51/0xbd [ 36.262560] do_one_initcall+0x127/0x838 [ 36.262564] kernel_init_freeable+0x4bb/0x5ae [ 36.262568] kernel_init+0x11/0x1b3 [ 36.262572] ret_from_fork+0x3a/0x50 [ 36.262574] [ 36.262576] -> #0 ((console_sem).lock){-...}: [ 36.262590] lock_acquire+0x1e4/0x4f0 [ 36.262594] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.262604] down_trylock+0x13/0x70 [ 36.262609] __down_trylock_console_sem+0xae/0x200 [ 36.262613] console_trylock+0x15/0xa0 [ 36.262616] vprintk_emit+0x31f/0x910 [ 36.262620] vprintk_default+0x28/0x30 [ 36.262624] vprintk_func+0x7a/0x117 [ 36.262627] printk+0xa7/0xcf [ 36.262631] kasan_report+0x9e/0x110 [ 36.262635] __asan_report_load8_noabort+0x14/0x20 [ 36.262639] __schedule+0xf54/0x1df0 [ 36.262643] preempt_schedule_common+0x22/0x60 [ 36.262647] _cond_resched+0x1d/0x30 [ 36.262651] wait_for_completion+0xa5/0x8d0 [ 36.262655] __synchronize_srcu+0x189/0x240 [ 36.262659] synchronize_srcu+0x335/0x56f [ 36.262664] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.262668] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.262672] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.262676] kvm_put_kvm+0x73f/0x1060 [ 36.262680] kvm_vm_release+0x42/0x50 [ 36.262683] __fput+0x38a/0xa40 [ 36.262687] ____fput+0x15/0x20 [ 36.262691] task_work_run+0x1e8/0x2a0 [ 36.262694] do_exit+0x1ae4/0x26e0 [ 36.262698] do_group_exit+0x177/0x440 [ 36.262702] __x64_sys_exit_group+0x3e/0x50 [ 36.262706] do_syscall_64+0x1b9/0x820 [ 36.262711] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.262713] [ 36.262717] other info that might help us debug this: [ 36.262719] [ 36.262722] Chain exists of: [ 36.262725] (console_sem).lock --> &rq->lock --> report_lock [ 36.262742] [ 36.262746] Possible unsafe locking scenario: [ 36.262748] [ 36.262752] CPU0 CPU1 [ 36.262756] ---- ---- [ 36.262759] lock(report_lock); [ 36.262768] lock(&rq->lock); [ 36.262777] lock(report_lock); [ 36.262784] lock((console_sem).lock); [ 36.262792] [ 36.262795] *** DEADLOCK *** [ 36.262798] [ 36.262802] 2 locks held by syz-executor883/4790: [ 36.262804] #0: 00000000c2b65460 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.262821] #1: 0000000061576015 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.262837] [ 36.262840] stack backtrace: [ 36.262846] CPU: 0 PID: 4790 Comm: syz-executor883 Not tainted 4.19.0-rc2+ #225 [ 36.262853] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.262856] Call Trace: [ 36.262859] dump_stack+0x1c9/0x2b4 [ 36.262864] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.262868] ? vprintk_func+0x100/0x117 [ 36.262872] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.262876] ? save_trace+0xe0/0x290 [ 36.262880] __lock_acquire+0x3449/0x5020 [ 36.262884] ? mark_held_locks+0x160/0x160 [ 36.262888] ? mark_held_locks+0x160/0x160 [ 36.262892] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.262896] ? is_bpf_text_address+0xd7/0x170 [ 36.262900] ? kernel_text_address+0x79/0xf0 [ 36.262904] ? __kernel_text_address+0xd/0x40 [ 36.262908] ? __save_stack_trace+0x8d/0xf0 [ 36.262913] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.262916] ? save_trace+0x290/0x290 [ 36.262920] ? save_stack_trace+0x1a/0x20 [ 36.262924] ? save_trace+0xe0/0x290 [ 36.262927] ? graph_lock+0x170/0x170 [ 36.262932] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.262936] lock_acquire+0x1e4/0x4f0 [ 36.262940] ? down_trylock+0x13/0x70 [ 36.262943] ? lock_release+0x9f0/0x9f0 [ 36.262947] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.262951] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.262956] ? trace_hardirqs_off+0xb8/0x2c0 [ 36.262959] ? log_store+0x34f/0x4c0 [ 36.262963] ? vprintk_emit+0x31f/0x910 [ 36.262967] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.262971] ? down_trylock+0x13/0x70 [ 36.262974] down_trylock+0x13/0x70 [ 36.262979] __down_trylock_console_sem+0xae/0x200 [ 36.262982] console_trylock+0x15/0xa0 [ 36.262986] vprintk_emit+0x31f/0x910 [ 36.262990] ? wake_up_klogd+0x110/0x110 [ 36.262994] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.262998] ? kasan_check_read+0x11/0x20 [ 36.263002] ? rcu_is_watching+0x8c/0x150 [ 36.263006] ? rcu_pm_notify+0xc0/0xc0 [ 36.263009] ? lock_acquire+0x1e4/0x4f0 [ 36.263013] ? kasan_report+0x8e/0x110 [ 36.263017] ? __schedule+0xf54/0x1df0 [ 36.263021] vprintk_default+0x28/0x30 [ 36.263024] vprintk_func+0x7a/0x117 [ 36.263028] printk+0xa7/0xcf [ 36.263032] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.263036] ? kasan_check_write+0x14/0x20 [ 36.263040] ? do_raw_spin_lock+0xc1/0x200 [ 36.263044] ? do_raw_spin_lock+0xc1/0x200 [ 36.263047] kasan_report+0x9e/0x110 [ 36.263052] __asan_report_load8_noabort+0x14/0x20 [ 36.263055] __schedule+0xf54/0x1df0 [ 36.263060] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.263064] ? __sched_text_start+0x8/0x8 [ 36.263067] ? __call_srcu+0x7e7/0x1040 [ 36.263071] ? check_same_owner+0x340/0x340 [ 36.263075] ? mark_held_locks+0x160/0x160 [ 36.263079] ? find_held_lock+0x36/0x1c0 [ 36.263083] preempt_schedule_common+0x22/0x60 [ 36.263087] _cond_resched+0x1d/0x30 [ 36.263091] wait_for_completion+0xa5/0x8d0 [ 36.263096] ? wait_for_completion_interruptible+0x950/0x950 [ 36.263100] ? __lockdep_init_map+0x105/0x590 [ 36.263105] ? __init_waitqueue_head+0x9e/0x150 [ 36.263109] ? init_wait_entry+0x1c0/0x1c0 [ 36.263113] __synchronize_srcu+0x189/0x240 [ 36.263117] ? call_srcu+0x10/0x10 [ 36.263121] ? rcu_unexpedite_gp+0x20/0x20 [ 36.263125] synchronize_srcu+0x335/0x56f [ 36.263129] ? lock_downgrade+0x8f0/0x8f0 [ 36.263133] ? synchronize_srcu_expedited+0x20/0x20 [ 36.263137] ? kasan_check_read+0x11/0x20 [ 36.263141] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.263145] ? kasan_check_write+0x14/0x20 [ 36.263150] ? do_raw_spin_lock+0xc1/0x200 [ 36.263154] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.263159] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.263163] ? kvfree+0x61/0x70 [ 36.263167] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.263171] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.263175] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.263179] ? kvm_arch_sync_events+0x30/0x30 [ 36.263184] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.263188] ? mmu_notifier_unregister+0x474/0x600 [ 36.263193] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.263196] ? kfree+0x111/0x210 [ 36.263200] ? __mmu_notifier_register+0x30/0x30 [ 36.263204] ? __free_pages+0x10a/0x190 [ 36.263208] ? free_unref_page+0x930/0x930 [ 36.263212] kvm_put_kvm+0x73f/0x1060 [ 36.263216] ? kvm_write_guest_cached+0x40/0x40 [ 36.263220] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.263224] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.263228] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.263232] ? kasan_check_write+0x14/0x20 [ 36.263236] ? do_raw_spin_lock+0xc1/0x200 [ 36.263240] ? kvm_irqfd_release+0xdd/0x120 [ 36.263245] ? kvm_irqfd_release+0xdd/0x120 [ 36.263248] ? kvm_put_kvm+0x1060/0x1060 [ 36.263252] kvm_vm_release+0x42/0x50 [ 36.263256] __fput+0x38a/0xa40 [ 36.263259] ? __alloc_file+0x400/0x400 [ 36.263263] ? check_same_owner+0x340/0x340 [ 36.263267] ? kasan_check_write+0x14/0x20 [ 36.263271] ? do_raw_spin_lock+0xc1/0x200 [ 36.263275] ____fput+0x15/0x20 [ 36.263278] task_work_run+0x1e8/0x2a0 [ 36.263282] ? task_work_cancel+0x240/0x240 [ 36.263287] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.263291] ? switch_task_namespaces+0xa2/0xd0 [ 36.263295] do_exit+0x1ae4/0x26e0 [ 36.263299] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.263303] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.263307] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.263311] ? kfree+0x1d7/0x210 [ 36.263315] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.263319] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.263323] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.263326] ? [ 36.263343] Lost 52 message(s)! [ 37.356627] Shutting down cpus with NMI [ 38.416363] Dumping ftrace buffer: [ 38.419891] (ftrace buffer empty) [ 38.423626] Kernel Offset: disabled [ 38.427254] Rebooting in 86400 seconds..