[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.184760] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.637168] random: sshd: uninitialized urandom read (32 bytes read) [ 28.924336] random: sshd: uninitialized urandom read (32 bytes read) [ 29.453788] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.46' (ECDSA) to the list of known hosts. [ 35.263803] urandom_read: 1 callbacks suppressed [ 35.263809] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.373085] 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. [ 35.397950] ================================================================== [ 35.407837] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 35.414069] Read of size 8 at addr ffff8801cf340058 by task syz-executor496/4445 [ 35.421591] [ 35.423225] CPU: 1 PID: 4445 Comm: syz-executor496 Not tainted 4.18.0+ #208 [ 35.430317] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.439668] Call Trace: [ 35.442264] dump_stack+0x1c9/0x2b4 [ 35.445910] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.451118] ? printk+0xa7/0xcf [ 35.454399] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.459156] ? __schedule+0xf54/0x1df0 [ 35.463047] print_address_description+0x6c/0x20b [ 35.467889] ? __schedule+0xf54/0x1df0 [ 35.471776] kasan_report.cold.7+0x242/0x30d [ 35.476189] __asan_report_load8_noabort+0x14/0x20 [ 35.481123] __schedule+0xf54/0x1df0 [ 35.484862] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.489963] ? __sched_text_start+0x8/0x8 [ 35.494130] ? __call_srcu+0x7e7/0x1040 [ 35.498130] ? check_same_owner+0x340/0x340 [ 35.502464] ? mark_held_locks+0x160/0x160 [ 35.506710] ? find_held_lock+0x36/0x1c0 [ 35.510773] preempt_schedule_common+0x22/0x60 [ 35.515356] _cond_resched+0x1d/0x30 [ 35.519093] wait_for_completion+0xa5/0x8d0 [ 35.523427] ? wait_for_completion_interruptible+0x950/0x950 [ 35.529224] ? __lockdep_init_map+0x105/0x590 [ 35.533722] ? __init_waitqueue_head+0x9e/0x150 [ 35.538416] ? init_wait_entry+0x1c0/0x1c0 [ 35.542656] __synchronize_srcu+0x189/0x240 [ 35.546976] ? call_srcu+0x10/0x10 [ 35.550520] ? rcu_unexpedite_gp+0x20/0x20 [ 35.554766] synchronize_srcu+0x335/0x56f [ 35.558920] ? lock_downgrade+0x8f0/0x8f0 [ 35.563075] ? synchronize_srcu_expedited+0x20/0x20 [ 35.568144] ? kasan_check_read+0x11/0x20 [ 35.572295] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.576883] ? kasan_check_write+0x14/0x20 [ 35.581122] ? do_raw_spin_lock+0xc1/0x200 [ 35.585362] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.591081] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.596535] ? kvfree+0x61/0x70 [ 35.599815] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.604835] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.608898] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.613314] ? kvm_arch_sync_events+0x30/0x30 [ 35.617822] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.623377] ? mmu_notifier_unregister+0x474/0x600 [ 35.628310] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.632720] ? kfree+0x111/0x210 [ 35.636093] ? __mmu_notifier_register+0x30/0x30 [ 35.640887] ? __free_pages+0x10a/0x190 [ 35.644866] ? free_unref_page+0x930/0x930 [ 35.649111] kvm_put_kvm+0x73f/0x1060 [ 35.652951] ? kvm_write_guest_cached+0x40/0x40 [ 35.657634] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.662144] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.666650] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.671249] ? kasan_check_write+0x14/0x20 [ 35.675489] ? do_raw_spin_lock+0xc1/0x200 [ 35.679732] ? kvm_irqfd_release+0xdd/0x120 [ 35.684056] ? kvm_irqfd_release+0xdd/0x120 [ 35.688391] ? kvm_put_kvm+0x1060/0x1060 [ 35.692457] kvm_vm_release+0x42/0x50 [ 35.696260] __fput+0x36e/0x8c0 [ 35.699553] ? __alloc_file+0x400/0x400 [ 35.703875] ? check_same_owner+0x340/0x340 [ 35.708200] ? kasan_check_write+0x14/0x20 [ 35.712438] ? do_raw_spin_lock+0xc1/0x200 [ 35.716672] ____fput+0x15/0x20 [ 35.719951] task_work_run+0x1e8/0x2a0 [ 35.723839] ? task_work_cancel+0x240/0x240 [ 35.728171] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.733718] ? switch_task_namespaces+0xa2/0xd0 [ 35.738399] do_exit+0x1ae4/0x26e0 [ 35.741949] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.746628] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.750870] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.755889] ? kfree+0x1d7/0x210 [ 35.759259] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.763500] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.769221] ? is_bpf_text_address+0xd7/0x170 [ 35.773721] ? kernel_text_address+0x79/0xf0 [ 35.778145] ? __kernel_text_address+0xd/0x40 [ 35.782644] ? unwind_get_return_address+0x61/0xa0 [ 35.787583] ? __save_stack_trace+0x8d/0xf0 [ 35.791911] ? save_stack+0xa9/0xd0 [ 35.795536] ? save_stack+0x43/0xd0 [ 35.799168] ? __kasan_slab_free+0x11a/0x170 [ 35.803570] ? kasan_slab_free+0xe/0x10 [ 35.807540] ? putname+0xf2/0x130 [ 35.811503] ? __x64_sys_openat+0x9d/0x100 [ 35.815748] ? do_syscall_64+0x1b9/0x820 [ 35.819812] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.825179] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.829586] ? kasan_check_read+0x11/0x20 [ 35.833734] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.838146] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.842564] ? initcall_blacklisted+0x9a/0x1e0 [ 35.847157] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.852279] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.858020] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.863581] ? do_vfs_ioctl+0x201/0x1720 [ 35.867644] ? rcu_is_watching+0x8c/0x150 [ 35.871805] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.876132] ? ioctl_preallocate+0x300/0x300 [ 35.880545] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.886092] ? __fget_light+0x2f7/0x440 [ 35.890070] ? fget_raw+0x20/0x20 [ 35.893808] ? putname+0xf2/0x130 [ 35.897263] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.902287] ? kmem_cache_free+0x246/0x280 [ 35.906528] ? putname+0xf7/0x130 [ 35.909982] do_group_exit+0x177/0x440 [ 35.913869] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.918190] ? __ia32_sys_exit+0x50/0x50 [ 35.922269] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.927375] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.932908] ? ksys_ioctl+0x81/0xd0 [ 35.936536] __x64_sys_exit_group+0x3e/0x50 [ 35.940860] do_syscall_64+0x1b9/0x820 [ 35.944774] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.950142] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.955069] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.959911] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.964925] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.969942] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.974963] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.979831] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.985017] RIP: 0033:0x43ecc8 [ 35.988210] Code: Bad RIP value. [ 35.991567] RSP: 002b:00007ffff4100c28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.999274] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.006539] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.013808] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.021076] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.028341] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.035634] [ 36.037261] Allocated by task 4445: [ 36.040890] save_stack+0x43/0xd0 [ 36.044339] kasan_kmalloc+0xc4/0xe0 [ 36.048054] kasan_slab_alloc+0x12/0x20 [ 36.052025] kmem_cache_alloc+0x12e/0x710 [ 36.056171] vmx_create_vcpu+0xcf/0x2830 [ 36.060228] kvm_arch_vcpu_create+0xe5/0x220 [ 36.064636] kvm_vm_ioctl+0x488/0x1d80 [ 36.068528] do_vfs_ioctl+0x1de/0x1720 [ 36.072413] ksys_ioctl+0xa9/0xd0 [ 36.075862] __x64_sys_ioctl+0x73/0xb0 [ 36.079748] do_syscall_64+0x1b9/0x820 [ 36.083639] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.088816] [ 36.090438] Freed by task 4445: [ 36.093741] save_stack+0x43/0xd0 [ 36.097195] __kasan_slab_free+0x11a/0x170 [ 36.101427] kasan_slab_free+0xe/0x10 [ 36.105234] kmem_cache_free+0x86/0x280 [ 36.109209] vmx_free_vcpu+0x26b/0x300 [ 36.113104] kvm_arch_destroy_vm+0x365/0x7c0 [ 36.117531] kvm_put_kvm+0x73f/0x1060 [ 36.121342] kvm_vm_release+0x42/0x50 [ 36.125168] __fput+0x36e/0x8c0 [ 36.128455] ____fput+0x15/0x20 [ 36.131729] task_work_run+0x1e8/0x2a0 [ 36.135613] do_exit+0x1ae4/0x26e0 [ 36.139150] do_group_exit+0x177/0x440 [ 36.143032] __x64_sys_exit_group+0x3e/0x50 [ 36.147358] do_syscall_64+0x1b9/0x820 [ 36.151247] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.156422] [ 36.158047] The buggy address belongs to the object at ffff8801cf340040 [ 36.158047] which belongs to the cache kvm_vcpu of size 23872 [ 36.170616] The buggy address is located 24 bytes inside of [ 36.170616] 23872-byte region [ffff8801cf340040, ffff8801cf345d80) [ 36.182570] The buggy address belongs to the page: [ 36.187493] page:ffffea00073cd000 count:1 mapcount:0 mapping:ffff8801d4c50dc0 index:0x0 compound_mapcount: 0 [ 36.197483] flags: 0x2fffc0000008100(slab|head) [ 36.202159] raw: 02fffc0000008100 ffff8801d4c49c48 ffff8801d4c49c48 ffff8801d4c50dc0 [ 36.210038] raw: 0000000000000000 ffff8801cf340040 0000000100000001 0000000000000000 [ 36.217908] page dumped because: kasan: bad access detected [ 36.223607] [ 36.225223] Memory state around the buggy address: [ 36.230153] ffff8801cf33ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 36.237508] ffff8801cf33ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 36.244860] >ffff8801cf340000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.252208] ^ [ 36.258434] ffff8801cf340080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.265789] ffff8801cf340100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.273138] ================================================================== [ 36.280489] Kernel panic - not syncing: panic_on_warn set ... [ 36.280489] [ 36.287858] CPU: 1 PID: 4445 Comm: syz-executor496 Tainted: G B 4.18.0+ #208 [ 36.296359] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.305707] Call Trace: [ 36.308301] dump_stack+0x1c9/0x2b4 [ 36.311929] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.317125] ? lock_downgrade+0x8f0/0x8f0 [ 36.321270] ? __schedule+0xf54/0x1df0 [ 36.325154] panic+0x238/0x4e7 [ 36.328342] ? add_taint.cold.5+0x16/0x16 [ 36.332515] ? print_shadow_for_address+0xba/0x116 [ 36.337453] ? trace_hardirqs_off+0xaf/0x2b0 [ 36.341858] ? trace_hardirqs_off+0x77/0x2b0 [ 36.346268] ? __schedule+0xf54/0x1df0 [ 36.350158] kasan_end_report+0x47/0x4f [ 36.354137] kasan_report.cold.7+0x76/0x30d [ 36.358485] __asan_report_load8_noabort+0x14/0x20 [ 36.363411] __schedule+0xf54/0x1df0 [ 36.367130] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.372248] ? __sched_text_start+0x8/0x8 [ 36.376394] ? __call_srcu+0x7e7/0x1040 [ 36.380395] ? check_same_owner+0x340/0x340 [ 36.384713] ? mark_held_locks+0x160/0x160 [ 36.388949] ? find_held_lock+0x36/0x1c0 [ 36.393010] preempt_schedule_common+0x22/0x60 [ 36.397602] _cond_resched+0x1d/0x30 [ 36.401321] wait_for_completion+0xa5/0x8d0 [ 36.405649] ? wait_for_completion_interruptible+0x950/0x950 [ 36.411445] ? __lockdep_init_map+0x105/0x590 [ 36.415941] ? __init_waitqueue_head+0x9e/0x150 [ 36.420613] ? init_wait_entry+0x1c0/0x1c0 [ 36.424858] __synchronize_srcu+0x189/0x240 [ 36.429196] ? call_srcu+0x10/0x10 [ 36.432738] ? rcu_unexpedite_gp+0x20/0x20 [ 36.436982] synchronize_srcu+0x335/0x56f [ 36.441134] ? lock_downgrade+0x8f0/0x8f0 [ 36.445280] ? synchronize_srcu_expedited+0x20/0x20 [ 36.450312] ? kasan_check_read+0x11/0x20 [ 36.454482] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.459071] ? kasan_check_write+0x14/0x20 [ 36.463327] ? do_raw_spin_lock+0xc1/0x200 [ 36.467590] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.473300] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.478745] ? kvfree+0x61/0x70 [ 36.482033] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.487050] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.491111] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.495546] ? kvm_arch_sync_events+0x30/0x30 [ 36.500044] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.505583] ? mmu_notifier_unregister+0x474/0x600 [ 36.510512] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.514918] ? kfree+0x111/0x210 [ 36.518286] ? __mmu_notifier_register+0x30/0x30 [ 36.523058] ? __free_pages+0x10a/0x190 [ 36.527043] ? free_unref_page+0x930/0x930 [ 36.531283] kvm_put_kvm+0x73f/0x1060 [ 36.535088] ? kvm_write_guest_cached+0x40/0x40 [ 36.539767] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.544262] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.548757] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.553340] ? kasan_check_write+0x14/0x20 [ 36.557585] ? do_raw_spin_lock+0xc1/0x200 [ 36.561820] ? kvm_irqfd_release+0xdd/0x120 [ 36.566154] ? kvm_irqfd_release+0xdd/0x120 [ 36.570476] ? kvm_put_kvm+0x1060/0x1060 [ 36.574542] kvm_vm_release+0x42/0x50 [ 36.578346] __fput+0x36e/0x8c0 [ 36.581637] ? __alloc_file+0x400/0x400 [ 36.585610] ? check_same_owner+0x340/0x340 [ 36.589933] ? kasan_check_write+0x14/0x20 [ 36.594166] ? do_raw_spin_lock+0xc1/0x200 [ 36.598401] ____fput+0x15/0x20 [ 36.601677] task_work_run+0x1e8/0x2a0 [ 36.605562] ? task_work_cancel+0x240/0x240 [ 36.609889] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.615427] ? switch_task_namespaces+0xa2/0xd0 [ 36.620110] do_exit+0x1ae4/0x26e0 [ 36.623659] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.628329] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.632592] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.637618] ? kfree+0x1d7/0x210 [ 36.640987] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.645224] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.650941] ? is_bpf_text_address+0xd7/0x170 [ 36.655442] ? kernel_text_address+0x79/0xf0 [ 36.659853] ? __kernel_text_address+0xd/0x40 [ 36.664362] ? unwind_get_return_address+0x61/0xa0 [ 36.669298] ? __save_stack_trace+0x8d/0xf0 [ 36.673629] ? save_stack+0xa9/0xd0 [ 36.677259] ? save_stack+0x43/0xd0 [ 36.680894] ? __kasan_slab_free+0x11a/0x170 [ 36.685307] ? kasan_slab_free+0xe/0x10 [ 36.689285] ? putname+0xf2/0x130 [ 36.692752] ? __x64_sys_openat+0x9d/0x100 [ 36.696986] ? do_syscall_64+0x1b9/0x820 [ 36.701058] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.706445] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.710863] ? kasan_check_read+0x11/0x20 [ 36.715012] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.719422] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.723837] ? initcall_blacklisted+0x9a/0x1e0 [ 36.728427] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.733545] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.739261] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.744813] ? do_vfs_ioctl+0x201/0x1720 [ 36.748881] ? rcu_is_watching+0x8c/0x150 [ 36.753028] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.757356] ? ioctl_preallocate+0x300/0x300 [ 36.761773] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.767315] ? __fget_light+0x2f7/0x440 [ 36.771294] ? fget_raw+0x20/0x20 [ 36.774753] ? putname+0xf2/0x130 [ 36.778215] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.783238] ? kmem_cache_free+0x246/0x280 [ 36.787477] ? putname+0xf7/0x130 [ 36.790940] do_group_exit+0x177/0x440 [ 36.794834] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.799158] ? __ia32_sys_exit+0x50/0x50 [ 36.803221] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.808333] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.813886] ? ksys_ioctl+0x81/0xd0 [ 36.817531] __x64_sys_exit_group+0x3e/0x50 [ 36.821870] do_syscall_64+0x1b9/0x820 [ 36.825775] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.831159] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.836124] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.841511] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.846550] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.851587] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.856623] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.861503] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.866714] RIP: 0033:0x43ecc8 [ 36.869923] Code: Bad RIP value. [ 36.873294] RSP: 002b:00007ffff4100c28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.881012] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 36.888282] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.895552] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.902821] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.910102] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 36.917390] [ 36.917395] ====================================================== [ 36.917401] WARNING: possible circular locking dependency detected [ 36.917405] 4.18.0+ #208 Not tainted [ 36.917410] ------------------------------------------------------ [ 36.917415] syz-executor496/4445 is trying to acquire lock: [ 36.917418] 0000000007e1cff5 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.917433] [ 36.917437] but task is already holding lock: [ 36.917440] 00000000d1a77e6b (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.917454] [ 36.917459] which lock already depends on the new lock. [ 36.917461] [ 36.917464] [ 36.917469] the existing dependency chain (in reverse order) is: [ 36.917471] [ 36.917473] -> #3 (report_lock){....}: [ 36.917488] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.917492] kasan_report+0x8e/0x110 [ 36.917496] __asan_report_load8_noabort+0x14/0x20 [ 36.917500] __schedule+0xf54/0x1df0 [ 36.917504] preempt_schedule_common+0x22/0x60 [ 36.917508] _cond_resched+0x1d/0x30 [ 36.917512] wait_for_completion+0xa5/0x8d0 [ 36.917516] __synchronize_srcu+0x189/0x240 [ 36.917521] synchronize_srcu+0x335/0x56f [ 36.917526] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.917530] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.917534] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.917538] kvm_put_kvm+0x73f/0x1060 [ 36.917541] kvm_vm_release+0x42/0x50 [ 36.917545] __fput+0x36e/0x8c0 [ 36.917548] ____fput+0x15/0x20 [ 36.917552] task_work_run+0x1e8/0x2a0 [ 36.917569] do_exit+0x1ae4/0x26e0 [ 36.917573] do_group_exit+0x177/0x440 [ 36.917577] __x64_sys_exit_group+0x3e/0x50 [ 36.917581] do_syscall_64+0x1b9/0x820 [ 36.917585] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.917587] [ 36.917590] -> #2 (&rq->lock){-.-.}: [ 36.917603] _raw_spin_lock+0x2a/0x40 [ 36.917607] task_fork_fair+0x93/0x680 [ 36.917610] sched_fork+0x44b/0xbd0 [ 36.917614] copy_process+0x235e/0x7ad0 [ 36.917617] _do_fork+0x1ca/0x1170 [ 36.917622] kernel_thread+0x34/0x40 [ 36.917625] rest_init+0x22/0xe4 [ 36.917629] start_kernel+0x913/0x94e [ 36.917633] x86_64_start_reservations+0x29/0x2b [ 36.917637] x86_64_start_kernel+0x76/0x79 [ 36.917641] secondary_startup_64+0xa4/0xb0 [ 36.917643] [ 36.917645] -> #1 (&p->pi_lock){-.-.}: [ 36.917659] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.917663] try_to_wake_up+0xd2/0x1250 [ 36.917667] wake_up_process+0x10/0x20 [ 36.917670] __up.isra.1+0x1c0/0x2a0 [ 36.917673] up+0x13c/0x1c0 [ 36.917677] __up_console_sem+0xbe/0x1b0 [ 36.917681] console_unlock+0x506/0x10d0 [ 36.917697] vprintk_emit+0x33a/0x910 [ 36.917701] vprintk_default+0x28/0x30 [ 36.917705] vprintk_func+0x7a/0x117 [ 36.917708] printk+0xa7/0xcf [ 36.917711] load_umh+0x51/0xbd [ 36.917715] do_one_initcall+0x127/0x838 [ 36.917720] kernel_init_freeable+0x4bb/0x5ae [ 36.917723] kernel_init+0x11/0x1b3 [ 36.917727] ret_from_fork+0x3a/0x50 [ 36.917729] [ 36.917732] -> #0 ((console_sem).lock){-...}: [ 36.917746] lock_acquire+0x1e4/0x4f0 [ 36.917750] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.917754] down_trylock+0x13/0x70 [ 36.917758] __down_trylock_console_sem+0xae/0x200 [ 36.917762] console_trylock+0x15/0xa0 [ 36.917766] vprintk_emit+0x31f/0x910 [ 36.917770] vprintk_default+0x28/0x30 [ 36.917774] vprintk_func+0x7a/0x117 [ 36.917778] printk+0xa7/0xcf [ 36.917781] kasan_report+0x9e/0x110 [ 36.917786] __asan_report_load8_noabort+0x14/0x20 [ 36.917790] __schedule+0xf54/0x1df0 [ 36.917794] preempt_schedule_common+0x22/0x60 [ 36.917798] _cond_resched+0x1d/0x30 [ 36.917802] wait_for_completion+0xa5/0x8d0 [ 36.917806] __synchronize_srcu+0x189/0x240 [ 36.917810] synchronize_srcu+0x335/0x56f [ 36.917815] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.917819] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.917823] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.917827] kvm_put_kvm+0x73f/0x1060 [ 36.917831] kvm_vm_release+0x42/0x50 [ 36.917834] __fput+0x36e/0x8c0 [ 36.917838] ____fput+0x15/0x20 [ 36.917841] task_work_run+0x1e8/0x2a0 [ 36.917845] do_exit+0x1ae4/0x26e0 [ 36.917849] do_group_exit+0x177/0x440 [ 36.917853] __x64_sys_exit_group+0x3e/0x50 [ 36.917857] do_syscall_64+0x1b9/0x820 [ 36.917862] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.917864] [ 36.917868] other info that might help us debug this: [ 36.917871] [ 36.917874] Chain exists of: [ 36.917876] (console_sem).lock --> &rq->lock --> report_lock [ 36.917894] [ 36.917898] Possible unsafe locking scenario: [ 36.917900] [ 36.917904] CPU0 CPU1 [ 36.917908] ---- ---- [ 36.917911] lock(report_lock); [ 36.917920] lock(&rq->lock); [ 36.917929] lock(report_lock); [ 36.917937] lock((console_sem).lock); [ 36.917945] [ 36.917948] *** DEADLOCK *** [ 36.917950] [ 36.917954] 2 locks held by syz-executor496/4445: [ 36.917956] #0: 00000000d6dd8c98 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.917973] #1: 00000000d1a77e6b (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.917990] [ 36.917993] stack backtrace: [ 36.917999] CPU: 1 PID: 4445 Comm: syz-executor496 Not tainted 4.18.0+ #208 [ 36.918006] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.918009] Call Trace: [ 36.918012] dump_stack+0x1c9/0x2b4 [ 36.918017] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.918021] ? vprintk_func+0x100/0x117 [ 36.918026] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.918029] ? save_trace+0xe0/0x290 [ 36.918033] __lock_acquire+0x3449/0x5020 [ 36.918037] ? mark_held_locks+0x160/0x160 [ 36.918042] ? mark_held_locks+0x160/0x160 [ 36.918046] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.918050] ? is_bpf_text_address+0xd7/0x170 [ 36.918054] ? kernel_text_address+0x79/0xf0 [ 36.918058] ? __kernel_text_address+0xd/0x40 [ 36.918062] ? __save_stack_trace+0x8d/0xf0 [ 36.918067] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.918070] ? save_trace+0x290/0x290 [ 36.918074] ? save_stack_trace+0x1a/0x20 [ 36.918078] ? save_trace+0xe0/0x290 [ 36.918082] ? graph_lock+0x170/0x170 [ 36.918087] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.918090] lock_acquire+0x1e4/0x4f0 [ 36.918094] ? down_trylock+0x13/0x70 [ 36.918098] ? lock_release+0x9f0/0x9f0 [ 36.918102] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.918106] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.918110] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.918120] ? log_store+0x34f/0x4c0 [ 36.918124] ? vprintk_emit+0x31f/0x910 [ 36.918128] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.918132] ? down_trylock+0x13/0x70 [ 36.918135] down_trylock+0x13/0x70 [ 36.918140] __down_trylock_console_sem+0xae/0x200 [ 36.918143] console_trylock+0x15/0xa0 [ 36.918147] vprintk_emit+0x31f/0x910 [ 36.918151] ? wake_up_klogd+0x110/0x110 [ 36.918155] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.918159] ? kasan_check_read+0x11/0x20 [ 36.918163] ? rcu_is_watching+0x8c/0x150 [ 36.918167] ? rcu_pm_notify+0xc0/0xc0 [ 36.918171] ? lock_acquire+0x1e4/0x4f0 [ 36.918175] ? kasan_report+0x8e/0x110 [ 36.918179] ? __schedule+0xf54/0x1df0 [ 36.918182] vprintk_default+0x28/0x30 [ 36.918186] vprintk_func+0x7a/0x117 [ 36.918189] printk+0xa7/0xcf [ 36.918194] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.918198] ? kasan_check_write+0x14/0x20 [ 36.918202] ? do_raw_spin_lock+0xc1/0x200 [ 36.918206] ? do_raw_spin_lock+0xc1/0x200 [ 36.918209] kasan_report+0x9e/0x110 [ 36.918214] __asan_report_load8_noabort+0x14/0x20 [ 36.918217] __schedule+0xf54/0x1df0 [ 36.918222] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.918226] ? __sched_text_start+0x8/0x8 [ 36.918230] ? __call_srcu+0x7e7/0x1040 [ 36.918234] ? check_same_owner+0x340/0x340 [ 36.918238] ? mark_held_locks+0x160/0x160 [ 36.918242] ? find_held_lock+0x36/0x1c0 [ 36.918246] preempt_schedule_common+0x22/0x60 [ 36.918250] _cond_resched+0x1d/0x30 [ 36.918254] wait_for_completion+0xa5/0x8d0 [ 36.918259] ? wait_for_completion_interruptible+0x950/0x950 [ 36.918263] ? __lockdep_init_map+0x105/0x590 [ 36.918267] ? __init_waitqueue_head+0x9e/0x150 [ 36.918271] ? init_wait_entry+0x1c0/0x1c0 [ 36.918275] __synchronize_srcu+0x189/0x240 [ 36.918279] ? call_srcu+0x10/0x10 [ 36.918283] ? rcu_unexpedite_gp+0x20/0x20 [ 36.918287] synchronize_srcu+0x335/0x56f [ 36.918291] ? lock_downgrade+0x8f0/0x8f0 [ 36.918295] ? synchronize_srcu_expedited+0x20/0x20 [ 36.918299] ? kasan_check_read+0x11/0x20 [ 36.918303] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.918307] ? kasan_check_write+0x14/0x20 [ 36.918311] ? do_raw_spin_lock+0xc1/0x200 [ 36.918316] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.918321] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.918324] ? kvfree+0x61/0x70 [ 36.918329] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.918332] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.918337] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.918341] ? kvm_arch_sync_events+0x30/0x30 [ 36.918346] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.918356] ? mmu_notifier_unregister+0x474/0x600 [ 36.918360] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.918364] ? kfree+0x111/0x210 [ 36.918368] ? __mmu_notifier_register+0x30/0x30 [ 36.918372] ? __free_pages+0x10a/0x190 [ 36.918376] ? free_unref_page+0x930/0x930 [ 36.918379] kvm_put_kvm+0x73f/0x1060 [ 36.918384] ? kvm_write_guest_cached+0x40/0x40 [ 36.918388] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.918392] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.918396] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.918400] ? kasan_check_write+0x14/0x20 [ 36.918404] ? do_raw_spin_lock+0xc1/0x200 [ 36.918408] ? kvm_irqfd_release+0xdd/0x120 [ 36.918412] ? kvm_irqfd_release+0xdd/0x120 [ 36.918416] ? kvm_put_kvm+0x1060/0x1060 [ 36.918420] kvm_vm_release+0x42/0x50 [ 36.918423] __fput+0x36e/0x8c0 [ 36.918427] ? __alloc_file+0x400/0x400 [ 36.918431] ? check_same_owner+0x340/0x340 [ 36.918435] ? kasan_check_write+0x14/0x20 [ 36.918439] ? do_raw_spin_lock+0xc1/0x200 [ 36.918442] ____fput+0x15/0x20 [ 36.918446] task_work_run+0x1e8/0x2a0 [ 36.918450] ? task_work_cancel+0x240/0x240 [ 36.918455] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.918459] ? switch_task_namespaces+0xa2/0xd0 [ 36.918463] do_exit+0x1ae4/0x26e0 [ 36.918467] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.918471] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.918476] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.918479] ? kfree+0x1d7/0x210 [ 36.918483] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.918488] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.918492] ? is_bpf_text_address+0xd7/0x170 [ 36.918495] ? kernel_ [ 36.918502] Lost 55 message(s)! [ 38.024721] Shutting down cpus with NMI [ 39.084221] Dumping ftrace buffer: [ 39.087755] (ftrace buffer empty) [ 39.091444] Kernel Offset: disabled [ 39.095053] Rebooting in 86400 seconds..