[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.694646] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.870184] random: sshd: uninitialized urandom read (32 bytes read) [ 29.228474] random: sshd: uninitialized urandom read (32 bytes read) [ 29.773234] random: sshd: uninitialized urandom read (32 bytes read) [ 31.022471] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.22' (ECDSA) to the list of known hosts. [ 36.789333] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 36.889846] 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. [ 36.915693] ================================================================== [ 36.925700] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 36.931918] Read of size 8 at addr ffff8801d7c40058 by task syz-executor771/4711 [ 36.939538] [ 36.941259] CPU: 0 PID: 4711 Comm: syz-executor771 Not tainted 4.19.0-rc2+ #1 [ 36.948578] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.958030] Call Trace: [ 36.960613] dump_stack+0x1c9/0x2b4 [ 36.964226] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.969399] ? printk+0xa7/0xcf [ 36.972661] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.977399] ? __schedule+0xf54/0x1df0 [ 36.981275] print_address_description+0x6c/0x20b [ 36.986100] ? __schedule+0xf54/0x1df0 [ 36.990102] kasan_report.cold.7+0x242/0x30d [ 36.994498] __asan_report_load8_noabort+0x14/0x20 [ 36.999410] __schedule+0xf54/0x1df0 [ 37.003108] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.008193] ? __sched_text_start+0x8/0x8 [ 37.012328] ? __call_srcu+0x7e7/0x1040 [ 37.016289] ? check_same_owner+0x340/0x340 [ 37.020593] ? mark_held_locks+0x160/0x160 [ 37.024809] ? find_held_lock+0x36/0x1c0 [ 37.028853] preempt_schedule_common+0x22/0x60 [ 37.033415] _cond_resched+0x1d/0x30 [ 37.037116] wait_for_completion+0xa5/0x8d0 [ 37.041423] ? wait_for_completion_interruptible+0x950/0x950 [ 37.047203] ? __lockdep_init_map+0x105/0x590 [ 37.051686] ? __init_waitqueue_head+0x9e/0x150 [ 37.056336] ? init_wait_entry+0x1c0/0x1c0 [ 37.060559] __synchronize_srcu+0x189/0x240 [ 37.064866] ? call_srcu+0x10/0x10 [ 37.068391] ? rcu_unexpedite_gp+0x20/0x20 [ 37.072731] synchronize_srcu+0x335/0x56f [ 37.076947] ? lock_downgrade+0x8f0/0x8f0 [ 37.081095] ? synchronize_srcu_expedited+0x20/0x20 [ 37.086197] ? kasan_check_read+0x11/0x20 [ 37.090343] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.094906] ? kasan_check_write+0x14/0x20 [ 37.099129] ? do_raw_spin_lock+0xc1/0x200 [ 37.103368] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.109071] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.114506] ? kvfree+0x61/0x70 [ 37.117870] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.122879] kvm_mmu_uninit_vm+0x1c/0x20 [ 37.126931] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 37.131331] ? kvm_arch_sync_events+0x30/0x30 [ 37.135860] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.141390] ? mmu_notifier_unregister+0x474/0x600 [ 37.146303] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.150697] ? kfree+0x111/0x210 [ 37.154049] ? __mmu_notifier_register+0x30/0x30 [ 37.158969] ? __free_pages+0x10a/0x190 [ 37.163042] ? free_unref_page+0x930/0x930 [ 37.167282] kvm_put_kvm+0x73f/0x1060 [ 37.171078] ? kvm_write_guest_cached+0x40/0x40 [ 37.175736] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.180219] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.184702] ? lockdep_hardirqs_on+0x421/0x5c0 [ 37.189360] ? kasan_check_write+0x14/0x20 [ 37.193600] ? do_raw_spin_lock+0xc1/0x200 [ 37.197827] ? kvm_irqfd_release+0xdd/0x120 [ 37.202131] ? kvm_irqfd_release+0xdd/0x120 [ 37.206441] ? kvm_put_kvm+0x1060/0x1060 [ 37.210487] kvm_vm_release+0x42/0x50 [ 37.214270] __fput+0x38a/0xa40 [ 37.217530] ? __alloc_file+0x400/0x400 [ 37.221495] ? check_same_owner+0x340/0x340 [ 37.225803] ? kasan_check_write+0x14/0x20 [ 37.230021] ? do_raw_spin_lock+0xc1/0x200 [ 37.234236] ____fput+0x15/0x20 [ 37.237496] task_work_run+0x1e8/0x2a0 [ 37.241369] ? task_work_cancel+0x240/0x240 [ 37.245683] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 37.251204] ? switch_task_namespaces+0xa2/0xd0 [ 37.255859] do_exit+0x1ae4/0x26e0 [ 37.259430] ? mm_update_next_owner+0x9a0/0x9a0 [ 37.264091] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 37.268314] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.273316] ? kfree+0x1d7/0x210 [ 37.276673] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 37.280897] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.286599] ? is_bpf_text_address+0xd7/0x170 [ 37.291076] ? kernel_text_address+0x79/0xf0 [ 37.295467] ? __kernel_text_address+0xd/0x40 [ 37.299953] ? unwind_get_return_address+0x61/0xa0 [ 37.304868] ? __save_stack_trace+0x8d/0xf0 [ 37.309182] ? save_stack+0xa9/0xd0 [ 37.312797] ? save_stack+0x43/0xd0 [ 37.316406] ? __kasan_slab_free+0x11a/0x170 [ 37.320799] ? kasan_slab_free+0xe/0x10 [ 37.324758] ? putname+0xf2/0x130 [ 37.328196] ? __x64_sys_openat+0x9d/0x100 [ 37.332415] ? do_syscall_64+0x1b9/0x820 [ 37.336460] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.341806] ? trace_hardirqs_off+0xb8/0x2b0 [ 37.346198] ? kasan_check_read+0x11/0x20 [ 37.350343] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.354738] ? trace_hardirqs_on+0x2c0/0x2c0 [ 37.359130] ? initcall_blacklisted+0x9a/0x1e0 [ 37.363698] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 37.368794] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 37.374492] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.380070] ? do_vfs_ioctl+0x201/0x1720 [ 37.384122] ? rcu_is_watching+0x8c/0x150 [ 37.388254] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.392558] ? ioctl_preallocate+0x300/0x300 [ 37.396954] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.402475] ? __fget_light+0x2f7/0x440 [ 37.406433] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.412123] ? smack_file_ioctl+0x210/0x3c0 [ 37.416432] ? fget_raw+0x20/0x20 [ 37.419942] ? smack_file_lock+0x2e0/0x2e0 [ 37.424177] do_group_exit+0x177/0x440 [ 37.428055] ? trace_hardirqs_on+0xbd/0x2c0 [ 37.432392] ? __ia32_sys_exit+0x50/0x50 [ 37.436436] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.441526] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.447049] ? ksys_ioctl+0x81/0xd0 [ 37.450662] __x64_sys_exit_group+0x3e/0x50 [ 37.454970] do_syscall_64+0x1b9/0x820 [ 37.458841] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.464187] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.469098] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.473928] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 37.478940] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.483945] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.488958] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.493798] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.498981] RIP: 0033:0x43ecc8 [ 37.502165] Code: Bad RIP value. [ 37.505513] RSP: 002b:00007ffc71575338 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.513205] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 37.520561] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.527817] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.535068] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 37.542326] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 37.549581] [ 37.551188] Allocated by task 4711: [ 37.554803] save_stack+0x43/0xd0 [ 37.558237] kasan_kmalloc+0xc4/0xe0 [ 37.561938] kasan_slab_alloc+0x12/0x20 [ 37.565896] kmem_cache_alloc+0x12e/0x710 [ 37.570034] vmx_create_vcpu+0xcf/0x2830 [ 37.574082] kvm_arch_vcpu_create+0xe5/0x220 [ 37.578476] kvm_vm_ioctl+0x488/0x1d80 [ 37.582346] do_vfs_ioctl+0x1de/0x1720 [ 37.586215] ksys_ioctl+0xa9/0xd0 [ 37.589651] __x64_sys_ioctl+0x73/0xb0 [ 37.593526] do_syscall_64+0x1b9/0x820 [ 37.597469] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.602685] [ 37.604297] Freed by task 4711: [ 37.607632] save_stack+0x43/0xd0 [ 37.611081] __kasan_slab_free+0x11a/0x170 [ 37.615307] kasan_slab_free+0xe/0x10 [ 37.619091] kmem_cache_free+0x86/0x280 [ 37.623047] vmx_free_vcpu+0x26b/0x300 [ 37.626916] kvm_arch_destroy_vm+0x365/0x7c0 [ 37.631319] kvm_put_kvm+0x73f/0x1060 [ 37.635216] kvm_vm_release+0x42/0x50 [ 37.639130] __fput+0x38a/0xa40 [ 37.642395] ____fput+0x15/0x20 [ 37.645659] task_work_run+0x1e8/0x2a0 [ 37.649538] do_exit+0x1ae4/0x26e0 [ 37.653065] do_group_exit+0x177/0x440 [ 37.656943] __x64_sys_exit_group+0x3e/0x50 [ 37.661252] do_syscall_64+0x1b9/0x820 [ 37.665124] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.670296] [ 37.671908] The buggy address belongs to the object at ffff8801d7c40040 [ 37.671908] which belongs to the cache kvm_vcpu of size 23872 [ 37.684528] The buggy address is located 24 bytes inside of [ 37.684528] 23872-byte region [ffff8801d7c40040, ffff8801d7c45d80) [ 37.696477] The buggy address belongs to the page: [ 37.701473] page:ffffea00075f1000 count:1 mapcount:0 mapping:ffff8801d4661c00 index:0x0 compound_mapcount: 0 [ 37.711433] flags: 0x2fffc0000008100(slab|head) [ 37.716088] raw: 02fffc0000008100 ffff8801d4d00348 ffff8801d4d00348 ffff8801d4661c00 [ 37.723954] raw: 0000000000000000 ffff8801d7c40040 0000000100000001 0000000000000000 [ 37.731814] page dumped because: kasan: bad access detected [ 37.737504] [ 37.739112] Memory state around the buggy address: [ 37.744021] ffff8801d7c3ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.751364] ffff8801d7c3ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.758710] >ffff8801d7c40000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.766049] ^ [ 37.772266] ffff8801d7c40080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.779857] ffff8801d7c40100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.787193] ================================================================== [ 37.794528] Kernel panic - not syncing: panic_on_warn set ... [ 37.794528] [ 37.801874] CPU: 0 PID: 4711 Comm: syz-executor771 Tainted: G B 4.19.0-rc2+ #1 [ 37.810518] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.819854] Call Trace: [ 37.822481] dump_stack+0x1c9/0x2b4 [ 37.826100] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.831273] ? lock_downgrade+0x8f0/0x8f0 [ 37.835412] ? __schedule+0xf54/0x1df0 [ 37.839337] panic+0x238/0x4e7 [ 37.842518] ? add_taint.cold.5+0x16/0x16 [ 37.846657] ? print_shadow_for_address+0xba/0x116 [ 37.851579] ? trace_hardirqs_off+0xaf/0x2b0 [ 37.855972] ? trace_hardirqs_off+0x77/0x2b0 [ 37.860367] ? __schedule+0xf54/0x1df0 [ 37.864240] kasan_end_report+0x47/0x4f [ 37.868197] kasan_report.cold.7+0x76/0x30d [ 37.872503] __asan_report_load8_noabort+0x14/0x20 [ 37.877727] __schedule+0xf54/0x1df0 [ 37.881423] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 37.886557] ? __sched_text_start+0x8/0x8 [ 37.890704] ? __call_srcu+0x7e7/0x1040 [ 37.894666] ? check_same_owner+0x340/0x340 [ 37.898969] ? mark_held_locks+0x160/0x160 [ 37.903184] ? find_held_lock+0x36/0x1c0 [ 37.907228] preempt_schedule_common+0x22/0x60 [ 37.911795] _cond_resched+0x1d/0x30 [ 37.915544] wait_for_completion+0xa5/0x8d0 [ 37.919858] ? wait_for_completion_interruptible+0x950/0x950 [ 37.925639] ? __lockdep_init_map+0x105/0x590 [ 37.930196] ? __init_waitqueue_head+0x9e/0x150 [ 37.934868] ? init_wait_entry+0x1c0/0x1c0 [ 37.939106] __synchronize_srcu+0x189/0x240 [ 37.943427] ? call_srcu+0x10/0x10 [ 37.946968] ? rcu_unexpedite_gp+0x20/0x20 [ 37.951205] synchronize_srcu+0x335/0x56f [ 37.955358] ? lock_downgrade+0x8f0/0x8f0 [ 37.959505] ? synchronize_srcu_expedited+0x20/0x20 [ 37.964524] ? kasan_check_read+0x11/0x20 [ 37.968669] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 37.973249] ? kasan_check_write+0x14/0x20 [ 37.977480] ? do_raw_spin_lock+0xc1/0x200 [ 37.981718] kvm_page_track_unregister_notifier+0x17d/0x250 [ 37.987427] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 37.992875] ? kvfree+0x61/0x70 [ 37.996153] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.001171] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.005229] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.009637] ? kvm_arch_sync_events+0x30/0x30 [ 38.014138] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.019675] ? mmu_notifier_unregister+0x474/0x600 [ 38.024603] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.029007] ? kfree+0x111/0x210 [ 38.032379] ? __mmu_notifier_register+0x30/0x30 [ 38.037134] ? __free_pages+0x10a/0x190 [ 38.041108] ? free_unref_page+0x930/0x930 [ 38.045352] kvm_put_kvm+0x73f/0x1060 [ 38.049159] ? kvm_write_guest_cached+0x40/0x40 [ 38.053840] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.058331] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.062837] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.067437] ? kasan_check_write+0x14/0x20 [ 38.071671] ? do_raw_spin_lock+0xc1/0x200 [ 38.075910] ? kvm_irqfd_release+0xdd/0x120 [ 38.080247] ? kvm_irqfd_release+0xdd/0x120 [ 38.084570] ? kvm_put_kvm+0x1060/0x1060 [ 38.088627] kvm_vm_release+0x42/0x50 [ 38.092445] __fput+0x38a/0xa40 [ 38.095740] ? __alloc_file+0x400/0x400 [ 38.099726] ? check_same_owner+0x340/0x340 [ 38.104053] ? kasan_check_write+0x14/0x20 [ 38.108296] ? do_raw_spin_lock+0xc1/0x200 [ 38.112538] ____fput+0x15/0x20 [ 38.115834] task_work_run+0x1e8/0x2a0 [ 38.119730] ? task_work_cancel+0x240/0x240 [ 38.124070] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.129614] ? switch_task_namespaces+0xa2/0xd0 [ 38.134296] do_exit+0x1ae4/0x26e0 [ 38.137853] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.142537] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.146785] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.151817] ? kfree+0x1d7/0x210 [ 38.155190] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.159435] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.165156] ? is_bpf_text_address+0xd7/0x170 [ 38.169656] ? kernel_text_address+0x79/0xf0 [ 38.174063] ? __kernel_text_address+0xd/0x40 [ 38.178563] ? unwind_get_return_address+0x61/0xa0 [ 38.183495] ? __save_stack_trace+0x8d/0xf0 [ 38.187830] ? save_stack+0xa9/0xd0 [ 38.191458] ? save_stack+0x43/0xd0 [ 38.195081] ? __kasan_slab_free+0x11a/0x170 [ 38.199489] ? kasan_slab_free+0xe/0x10 [ 38.203460] ? putname+0xf2/0x130 [ 38.206915] ? __x64_sys_openat+0x9d/0x100 [ 38.211162] ? do_syscall_64+0x1b9/0x820 [ 38.215231] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.220614] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.225057] ? kasan_check_read+0x11/0x20 [ 38.229212] ? do_raw_spin_unlock+0xa7/0x2f0 [ 38.233624] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.238041] ? initcall_blacklisted+0x9a/0x1e0 [ 38.242632] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 38.247755] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.253471] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.259010] ? do_vfs_ioctl+0x201/0x1720 [ 38.263073] ? rcu_is_watching+0x8c/0x150 [ 38.267221] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.271547] ? ioctl_preallocate+0x300/0x300 [ 38.275970] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.281514] ? __fget_light+0x2f7/0x440 [ 38.285493] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.291029] ? smack_file_ioctl+0x210/0x3c0 [ 38.295352] ? fget_raw+0x20/0x20 [ 38.298803] ? smack_file_lock+0x2e0/0x2e0 [ 38.303051] do_group_exit+0x177/0x440 [ 38.306949] ? trace_hardirqs_on+0xbd/0x2c0 [ 38.311268] ? __ia32_sys_exit+0x50/0x50 [ 38.315329] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.320457] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.326016] ? ksys_ioctl+0x81/0xd0 [ 38.329652] __x64_sys_exit_group+0x3e/0x50 [ 38.334002] do_syscall_64+0x1b9/0x820 [ 38.337906] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.343304] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.348235] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.353085] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 38.358105] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.363125] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.368143] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.372997] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.378189] RIP: 0033:0x43ecc8 [ 38.381388] Code: Bad RIP value. [ 38.384748] RSP: 002b:00007ffc71575338 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 38.392455] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 38.399728] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 38.406998] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 38.414263] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 38.421558] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 38.428844] [ 38.428850] ====================================================== [ 38.428855] WARNING: possible circular locking dependency detected [ 38.428859] 4.19.0-rc2+ #1 Not tainted [ 38.428864] ------------------------------------------------------ [ 38.428869] syz-executor771/4711 is trying to acquire lock: [ 38.428872] 0000000008074e0d ((console_sem).lock){-.-.}, at: down_trylock+0x13/0x70 [ 38.428887] [ 38.428890] but task is already holding lock: [ 38.428894] 000000009ed090f9 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.428907] [ 38.428912] which lock already depends on the new lock. [ 38.428914] [ 38.428916] [ 38.428930] the existing dependency chain (in reverse order) is: [ 38.428933] [ 38.428935] -> #3 (report_lock){....}: [ 38.428949] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.428953] kasan_report+0x8e/0x110 [ 38.428957] __asan_report_load8_noabort+0x14/0x20 [ 38.428961] __schedule+0xf54/0x1df0 [ 38.428965] preempt_schedule_common+0x22/0x60 [ 38.428969] _cond_resched+0x1d/0x30 [ 38.428973] wait_for_completion+0xa5/0x8d0 [ 38.428977] __synchronize_srcu+0x189/0x240 [ 38.428981] synchronize_srcu+0x335/0x56f [ 38.428986] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.428990] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.428994] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.428997] kvm_put_kvm+0x73f/0x1060 [ 38.429001] kvm_vm_release+0x42/0x50 [ 38.429005] __fput+0x38a/0xa40 [ 38.429008] ____fput+0x15/0x20 [ 38.429012] task_work_run+0x1e8/0x2a0 [ 38.429015] do_exit+0x1ae4/0x26e0 [ 38.429019] do_group_exit+0x177/0x440 [ 38.429023] __x64_sys_exit_group+0x3e/0x50 [ 38.429027] do_syscall_64+0x1b9/0x820 [ 38.429031] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.429033] [ 38.429036] -> #2 (&rq->lock){-.-.}: [ 38.429049] _raw_spin_lock+0x2a/0x40 [ 38.429053] task_fork_fair+0x93/0x680 [ 38.429056] sched_fork+0x44b/0xbd0 [ 38.429060] copy_process+0x235e/0x7af0 [ 38.429064] _do_fork+0x1ca/0x1170 [ 38.429067] kernel_thread+0x34/0x40 [ 38.429071] rest_init+0x22/0xe4 [ 38.429074] start_kernel+0x913/0x94e [ 38.429078] x86_64_start_reservations+0x29/0x2b [ 38.429082] x86_64_start_kernel+0x76/0x79 [ 38.429086] secondary_startup_64+0xa4/0xb0 [ 38.429088] [ 38.429117] -> #1 (&p->pi_lock){-.-.}: [ 38.429134] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.429138] try_to_wake_up+0xd2/0x1250 [ 38.429142] wake_up_process+0x10/0x20 [ 38.429145] __up.isra.1+0x1c0/0x2a0 [ 38.429148] up+0x13c/0x1c0 [ 38.429152] __up_console_sem+0xbe/0x1b0 [ 38.429156] console_unlock+0x506/0x10d0 [ 38.429160] vprintk_emit+0x33a/0x910 [ 38.429163] vprintk_default+0x28/0x30 [ 38.429167] vprintk_func+0x7a/0x117 [ 38.429170] printk+0xa7/0xcf [ 38.429174] load_umh+0x51/0xbd [ 38.429177] do_one_initcall+0x127/0x838 [ 38.429182] kernel_init_freeable+0x4bb/0x5ae [ 38.429185] kernel_init+0x11/0x1b3 [ 38.429189] ret_from_fork+0x3a/0x50 [ 38.429191] [ 38.429193] -> #0 ((console_sem).lock){-.-.}: [ 38.429207] lock_acquire+0x1e4/0x4f0 [ 38.429211] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.429215] down_trylock+0x13/0x70 [ 38.429219] __down_trylock_console_sem+0xae/0x200 [ 38.429223] console_trylock+0x15/0xa0 [ 38.429226] vprintk_emit+0x31f/0x910 [ 38.429230] vprintk_default+0x28/0x30 [ 38.429234] vprintk_func+0x7a/0x117 [ 38.429237] printk+0xa7/0xcf [ 38.429241] kasan_report+0x9e/0x110 [ 38.429245] __asan_report_load8_noabort+0x14/0x20 [ 38.429249] __schedule+0xf54/0x1df0 [ 38.429253] preempt_schedule_common+0x22/0x60 [ 38.429257] _cond_resched+0x1d/0x30 [ 38.429261] wait_for_completion+0xa5/0x8d0 [ 38.429265] __synchronize_srcu+0x189/0x240 [ 38.429269] synchronize_srcu+0x335/0x56f [ 38.429273] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.429282] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.429286] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.429289] kvm_put_kvm+0x73f/0x1060 [ 38.429293] kvm_vm_release+0x42/0x50 [ 38.429297] __fput+0x38a/0xa40 [ 38.429300] ____fput+0x15/0x20 [ 38.429304] task_work_run+0x1e8/0x2a0 [ 38.429307] do_exit+0x1ae4/0x26e0 [ 38.429311] do_group_exit+0x177/0x440 [ 38.429315] __x64_sys_exit_group+0x3e/0x50 [ 38.429319] do_syscall_64+0x1b9/0x820 [ 38.429324] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.429326] [ 38.429330] other info that might help us debug this: [ 38.429333] [ 38.429336] Chain exists of: [ 38.429338] (console_sem).lock --> &rq->lock --> report_lock [ 38.429355] [ 38.429359] Possible unsafe locking scenario: [ 38.429361] [ 38.429365] CPU0 CPU1 [ 38.429369] ---- ---- [ 38.429371] lock(report_lock); [ 38.429380] lock(&rq->lock); [ 38.429389] lock(report_lock); [ 38.429397] lock((console_sem).lock); [ 38.429405] [ 38.429408] *** DEADLOCK *** [ 38.429410] [ 38.429414] 2 locks held by syz-executor771/4711: [ 38.429416] #0: 000000004f19ebcb (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 38.429432] #1: 000000009ed090f9 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 38.429449] [ 38.429452] stack backtrace: [ 38.429457] CPU: 0 PID: 4711 Comm: syz-executor771 Not tainted 4.19.0-rc2+ #1 [ 38.429464] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.429467] Call Trace: [ 38.429470] dump_stack+0x1c9/0x2b4 [ 38.429475] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.429479] ? vprintk_func+0x100/0x117 [ 38.429483] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 38.429487] ? save_trace+0xe0/0x290 [ 38.429491] __lock_acquire+0x3449/0x5020 [ 38.429495] ? mark_held_locks+0x160/0x160 [ 38.429499] ? mark_held_locks+0x160/0x160 [ 38.429503] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 38.429507] ? is_bpf_text_address+0xd7/0x170 [ 38.429511] ? kernel_text_address+0x79/0xf0 [ 38.429515] ? __kernel_text_address+0xd/0x40 [ 38.429519] ? __save_stack_trace+0x8d/0xf0 [ 38.429523] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 38.429527] ? save_trace+0x290/0x290 [ 38.429531] ? save_stack_trace+0x1a/0x20 [ 38.429534] ? save_trace+0xe0/0x290 [ 38.429538] ? graph_lock+0x170/0x170 [ 38.429542] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.429546] lock_acquire+0x1e4/0x4f0 [ 38.429550] ? down_trylock+0x13/0x70 [ 38.429554] ? lock_release+0x9f0/0x9f0 [ 38.429558] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.429561] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.429565] ? trace_hardirqs_off+0xb8/0x2b0 [ 38.429569] ? log_store+0x34f/0x4c0 [ 38.429573] ? vprintk_emit+0x31f/0x910 [ 38.429577] _raw_spin_lock_irqsave+0x96/0xc0 [ 38.429580] ? down_trylock+0x13/0x70 [ 38.429584] down_trylock+0x13/0x70 [ 38.429588] __down_trylock_console_sem+0xae/0x200 [ 38.429592] console_trylock+0x15/0xa0 [ 38.429595] vprintk_emit+0x31f/0x910 [ 38.429599] ? wake_up_klogd+0x110/0x110 [ 38.429603] ? run_rebalance_domains+0x4c0/0x4c0 [ 38.429607] ? kasan_check_read+0x11/0x20 [ 38.429611] ? rcu_is_watching+0x8c/0x150 [ 38.429615] ? rcu_pm_notify+0xc0/0xc0 [ 38.429618] ? lock_acquire+0x1e4/0x4f0 [ 38.429622] ? kasan_report+0x8e/0x110 [ 38.429626] ? __schedule+0xf54/0x1df0 [ 38.429629] vprintk_default+0x28/0x30 [ 38.429633] vprintk_func+0x7a/0x117 [ 38.429636] printk+0xa7/0xcf [ 38.429641] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.429644] ? kasan_check_write+0x14/0x20 [ 38.429648] ? do_raw_spin_lock+0xc1/0x200 [ 38.429652] ? do_raw_spin_lock+0xc1/0x200 [ 38.429656] kasan_report+0x9e/0x110 [ 38.429660] __asan_report_load8_noabort+0x14/0x20 [ 38.429664] __schedule+0xf54/0x1df0 [ 38.429668] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 38.429672] ? __sched_text_start+0x8/0x8 [ 38.429676] ? __call_srcu+0x7e7/0x1040 [ 38.429679] ? check_same_owner+0x340/0x340 [ 38.429683] ? mark_held_locks+0x160/0x160 [ 38.429687] ? find_held_lock+0x36/0x1c0 [ 38.429691] preempt_schedule_common+0x22/0x60 [ 38.429695] _cond_resched+0x1d/0x30 [ 38.429699] wait_for_completion+0xa5/0x8d0 [ 38.429704] ? wait_for_completion_interruptible+0x950/0x950 [ 38.429708] ? __lockdep_init_map+0x105/0x590 [ 38.429712] ? __init_waitqueue_head+0x9e/0x150 [ 38.429716] ? init_wait_entry+0x1c0/0x1c0 [ 38.429720] __synchronize_srcu+0x189/0x240 [ 38.429723] ? call_srcu+0x10/0x10 [ 38.429727] ? rcu_unexpedite_gp+0x20/0x20 [ 38.429731] synchronize_srcu+0x335/0x56f [ 38.429735] ? lock_downgrade+0x8f0/0x8f0 [ 38.429739] ? synchronize_srcu_expedited+0x20/0x20 [ 38.429743] ? kasan_check_read+0x11/0x20 [ 38.429747] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 38.429751] ? kasan_check_write+0x14/0x20 [ 38.429755] ? do_raw_spin_lock+0xc1/0x200 [ 38.429760] kvm_page_track_unregister_notifier+0x17d/0x250 [ 38.429764] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 38.429768] ? kvfree+0x61/0x70 [ 38.429772] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.429776] kvm_mmu_uninit_vm+0x1c/0x20 [ 38.429780] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 38.429784] ? kvm_arch_sync_events+0x30/0x30 [ 38.429789] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.429793] ? mmu_notifier_unregister+0x474/0x600 [ 38.429797] ? trace_hardirqs_on+0x2c0/0x2c0 [ 38.429800] ? kfree+0x111/0x210 [ 38.429804] ? __mmu_notifier_register+0x30/0x30 [ 38.429814] ? __free_pages+0x10a/0x190 [ 38.429818] ? free_unref_page+0x930/0x930 [ 38.429822] kvm_put_kvm+0x73f/0x1060 [ 38.429826] ? kvm_write_guest_cached+0x40/0x40 [ 38.429830] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.429834] ? _raw_spin_unlock_irq+0x27/0x70 [ 38.429838] ? lockdep_hardirqs_on+0x421/0x5c0 [ 38.429842] ? kasan_check_write+0x14/0x20 [ 38.429846] ? do_raw_spin_lock+0xc1/0x200 [ 38.429850] ? kvm_irqfd_release+0xdd/0x120 [ 38.429854] ? kvm_irqfd_release+0xdd/0x120 [ 38.429857] ? kvm_put_kvm+0x1060/0x1060 [ 38.429861] kvm_vm_release+0x42/0x50 [ 38.429864] __fput+0x38a/0xa40 [ 38.429868] ? __alloc_file+0x400/0x400 [ 38.429872] ? check_same_owner+0x340/0x340 [ 38.429876] ? kasan_check_write+0x14/0x20 [ 38.429880] ? do_raw_spin_lock+0xc1/0x200 [ 38.429883] ____fput+0x15/0x20 [ 38.429887] task_work_run+0x1e8/0x2a0 [ 38.429891] ? task_work_cancel+0x240/0x240 [ 38.429896] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 38.429900] ? switch_task_namespaces+0xa2/0xd0 [ 38.429903] do_exit+0x1ae4/0x26e0 [ 38.429907] ? mm_update_next_owner+0x9a0/0x9a0 [ 38.429911] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 38.429916] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.429928] ? kfree+0x1d7/0x210 [ 38.429933] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 38.429937] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 38.429941] ? is_bpf_text_address+0xd7/0x170 [ 38.429944] ? ker [ 38.429956] Lost 54 message(s)! [ 39.530176] Shutting down cpus with NMI [ 40.589262] Dumping ftrace buffer: [ 40.592790] (ftrace buffer empty) [ 40.596476] Kernel Offset: disabled [ 40.600085] Rebooting in 86400 seconds..