[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.306222] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.165076] random: sshd: uninitialized urandom read (32 bytes read) [ 25.562698] random: sshd: uninitialized urandom read (32 bytes read) [ 26.080867] random: sshd: uninitialized urandom read (32 bytes read) [ 26.258177] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.1' (ECDSA) to the list of known hosts. [ 31.794313] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 31.905338] 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. [ 31.930238] ================================================================== [ 31.940106] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 31.946333] Read of size 8 at addr ffff8801b8c50058 by task syz-executor649/4656 [ 31.953852] [ 31.955490] CPU: 1 PID: 4656 Comm: syz-executor649 Not tainted 4.19.0-rc2+ #220 [ 31.962923] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.972268] Call Trace: [ 31.974862] dump_stack+0x1c9/0x2b4 [ 31.978493] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.983683] ? printk+0xa7/0xcf [ 31.986971] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 31.991730] ? __schedule+0xf54/0x1df0 [ 31.995620] print_address_description+0x6c/0x20b [ 32.000474] ? __schedule+0xf54/0x1df0 [ 32.004362] kasan_report.cold.7+0x242/0x30d [ 32.008772] __asan_report_load8_noabort+0x14/0x20 [ 32.013705] __schedule+0xf54/0x1df0 [ 32.017420] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.022531] ? __sched_text_start+0x8/0x8 [ 32.026679] ? __call_srcu+0x7e7/0x1040 [ 32.030660] ? check_same_owner+0x340/0x340 [ 32.034983] ? mark_held_locks+0x160/0x160 [ 32.039213] ? find_held_lock+0x36/0x1c0 [ 32.043278] preempt_schedule_common+0x22/0x60 [ 32.047857] _cond_resched+0x1d/0x30 [ 32.051568] wait_for_completion+0xa5/0x8d0 [ 32.055891] ? wait_for_completion_interruptible+0x950/0x950 [ 32.061687] ? __lockdep_init_map+0x105/0x590 [ 32.066184] ? __init_waitqueue_head+0x9e/0x150 [ 32.070851] ? init_wait_entry+0x1c0/0x1c0 [ 32.075087] __synchronize_srcu+0x189/0x240 [ 32.079403] ? call_srcu+0x10/0x10 [ 32.082942] ? rcu_unexpedite_gp+0x20/0x20 [ 32.087185] synchronize_srcu+0x335/0x56f [ 32.091327] ? lock_downgrade+0x8f0/0x8f0 [ 32.095479] ? synchronize_srcu_expedited+0x20/0x20 [ 32.100495] ? kasan_check_read+0x11/0x20 [ 32.104646] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.109229] ? kasan_check_write+0x14/0x20 [ 32.113467] ? do_raw_spin_lock+0xc1/0x200 [ 32.117704] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.123416] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.128862] ? kvfree+0x61/0x70 [ 32.132141] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.137158] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.141217] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.145622] ? kvm_arch_sync_events+0x30/0x30 [ 32.150119] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.155656] ? mmu_notifier_unregister+0x474/0x600 [ 32.160582] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.164993] ? kfree+0x111/0x210 [ 32.168361] ? __mmu_notifier_register+0x30/0x30 [ 32.173120] ? __free_pages+0x10a/0x190 [ 32.177094] ? free_unref_page+0x930/0x930 [ 32.181332] kvm_put_kvm+0x73f/0x1060 [ 32.185138] ? kvm_write_guest_cached+0x40/0x40 [ 32.189808] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.194300] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.198790] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.203376] ? kasan_check_write+0x14/0x20 [ 32.207610] ? do_raw_spin_lock+0xc1/0x200 [ 32.211848] ? kvm_irqfd_release+0xdd/0x120 [ 32.216166] ? kvm_irqfd_release+0xdd/0x120 [ 32.220492] ? kvm_put_kvm+0x1060/0x1060 [ 32.224553] kvm_vm_release+0x42/0x50 [ 32.228351] __fput+0x38a/0xa40 [ 32.231630] ? __alloc_file+0x400/0x400 [ 32.235611] ? check_same_owner+0x340/0x340 [ 32.239933] ? kasan_check_write+0x14/0x20 [ 32.244167] ? do_raw_spin_lock+0xc1/0x200 [ 32.248397] ____fput+0x15/0x20 [ 32.251674] task_work_run+0x1e8/0x2a0 [ 32.255558] ? task_work_cancel+0x240/0x240 [ 32.259885] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.265418] ? switch_task_namespaces+0xa2/0xd0 [ 32.270084] do_exit+0x1ae4/0x26e0 [ 32.273624] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.278294] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.282528] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.287540] ? kfree+0x1d7/0x210 [ 32.290908] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.295147] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.300860] ? is_bpf_text_address+0xd7/0x170 [ 32.305352] ? kernel_text_address+0x79/0xf0 [ 32.309759] ? __kernel_text_address+0xd/0x40 [ 32.314253] ? unwind_get_return_address+0x61/0xa0 [ 32.319184] ? __save_stack_trace+0x8d/0xf0 [ 32.323510] ? save_stack+0xa9/0xd0 [ 32.327135] ? save_stack+0x43/0xd0 [ 32.330758] ? __kasan_slab_free+0x11a/0x170 [ 32.335160] ? kasan_slab_free+0xe/0x10 [ 32.339129] ? putname+0xf2/0x130 [ 32.342580] ? __x64_sys_openat+0x9d/0x100 [ 32.346837] ? do_syscall_64+0x1b9/0x820 [ 32.350896] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.356261] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.360681] ? kasan_check_read+0x11/0x20 [ 32.364828] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.369232] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.373642] ? initcall_blacklisted+0x9a/0x1e0 [ 32.378226] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.383328] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.389038] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.394574] ? do_vfs_ioctl+0x201/0x1720 [ 32.398632] ? rcu_is_watching+0x8c/0x150 [ 32.402773] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.407094] ? ioctl_preallocate+0x300/0x300 [ 32.411502] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.417037] ? __fget_light+0x2f7/0x440 [ 32.421008] ? fget_raw+0x20/0x20 [ 32.424469] ? putname+0xf2/0x130 [ 32.427928] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.432941] ? kmem_cache_free+0x246/0x280 [ 32.437176] ? putname+0xf7/0x130 [ 32.440632] do_group_exit+0x177/0x440 [ 32.444515] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.448835] ? __ia32_sys_exit+0x50/0x50 [ 32.452893] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.458001] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.463533] ? ksys_ioctl+0x81/0xd0 [ 32.467156] __x64_sys_exit_group+0x3e/0x50 [ 32.471487] do_syscall_64+0x1b9/0x820 [ 32.475373] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.480734] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.485658] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.490500] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.495515] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.500531] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.505549] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.510393] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.515575] RIP: 0033:0x43f028 [ 32.518766] Code: Bad RIP value. [ 32.522126] RSP: 002b:00007fff031ee048 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.529831] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 32.537096] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.544358] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.551622] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.558886] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 32.566155] [ 32.567779] Allocated by task 4656: [ 32.571404] save_stack+0x43/0xd0 [ 32.574850] kasan_kmalloc+0xc4/0xe0 [ 32.578557] kasan_slab_alloc+0x12/0x20 [ 32.582525] kmem_cache_alloc+0x12e/0x710 [ 32.586670] vmx_create_vcpu+0xcf/0x2830 [ 32.590725] kvm_arch_vcpu_create+0xe5/0x220 [ 32.595132] kvm_vm_ioctl+0x488/0x1d80 [ 32.599290] do_vfs_ioctl+0x1de/0x1720 [ 32.603165] ksys_ioctl+0xa9/0xd0 [ 32.606613] __x64_sys_ioctl+0x73/0xb0 [ 32.610498] do_syscall_64+0x1b9/0x820 [ 32.614381] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.619556] [ 32.621173] Freed by task 4656: [ 32.624458] save_stack+0x43/0xd0 [ 32.627908] __kasan_slab_free+0x11a/0x170 [ 32.632136] kasan_slab_free+0xe/0x10 [ 32.635929] kmem_cache_free+0x86/0x280 [ 32.639902] vmx_free_vcpu+0x26b/0x300 [ 32.643783] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.648187] kvm_put_kvm+0x73f/0x1060 [ 32.651987] kvm_vm_release+0x42/0x50 [ 32.655783] __fput+0x38a/0xa40 [ 32.659054] ____fput+0x15/0x20 [ 32.662327] task_work_run+0x1e8/0x2a0 [ 32.666255] do_exit+0x1ae4/0x26e0 [ 32.669791] do_group_exit+0x177/0x440 [ 32.673671] __x64_sys_exit_group+0x3e/0x50 [ 32.677993] do_syscall_64+0x1b9/0x820 [ 32.681876] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.687064] [ 32.688691] The buggy address belongs to the object at ffff8801b8c50040 [ 32.688691] which belongs to the cache kvm_vcpu of size 23872 [ 32.701259] The buggy address is located 24 bytes inside of [ 32.701259] 23872-byte region [ffff8801b8c50040, ffff8801b8c55d80) [ 32.713211] The buggy address belongs to the page: [ 32.718182] page:ffffea0006e31400 count:1 mapcount:0 mapping:ffff8801d523c9c0 index:0x0 compound_mapcount: 0 [ 32.728149] flags: 0x2fffc0000008100(slab|head) [ 32.733167] raw: 02fffc0000008100 ffff8801d523d948 ffff8801d523d948 ffff8801d523c9c0 [ 32.741047] raw: 0000000000000000 ffff8801b8c50040 0000000100000001 0000000000000000 [ 32.748916] page dumped because: kasan: bad access detected [ 32.754611] [ 32.756228] Memory state around the buggy address: [ 32.761149] ffff8801b8c4ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.768501] ffff8801b8c4ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.775854] >ffff8801b8c50000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.783201] ^ [ 32.789424] ffff8801b8c50080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.796782] ffff8801b8c50100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.804127] ================================================================== [ 32.811479] Kernel panic - not syncing: panic_on_warn set ... [ 32.811479] [ 32.818847] CPU: 1 PID: 4656 Comm: syz-executor649 Tainted: G B 4.19.0-rc2+ #220 [ 32.827671] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.837015] Call Trace: [ 32.839625] dump_stack+0x1c9/0x2b4 [ 32.843250] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.848439] ? lock_downgrade+0x8f0/0x8f0 [ 32.852596] ? __schedule+0xf54/0x1df0 [ 32.856488] panic+0x238/0x4e7 [ 32.859675] ? add_taint.cold.5+0x16/0x16 [ 32.863825] ? print_shadow_for_address+0xba/0x116 [ 32.868747] ? trace_hardirqs_off+0xaf/0x2b0 [ 32.873150] ? trace_hardirqs_off+0x77/0x2b0 [ 32.877558] ? __schedule+0xf54/0x1df0 [ 32.881440] kasan_end_report+0x47/0x4f [ 32.885417] kasan_report.cold.7+0x76/0x30d [ 32.889737] __asan_report_load8_noabort+0x14/0x20 [ 32.894662] __schedule+0xf54/0x1df0 [ 32.898370] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.903480] ? __sched_text_start+0x8/0x8 [ 32.907629] ? __call_srcu+0x7e7/0x1040 [ 32.911609] ? check_same_owner+0x340/0x340 [ 32.915927] ? mark_held_locks+0x160/0x160 [ 32.920158] ? find_held_lock+0x36/0x1c0 [ 32.924218] preempt_schedule_common+0x22/0x60 [ 32.928797] _cond_resched+0x1d/0x30 [ 32.932514] wait_for_completion+0xa5/0x8d0 [ 32.936834] ? wait_for_completion_interruptible+0x950/0x950 [ 32.942630] ? __lockdep_init_map+0x105/0x590 [ 32.947126] ? __init_waitqueue_head+0x9e/0x150 [ 32.951790] ? init_wait_entry+0x1c0/0x1c0 [ 32.956026] __synchronize_srcu+0x189/0x240 [ 32.960343] ? call_srcu+0x10/0x10 [ 32.963882] ? rcu_unexpedite_gp+0x20/0x20 [ 32.968118] synchronize_srcu+0x335/0x56f [ 32.972266] ? lock_downgrade+0x8f0/0x8f0 [ 32.976410] ? synchronize_srcu_expedited+0x20/0x20 [ 32.981426] ? kasan_check_read+0x11/0x20 [ 32.985578] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.990156] ? kasan_check_write+0x14/0x20 [ 32.994385] ? do_raw_spin_lock+0xc1/0x200 [ 32.998623] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.004332] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.009783] ? kvfree+0x61/0x70 [ 33.013065] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.018083] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.022142] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.026550] ? kvm_arch_sync_events+0x30/0x30 [ 33.031047] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.036587] ? mmu_notifier_unregister+0x474/0x600 [ 33.041510] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.045912] ? kfree+0x111/0x210 [ 33.049277] ? __mmu_notifier_register+0x30/0x30 [ 33.054034] ? __free_pages+0x10a/0x190 [ 33.058007] ? free_unref_page+0x930/0x930 [ 33.062262] kvm_put_kvm+0x73f/0x1060 [ 33.066067] ? kvm_write_guest_cached+0x40/0x40 [ 33.070746] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.075235] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.079729] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.084315] ? kasan_check_write+0x14/0x20 [ 33.088545] ? do_raw_spin_lock+0xc1/0x200 [ 33.092779] ? kvm_irqfd_release+0xdd/0x120 [ 33.097094] ? kvm_irqfd_release+0xdd/0x120 [ 33.101502] ? kvm_put_kvm+0x1060/0x1060 [ 33.105563] kvm_vm_release+0x42/0x50 [ 33.109361] __fput+0x38a/0xa40 [ 33.112639] ? __alloc_file+0x400/0x400 [ 33.116617] ? check_same_owner+0x340/0x340 [ 33.120934] ? kasan_check_write+0x14/0x20 [ 33.125170] ? do_raw_spin_lock+0xc1/0x200 [ 33.129404] ____fput+0x15/0x20 [ 33.132682] task_work_run+0x1e8/0x2a0 [ 33.136566] ? task_work_cancel+0x240/0x240 [ 33.140895] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.146436] ? switch_task_namespaces+0xa2/0xd0 [ 33.151114] do_exit+0x1ae4/0x26e0 [ 33.154657] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.159326] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.163566] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.168576] ? kfree+0x1d7/0x210 [ 33.171943] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.176180] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.181915] ? is_bpf_text_address+0xd7/0x170 [ 33.186408] ? kernel_text_address+0x79/0xf0 [ 33.190811] ? __kernel_text_address+0xd/0x40 [ 33.195306] ? unwind_get_return_address+0x61/0xa0 [ 33.200248] ? __save_stack_trace+0x8d/0xf0 [ 33.204571] ? save_stack+0xa9/0xd0 [ 33.208193] ? save_stack+0x43/0xd0 [ 33.211813] ? __kasan_slab_free+0x11a/0x170 [ 33.216214] ? kasan_slab_free+0xe/0x10 [ 33.220187] ? putname+0xf2/0x130 [ 33.223638] ? __x64_sys_openat+0x9d/0x100 [ 33.227874] ? do_syscall_64+0x1b9/0x820 [ 33.231933] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.237296] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.241698] ? kasan_check_read+0x11/0x20 [ 33.245842] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.250279] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.254687] ? initcall_blacklisted+0x9a/0x1e0 [ 33.259267] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.264373] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.270083] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.275616] ? do_vfs_ioctl+0x201/0x1720 [ 33.279672] ? rcu_is_watching+0x8c/0x150 [ 33.283814] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.288136] ? ioctl_preallocate+0x300/0x300 [ 33.292541] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.298078] ? __fget_light+0x2f7/0x440 [ 33.302048] ? fget_raw+0x20/0x20 [ 33.305498] ? putname+0xf2/0x130 [ 33.308953] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.313973] ? kmem_cache_free+0x246/0x280 [ 33.318204] ? putname+0xf7/0x130 [ 33.321656] do_group_exit+0x177/0x440 [ 33.325542] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.329858] ? __ia32_sys_exit+0x50/0x50 [ 33.333918] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.339019] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.344552] ? ksys_ioctl+0x81/0xd0 [ 33.348181] __x64_sys_exit_group+0x3e/0x50 [ 33.352506] do_syscall_64+0x1b9/0x820 [ 33.356394] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.361755] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.366681] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.371535] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.376551] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.381563] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.386579] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.391420] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.396606] RIP: 0033:0x43f028 [ 33.399799] Code: Bad RIP value. [ 33.403155] RSP: 002b:00007fff031ee048 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.410860] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 33.418122] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.425389] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.432654] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.439933] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 33.447211] [ 33.447217] ====================================================== [ 33.447222] WARNING: possible circular locking dependency detected [ 33.447226] 4.19.0-rc2+ #220 Not tainted [ 33.447232] ------------------------------------------------------ [ 33.447237] syz-executor649/4656 is trying to acquire lock: [ 33.447241] 000000009e07455f ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.447256] [ 33.447260] but task is already holding lock: [ 33.447264] 00000000ad086a1a (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.447278] [ 33.447283] which lock already depends on the new lock. [ 33.447285] [ 33.447287] [ 33.447292] the existing dependency chain (in reverse order) is: [ 33.447295] [ 33.447297] -> #3 (report_lock){....}: [ 33.447312] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.447315] kasan_report+0x8e/0x110 [ 33.447320] __asan_report_load8_noabort+0x14/0x20 [ 33.447324] __schedule+0xf54/0x1df0 [ 33.447328] preempt_schedule_common+0x22/0x60 [ 33.447332] _cond_resched+0x1d/0x30 [ 33.447337] wait_for_completion+0xa5/0x8d0 [ 33.447341] __synchronize_srcu+0x189/0x240 [ 33.447345] synchronize_srcu+0x335/0x56f [ 33.447350] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.447354] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.447358] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.447362] kvm_put_kvm+0x73f/0x1060 [ 33.447366] kvm_vm_release+0x42/0x50 [ 33.447370] __fput+0x38a/0xa40 [ 33.447373] ____fput+0x15/0x20 [ 33.447377] task_work_run+0x1e8/0x2a0 [ 33.447381] do_exit+0x1ae4/0x26e0 [ 33.447385] do_group_exit+0x177/0x440 [ 33.447389] __x64_sys_exit_group+0x3e/0x50 [ 33.447393] do_syscall_64+0x1b9/0x820 [ 33.447397] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.447400] [ 33.447402] -> #2 (&rq->lock){-.-.}: [ 33.447416] _raw_spin_lock+0x2a/0x40 [ 33.447420] task_fork_fair+0x93/0x680 [ 33.447424] sched_fork+0x44b/0xbd0 [ 33.447428] copy_process+0x235e/0x7ad0 [ 33.447431] _do_fork+0x1ca/0x1170 [ 33.447435] kernel_thread+0x34/0x40 [ 33.447439] rest_init+0x22/0xe4 [ 33.447443] start_kernel+0x913/0x94e [ 33.447447] x86_64_start_reservations+0x29/0x2b [ 33.447459] x86_64_start_kernel+0x76/0x79 [ 33.447463] secondary_startup_64+0xa4/0xb0 [ 33.447465] [ 33.447468] -> #1 (&p->pi_lock){-.-.}: [ 33.447483] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.447487] try_to_wake_up+0xd2/0x1250 [ 33.447491] wake_up_process+0x10/0x20 [ 33.447495] __up.isra.1+0x1c0/0x2a0 [ 33.447498] up+0x13c/0x1c0 [ 33.447502] __up_console_sem+0xbe/0x1b0 [ 33.447506] console_unlock+0x506/0x10d0 [ 33.447510] vprintk_emit+0x33a/0x910 [ 33.447514] vprintk_default+0x28/0x30 [ 33.447518] vprintk_func+0x7a/0x117 [ 33.447521] printk+0xa7/0xcf [ 33.447525] load_umh+0x51/0xbd [ 33.447529] do_one_initcall+0x127/0x838 [ 33.447533] kernel_init_freeable+0x4bb/0x5ae [ 33.447537] kernel_init+0x11/0x1b3 [ 33.447540] ret_from_fork+0x3a/0x50 [ 33.447543] [ 33.447545] -> #0 ((console_sem).lock){-...}: [ 33.447560] lock_acquire+0x1e4/0x4f0 [ 33.447564] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.447568] down_trylock+0x13/0x70 [ 33.447572] __down_trylock_console_sem+0xae/0x200 [ 33.447576] console_trylock+0x15/0xa0 [ 33.447580] vprintk_emit+0x31f/0x910 [ 33.447584] vprintk_default+0x28/0x30 [ 33.447588] vprintk_func+0x7a/0x117 [ 33.447591] printk+0xa7/0xcf [ 33.447595] kasan_report+0x9e/0x110 [ 33.447600] __asan_report_load8_noabort+0x14/0x20 [ 33.447604] __schedule+0xf54/0x1df0 [ 33.447608] preempt_schedule_common+0x22/0x60 [ 33.447612] _cond_resched+0x1d/0x30 [ 33.447616] wait_for_completion+0xa5/0x8d0 [ 33.447620] __synchronize_srcu+0x189/0x240 [ 33.447624] synchronize_srcu+0x335/0x56f [ 33.447629] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.447633] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.447638] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.447642] kvm_put_kvm+0x73f/0x1060 [ 33.447645] kvm_vm_release+0x42/0x50 [ 33.447649] __fput+0x38a/0xa40 [ 33.447652] ____fput+0x15/0x20 [ 33.447656] task_work_run+0x1e8/0x2a0 [ 33.447660] do_exit+0x1ae4/0x26e0 [ 33.447664] do_group_exit+0x177/0x440 [ 33.447668] __x64_sys_exit_group+0x3e/0x50 [ 33.447672] do_syscall_64+0x1b9/0x820 [ 33.447677] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.447679] [ 33.447684] other info that might help us debug this: [ 33.447686] [ 33.447689] Chain exists of: [ 33.447691] (console_sem).lock --> &rq->lock --> report_lock [ 33.447709] [ 33.447713] Possible unsafe locking scenario: [ 33.447716] [ 33.447720] CPU0 CPU1 [ 33.447724] ---- ---- [ 33.447726] lock(report_lock); [ 33.447736] lock(&rq->lock); [ 33.447745] lock(report_lock); [ 33.447753] lock((console_sem).lock); [ 33.447761] [ 33.447764] *** DEADLOCK *** [ 33.447767] [ 33.447771] 2 locks held by syz-executor649/4656: [ 33.447773] #0: 0000000053e4dde1 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.447790] #1: 00000000ad086a1a (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.447807] [ 33.447810] stack backtrace: [ 33.447816] CPU: 1 PID: 4656 Comm: syz-executor649 Not tainted 4.19.0-rc2+ #220 [ 33.447823] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.447827] Call Trace: [ 33.447830] dump_stack+0x1c9/0x2b4 [ 33.447835] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.447839] ? vprintk_func+0x100/0x117 [ 33.447844] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.447848] ? save_trace+0xe0/0x290 [ 33.447852] __lock_acquire+0x3449/0x5020 [ 33.447856] ? mark_held_locks+0x160/0x160 [ 33.447860] ? mark_held_locks+0x160/0x160 [ 33.447864] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.447868] ? is_bpf_text_address+0xd7/0x170 [ 33.447873] ? kernel_text_address+0x79/0xf0 [ 33.447877] ? __kernel_text_address+0xd/0x40 [ 33.447881] ? __save_stack_trace+0x8d/0xf0 [ 33.447886] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.447889] ? save_trace+0x290/0x290 [ 33.447893] ? save_stack_trace+0x1a/0x20 [ 33.447897] ? save_trace+0xe0/0x290 [ 33.447901] ? graph_lock+0x170/0x170 [ 33.447906] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.447910] lock_acquire+0x1e4/0x4f0 [ 33.447914] ? down_trylock+0x13/0x70 [ 33.447918] ? lock_release+0x9f0/0x9f0 [ 33.447922] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.447926] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.447930] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.447934] ? log_store+0x34f/0x4c0 [ 33.447938] ? vprintk_emit+0x31f/0x910 [ 33.447942] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.447946] ? down_trylock+0x13/0x70 [ 33.447950] down_trylock+0x13/0x70 [ 33.447954] __down_trylock_console_sem+0xae/0x200 [ 33.447958] console_trylock+0x15/0xa0 [ 33.447962] vprintk_emit+0x31f/0x910 [ 33.447972] ? wake_up_klogd+0x110/0x110 [ 33.447976] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.447980] ? kasan_check_read+0x11/0x20 [ 33.447984] ? rcu_is_watching+0x8c/0x150 [ 33.447988] ? rcu_pm_notify+0xc0/0xc0 [ 33.447992] ? lock_acquire+0x1e4/0x4f0 [ 33.447996] ? kasan_report+0x8e/0x110 [ 33.448000] ? __schedule+0xf54/0x1df0 [ 33.448004] vprintk_default+0x28/0x30 [ 33.448007] vprintk_func+0x7a/0x117 [ 33.448011] printk+0xa7/0xcf [ 33.448015] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.448019] ? kasan_check_write+0x14/0x20 [ 33.448023] ? do_raw_spin_lock+0xc1/0x200 [ 33.448027] ? do_raw_spin_lock+0xc1/0x200 [ 33.448031] kasan_report+0x9e/0x110 [ 33.448036] __asan_report_load8_noabort+0x14/0x20 [ 33.448039] __schedule+0xf54/0x1df0 [ 33.448044] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.448048] ? __sched_text_start+0x8/0x8 [ 33.448052] ? __call_srcu+0x7e7/0x1040 [ 33.448056] ? check_same_owner+0x340/0x340 [ 33.448060] ? mark_held_locks+0x160/0x160 [ 33.448064] ? find_held_lock+0x36/0x1c0 [ 33.448069] preempt_schedule_common+0x22/0x60 [ 33.448072] _cond_resched+0x1d/0x30 [ 33.448077] wait_for_completion+0xa5/0x8d0 [ 33.448082] ? wait_for_completion_interruptible+0x950/0x950 [ 33.448086] ? __lockdep_init_map+0x105/0x590 [ 33.448090] ? __init_waitqueue_head+0x9e/0x150 [ 33.448094] ? init_wait_entry+0x1c0/0x1c0 [ 33.448099] __synchronize_srcu+0x189/0x240 [ 33.448102] ? call_srcu+0x10/0x10 [ 33.448107] ? rcu_unexpedite_gp+0x20/0x20 [ 33.448111] synchronize_srcu+0x335/0x56f [ 33.448115] ? lock_downgrade+0x8f0/0x8f0 [ 33.448120] ? synchronize_srcu_expedited+0x20/0x20 [ 33.448124] ? kasan_check_read+0x11/0x20 [ 33.448128] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.448132] ? kasan_check_write+0x14/0x20 [ 33.448136] ? do_raw_spin_lock+0xc1/0x200 [ 33.448141] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.448146] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.448150] ? kvfree+0x61/0x70 [ 33.448154] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.448158] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.448162] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.448167] ? kvm_arch_sync_events+0x30/0x30 [ 33.448172] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.448176] ? mmu_notifier_unregister+0x474/0x600 [ 33.448180] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.448184] ? kfree+0x111/0x210 [ 33.448188] ? __mmu_notifier_register+0x30/0x30 [ 33.448192] ? __free_pages+0x10a/0x190 [ 33.448197] ? free_unref_page+0x930/0x930 [ 33.448200] kvm_put_kvm+0x73f/0x1060 [ 33.448205] ? kvm_write_guest_cached+0x40/0x40 [ 33.448209] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.448213] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.448217] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.448221] ? kasan_check_write+0x14/0x20 [ 33.448226] ? do_raw_spin_lock+0xc1/0x200 [ 33.448230] ? kvm_irqfd_release+0xdd/0x120 [ 33.448234] ? kvm_irqfd_release+0xdd/0x120 [ 33.448238] ? kvm_put_kvm+0x1060/0x1060 [ 33.448242] kvm_vm_release+0x42/0x50 [ 33.448245] __fput+0x38a/0xa40 [ 33.448249] ? __alloc_file+0x400/0x400 [ 33.448253] ? check_same_owner+0x340/0x340 [ 33.448257] ? kasan_check_write+0x14/0x20 [ 33.448262] ? do_raw_spin_lock+0xc1/0x200 [ 33.448265] ____fput+0x15/0x20 [ 33.448269] task_work_run+0x1e8/0x2a0 [ 33.448273] ? task_work_cancel+0x240/0x240 [ 33.448278] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.448282] ? switch_task_namespaces+0xa2/0xd0 [ 33.448286] do_exit+0x1ae4/0x26e0 [ 33.448290] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.448294] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.448299] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.448302] ? kfree+0x1d7/0x210 [ 33.448307] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.448312] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.448316] ? is_bpf_text_address+0xd7/0x170 [ 33.448318] ? [ 33.448326] Lost 55 message(s)! [ 34.508992] Shutting down cpus with NMI [ 35.568135] Dumping ftrace buffer: [ 35.571659] (ftrace buffer empty) [ 35.575536] Kernel Offset: disabled [ 35.579145] Rebooting in 86400 seconds..