[....] 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[ 21.477481] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.873850] random: sshd: uninitialized urandom read (32 bytes read) [ 26.107555] random: sshd: uninitialized urandom read (32 bytes read) [ 26.627019] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.3' (ECDSA) to the list of known hosts. [ 32.351463] urandom_read: 1 callbacks suppressed [ 32.351472] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.451610] 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. [ 32.476985] ================================================================== [ 32.486853] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.493090] Read of size 8 at addr ffff8801b3d80058 by task syz-executor031/4418 [ 32.500619] [ 32.502260] CPU: 0 PID: 4418 Comm: syz-executor031 Not tainted 4.18.0+ #208 [ 32.509362] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.518719] Call Trace: [ 32.521315] dump_stack+0x1c9/0x2b4 [ 32.524953] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.530154] ? printk+0xa7/0xcf [ 32.533442] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.538471] ? __schedule+0xf54/0x1df0 [ 32.542368] print_address_description+0x6c/0x20b [ 32.547219] ? __schedule+0xf54/0x1df0 [ 32.551392] kasan_report.cold.7+0x242/0x30d [ 32.555822] __asan_report_load8_noabort+0x14/0x20 [ 32.560786] __schedule+0xf54/0x1df0 [ 32.564508] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.569622] ? __sched_text_start+0x8/0x8 [ 32.573791] ? __call_srcu+0x7e7/0x1040 [ 32.577791] ? check_same_owner+0x340/0x340 [ 32.582107] ? mark_held_locks+0x160/0x160 [ 32.586449] ? find_held_lock+0x36/0x1c0 [ 32.590531] preempt_schedule_common+0x22/0x60 [ 32.595125] _cond_resched+0x1d/0x30 [ 32.598855] wait_for_completion+0xa5/0x8d0 [ 32.603192] ? wait_for_completion_interruptible+0x950/0x950 [ 32.608998] ? __lockdep_init_map+0x105/0x590 [ 32.613503] ? __init_waitqueue_head+0x9e/0x150 [ 32.618182] ? init_wait_entry+0x1c0/0x1c0 [ 32.622431] __synchronize_srcu+0x189/0x240 [ 32.626783] ? call_srcu+0x10/0x10 [ 32.630346] ? rcu_unexpedite_gp+0x20/0x20 [ 32.634683] synchronize_srcu+0x335/0x56f [ 32.638837] ? lock_downgrade+0x8f0/0x8f0 [ 32.642993] ? synchronize_srcu_expedited+0x20/0x20 [ 32.648022] ? kasan_check_read+0x11/0x20 [ 32.652182] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.656799] ? kasan_check_write+0x14/0x20 [ 32.661044] ? do_raw_spin_lock+0xc1/0x200 [ 32.665354] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.671074] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.676536] ? kvfree+0x61/0x70 [ 32.679828] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.684859] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.688928] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.693350] ? kvm_arch_sync_events+0x30/0x30 [ 32.697866] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.703414] ? mmu_notifier_unregister+0x474/0x600 [ 32.708354] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.712797] ? kfree+0x111/0x210 [ 32.716283] ? __mmu_notifier_register+0x30/0x30 [ 32.721054] ? __free_pages+0x10a/0x190 [ 32.725038] ? free_unref_page+0x930/0x930 [ 32.729290] kvm_put_kvm+0x73f/0x1060 [ 32.733108] ? kvm_write_guest_cached+0x40/0x40 [ 32.737815] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.742323] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.746845] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.751438] ? kasan_check_write+0x14/0x20 [ 32.755679] ? do_raw_spin_lock+0xc1/0x200 [ 32.759927] ? kvm_irqfd_release+0xdd/0x120 [ 32.764258] ? kvm_irqfd_release+0xdd/0x120 [ 32.768587] ? kvm_put_kvm+0x1060/0x1060 [ 32.772657] kvm_vm_release+0x42/0x50 [ 32.776462] __fput+0x36e/0x8c0 [ 32.779750] ? __alloc_file+0x400/0x400 [ 32.783795] ? check_same_owner+0x340/0x340 [ 32.788127] ? kasan_check_write+0x14/0x20 [ 32.792372] ? do_raw_spin_lock+0xc1/0x200 [ 32.796613] ____fput+0x15/0x20 [ 32.799902] task_work_run+0x1e8/0x2a0 [ 32.803815] ? task_work_cancel+0x240/0x240 [ 32.808151] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.813700] ? switch_task_namespaces+0xa2/0xd0 [ 32.818376] do_exit+0x1ae4/0x26e0 [ 32.821928] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.826607] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.830854] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.835879] ? kfree+0x1d7/0x210 [ 32.839258] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.843507] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.849226] ? kasan_check_write+0x14/0x20 [ 32.853466] ? finish_task_switch+0x2ca/0x870 [ 32.857970] ? preempt_notifier_register+0x200/0x200 [ 32.863080] ? __switch_to_asm+0x34/0x70 [ 32.867150] ? __switch_to_asm+0x34/0x70 [ 32.871218] ? __switch_to_asm+0x40/0x70 [ 32.875286] ? __switch_to_asm+0x34/0x70 [ 32.879356] ? __switch_to_asm+0x40/0x70 [ 32.883429] ? __switch_to_asm+0x34/0x70 [ 32.887499] ? __switch_to_asm+0x40/0x70 [ 32.891570] ? __switch_to_asm+0x34/0x70 [ 32.895642] ? __switch_to_asm+0x34/0x70 [ 32.899709] ? __switch_to_asm+0x40/0x70 [ 32.903806] ? __switch_to_asm+0x34/0x70 [ 32.907876] ? __switch_to_asm+0x40/0x70 [ 32.911945] ? __switch_to_asm+0x34/0x70 [ 32.916015] ? __switch_to_asm+0x40/0x70 [ 32.920094] ? __sched_text_start+0x8/0x8 [ 32.924250] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.928666] ? kasan_check_read+0x11/0x20 [ 32.932826] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.937244] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.941664] ? initcall_blacklisted+0x9a/0x1e0 [ 32.946261] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.951374] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.957096] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.962640] ? do_vfs_ioctl+0x201/0x1720 [ 32.966709] ? ioctl_preallocate+0x300/0x300 [ 32.971128] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.976676] ? __fget_light+0x2f7/0x440 [ 32.980665] ? __schedule+0x1df0/0x1df0 [ 32.984648] ? fget_raw+0x20/0x20 [ 32.988108] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.992520] ? kmem_cache_free+0x246/0x280 [ 32.996793] ? do_syscall_64+0x6be/0x820 [ 33.000863] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.005275] ? putname+0xf7/0x130 [ 33.008740] do_group_exit+0x177/0x440 [ 33.012660] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.016988] ? __ia32_sys_exit+0x50/0x50 [ 33.021055] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.026171] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.031716] ? ksys_ioctl+0x81/0xd0 [ 33.035353] __x64_sys_exit_group+0x3e/0x50 [ 33.039685] do_syscall_64+0x1b9/0x820 [ 33.043668] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.049040] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.053976] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.058825] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.063855] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.068880] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.073906] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.078859] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.084057] RIP: 0033:0x43ef08 [ 33.087260] Code: Bad RIP value. [ 33.090626] RSP: 002b:00007ffe0589a3f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.098341] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 33.105612] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.112981] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.120257] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.127530] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.134895] [ 33.136530] Allocated by task 4418: [ 33.140163] save_stack+0x43/0xd0 [ 33.143680] kasan_kmalloc+0xc4/0xe0 [ 33.147402] kasan_slab_alloc+0x12/0x20 [ 33.151383] kmem_cache_alloc+0x12e/0x710 [ 33.155537] vmx_create_vcpu+0xcf/0x2830 [ 33.159606] kvm_arch_vcpu_create+0xe5/0x220 [ 33.164020] kvm_vm_ioctl+0x488/0x1d80 [ 33.167918] do_vfs_ioctl+0x1de/0x1720 [ 33.171815] ksys_ioctl+0xa9/0xd0 [ 33.175277] __x64_sys_ioctl+0x73/0xb0 [ 33.179170] do_syscall_64+0x1b9/0x820 [ 33.183066] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.188251] [ 33.189882] Freed by task 4418: [ 33.193166] save_stack+0x43/0xd0 [ 33.196624] __kasan_slab_free+0x11a/0x170 [ 33.200870] kasan_slab_free+0xe/0x10 [ 33.204678] kmem_cache_free+0x86/0x280 [ 33.208657] vmx_free_vcpu+0x26b/0x300 [ 33.212549] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.216966] kvm_put_kvm+0x73f/0x1060 [ 33.220803] kvm_vm_release+0x42/0x50 [ 33.224613] __fput+0x36e/0x8c0 [ 33.227898] ____fput+0x15/0x20 [ 33.231184] task_work_run+0x1e8/0x2a0 [ 33.235075] do_exit+0x1ae4/0x26e0 [ 33.238619] do_group_exit+0x177/0x440 [ 33.242512] __x64_sys_exit_group+0x3e/0x50 [ 33.246839] do_syscall_64+0x1b9/0x820 [ 33.250734] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.255951] [ 33.257584] The buggy address belongs to the object at ffff8801b3d80040 [ 33.257584] which belongs to the cache kvm_vcpu of size 23872 [ 33.270160] The buggy address is located 24 bytes inside of [ 33.270160] 23872-byte region [ffff8801b3d80040, ffff8801b3d85d80) [ 33.282122] The buggy address belongs to the page: [ 33.287056] page:ffffea0006cf6000 count:1 mapcount:0 mapping:ffff8801d6e66340 index:0x0 compound_mapcount: 0 [ 33.297033] flags: 0x2fffc0000008100(slab|head) [ 33.301714] raw: 02fffc0000008100 ffff8801d4c10548 ffff8801d4c10548 ffff8801d6e66340 [ 33.309604] raw: 0000000000000000 ffff8801b3d80040 0000000100000001 0000000000000000 [ 33.317482] page dumped because: kasan: bad access detected [ 33.323187] [ 33.324812] Memory state around the buggy address: [ 33.329747] ffff8801b3d7ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.337142] ffff8801b3d7ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.344504] >ffff8801b3d80000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.351865] ^ [ 33.358100] ffff8801b3d80080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.365471] ffff8801b3d80100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.372828] ================================================================== [ 33.380190] Kernel panic - not syncing: panic_on_warn set ... [ 33.380190] [ 33.387563] CPU: 0 PID: 4418 Comm: syz-executor031 Tainted: G B 4.18.0+ #208 [ 33.396045] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.405401] Call Trace: [ 33.408004] dump_stack+0x1c9/0x2b4 [ 33.411643] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.416850] ? lock_downgrade+0x8f0/0x8f0 [ 33.421008] ? __schedule+0xf54/0x1df0 [ 33.424906] panic+0x238/0x4e7 [ 33.428109] ? add_taint.cold.5+0x16/0x16 [ 33.432273] ? print_shadow_for_address+0xba/0x116 [ 33.437211] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.441630] ? trace_hardirqs_off+0x77/0x2b0 [ 33.446047] ? __schedule+0xf54/0x1df0 [ 33.449946] kasan_end_report+0x47/0x4f [ 33.453929] kasan_report.cold.7+0x76/0x30d [ 33.458262] __asan_report_load8_noabort+0x14/0x20 [ 33.463198] __schedule+0xf54/0x1df0 [ 33.466922] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.472038] ? __sched_text_start+0x8/0x8 [ 33.476194] ? __call_srcu+0x7e7/0x1040 [ 33.480186] ? check_same_owner+0x340/0x340 [ 33.484513] ? mark_held_locks+0x160/0x160 [ 33.488846] ? find_held_lock+0x36/0x1c0 [ 33.492906] preempt_schedule_common+0x22/0x60 [ 33.497484] _cond_resched+0x1d/0x30 [ 33.501338] wait_for_completion+0xa5/0x8d0 [ 33.505675] ? wait_for_completion_interruptible+0x950/0x950 [ 33.511483] ? __lockdep_init_map+0x105/0x590 [ 33.515989] ? __init_waitqueue_head+0x9e/0x150 [ 33.520668] ? init_wait_entry+0x1c0/0x1c0 [ 33.524918] __synchronize_srcu+0x189/0x240 [ 33.529246] ? call_srcu+0x10/0x10 [ 33.532826] ? rcu_unexpedite_gp+0x20/0x20 [ 33.537074] synchronize_srcu+0x335/0x56f [ 33.541227] ? lock_downgrade+0x8f0/0x8f0 [ 33.545474] ? synchronize_srcu_expedited+0x20/0x20 [ 33.550500] ? kasan_check_read+0x11/0x20 [ 33.554659] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.559248] ? kasan_check_write+0x14/0x20 [ 33.563493] ? do_raw_spin_lock+0xc1/0x200 [ 33.567741] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.573491] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.578947] ? kvfree+0x61/0x70 [ 33.582237] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.587265] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.591334] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.595778] ? kvm_arch_sync_events+0x30/0x30 [ 33.600296] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.605847] ? mmu_notifier_unregister+0x474/0x600 [ 33.610809] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.615326] ? kfree+0x111/0x210 [ 33.618705] ? __mmu_notifier_register+0x30/0x30 [ 33.623474] ? __free_pages+0x10a/0x190 [ 33.627460] ? free_unref_page+0x930/0x930 [ 33.631711] kvm_put_kvm+0x73f/0x1060 [ 33.635527] ? kvm_write_guest_cached+0x40/0x40 [ 33.640210] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.644716] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.649221] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.653828] ? kasan_check_write+0x14/0x20 [ 33.658069] ? do_raw_spin_lock+0xc1/0x200 [ 33.662312] ? kvm_irqfd_release+0xdd/0x120 [ 33.666640] ? kvm_irqfd_release+0xdd/0x120 [ 33.670973] ? kvm_put_kvm+0x1060/0x1060 [ 33.675041] kvm_vm_release+0x42/0x50 [ 33.678854] __fput+0x36e/0x8c0 [ 33.682142] ? __alloc_file+0x400/0x400 [ 33.686124] ? check_same_owner+0x340/0x340 [ 33.690453] ? kasan_check_write+0x14/0x20 [ 33.694693] ? do_raw_spin_lock+0xc1/0x200 [ 33.698935] ____fput+0x15/0x20 [ 33.702222] task_work_run+0x1e8/0x2a0 [ 33.706117] ? task_work_cancel+0x240/0x240 [ 33.710448] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.715999] ? switch_task_namespaces+0xa2/0xd0 [ 33.720676] do_exit+0x1ae4/0x26e0 [ 33.724228] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.728912] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.733158] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.738180] ? kfree+0x1d7/0x210 [ 33.741557] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.745820] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.751540] ? kasan_check_write+0x14/0x20 [ 33.755811] ? finish_task_switch+0x2ca/0x870 [ 33.760321] ? preempt_notifier_register+0x200/0x200 [ 33.765435] ? __switch_to_asm+0x34/0x70 [ 33.769504] ? __switch_to_asm+0x34/0x70 [ 33.773574] ? __switch_to_asm+0x40/0x70 [ 33.777642] ? __switch_to_asm+0x34/0x70 [ 33.781712] ? __switch_to_asm+0x40/0x70 [ 33.785810] ? __switch_to_asm+0x34/0x70 [ 33.789884] ? __switch_to_asm+0x40/0x70 [ 33.793953] ? __switch_to_asm+0x34/0x70 [ 33.798023] ? __switch_to_asm+0x34/0x70 [ 33.802093] ? __switch_to_asm+0x40/0x70 [ 33.806162] ? __switch_to_asm+0x34/0x70 [ 33.810233] ? __switch_to_asm+0x40/0x70 [ 33.814302] ? __switch_to_asm+0x34/0x70 [ 33.818371] ? __switch_to_asm+0x40/0x70 [ 33.822446] ? __sched_text_start+0x8/0x8 [ 33.826604] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.831121] ? kasan_check_read+0x11/0x20 [ 33.835280] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.839701] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.844120] ? initcall_blacklisted+0x9a/0x1e0 [ 33.848714] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.853835] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.859555] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.865102] ? do_vfs_ioctl+0x201/0x1720 [ 33.869175] ? ioctl_preallocate+0x300/0x300 [ 33.873593] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.879140] ? __fget_light+0x2f7/0x440 [ 33.883120] ? __schedule+0x1df0/0x1df0 [ 33.887101] ? fget_raw+0x20/0x20 [ 33.890565] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.894983] ? kmem_cache_free+0x246/0x280 [ 33.899228] ? do_syscall_64+0x6be/0x820 [ 33.903297] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.907713] ? putname+0xf7/0x130 [ 33.911179] do_group_exit+0x177/0x440 [ 33.915074] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.919406] ? __ia32_sys_exit+0x50/0x50 [ 33.923474] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.928589] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.934223] ? ksys_ioctl+0x81/0xd0 [ 33.937860] __x64_sys_exit_group+0x3e/0x50 [ 33.942194] do_syscall_64+0x1b9/0x820 [ 33.946092] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.951468] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.956406] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.961259] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.966286] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.971375] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.976403] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.981259] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.986455] RIP: 0033:0x43ef08 [ 33.989656] Code: Bad RIP value. [ 33.993025] RSP: 002b:00007ffe0589a3f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.000739] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.008038] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.015317] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.022589] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.029864] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.037144] [ 34.037150] ====================================================== [ 34.037155] WARNING: possible circular locking dependency detected [ 34.037159] 4.18.0+ #208 Not tainted [ 34.037164] ------------------------------------------------------ [ 34.037169] syz-executor031/4418 is trying to acquire lock: [ 34.037172] 00000000c617e3ad ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.037187] [ 34.037191] but task is already holding lock: [ 34.037194] 0000000048d7afe7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.037208] [ 34.037213] which lock already depends on the new lock. [ 34.037215] [ 34.037218] [ 34.037223] the existing dependency chain (in reverse order) is: [ 34.037225] [ 34.037227] -> #3 (report_lock){....}: [ 34.037242] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.037245] kasan_report+0x8e/0x110 [ 34.037250] __asan_report_load8_noabort+0x14/0x20 [ 34.037254] __schedule+0xf54/0x1df0 [ 34.037258] preempt_schedule_common+0x22/0x60 [ 34.037262] _cond_resched+0x1d/0x30 [ 34.037266] wait_for_completion+0xa5/0x8d0 [ 34.037270] __synchronize_srcu+0x189/0x240 [ 34.037274] synchronize_srcu+0x335/0x56f [ 34.037279] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.037283] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.037287] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.037292] kvm_put_kvm+0x73f/0x1060 [ 34.037296] kvm_vm_release+0x42/0x50 [ 34.037299] __fput+0x36e/0x8c0 [ 34.037303] ____fput+0x15/0x20 [ 34.037307] task_work_run+0x1e8/0x2a0 [ 34.037310] do_exit+0x1ae4/0x26e0 [ 34.037314] do_group_exit+0x177/0x440 [ 34.037318] __x64_sys_exit_group+0x3e/0x50 [ 34.037322] do_syscall_64+0x1b9/0x820 [ 34.037327] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.037329] [ 34.037331] -> #2 (&rq->lock){-.-.}: [ 34.037345] _raw_spin_lock+0x2a/0x40 [ 34.037349] task_fork_fair+0x93/0x680 [ 34.037353] sched_fork+0x44b/0xbd0 [ 34.037357] copy_process+0x235e/0x7ad0 [ 34.037361] _do_fork+0x1ca/0x1170 [ 34.037364] kernel_thread+0x34/0x40 [ 34.037368] rest_init+0x22/0xe4 [ 34.037372] start_kernel+0x913/0x94e [ 34.037376] x86_64_start_reservations+0x29/0x2b [ 34.037381] x86_64_start_kernel+0x76/0x79 [ 34.037385] secondary_startup_64+0xa4/0xb0 [ 34.037387] [ 34.037389] -> #1 (&p->pi_lock){-.-.}: [ 34.037404] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.037408] try_to_wake_up+0xd2/0x1250 [ 34.037411] wake_up_process+0x10/0x20 [ 34.037415] __up.isra.1+0x1c0/0x2a0 [ 34.037419] up+0x13c/0x1c0 [ 34.037423] __up_console_sem+0xbe/0x1b0 [ 34.037427] console_unlock+0x506/0x10d0 [ 34.037431] vprintk_emit+0x33a/0x910 [ 34.037434] vprintk_default+0x28/0x30 [ 34.037438] vprintk_func+0x7a/0x117 [ 34.037442] printk+0xa7/0xcf [ 34.037445] load_umh+0x51/0xbd [ 34.037449] do_one_initcall+0x127/0x838 [ 34.037453] kernel_init_freeable+0x4bb/0x5ae [ 34.037457] kernel_init+0x11/0x1b3 [ 34.037461] ret_from_fork+0x3a/0x50 [ 34.037463] [ 34.037465] -> #0 ((console_sem).lock){-...}: [ 34.037480] lock_acquire+0x1e4/0x4f0 [ 34.037484] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.037488] down_trylock+0x13/0x70 [ 34.037492] __down_trylock_console_sem+0xae/0x200 [ 34.037496] console_trylock+0x15/0xa0 [ 34.037500] vprintk_emit+0x31f/0x910 [ 34.037504] vprintk_default+0x28/0x30 [ 34.037508] vprintk_func+0x7a/0x117 [ 34.037511] printk+0xa7/0xcf [ 34.037515] kasan_report+0x9e/0x110 [ 34.037519] __asan_report_load8_noabort+0x14/0x20 [ 34.037523] __schedule+0xf54/0x1df0 [ 34.037527] preempt_schedule_common+0x22/0x60 [ 34.037531] _cond_resched+0x1d/0x30 [ 34.037535] wait_for_completion+0xa5/0x8d0 [ 34.037540] __synchronize_srcu+0x189/0x240 [ 34.037544] synchronize_srcu+0x335/0x56f [ 34.037549] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.037553] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.037557] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.037561] kvm_put_kvm+0x73f/0x1060 [ 34.037565] kvm_vm_release+0x42/0x50 [ 34.037568] __fput+0x36e/0x8c0 [ 34.037572] ____fput+0x15/0x20 [ 34.037576] task_work_run+0x1e8/0x2a0 [ 34.037580] do_exit+0x1ae4/0x26e0 [ 34.037583] do_group_exit+0x177/0x440 [ 34.037588] __x64_sys_exit_group+0x3e/0x50 [ 34.037592] do_syscall_64+0x1b9/0x820 [ 34.037596] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.037598] [ 34.037603] other info that might help us debug this: [ 34.037605] [ 34.037608] Chain exists of: [ 34.037610] (console_sem).lock --> &rq->lock --> report_lock [ 34.037628] [ 34.037632] Possible unsafe locking scenario: [ 34.037635] [ 34.037639] CPU0 CPU1 [ 34.037643] ---- ---- [ 34.037645] lock(report_lock); [ 34.037655] lock(&rq->lock); [ 34.037664] lock(report_lock); [ 34.037672] lock((console_sem).lock); [ 34.037680] [ 34.037683] *** DEADLOCK *** [ 34.037685] [ 34.037689] 2 locks held by syz-executor031/4418: [ 34.037691] #0: 00000000fc5b7635 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.037708] #1: 0000000048d7afe7 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.037725] [ 34.037728] stack backtrace: [ 34.037734] CPU: 0 PID: 4418 Comm: syz-executor031 Not tainted 4.18.0+ #208 [ 34.037741] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.037744] Call Trace: [ 34.037748] dump_stack+0x1c9/0x2b4 [ 34.037776] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.037781] ? vprintk_func+0x100/0x117 [ 34.037786] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.037795] ? save_trace+0xe0/0x290 [ 34.037799] __lock_acquire+0x3449/0x5020 [ 34.037803] ? mark_held_locks+0x160/0x160 [ 34.037807] ? mark_held_locks+0x160/0x160 [ 34.037811] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.037816] ? is_bpf_text_address+0xd7/0x170 [ 34.037820] ? kernel_text_address+0x79/0xf0 [ 34.037824] ? __kernel_text_address+0xd/0x40 [ 34.037828] ? __save_stack_trace+0x8d/0xf0 [ 34.037833] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.037836] ? save_trace+0x290/0x290 [ 34.037840] ? save_stack_trace+0x1a/0x20 [ 34.037844] ? save_trace+0xe0/0x290 [ 34.037848] ? graph_lock+0x170/0x170 [ 34.037853] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.037857] lock_acquire+0x1e4/0x4f0 [ 34.037860] ? down_trylock+0x13/0x70 [ 34.037864] ? lock_release+0x9f0/0x9f0 [ 34.037868] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.037873] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.037877] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.037881] ? log_store+0x34f/0x4c0 [ 34.037885] ? vprintk_emit+0x31f/0x910 [ 34.037889] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.037893] ? down_trylock+0x13/0x70 [ 34.037896] down_trylock+0x13/0x70 [ 34.037901] __down_trylock_console_sem+0xae/0x200 [ 34.037905] console_trylock+0x15/0xa0 [ 34.037909] vprintk_emit+0x31f/0x910 [ 34.037913] ? wake_up_klogd+0x110/0x110 [ 34.037917] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.037921] ? kasan_check_read+0x11/0x20 [ 34.037925] ? rcu_is_watching+0x8c/0x150 [ 34.037929] ? rcu_pm_notify+0xc0/0xc0 [ 34.037933] ? lock_acquire+0x1e4/0x4f0 [ 34.037937] ? kasan_report+0x8e/0x110 [ 34.037941] ? __schedule+0xf54/0x1df0 [ 34.037944] vprintk_default+0x28/0x30 [ 34.037948] vprintk_func+0x7a/0x117 [ 34.037952] printk+0xa7/0xcf [ 34.037956] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.037960] ? kasan_check_write+0x14/0x20 [ 34.037964] ? do_raw_spin_lock+0xc1/0x200 [ 34.037968] ? do_raw_spin_lock+0xc1/0x200 [ 34.037972] kasan_report+0x9e/0x110 [ 34.037976] __asan_report_load8_noabort+0x14/0x20 [ 34.037980] __schedule+0xf54/0x1df0 [ 34.037985] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.037989] ? __sched_text_start+0x8/0x8 [ 34.037993] ? __call_srcu+0x7e7/0x1040 [ 34.037997] ? check_same_owner+0x340/0x340 [ 34.038001] ? mark_held_locks+0x160/0x160 [ 34.038005] ? find_held_lock+0x36/0x1c0 [ 34.038010] preempt_schedule_common+0x22/0x60 [ 34.038013] _cond_resched+0x1d/0x30 [ 34.038018] wait_for_completion+0xa5/0x8d0 [ 34.038023] ? wait_for_completion_interruptible+0x950/0x950 [ 34.038027] ? __lockdep_init_map+0x105/0x590 [ 34.038031] ? __init_waitqueue_head+0x9e/0x150 [ 34.038035] ? init_wait_entry+0x1c0/0x1c0 [ 34.038040] __synchronize_srcu+0x189/0x240 [ 34.038043] ? call_srcu+0x10/0x10 [ 34.038047] ? rcu_unexpedite_gp+0x20/0x20 [ 34.038051] synchronize_srcu+0x335/0x56f [ 34.038055] ? lock_downgrade+0x8f0/0x8f0 [ 34.038060] ? synchronize_srcu_expedited+0x20/0x20 [ 34.038064] ? kasan_check_read+0x11/0x20 [ 34.038068] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.038072] ? kasan_check_write+0x14/0x20 [ 34.038076] ? do_raw_spin_lock+0xc1/0x200 [ 34.038081] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.038086] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.038090] ? kvfree+0x61/0x70 [ 34.038094] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.038098] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.038102] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.038106] ? kvm_arch_sync_events+0x30/0x30 [ 34.038111] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.038116] ? mmu_notifier_unregister+0x474/0x600 [ 34.038120] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.038124] ? kfree+0x111/0x210 [ 34.038128] ? __mmu_notifier_register+0x30/0x30 [ 34.038132] ? __free_pages+0x10a/0x190 [ 34.038136] ? free_unref_page+0x930/0x930 [ 34.038140] kvm_put_kvm+0x73f/0x1060 [ 34.038144] ? kvm_write_guest_cached+0x40/0x40 [ 34.038148] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.038152] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.038157] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.038161] ? kasan_check_write+0x14/0x20 [ 34.038165] ? do_raw_spin_lock+0xc1/0x200 [ 34.038169] ? kvm_irqfd_release+0xdd/0x120 [ 34.038173] ? kvm_irqfd_release+0xdd/0x120 [ 34.038177] ? kvm_put_kvm+0x1060/0x1060 [ 34.038181] kvm_vm_release+0x42/0x50 [ 34.038184] __fput+0x36e/0x8c0 [ 34.038188] ? __alloc_file+0x400/0x400 [ 34.038192] ? check_same_owner+0x340/0x340 [ 34.038196] ? kasan_check_write+0x14/0x20 [ 34.038200] ? do_raw_spin_lock+0xc1/0x200 [ 34.038204] ____fput+0x15/0x20 [ 34.038208] task_work_run+0x1e8/0x2a0 [ 34.038212] ? task_work_cancel+0x240/0x240 [ 34.038217] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.038221] ? switch_task_namespaces+0xa2/0xd0 [ 34.038225] do_exit+0x1ae4/0x26e0 [ 34.038229] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.038233] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.038238] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.038241] ? kfree+0x1d7/0x210 [ 34.038245] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.038250] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.038254] ? kasan_check_write+0x14/0x20 [ 34.038257] ? finish_tas [ 34.038265] Lost 60 message(s)! [ 35.119140] Shutting down cpus with NMI [ 36.177785] Dumping ftrace buffer: [ 36.181307] (ftrace buffer empty) [ 36.185009] Kernel Offset: disabled [ 36.188630] Rebooting in 86400 seconds..