[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.884658] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.447081] random: sshd: uninitialized urandom read (32 bytes read) [ 26.829736] random: sshd: uninitialized urandom read (32 bytes read) [ 27.375493] random: sshd: uninitialized urandom read (32 bytes read) [ 27.549706] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.17' (ECDSA) to the list of known hosts. [ 33.102146] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.196413] 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. [ 33.220667] ================================================================== [ 33.230478] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.236708] Read of size 8 at addr ffff8801a7e10058 by task syz-executor918/4455 [ 33.244230] [ 33.245855] CPU: 1 PID: 4455 Comm: syz-executor918 Not tainted 4.18.0+ #203 [ 33.253292] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.262635] Call Trace: [ 33.265258] dump_stack+0x1c9/0x2b4 [ 33.268891] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.274084] ? printk+0xa7/0xcf [ 33.277363] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.282137] ? __schedule+0xf54/0x1df0 [ 33.286023] print_address_description+0x6c/0x20b [ 33.290861] ? __schedule+0xf54/0x1df0 [ 33.294748] kasan_report.cold.7+0x242/0x30d [ 33.299170] __asan_report_load8_noabort+0x14/0x20 [ 33.304110] __schedule+0xf54/0x1df0 [ 33.307829] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.312934] ? __sched_text_start+0x8/0x8 [ 33.317086] ? __call_srcu+0x7e7/0x1040 [ 33.321104] ? check_same_owner+0x340/0x340 [ 33.325425] ? mark_held_locks+0x160/0x160 [ 33.329656] ? find_held_lock+0x36/0x1c0 [ 33.333722] preempt_schedule_common+0x22/0x60 [ 33.338302] _cond_resched+0x1d/0x30 [ 33.342015] wait_for_completion+0xa5/0x8d0 [ 33.346335] ? wait_for_completion_interruptible+0x950/0x950 [ 33.352131] ? __lockdep_init_map+0x105/0x590 [ 33.356624] ? __init_waitqueue_head+0x9e/0x150 [ 33.361289] ? init_wait_entry+0x1c0/0x1c0 [ 33.365525] __synchronize_srcu+0x189/0x240 [ 33.369848] ? call_srcu+0x10/0x10 [ 33.373390] ? rcu_unexpedite_gp+0x20/0x20 [ 33.377627] synchronize_srcu+0x335/0x56f [ 33.381775] ? lock_downgrade+0x8f0/0x8f0 [ 33.385920] ? synchronize_srcu_expedited+0x20/0x20 [ 33.390938] ? kasan_check_read+0x11/0x20 [ 33.395114] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.399695] ? kasan_check_write+0x14/0x20 [ 33.403925] ? do_raw_spin_lock+0xc1/0x200 [ 33.408160] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.413869] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.419318] ? kvfree+0x61/0x70 [ 33.422601] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.427615] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.431673] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.436086] ? kvm_arch_sync_events+0x30/0x30 [ 33.440581] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.446122] ? mmu_notifier_unregister+0x474/0x600 [ 33.451049] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.455483] ? kfree+0x111/0x210 [ 33.458854] ? __mmu_notifier_register+0x30/0x30 [ 33.463608] ? __free_pages+0x10a/0x190 [ 33.467584] ? free_unref_page+0x930/0x930 [ 33.471836] kvm_put_kvm+0x73f/0x1060 [ 33.475648] ? kvm_write_guest_cached+0x40/0x40 [ 33.480322] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.484815] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.489317] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.493907] ? kasan_check_write+0x14/0x20 [ 33.498138] ? do_raw_spin_lock+0xc1/0x200 [ 33.502376] ? kvm_irqfd_release+0xdd/0x120 [ 33.506696] ? kvm_put_kvm+0x1060/0x1060 [ 33.510754] kvm_vm_release+0x42/0x50 [ 33.514555] __fput+0x36e/0x8c0 [ 33.517839] ? __alloc_file+0x400/0x400 [ 33.521817] ? check_same_owner+0x340/0x340 [ 33.526142] ? kasan_check_write+0x14/0x20 [ 33.530374] ? do_raw_spin_lock+0xc1/0x200 [ 33.534608] ____fput+0x15/0x20 [ 33.537902] task_work_run+0x1e8/0x2a0 [ 33.541785] ? task_work_cancel+0x240/0x240 [ 33.546107] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.551643] ? switch_task_namespaces+0xa2/0xd0 [ 33.556314] do_exit+0x1ae4/0x26e0 [ 33.559858] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.564530] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.568767] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.573781] ? kfree+0x1d7/0x210 [ 33.577146] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.581379] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.587098] ? is_bpf_text_address+0xd7/0x170 [ 33.591591] ? kernel_text_address+0x79/0xf0 [ 33.595996] ? __kernel_text_address+0xd/0x40 [ 33.600489] ? unwind_get_return_address+0x61/0xa0 [ 33.605418] ? __save_stack_trace+0x8d/0xf0 [ 33.609741] ? save_stack+0xa9/0xd0 [ 33.613369] ? save_stack+0x43/0xd0 [ 33.616993] ? __kasan_slab_free+0x11a/0x170 [ 33.621426] ? kasan_slab_free+0xe/0x10 [ 33.625399] ? putname+0xf2/0x130 [ 33.628854] ? __x64_sys_openat+0x9d/0x100 [ 33.633096] ? do_syscall_64+0x1b9/0x820 [ 33.637161] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.642523] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.646928] ? kasan_check_read+0x11/0x20 [ 33.651082] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.655489] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.659898] ? initcall_blacklisted+0x9a/0x1e0 [ 33.664481] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.669588] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.675300] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.680842] ? do_vfs_ioctl+0x201/0x1720 [ 33.684901] ? rcu_is_watching+0x8c/0x150 [ 33.689047] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.693379] ? ioctl_preallocate+0x300/0x300 [ 33.697785] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.703321] ? __fget_light+0x2f7/0x440 [ 33.707315] ? fget_raw+0x20/0x20 [ 33.710783] ? putname+0xf2/0x130 [ 33.714241] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.719274] ? kmem_cache_free+0x246/0x280 [ 33.723505] ? putname+0xf7/0x130 [ 33.726960] do_group_exit+0x177/0x440 [ 33.730877] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.735195] ? __ia32_sys_exit+0x50/0x50 [ 33.739258] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.744377] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.749911] ? ksys_ioctl+0x81/0xd0 [ 33.753539] __x64_sys_exit_group+0x3e/0x50 [ 33.757861] do_syscall_64+0x1b9/0x820 [ 33.762020] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.767384] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.772312] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.777159] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.782174] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.787214] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.792233] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.797099] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.802284] RIP: 0033:0x43ef08 [ 33.805481] Code: Bad RIP value. [ 33.808843] RSP: 002b:00007ffe4c3a58b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.816548] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 33.823810] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.831123] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.838386] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.845651] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.852921] [ 33.854540] Allocated by task 4455: [ 33.858168] save_stack+0x43/0xd0 [ 33.861616] kasan_kmalloc+0xc4/0xe0 [ 33.865329] kasan_slab_alloc+0x12/0x20 [ 33.869304] kmem_cache_alloc+0x12e/0x710 [ 33.873448] vmx_create_vcpu+0xcf/0x2830 [ 33.877508] kvm_arch_vcpu_create+0xe5/0x220 [ 33.881912] kvm_vm_ioctl+0x488/0x1d80 [ 33.885795] do_vfs_ioctl+0x1de/0x1720 [ 33.889701] ksys_ioctl+0xa9/0xd0 [ 33.893660] __x64_sys_ioctl+0x73/0xb0 [ 33.897543] do_syscall_64+0x1b9/0x820 [ 33.901430] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.906608] [ 33.908226] Freed by task 4455: [ 33.911499] save_stack+0x43/0xd0 [ 33.914949] __kasan_slab_free+0x11a/0x170 [ 33.919182] kasan_slab_free+0xe/0x10 [ 33.922977] kmem_cache_free+0x86/0x280 [ 33.926944] vmx_free_vcpu+0x26b/0x300 [ 33.930832] kvm_arch_destroy_vm+0x365/0x7c0 [ 33.935237] kvm_put_kvm+0x73f/0x1060 [ 33.939034] kvm_vm_release+0x42/0x50 [ 33.942844] __fput+0x36e/0x8c0 [ 33.946124] ____fput+0x15/0x20 [ 33.949401] task_work_run+0x1e8/0x2a0 [ 33.953282] do_exit+0x1ae4/0x26e0 [ 33.956818] do_group_exit+0x177/0x440 [ 33.960708] __x64_sys_exit_group+0x3e/0x50 [ 33.965025] do_syscall_64+0x1b9/0x820 [ 33.968910] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.974174] [ 33.975799] The buggy address belongs to the object at ffff8801a7e10040 [ 33.975799] which belongs to the cache kvm_vcpu of size 23872 [ 33.988375] The buggy address is located 24 bytes inside of [ 33.988375] 23872-byte region [ffff8801a7e10040, ffff8801a7e15d80) [ 34.000329] The buggy address belongs to the page: [ 34.005258] page:ffffea00069f8400 count:1 mapcount:0 mapping:ffff8801d4b79900 index:0x0 compound_mapcount: 0 [ 34.015240] flags: 0x2fffc0000008100(slab|head) [ 34.019914] raw: 02fffc0000008100 ffff8801d4b7c948 ffff8801d4b7c948 ffff8801d4b79900 [ 34.027808] raw: 0000000000000000 ffff8801a7e10040 0000000100000001 0000000000000000 [ 34.035680] page dumped because: kasan: bad access detected [ 34.041392] [ 34.043008] Memory state around the buggy address: [ 34.047931] ffff8801a7e0ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.055308] ffff8801a7e0ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.062664] >ffff8801a7e10000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.070043] ^ [ 34.076279] ffff8801a7e10080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.083649] ffff8801a7e10100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.090996] ================================================================== [ 34.098346] Kernel panic - not syncing: panic_on_warn set ... [ 34.098346] [ 34.105712] CPU: 1 PID: 4455 Comm: syz-executor918 Tainted: G B 4.18.0+ #203 [ 34.114190] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.123532] Call Trace: [ 34.126125] dump_stack+0x1c9/0x2b4 [ 34.129754] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.134943] ? lock_downgrade+0x8f0/0x8f0 [ 34.139114] ? __schedule+0xf54/0x1df0 [ 34.143001] panic+0x238/0x4e7 [ 34.146192] ? add_taint.cold.5+0x16/0x16 [ 34.150345] ? print_shadow_for_address+0xba/0x116 [ 34.155273] ? trace_hardirqs_off+0xaf/0x2b0 [ 34.159677] ? trace_hardirqs_off+0x77/0x2b0 [ 34.164089] ? __schedule+0xf54/0x1df0 [ 34.167975] kasan_end_report+0x47/0x4f [ 34.171949] kasan_report.cold.7+0x76/0x30d [ 34.176271] __asan_report_load8_noabort+0x14/0x20 [ 34.181221] __schedule+0xf54/0x1df0 [ 34.184937] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.190038] ? __sched_text_start+0x8/0x8 [ 34.194203] ? __call_srcu+0x7e7/0x1040 [ 34.198182] ? check_same_owner+0x340/0x340 [ 34.202498] ? mark_held_locks+0x160/0x160 [ 34.206746] ? find_held_lock+0x36/0x1c0 [ 34.210810] preempt_schedule_common+0x22/0x60 [ 34.215393] _cond_resched+0x1d/0x30 [ 34.219105] wait_for_completion+0xa5/0x8d0 [ 34.223426] ? wait_for_completion_interruptible+0x950/0x950 [ 34.229240] ? __lockdep_init_map+0x105/0x590 [ 34.233736] ? __init_waitqueue_head+0x9e/0x150 [ 34.238401] ? init_wait_entry+0x1c0/0x1c0 [ 34.242637] __synchronize_srcu+0x189/0x240 [ 34.246954] ? call_srcu+0x10/0x10 [ 34.250493] ? rcu_unexpedite_gp+0x20/0x20 [ 34.254741] synchronize_srcu+0x335/0x56f [ 34.258888] ? lock_downgrade+0x8f0/0x8f0 [ 34.263033] ? synchronize_srcu_expedited+0x20/0x20 [ 34.268058] ? kasan_check_read+0x11/0x20 [ 34.272213] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.276793] ? kasan_check_write+0x14/0x20 [ 34.281033] ? do_raw_spin_lock+0xc1/0x200 [ 34.285278] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.290985] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.296435] ? kvfree+0x61/0x70 [ 34.299714] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.305084] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.309142] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.313551] ? kvm_arch_sync_events+0x30/0x30 [ 34.318047] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.323594] ? mmu_notifier_unregister+0x474/0x600 [ 34.328519] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.332923] ? kfree+0x111/0x210 [ 34.336306] ? __mmu_notifier_register+0x30/0x30 [ 34.341074] ? __free_pages+0x10a/0x190 [ 34.345050] ? free_unref_page+0x930/0x930 [ 34.349302] kvm_put_kvm+0x73f/0x1060 [ 34.353112] ? kvm_write_guest_cached+0x40/0x40 [ 34.357787] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.362300] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.366797] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.371385] ? kasan_check_write+0x14/0x20 [ 34.375616] ? do_raw_spin_lock+0xc1/0x200 [ 34.379871] ? kvm_irqfd_release+0xdd/0x120 [ 34.384194] ? kvm_put_kvm+0x1060/0x1060 [ 34.388253] kvm_vm_release+0x42/0x50 [ 34.392050] __fput+0x36e/0x8c0 [ 34.395342] ? __alloc_file+0x400/0x400 [ 34.399335] ? check_same_owner+0x340/0x340 [ 34.403657] ? kasan_check_write+0x14/0x20 [ 34.407887] ? do_raw_spin_lock+0xc1/0x200 [ 34.412121] ____fput+0x15/0x20 [ 34.415399] task_work_run+0x1e8/0x2a0 [ 34.419285] ? task_work_cancel+0x240/0x240 [ 34.423611] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.429145] ? switch_task_namespaces+0xa2/0xd0 [ 34.433815] do_exit+0x1ae4/0x26e0 [ 34.437364] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.442034] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.446279] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.451294] ? kfree+0x1d7/0x210 [ 34.454674] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.458915] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.464626] ? is_bpf_text_address+0xd7/0x170 [ 34.469119] ? kernel_text_address+0x79/0xf0 [ 34.473524] ? __kernel_text_address+0xd/0x40 [ 34.478021] ? unwind_get_return_address+0x61/0xa0 [ 34.482967] ? __save_stack_trace+0x8d/0xf0 [ 34.487293] ? save_stack+0xa9/0xd0 [ 34.490918] ? save_stack+0x43/0xd0 [ 34.494546] ? __kasan_slab_free+0x11a/0x170 [ 34.498951] ? kasan_slab_free+0xe/0x10 [ 34.502921] ? putname+0xf2/0x130 [ 34.506372] ? __x64_sys_openat+0x9d/0x100 [ 34.510609] ? do_syscall_64+0x1b9/0x820 [ 34.514670] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.520033] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.524445] ? kasan_check_read+0x11/0x20 [ 34.528589] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.532992] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.537397] ? initcall_blacklisted+0x9a/0x1e0 [ 34.541999] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.547106] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.552817] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.558361] ? do_vfs_ioctl+0x201/0x1720 [ 34.562454] ? rcu_is_watching+0x8c/0x150 [ 34.566596] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.570916] ? ioctl_preallocate+0x300/0x300 [ 34.575327] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.580865] ? __fget_light+0x2f7/0x440 [ 34.584841] ? fget_raw+0x20/0x20 [ 34.588290] ? putname+0xf2/0x130 [ 34.591761] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.596786] ? kmem_cache_free+0x246/0x280 [ 34.601019] ? putname+0xf7/0x130 [ 34.604474] do_group_exit+0x177/0x440 [ 34.608362] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.612694] ? __ia32_sys_exit+0x50/0x50 [ 34.616753] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.621858] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.627393] ? ksys_ioctl+0x81/0xd0 [ 34.631024] __x64_sys_exit_group+0x3e/0x50 [ 34.635348] do_syscall_64+0x1b9/0x820 [ 34.639249] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.644610] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.649539] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.654377] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 34.659392] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.664409] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.669430] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.674275] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.679457] RIP: 0033:0x43ef08 [ 34.682647] Code: Bad RIP value. [ 34.686008] RSP: 002b:00007ffe4c3a58b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.693714] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.700993] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.708275] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.715539] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.722820] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.730104] [ 34.730109] ====================================================== [ 34.730114] WARNING: possible circular locking dependency detected [ 34.730118] 4.18.0+ #203 Not tainted [ 34.730123] ------------------------------------------------------ [ 34.730128] syz-executor918/4455 is trying to acquire lock: [ 34.730131] 00000000ffb526bd ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 34.730146] [ 34.730150] but task is already holding lock: [ 34.730153] 00000000488e64ef (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.730167] [ 34.730172] which lock already depends on the new lock. [ 34.730174] [ 34.730176] [ 34.730181] the existing dependency chain (in reverse order) is: [ 34.730183] [ 34.730186] -> #3 (report_lock){....}: [ 34.730200] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.730204] kasan_report+0x8e/0x110 [ 34.730208] __asan_report_load8_noabort+0x14/0x20 [ 34.730212] __schedule+0xf54/0x1df0 [ 34.730216] preempt_schedule_common+0x22/0x60 [ 34.730220] _cond_resched+0x1d/0x30 [ 34.730224] wait_for_completion+0xa5/0x8d0 [ 34.730228] __synchronize_srcu+0x189/0x240 [ 34.730232] synchronize_srcu+0x335/0x56f [ 34.730237] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.730241] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.730245] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.730249] kvm_put_kvm+0x73f/0x1060 [ 34.730253] kvm_vm_release+0x42/0x50 [ 34.730256] __fput+0x36e/0x8c0 [ 34.730260] ____fput+0x15/0x20 [ 34.730263] task_work_run+0x1e8/0x2a0 [ 34.730267] do_exit+0x1ae4/0x26e0 [ 34.730271] do_group_exit+0x177/0x440 [ 34.730275] __x64_sys_exit_group+0x3e/0x50 [ 34.730279] do_syscall_64+0x1b9/0x820 [ 34.730283] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.730285] [ 34.730288] -> #2 (&rq->lock){-.-.}: [ 34.730301] _raw_spin_lock+0x2a/0x40 [ 34.730305] task_fork_fair+0x93/0x680 [ 34.730309] sched_fork+0x44b/0xbd0 [ 34.730313] copy_process+0x235e/0x7ad0 [ 34.730316] _do_fork+0x1ca/0x1170 [ 34.730320] kernel_thread+0x34/0x40 [ 34.730323] rest_init+0x22/0xe4 [ 34.730328] start_kernel+0x913/0x94e [ 34.730332] x86_64_start_reservations+0x29/0x2b [ 34.730336] x86_64_start_kernel+0x76/0x79 [ 34.730340] secondary_startup_64+0xa4/0xb0 [ 34.730342] [ 34.730345] -> #1 (&p->pi_lock){-.-.}: [ 34.730359] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.730363] try_to_wake_up+0xd2/0x1250 [ 34.730367] wake_up_process+0x10/0x20 [ 34.730370] __up.isra.1+0x1c0/0x2a0 [ 34.730374] up+0x13c/0x1c0 [ 34.730378] __up_console_sem+0xbe/0x1b0 [ 34.730381] console_unlock+0x506/0x10d0 [ 34.730385] vprintk_emit+0x33a/0x910 [ 34.730389] vprintk_default+0x28/0x30 [ 34.730393] vprintk_func+0x7a/0x117 [ 34.730396] printk+0xa7/0xcf [ 34.730399] load_umh+0x51/0xbd [ 34.730403] do_one_initcall+0x127/0x838 [ 34.730407] kernel_init_freeable+0x4bb/0x5ae [ 34.730411] kernel_init+0x11/0x1b3 [ 34.730415] ret_from_fork+0x3a/0x50 [ 34.730417] [ 34.730419] -> #0 ((console_sem).lock){-...}: [ 34.730433] lock_acquire+0x1e4/0x4f0 [ 34.730438] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.730441] down_trylock+0x13/0x70 [ 34.730446] __down_trylock_console_sem+0xae/0x200 [ 34.730450] console_trylock+0x15/0xa0 [ 34.730453] vprintk_emit+0x31f/0x910 [ 34.730457] vprintk_default+0x28/0x30 [ 34.730461] vprintk_func+0x7a/0x117 [ 34.730464] printk+0xa7/0xcf [ 34.730468] kasan_report+0x9e/0x110 [ 34.730472] __asan_report_load8_noabort+0x14/0x20 [ 34.730476] __schedule+0xf54/0x1df0 [ 34.730480] preempt_schedule_common+0x22/0x60 [ 34.730484] _cond_resched+0x1d/0x30 [ 34.730488] wait_for_completion+0xa5/0x8d0 [ 34.730492] __synchronize_srcu+0x189/0x240 [ 34.730496] synchronize_srcu+0x335/0x56f [ 34.730501] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.730505] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.730509] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.730512] kvm_put_kvm+0x73f/0x1060 [ 34.730516] kvm_vm_release+0x42/0x50 [ 34.730520] __fput+0x36e/0x8c0 [ 34.730523] ____fput+0x15/0x20 [ 34.730527] task_work_run+0x1e8/0x2a0 [ 34.730531] do_exit+0x1ae4/0x26e0 [ 34.730534] do_group_exit+0x177/0x440 [ 34.730539] __x64_sys_exit_group+0x3e/0x50 [ 34.730542] do_syscall_64+0x1b9/0x820 [ 34.730547] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.730549] [ 34.730553] other info that might help us debug this: [ 34.730556] [ 34.730559] Chain exists of: [ 34.730561] (console_sem).lock --> &rq->lock --> report_lock [ 34.730579] [ 34.730583] Possible unsafe locking scenario: [ 34.730585] [ 34.730589] CPU0 CPU1 [ 34.730593] ---- ---- [ 34.730595] lock(report_lock); [ 34.730604] lock(&rq->lock); [ 34.730613] lock(report_lock); [ 34.730621] lock((console_sem).lock); [ 34.730629] [ 34.730632] *** DEADLOCK *** [ 34.730634] [ 34.730638] 2 locks held by syz-executor918/4455: [ 34.730641] #0: 00000000f2d90214 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 34.730657] #1: 00000000488e64ef (report_lock){....}, at: kasan_report+0x8e/0x110 [ 34.730674] [ 34.730677] stack backtrace: [ 34.730683] CPU: 1 PID: 4455 Comm: syz-executor918 Not tainted 4.18.0+ #203 [ 34.730689] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.730692] Call Trace: [ 34.730696] dump_stack+0x1c9/0x2b4 [ 34.730701] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.730704] ? vprintk_func+0x100/0x117 [ 34.730709] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 34.730713] ? save_trace+0xe0/0x290 [ 34.730717] __lock_acquire+0x3449/0x5020 [ 34.730721] ? mark_held_locks+0x160/0x160 [ 34.730725] ? mark_held_locks+0x160/0x160 [ 34.730729] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 34.730733] ? is_bpf_text_address+0xd7/0x170 [ 34.730737] ? kernel_text_address+0x79/0xf0 [ 34.730741] ? __kernel_text_address+0xd/0x40 [ 34.730745] ? __save_stack_trace+0x8d/0xf0 [ 34.730750] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 34.730753] ? save_trace+0x290/0x290 [ 34.730757] ? save_stack_trace+0x1a/0x20 [ 34.730761] ? save_trace+0xe0/0x290 [ 34.730765] ? graph_lock+0x170/0x170 [ 34.730769] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.730773] lock_acquire+0x1e4/0x4f0 [ 34.730777] ? down_trylock+0x13/0x70 [ 34.730780] ? lock_release+0x9f0/0x9f0 [ 34.730785] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.730789] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.730793] ? trace_hardirqs_off+0xb8/0x2b0 [ 34.730796] ? log_store+0x34f/0x4c0 [ 34.730800] ? vprintk_emit+0x31f/0x910 [ 34.730804] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.730828] ? down_trylock+0x13/0x70 [ 34.730832] down_trylock+0x13/0x70 [ 34.730836] __down_trylock_console_sem+0xae/0x200 [ 34.730840] console_trylock+0x15/0xa0 [ 34.730843] vprintk_emit+0x31f/0x910 [ 34.730847] ? wake_up_klogd+0x110/0x110 [ 34.730851] ? run_rebalance_domains+0x4c0/0x4c0 [ 34.730855] ? kasan_check_read+0x11/0x20 [ 34.730859] ? rcu_is_watching+0x8c/0x150 [ 34.730862] ? rcu_pm_notify+0xc0/0xc0 [ 34.730866] ? lock_acquire+0x1e4/0x4f0 [ 34.730870] ? kasan_report+0x8e/0x110 [ 34.730873] ? __schedule+0xf54/0x1df0 [ 34.730877] vprintk_default+0x28/0x30 [ 34.730880] vprintk_func+0x7a/0x117 [ 34.730884] printk+0xa7/0xcf [ 34.730888] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.730892] ? kasan_check_write+0x14/0x20 [ 34.730895] ? do_raw_spin_lock+0xc1/0x200 [ 34.730899] ? do_raw_spin_lock+0xc1/0x200 [ 34.730903] kasan_report+0x9e/0x110 [ 34.730907] __asan_report_load8_noabort+0x14/0x20 [ 34.730910] __schedule+0xf54/0x1df0 [ 34.730915] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.730918] ? __sched_text_start+0x8/0x8 [ 34.730922] ? __call_srcu+0x7e7/0x1040 [ 34.730926] ? check_same_owner+0x340/0x340 [ 34.730930] ? mark_held_locks+0x160/0x160 [ 34.730934] ? find_held_lock+0x36/0x1c0 [ 34.730938] preempt_schedule_common+0x22/0x60 [ 34.730941] _cond_resched+0x1d/0x30 [ 34.730945] wait_for_completion+0xa5/0x8d0 [ 34.730950] ? wait_for_completion_interruptible+0x950/0x950 [ 34.730954] ? __lockdep_init_map+0x105/0x590 [ 34.730958] ? __init_waitqueue_head+0x9e/0x150 [ 34.730962] ? init_wait_entry+0x1c0/0x1c0 [ 34.730965] __synchronize_srcu+0x189/0x240 [ 34.730969] ? call_srcu+0x10/0x10 [ 34.730973] ? rcu_unexpedite_gp+0x20/0x20 [ 34.730991] synchronize_srcu+0x335/0x56f [ 34.730995] ? lock_downgrade+0x8f0/0x8f0 [ 34.730999] ? synchronize_srcu_expedited+0x20/0x20 [ 34.731003] ? kasan_check_read+0x11/0x20 [ 34.731007] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.731011] ? kasan_check_write+0x14/0x20 [ 34.731015] ? do_raw_spin_lock+0xc1/0x200 [ 34.731020] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.731025] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.731028] ? kvfree+0x61/0x70 [ 34.731033] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.731036] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.731041] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.731045] ? kvm_arch_sync_events+0x30/0x30 [ 34.731049] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.731054] ? mmu_notifier_unregister+0x474/0x600 [ 34.731058] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.731069] ? kfree+0x111/0x210 [ 34.731073] ? __mmu_notifier_register+0x30/0x30 [ 34.731077] ? __free_pages+0x10a/0x190 [ 34.731081] ? free_unref_page+0x930/0x930 [ 34.731085] kvm_put_kvm+0x73f/0x1060 [ 34.731089] ? kvm_write_guest_cached+0x40/0x40 [ 34.731093] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.731097] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.731102] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.731106] ? kasan_check_write+0x14/0x20 [ 34.731109] ? do_raw_spin_lock+0xc1/0x200 [ 34.731113] ? kvm_irqfd_release+0xdd/0x120 [ 34.731117] ? kvm_put_kvm+0x1060/0x1060 [ 34.731121] kvm_vm_release+0x42/0x50 [ 34.731124] __fput+0x36e/0x8c0 [ 34.731128] ? __alloc_file+0x400/0x400 [ 34.731132] ? check_same_owner+0x340/0x340 [ 34.731136] ? kasan_check_write+0x14/0x20 [ 34.731140] ? do_raw_spin_lock+0xc1/0x200 [ 34.731144] ____fput+0x15/0x20 [ 34.731147] task_work_run+0x1e8/0x2a0 [ 34.731151] ? task_work_cancel+0x240/0x240 [ 34.731156] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.731160] ? switch_task_namespaces+0xa2/0xd0 [ 34.731164] do_exit+0x1ae4/0x26e0 [ 34.731168] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.731172] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.731176] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.731180] ? kfree+0x1d7/0x210 [ 34.731184] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.731189] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.731193] ? is_bpf_text_address+0xd7/0x170 [ 34.731197] ? kernel_text_address+0x79/0xf0 [ 34.731200] ? __kern [ 34.731207] Lost 54 message(s)! [ 35.802691] Shutting down cpus with NMI [ 36.861887] Dumping ftrace buffer: [ 36.865414] (ftrace buffer empty) [ 36.869106] Kernel Offset: disabled [ 36.872730] Rebooting in 86400 seconds..