[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.817293] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.969283] random: sshd: uninitialized urandom read (32 bytes read) [ 28.233182] random: sshd: uninitialized urandom read (32 bytes read) [ 28.764740] random: sshd: uninitialized urandom read (32 bytes read) [ 48.956398] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.60' (ECDSA) to the list of known hosts. [ 54.610717] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 54.710093] 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. [ 54.735248] ================================================================== [ 54.745091] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 54.751337] Read of size 8 at addr ffff8801d7228058 by task syz-executor152/4725 [ 54.758852] [ 54.760479] CPU: 0 PID: 4725 Comm: syz-executor152 Not tainted 4.19.0-rc2+ #225 [ 54.767917] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.777259] Call Trace: [ 54.779843] dump_stack+0x1c9/0x2b4 [ 54.783471] ? dump_stack_print_info.cold.2+0x52/0x52 [ 54.788670] ? printk+0xa7/0xcf [ 54.791970] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 54.796731] ? __schedule+0xf54/0x1df0 [ 54.800621] print_address_description+0x6c/0x20b [ 54.805460] ? __schedule+0xf54/0x1df0 [ 54.809342] kasan_report.cold.7+0x242/0x30d [ 54.813755] __asan_report_load8_noabort+0x14/0x20 [ 54.818683] __schedule+0xf54/0x1df0 [ 54.822396] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 54.827512] ? __sched_text_start+0x8/0x8 [ 54.831669] ? __call_srcu+0x7e7/0x1040 [ 54.835675] ? check_same_owner+0x340/0x340 [ 54.839997] ? mark_held_locks+0x160/0x160 [ 54.844232] ? find_held_lock+0x36/0x1c0 [ 54.848298] preempt_schedule_common+0x22/0x60 [ 54.852884] _cond_resched+0x1d/0x30 [ 54.856607] wait_for_completion+0xa5/0x8d0 [ 54.860939] ? wait_for_completion_interruptible+0x950/0x950 [ 54.866740] ? __lockdep_init_map+0x105/0x590 [ 54.871234] ? __init_waitqueue_head+0x9e/0x150 [ 54.875904] ? init_wait_entry+0x1c0/0x1c0 [ 54.880151] __synchronize_srcu+0x189/0x240 [ 54.884480] ? call_srcu+0x10/0x10 [ 54.888021] ? rcu_unexpedite_gp+0x20/0x20 [ 54.892279] synchronize_srcu+0x335/0x56f [ 54.896434] ? lock_downgrade+0x8f0/0x8f0 [ 54.900577] ? synchronize_srcu_expedited+0x20/0x20 [ 54.905590] ? kasan_check_read+0x11/0x20 [ 54.909740] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 54.914332] ? kasan_check_write+0x14/0x20 [ 54.918590] ? do_raw_spin_lock+0xc1/0x200 [ 54.922840] kvm_page_track_unregister_notifier+0x17d/0x250 [ 54.928564] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 54.934015] ? kvfree+0x61/0x70 [ 54.937294] ? rcu_read_lock_sched_held+0x108/0x120 [ 54.942310] kvm_mmu_uninit_vm+0x1c/0x20 [ 54.946359] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 54.950747] ? kvm_arch_sync_events+0x30/0x30 [ 54.955228] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 54.960749] ? mmu_notifier_unregister+0x474/0x600 [ 54.965656] ? trace_hardirqs_on+0x2c0/0x2c0 [ 54.970043] ? kfree+0x111/0x210 [ 54.973391] ? __mmu_notifier_register+0x30/0x30 [ 54.978134] ? __free_pages+0x10a/0x190 [ 54.982089] ? free_unref_page+0x930/0x930 [ 54.986308] kvm_put_kvm+0x73f/0x1060 [ 54.990092] ? kvm_write_guest_cached+0x40/0x40 [ 54.994743] ? _raw_spin_unlock_irq+0x27/0x70 [ 54.999217] ? _raw_spin_unlock_irq+0x27/0x70 [ 55.003690] ? lockdep_hardirqs_on+0x421/0x5c0 [ 55.008256] ? kasan_check_write+0x14/0x20 [ 55.012481] ? do_raw_spin_lock+0xc1/0x200 [ 55.016720] ? kvm_irqfd_release+0xdd/0x120 [ 55.021021] ? kvm_irqfd_release+0xdd/0x120 [ 55.025398] ? kvm_put_kvm+0x1060/0x1060 [ 55.029449] kvm_vm_release+0x42/0x50 [ 55.033239] __fput+0x38a/0xa40 [ 55.036503] ? __alloc_file+0x400/0x400 [ 55.040550] ? check_same_owner+0x340/0x340 [ 55.044861] ? kasan_check_write+0x14/0x20 [ 55.049078] ? do_raw_spin_lock+0xc1/0x200 [ 55.053293] ____fput+0x15/0x20 [ 55.056557] task_work_run+0x1e8/0x2a0 [ 55.060425] ? task_work_cancel+0x240/0x240 [ 55.064742] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.070269] ? switch_task_namespaces+0xa2/0xd0 [ 55.074924] do_exit+0x1ae4/0x26e0 [ 55.078452] ? mm_update_next_owner+0x9a0/0x9a0 [ 55.083110] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 55.087341] ? rcu_read_lock_sched_held+0x108/0x120 [ 55.092337] ? kfree+0x1d7/0x210 [ 55.095688] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 55.099906] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 55.105598] ? _raw_spin_unlock_irq+0x27/0x70 [ 55.110072] ? finish_task_switch+0x1d3/0x870 [ 55.114555] ? finish_task_switch+0x18a/0x870 [ 55.119041] ? __switch_to_asm+0x34/0x70 [ 55.123081] ? preempt_notifier_register+0x200/0x200 [ 55.128173] ? __switch_to_asm+0x34/0x70 [ 55.132211] ? __switch_to_asm+0x34/0x70 [ 55.136253] ? __switch_to_asm+0x40/0x70 [ 55.140299] ? __switch_to_asm+0x34/0x70 [ 55.144341] ? __switch_to_asm+0x40/0x70 [ 55.148383] ? __switch_to_asm+0x34/0x70 [ 55.152425] ? __switch_to_asm+0x40/0x70 [ 55.156468] ? __switch_to_asm+0x34/0x70 [ 55.160510] ? __switch_to_asm+0x34/0x70 [ 55.164612] ? __switch_to_asm+0x40/0x70 [ 55.168657] ? __switch_to_asm+0x34/0x70 [ 55.172695] ? __switch_to_asm+0x40/0x70 [ 55.176733] ? __switch_to_asm+0x34/0x70 [ 55.180775] ? __switch_to_asm+0x40/0x70 [ 55.184827] ? __sched_text_start+0x8/0x8 [ 55.188963] ? trace_hardirqs_off+0xb8/0x2c0 [ 55.193351] ? kasan_check_read+0x11/0x20 [ 55.197479] ? do_raw_spin_unlock+0xa7/0x2f0 [ 55.201868] ? trace_hardirqs_on+0x2c0/0x2c0 [ 55.206260] ? initcall_blacklisted+0x9a/0x1e0 [ 55.210822] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 55.215910] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 55.221668] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.227204] ? do_vfs_ioctl+0x201/0x1720 [ 55.231262] ? ioctl_preallocate+0x300/0x300 [ 55.235649] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.241197] ? __fget_light+0x2f7/0x440 [ 55.245167] ? __schedule+0x1df0/0x1df0 [ 55.249133] ? fget_raw+0x20/0x20 [ 55.252569] ? trace_hardirqs_off+0xb8/0x2c0 [ 55.256959] ? kmem_cache_free+0x246/0x280 [ 55.261196] ? do_syscall_64+0x6be/0x820 [ 55.265236] ? trace_hardirqs_on+0x2c0/0x2c0 [ 55.269620] ? putname+0xf7/0x130 [ 55.273056] do_group_exit+0x177/0x440 [ 55.276923] ? trace_hardirqs_on+0xbd/0x2c0 [ 55.281225] ? __ia32_sys_exit+0x50/0x50 [ 55.285273] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 55.290356] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.295872] ? ksys_ioctl+0x81/0xd0 [ 55.299480] __x64_sys_exit_group+0x3e/0x50 [ 55.303781] do_syscall_64+0x1b9/0x820 [ 55.307660] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 55.313002] ? syscall_return_slowpath+0x5e0/0x5e0 [ 55.318014] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 55.322841] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 55.327839] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 55.332837] ? prepare_exit_to_usermode+0x291/0x3b0 [ 55.337845] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 55.342668] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.347851] RIP: 0033:0x43f028 [ 55.351041] Code: Bad RIP value. [ 55.354383] RSP: 002b:00007ffcd6d43d08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 55.362072] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 55.369428] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 55.376680] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 55.383929] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 55.391180] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 55.398431] [ 55.400042] Allocated by task 4725: [ 55.403654] save_stack+0x43/0xd0 [ 55.407084] kasan_kmalloc+0xc4/0xe0 [ 55.410777] kasan_slab_alloc+0x12/0x20 [ 55.414730] kmem_cache_alloc+0x12e/0x710 [ 55.418861] vmx_create_vcpu+0xcf/0x2830 [ 55.422910] kvm_arch_vcpu_create+0xe5/0x220 [ 55.427301] kvm_vm_ioctl+0x488/0x1d80 [ 55.431180] do_vfs_ioctl+0x1de/0x1720 [ 55.435048] ksys_ioctl+0xa9/0xd0 [ 55.438484] __x64_sys_ioctl+0x73/0xb0 [ 55.442359] do_syscall_64+0x1b9/0x820 [ 55.446233] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.451396] [ 55.452999] Freed by task 4725: [ 55.456284] save_stack+0x43/0xd0 [ 55.459719] __kasan_slab_free+0x11a/0x170 [ 55.463933] kasan_slab_free+0xe/0x10 [ 55.467721] kmem_cache_free+0x86/0x280 [ 55.471721] vmx_free_vcpu+0x26b/0x300 [ 55.475596] kvm_arch_destroy_vm+0x365/0x7c0 [ 55.480030] kvm_put_kvm+0x73f/0x1060 [ 55.483820] kvm_vm_release+0x42/0x50 [ 55.487601] __fput+0x38a/0xa40 [ 55.490857] ____fput+0x15/0x20 [ 55.494135] task_work_run+0x1e8/0x2a0 [ 55.498001] do_exit+0x1ae4/0x26e0 [ 55.501536] do_group_exit+0x177/0x440 [ 55.505402] __x64_sys_exit_group+0x3e/0x50 [ 55.509703] do_syscall_64+0x1b9/0x820 [ 55.513571] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.518736] [ 55.520347] The buggy address belongs to the object at ffff8801d7228040 [ 55.520347] which belongs to the cache kvm_vcpu of size 23872 [ 55.532896] The buggy address is located 24 bytes inside of [ 55.532896] 23872-byte region [ffff8801d7228040, ffff8801d722dd80) [ 55.544879] The buggy address belongs to the page: [ 55.549794] page:ffffea00075c8a00 count:1 mapcount:0 mapping:ffff8801d872f000 index:0x0 compound_mapcount: 0 [ 55.559744] flags: 0x2fffc0000008100(slab|head) [ 55.564398] raw: 02fffc0000008100 ffff8801d51eb248 ffff8801d51eb248 ffff8801d872f000 [ 55.572283] raw: 0000000000000000 ffff8801d7228040 0000000100000001 0000000000000000 [ 55.580139] page dumped because: kasan: bad access detected [ 55.585825] [ 55.587430] Memory state around the buggy address: [ 55.592391] ffff8801d7227f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 55.599739] ffff8801d7227f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 55.607265] >ffff8801d7228000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 55.614613] ^ [ 55.620822] ffff8801d7228080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.628161] ffff8801d7228100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.635499] ================================================================== [ 55.642840] Kernel panic - not syncing: panic_on_warn set ... [ 55.642840] [ 55.650290] CPU: 0 PID: 4725 Comm: syz-executor152 Tainted: G B 4.19.0-rc2+ #225 [ 55.659106] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.668442] Call Trace: [ 55.671021] dump_stack+0x1c9/0x2b4 [ 55.674633] ? dump_stack_print_info.cold.2+0x52/0x52 [ 55.679805] ? lock_downgrade+0x8f0/0x8f0 [ 55.683932] ? __schedule+0xf54/0x1df0 [ 55.687802] panic+0x238/0x4e7 [ 55.690975] ? add_taint.cold.5+0x16/0x16 [ 55.695230] ? print_shadow_for_address+0xba/0x116 [ 55.700145] ? trace_hardirqs_off+0xaf/0x2c0 [ 55.704533] ? trace_hardirqs_off+0x77/0x2c0 [ 55.708923] ? __schedule+0xf54/0x1df0 [ 55.712790] kasan_end_report+0x47/0x4f [ 55.716759] kasan_report.cold.7+0x76/0x30d [ 55.721064] __asan_report_load8_noabort+0x14/0x20 [ 55.726042] __schedule+0xf54/0x1df0 [ 55.729743] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 55.734822] ? __sched_text_start+0x8/0x8 [ 55.738964] ? __call_srcu+0x7e7/0x1040 [ 55.742923] ? check_same_owner+0x340/0x340 [ 55.747225] ? mark_held_locks+0x160/0x160 [ 55.751437] ? find_held_lock+0x36/0x1c0 [ 55.755478] preempt_schedule_common+0x22/0x60 [ 55.760038] _cond_resched+0x1d/0x30 [ 55.763728] wait_for_completion+0xa5/0x8d0 [ 55.768040] ? wait_for_completion_interruptible+0x950/0x950 [ 55.773818] ? __lockdep_init_map+0x105/0x590 [ 55.778308] ? __init_waitqueue_head+0x9e/0x150 [ 55.782967] ? init_wait_entry+0x1c0/0x1c0 [ 55.787226] __synchronize_srcu+0x189/0x240 [ 55.791536] ? call_srcu+0x10/0x10 [ 55.795060] ? rcu_unexpedite_gp+0x20/0x20 [ 55.799277] synchronize_srcu+0x335/0x56f [ 55.803405] ? lock_downgrade+0x8f0/0x8f0 [ 55.807534] ? synchronize_srcu_expedited+0x20/0x20 [ 55.812531] ? kasan_check_read+0x11/0x20 [ 55.816657] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 55.821270] ? kasan_check_write+0x14/0x20 [ 55.825490] ? do_raw_spin_lock+0xc1/0x200 [ 55.829709] kvm_page_track_unregister_notifier+0x17d/0x250 [ 55.835403] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 55.840834] ? kvfree+0x61/0x70 [ 55.844119] ? rcu_read_lock_sched_held+0x108/0x120 [ 55.849149] kvm_mmu_uninit_vm+0x1c/0x20 [ 55.853191] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 55.857581] ? kvm_arch_sync_events+0x30/0x30 [ 55.862060] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.867579] ? mmu_notifier_unregister+0x474/0x600 [ 55.872489] ? trace_hardirqs_on+0x2c0/0x2c0 [ 55.876874] ? kfree+0x111/0x210 [ 55.880323] ? __mmu_notifier_register+0x30/0x30 [ 55.885061] ? __free_pages+0x10a/0x190 [ 55.889014] ? free_unref_page+0x930/0x930 [ 55.893251] kvm_put_kvm+0x73f/0x1060 [ 55.897033] ? kvm_write_guest_cached+0x40/0x40 [ 55.901685] ? _raw_spin_unlock_irq+0x27/0x70 [ 55.906461] ? _raw_spin_unlock_irq+0x27/0x70 [ 55.910940] ? lockdep_hardirqs_on+0x421/0x5c0 [ 55.915514] ? kasan_check_write+0x14/0x20 [ 55.919729] ? do_raw_spin_lock+0xc1/0x200 [ 55.923970] ? kvm_irqfd_release+0xdd/0x120 [ 55.928270] ? kvm_irqfd_release+0xdd/0x120 [ 55.932575] ? kvm_put_kvm+0x1060/0x1060 [ 55.936631] kvm_vm_release+0x42/0x50 [ 55.940414] __fput+0x38a/0xa40 [ 55.943674] ? __alloc_file+0x400/0x400 [ 55.947633] ? check_same_owner+0x340/0x340 [ 55.951932] ? kasan_check_write+0x14/0x20 [ 55.956148] ? do_raw_spin_lock+0xc1/0x200 [ 55.960364] ____fput+0x15/0x20 [ 55.963648] task_work_run+0x1e8/0x2a0 [ 55.967528] ? task_work_cancel+0x240/0x240 [ 55.971840] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.977370] ? switch_task_namespaces+0xa2/0xd0 [ 55.982020] do_exit+0x1ae4/0x26e0 [ 55.985563] ? mm_update_next_owner+0x9a0/0x9a0 [ 55.990219] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 55.994440] ? rcu_read_lock_sched_held+0x108/0x120 [ 55.999435] ? kfree+0x1d7/0x210 [ 56.002781] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 56.006996] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 56.012687] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.017170] ? finish_task_switch+0x1d3/0x870 [ 56.021649] ? finish_task_switch+0x18a/0x870 [ 56.026130] ? __switch_to_asm+0x34/0x70 [ 56.030175] ? preempt_notifier_register+0x200/0x200 [ 56.035269] ? __switch_to_asm+0x34/0x70 [ 56.039310] ? __switch_to_asm+0x34/0x70 [ 56.043354] ? __switch_to_asm+0x40/0x70 [ 56.047395] ? __switch_to_asm+0x34/0x70 [ 56.051440] ? __switch_to_asm+0x40/0x70 [ 56.055480] ? __switch_to_asm+0x34/0x70 [ 56.059521] ? __switch_to_asm+0x40/0x70 [ 56.063562] ? __switch_to_asm+0x34/0x70 [ 56.067601] ? __switch_to_asm+0x34/0x70 [ 56.071640] ? __switch_to_asm+0x40/0x70 [ 56.075730] ? __switch_to_asm+0x34/0x70 [ 56.079776] ? __switch_to_asm+0x40/0x70 [ 56.083819] ? __switch_to_asm+0x34/0x70 [ 56.087861] ? __switch_to_asm+0x40/0x70 [ 56.091910] ? __sched_text_start+0x8/0x8 [ 56.096051] ? trace_hardirqs_off+0xb8/0x2c0 [ 56.100440] ? kasan_check_read+0x11/0x20 [ 56.104571] ? do_raw_spin_unlock+0xa7/0x2f0 [ 56.108967] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.113361] ? initcall_blacklisted+0x9a/0x1e0 [ 56.117925] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 56.123012] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 56.128708] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.134226] ? do_vfs_ioctl+0x201/0x1720 [ 56.138270] ? ioctl_preallocate+0x300/0x300 [ 56.142661] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.148184] ? __fget_light+0x2f7/0x440 [ 56.152144] ? __schedule+0x1df0/0x1df0 [ 56.156097] ? fget_raw+0x20/0x20 [ 56.159538] ? trace_hardirqs_off+0xb8/0x2c0 [ 56.163927] ? kmem_cache_free+0x246/0x280 [ 56.168148] ? do_syscall_64+0x6be/0x820 [ 56.172190] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.176588] ? putname+0xf7/0x130 [ 56.180061] do_group_exit+0x177/0x440 [ 56.183948] ? trace_hardirqs_on+0xbd/0x2c0 [ 56.188255] ? __ia32_sys_exit+0x50/0x50 [ 56.192307] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 56.197392] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.202912] ? ksys_ioctl+0x81/0xd0 [ 56.206517] __x64_sys_exit_group+0x3e/0x50 [ 56.210830] do_syscall_64+0x1b9/0x820 [ 56.214704] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 56.220065] ? syscall_return_slowpath+0x5e0/0x5e0 [ 56.224975] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.229864] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 56.234866] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 56.239864] ? prepare_exit_to_usermode+0x291/0x3b0 [ 56.244874] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.249693] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.254861] RIP: 0033:0x43f028 [ 56.258037] Code: Bad RIP value. [ 56.261394] RSP: 002b:00007ffcd6d43d08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 56.269081] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 56.276328] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 56.283586] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 56.290841] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 56.298089] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 56.305362] [ 56.305366] ====================================================== [ 56.305369] WARNING: possible circular locking dependency detected [ 56.305371] 4.19.0-rc2+ #225 Not tainted [ 56.305374] ------------------------------------------------------ [ 56.305377] syz-executor152/4725 is trying to acquire lock: [ 56.305379] 00000000df993966 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 56.305387] [ 56.305389] but task is already holding lock: [ 56.305391] 000000000ba42447 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 56.305398] [ 56.305401] which lock already depends on the new lock. [ 56.305402] [ 56.305404] [ 56.305406] the existing dependency chain (in reverse order) is: [ 56.305408] [ 56.305409] -> #3 (report_lock){....}: [ 56.305417] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.305419] kasan_report+0x8e/0x110 [ 56.305421] __asan_report_load8_noabort+0x14/0x20 [ 56.305423] __schedule+0xf54/0x1df0 [ 56.305426] preempt_schedule_common+0x22/0x60 [ 56.305428] _cond_resched+0x1d/0x30 [ 56.305430] wait_for_completion+0xa5/0x8d0 [ 56.305433] __synchronize_srcu+0x189/0x240 [ 56.305435] synchronize_srcu+0x335/0x56f [ 56.305438] kvm_page_track_unregister_notifier+0x17d/0x250 [ 56.305440] kvm_mmu_uninit_vm+0x1c/0x20 [ 56.305442] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 56.305444] kvm_put_kvm+0x73f/0x1060 [ 56.305446] kvm_vm_release+0x42/0x50 [ 56.305448] __fput+0x38a/0xa40 [ 56.305450] ____fput+0x15/0x20 [ 56.305452] task_work_run+0x1e8/0x2a0 [ 56.305454] do_exit+0x1ae4/0x26e0 [ 56.305457] do_group_exit+0x177/0x440 [ 56.305459] __x64_sys_exit_group+0x3e/0x50 [ 56.305461] do_syscall_64+0x1b9/0x820 [ 56.305464] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.305465] [ 56.305466] -> #2 (&rq->lock){-.-.}: [ 56.305473] _raw_spin_lock+0x2a/0x40 [ 56.305476] task_fork_fair+0x93/0x680 [ 56.305478] sched_fork+0x44b/0xbd0 [ 56.305480] copy_process+0x235e/0x7af0 [ 56.305482] _do_fork+0x1ca/0x1170 [ 56.305484] kernel_thread+0x34/0x40 [ 56.305486] rest_init+0x22/0xe4 [ 56.305488] start_kernel+0x913/0x94e [ 56.305490] x86_64_start_reservations+0x29/0x2b [ 56.305493] x86_64_start_kernel+0x76/0x79 [ 56.305495] secondary_startup_64+0xa4/0xb0 [ 56.305496] [ 56.305497] -> #1 (&p->pi_lock){-.-.}: [ 56.305505] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.305507] try_to_wake_up+0xd2/0x1250 [ 56.305510] wake_up_process+0x10/0x20 [ 56.305512] __up.isra.1+0x1c0/0x2a0 [ 56.305513] up+0x13c/0x1c0 [ 56.305516] __up_console_sem+0xbe/0x1b0 [ 56.305518] console_unlock+0x506/0x10e0 [ 56.305520] vprintk_emit+0x33a/0x910 [ 56.305522] vprintk_default+0x28/0x30 [ 56.305537] vprintk_func+0x7a/0x117 [ 56.305539] printk+0xa7/0xcf [ 56.305541] load_umh+0x51/0xbd [ 56.305543] do_one_initcall+0x127/0x838 [ 56.305546] kernel_init_freeable+0x4bb/0x5ae [ 56.305548] kernel_init+0x11/0x1b3 [ 56.305550] ret_from_fork+0x3a/0x50 [ 56.305551] [ 56.305552] -> #0 ((console_sem).lock){-...}: [ 56.305559] lock_acquire+0x1e4/0x4f0 [ 56.305562] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.305564] down_trylock+0x13/0x70 [ 56.305566] __down_trylock_console_sem+0xae/0x200 [ 56.305568] console_trylock+0x15/0xa0 [ 56.305570] vprintk_emit+0x31f/0x910 [ 56.305572] vprintk_default+0x28/0x30 [ 56.305574] vprintk_func+0x7a/0x117 [ 56.305576] printk+0xa7/0xcf [ 56.305578] kasan_report+0x9e/0x110 [ 56.305580] __asan_report_load8_noabort+0x14/0x20 [ 56.305583] __schedule+0xf54/0x1df0 [ 56.305585] preempt_schedule_common+0x22/0x60 [ 56.305587] _cond_resched+0x1d/0x30 [ 56.305589] wait_for_completion+0xa5/0x8d0 [ 56.305591] __synchronize_srcu+0x189/0x240 [ 56.305594] synchronize_srcu+0x335/0x56f [ 56.305597] kvm_page_track_unregister_notifier+0x17d/0x250 [ 56.305599] kvm_mmu_uninit_vm+0x1c/0x20 [ 56.305601] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 56.305603] kvm_put_kvm+0x73f/0x1060 [ 56.305605] kvm_vm_release+0x42/0x50 [ 56.305607] __fput+0x38a/0xa40 [ 56.305622] ____fput+0x15/0x20 [ 56.305624] task_work_run+0x1e8/0x2a0 [ 56.305626] do_exit+0x1ae4/0x26e0 [ 56.305629] do_group_exit+0x177/0x440 [ 56.305642] __x64_sys_exit_group+0x3e/0x50 [ 56.305644] do_syscall_64+0x1b9/0x820 [ 56.305647] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.305648] [ 56.305650] other info that might help us debug this: [ 56.305651] [ 56.305664] Chain exists of: [ 56.305665] (console_sem).lock --> &rq->lock --> report_lock [ 56.305686] [ 56.305688] Possible unsafe locking scenario: [ 56.305689] [ 56.305691] CPU0 CPU1 [ 56.305693] ---- ---- [ 56.305694] lock(report_lock); [ 56.305699] lock(&rq->lock); [ 56.305703] lock(report_lock); [ 56.305707] lock((console_sem).lock); [ 56.305711] [ 56.305713] *** DEADLOCK *** [ 56.305714] [ 56.305716] 2 locks held by syz-executor152/4725: [ 56.305717] #0: 00000000cfda723b (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 56.305725] #1: 000000000ba42447 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 56.305733] [ 56.305735] stack backtrace: [ 56.305738] CPU: 0 PID: 4725 Comm: syz-executor152 Not tainted 4.19.0-rc2+ #225 [ 56.305741] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.305743] Call Trace: [ 56.305745] dump_stack+0x1c9/0x2b4 [ 56.305748] ? dump_stack_print_info.cold.2+0x52/0x52 [ 56.305751] ? vprintk_func+0x100/0x117 [ 56.305753] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 56.305755] ? save_trace+0xe0/0x290 [ 56.305757] __lock_acquire+0x3449/0x5020 [ 56.305759] ? mark_held_locks+0x160/0x160 [ 56.305761] ? mark_held_locks+0x160/0x160 [ 56.305763] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 56.305765] ? is_bpf_text_address+0xd7/0x170 [ 56.305767] ? kernel_text_address+0x79/0xf0 [ 56.305769] ? __kernel_text_address+0xd/0x40 [ 56.305771] ? __save_stack_trace+0x8d/0xf0 [ 56.305774] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 56.305776] ? save_trace+0x290/0x290 [ 56.305777] ? save_stack_trace+0x1a/0x20 [ 56.305779] ? save_trace+0xe0/0x290 [ 56.305781] ? graph_lock+0x170/0x170 [ 56.305784] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.305785] lock_acquire+0x1e4/0x4f0 [ 56.305787] ? down_trylock+0x13/0x70 [ 56.305789] ? lock_release+0x9f0/0x9f0 [ 56.305791] ? trace_hardirqs_off+0xb8/0x2c0 [ 56.305793] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.305796] ? trace_hardirqs_off+0xb8/0x2c0 [ 56.305797] ? log_store+0x34f/0x4c0 [ 56.305799] ? vprintk_emit+0x31f/0x910 [ 56.305801] _raw_spin_lock_irqsave+0x96/0xc0 [ 56.305803] ? down_trylock+0x13/0x70 [ 56.305805] down_trylock+0x13/0x70 [ 56.305808] __down_trylock_console_sem+0xae/0x200 [ 56.305809] console_trylock+0x15/0xa0 [ 56.305811] vprintk_emit+0x31f/0x910 [ 56.305813] ? wake_up_klogd+0x110/0x110 [ 56.305816] ? run_rebalance_domains+0x4c0/0x4c0 [ 56.305818] ? kasan_check_read+0x11/0x20 [ 56.305820] ? rcu_is_watching+0x8c/0x150 [ 56.305834] ? rcu_pm_notify+0xc0/0xc0 [ 56.305836] ? lock_acquire+0x1e4/0x4f0 [ 56.305838] ? kasan_report+0x8e/0x110 [ 56.305840] ? __schedule+0xf54/0x1df0 [ 56.305842] vprintk_default+0x28/0x30 [ 56.305844] vprintk_func+0x7a/0x117 [ 56.305846] printk+0xa7/0xcf [ 56.305848] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 56.305850] ? kasan_check_write+0x14/0x20 [ 56.305852] ? do_raw_spin_lock+0xc1/0x200 [ 56.305855] ? do_raw_spin_lock+0xc1/0x200 [ 56.305857] kasan_report+0x9e/0x110 [ 56.305859] __asan_report_load8_noabort+0x14/0x20 [ 56.305861] __schedule+0xf54/0x1df0 [ 56.305863] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 56.305866] ? __sched_text_start+0x8/0x8 [ 56.305868] ? __call_srcu+0x7e7/0x1040 [ 56.305870] ? check_same_owner+0x340/0x340 [ 56.305872] ? mark_held_locks+0x160/0x160 [ 56.305874] ? find_held_lock+0x36/0x1c0 [ 56.305876] preempt_schedule_common+0x22/0x60 [ 56.305878] _cond_resched+0x1d/0x30 [ 56.305880] wait_for_completion+0xa5/0x8d0 [ 56.305883] ? wait_for_completion_interruptible+0x950/0x950 [ 56.305885] ? __lockdep_init_map+0x105/0x590 [ 56.305887] ? __init_waitqueue_head+0x9e/0x150 [ 56.305890] ? init_wait_entry+0x1c0/0x1c0 [ 56.305892] __synchronize_srcu+0x189/0x240 [ 56.305893] ? call_srcu+0x10/0x10 [ 56.305896] ? rcu_unexpedite_gp+0x20/0x20 [ 56.305898] synchronize_srcu+0x335/0x56f [ 56.305900] ? lock_downgrade+0x8f0/0x8f0 [ 56.305902] ? synchronize_srcu_expedited+0x20/0x20 [ 56.305904] ? kasan_check_read+0x11/0x20 [ 56.305907] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 56.305909] ? kasan_check_write+0x14/0x20 [ 56.305911] ? do_raw_spin_lock+0xc1/0x200 [ 56.305913] kvm_page_track_unregister_notifier+0x17d/0x250 [ 56.305916] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 56.305918] ? kvfree+0x61/0x70 [ 56.305920] ? rcu_read_lock_sched_held+0x108/0x120 [ 56.305922] kvm_mmu_uninit_vm+0x1c/0x20 [ 56.305924] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 56.305926] ? kvm_arch_sync_events+0x30/0x30 [ 56.305929] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.305931] ? mmu_notifier_unregister+0x474/0x600 [ 56.305933] ? trace_hardirqs_on+0x2c0/0x2c0 [ 56.305935] ? kfree+0x111/0x210 [ 56.305937] ? __mmu_notifier_register+0x30/0x30 [ 56.305939] ? __free_pages+0x10a/0x190 [ 56.305941] ? free_unref_page+0x930/0x930 [ 56.305943] kvm_put_kvm+0x73f/0x1060 [ 56.305946] ? kvm_write_guest_cached+0x40/0x40 [ 56.305948] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.305950] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.305952] ? lockdep_hardirqs_on+0x421/0x5c0 [ 56.305954] ? kasan_check_write+0x14/0x20 [ 56.305956] ? do_raw_spin_lock+0xc1/0x200 [ 56.305958] ? kvm_irqfd_release+0xdd/0x120 [ 56.305960] ? kvm_irqfd_release+0xdd/0x120 [ 56.305962] ? kvm_put_kvm+0x1060/0x1060 [ 56.305964] kvm_vm_release+0x42/0x50 [ 56.305966] __fput+0x38a/0xa40 [ 56.305968] ? __alloc_file+0x400/0x400 [ 56.305970] ? check_same_owner+0x340/0x340 [ 56.305972] ? kasan_check_write+0x14/0x20 [ 56.305974] ? do_raw_spin_lock+0xc1/0x200 [ 56.305976] ____fput+0x15/0x20 [ 56.305978] task_work_run+0x1e8/0x2a0 [ 56.305980] ? task_work_cancel+0x240/0x240 [ 56.305983] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.305985] ? switch_task_namespaces+0xa2/0xd0 [ 56.305987] do_exit+0x1ae4/0x26e0 [ 56.305989] ? mm_update_next_owner+0x9a0/0x9a0 [ 56.305991] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 56.305993] ? rcu_read_lock_sched_held+0x108/0x120 [ 56.305995] ? kfree+0x1d7/0x210 [ 56.305997] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 56.306000] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 56.306002] ? _raw_spin_unlock_irq+0x27/0x70 [ 56.306003] ? [ 56.306007] Lost 62 message(s)! [ 57.402613] Shutting down cpus with NMI [ 58.462093] Dumping ftrace buffer: [ 58.465629] (ftrace buffer empty) [ 58.469319] Kernel Offset: disabled [ 58.472946] Rebooting in 86400 seconds..