[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 23.507854] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 27.723634] random: sshd: uninitialized urandom read (32 bytes read) [ 28.029671] random: sshd: uninitialized urandom read (32 bytes read) [ 28.594354] random: sshd: uninitialized urandom read (32 bytes read) [ 28.773834] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.62' (ECDSA) to the list of known hosts. [ 34.611455] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 34.711146] 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. [ 34.736004] ================================================================== [ 34.745862] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 34.752097] Read of size 8 at addr ffff8801b6e08058 by task syz-executor547/4661 [ 34.759618] [ 34.761249] CPU: 0 PID: 4661 Comm: syz-executor547 Not tainted 4.19.0-rc2+ #220 [ 34.768687] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.778038] Call Trace: [ 34.780639] dump_stack+0x1c9/0x2b4 [ 34.784280] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.789467] ? printk+0xa7/0xcf [ 34.792754] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.797514] ? __schedule+0xf54/0x1df0 [ 34.801404] print_address_description+0x6c/0x20b [ 34.806252] ? __schedule+0xf54/0x1df0 [ 34.810136] kasan_report.cold.7+0x242/0x30d [ 34.814544] __asan_report_load8_noabort+0x14/0x20 [ 34.819470] __schedule+0xf54/0x1df0 [ 34.823184] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.828290] ? __sched_text_start+0x8/0x8 [ 34.832440] ? __call_srcu+0x7e7/0x1040 [ 34.836419] ? check_same_owner+0x340/0x340 [ 34.840737] ? mark_held_locks+0x160/0x160 [ 34.845004] ? find_held_lock+0x36/0x1c0 [ 34.849068] preempt_schedule_common+0x22/0x60 [ 34.853659] _cond_resched+0x1d/0x30 [ 34.857393] wait_for_completion+0xa5/0x8d0 [ 34.861715] ? wait_for_completion_interruptible+0x950/0x950 [ 34.867512] ? __lockdep_init_map+0x105/0x590 [ 34.872032] ? __init_waitqueue_head+0x9e/0x150 [ 34.876697] ? init_wait_entry+0x1c0/0x1c0 [ 34.880936] __synchronize_srcu+0x189/0x240 [ 34.885265] ? call_srcu+0x10/0x10 [ 34.888806] ? rcu_unexpedite_gp+0x20/0x20 [ 34.893047] synchronize_srcu+0x335/0x56f [ 34.897198] ? lock_downgrade+0x8f0/0x8f0 [ 34.901344] ? synchronize_srcu_expedited+0x20/0x20 [ 34.906362] ? kasan_check_read+0x11/0x20 [ 34.910515] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.915096] ? kasan_check_write+0x14/0x20 [ 34.919330] ? do_raw_spin_lock+0xc1/0x200 [ 34.923566] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.929280] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.934726] ? kvfree+0x61/0x70 [ 34.938022] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.943041] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.947098] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.951503] ? kvm_arch_sync_events+0x30/0x30 [ 34.956015] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.961563] ? mmu_notifier_unregister+0x474/0x600 [ 34.966490] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.970893] ? kfree+0x111/0x210 [ 34.974256] ? __mmu_notifier_register+0x30/0x30 [ 34.979019] ? __free_pages+0x10a/0x190 [ 34.983001] ? free_unref_page+0x930/0x930 [ 34.987243] kvm_put_kvm+0x73f/0x1060 [ 34.991051] ? kvm_write_guest_cached+0x40/0x40 [ 34.995721] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.000210] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.004718] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.009305] ? kasan_check_write+0x14/0x20 [ 35.013537] ? do_raw_spin_lock+0xc1/0x200 [ 35.017786] ? kvm_irqfd_release+0xdd/0x120 [ 35.022106] ? kvm_irqfd_release+0xdd/0x120 [ 35.026427] ? kvm_put_kvm+0x1060/0x1060 [ 35.030485] kvm_vm_release+0x42/0x50 [ 35.034286] __fput+0x38a/0xa40 [ 35.037576] ? __alloc_file+0x400/0x400 [ 35.041558] ? check_same_owner+0x340/0x340 [ 35.045880] ? kasan_check_write+0x14/0x20 [ 35.050113] ? do_raw_spin_lock+0xc1/0x200 [ 35.054349] ____fput+0x15/0x20 [ 35.057628] task_work_run+0x1e8/0x2a0 [ 35.061511] ? task_work_cancel+0x240/0x240 [ 35.066609] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.072152] ? switch_task_namespaces+0xa2/0xd0 [ 35.076820] do_exit+0x1ae4/0x26e0 [ 35.080363] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.085034] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.089267] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.094278] ? kfree+0x1d7/0x210 [ 35.097657] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.101893] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.107886] ? is_bpf_text_address+0xd7/0x170 [ 35.112393] ? kernel_text_address+0x79/0xf0 [ 35.116798] ? __kernel_text_address+0xd/0x40 [ 35.121296] ? unwind_get_return_address+0x61/0xa0 [ 35.126228] ? __save_stack_trace+0x8d/0xf0 [ 35.130558] ? save_stack+0xa9/0xd0 [ 35.134181] ? save_stack+0x43/0xd0 [ 35.137803] ? __kasan_slab_free+0x11a/0x170 [ 35.142205] ? kasan_slab_free+0xe/0x10 [ 35.146180] ? putname+0xf2/0x130 [ 35.149637] ? __x64_sys_openat+0x9d/0x100 [ 35.153870] ? do_syscall_64+0x1b9/0x820 [ 35.157943] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.163318] ? trace_hardirqs_off+0xb8/0x2b0 [ 35.167721] ? kasan_check_read+0x11/0x20 [ 35.171875] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.176279] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.180684] ? initcall_blacklisted+0x9a/0x1e0 [ 35.185263] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 35.190364] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.196076] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.201612] ? do_vfs_ioctl+0x201/0x1720 [ 35.205697] ? rcu_is_watching+0x8c/0x150 [ 35.209849] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.214171] ? ioctl_preallocate+0x300/0x300 [ 35.218579] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.224111] ? __fget_light+0x2f7/0x440 [ 35.228084] ? fget_raw+0x20/0x20 [ 35.231529] ? putname+0xf2/0x130 [ 35.235004] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.240020] ? kmem_cache_free+0x246/0x280 [ 35.244256] ? putname+0xf7/0x130 [ 35.247723] do_group_exit+0x177/0x440 [ 35.251604] ? trace_hardirqs_on+0xbd/0x2c0 [ 35.255918] ? __ia32_sys_exit+0x50/0x50 [ 35.259997] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.265100] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.270643] ? ksys_ioctl+0x81/0xd0 [ 35.274271] __x64_sys_exit_group+0x3e/0x50 [ 35.278616] do_syscall_64+0x1b9/0x820 [ 35.282501] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.287863] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.292790] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.297627] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 35.302653] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.307673] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.312698] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.317538] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.322737] RIP: 0033:0x43f028 [ 35.325950] Code: Bad RIP value. [ 35.329316] RSP: 002b:00007fff81b02c48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.337040] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 35.344303] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.351566] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.358835] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.366096] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 35.373371] [ 35.374998] Allocated by task 4661: [ 35.378734] save_stack+0x43/0xd0 [ 35.382180] kasan_kmalloc+0xc4/0xe0 [ 35.385887] kasan_slab_alloc+0x12/0x20 [ 35.389855] kmem_cache_alloc+0x12e/0x710 [ 35.394005] vmx_create_vcpu+0xcf/0x2830 [ 35.398075] kvm_arch_vcpu_create+0xe5/0x220 [ 35.402478] kvm_vm_ioctl+0x488/0x1d80 [ 35.406375] do_vfs_ioctl+0x1de/0x1720 [ 35.410259] ksys_ioctl+0xa9/0xd0 [ 35.413707] __x64_sys_ioctl+0x73/0xb0 [ 35.417607] do_syscall_64+0x1b9/0x820 [ 35.421488] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.426702] [ 35.428337] Freed by task 4661: [ 35.431613] save_stack+0x43/0xd0 [ 35.435064] __kasan_slab_free+0x11a/0x170 [ 35.439296] kasan_slab_free+0xe/0x10 [ 35.443091] kmem_cache_free+0x86/0x280 [ 35.447071] vmx_free_vcpu+0x26b/0x300 [ 35.450951] kvm_arch_destroy_vm+0x365/0x7c0 [ 35.455410] kvm_put_kvm+0x73f/0x1060 [ 35.459230] kvm_vm_release+0x42/0x50 [ 35.463038] __fput+0x38a/0xa40 [ 35.466308] ____fput+0x15/0x20 [ 35.469582] task_work_run+0x1e8/0x2a0 [ 35.473463] do_exit+0x1ae4/0x26e0 [ 35.477005] do_group_exit+0x177/0x440 [ 35.480886] __x64_sys_exit_group+0x3e/0x50 [ 35.485216] do_syscall_64+0x1b9/0x820 [ 35.489099] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.494271] [ 35.495903] The buggy address belongs to the object at ffff8801b6e08040 [ 35.495903] which belongs to the cache kvm_vcpu of size 23872 [ 35.508489] The buggy address is located 24 bytes inside of [ 35.508489] 23872-byte region [ffff8801b6e08040, ffff8801b6e0dd80) [ 35.520442] The buggy address belongs to the page: [ 35.525365] page:ffffea0006db8200 count:1 mapcount:0 mapping:ffff8801d52629c0 index:0x0 compound_mapcount: 0 [ 35.535333] flags: 0x2fffc0000008100(slab|head) [ 35.540006] raw: 02fffc0000008100 ffff8801d525d248 ffff8801d525d248 ffff8801d52629c0 [ 35.547883] raw: 0000000000000000 ffff8801b6e08040 0000000100000001 0000000000000000 [ 35.555797] page dumped because: kasan: bad access detected [ 35.561498] [ 35.563112] Memory state around the buggy address: [ 35.568044] ffff8801b6e07f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.575414] ffff8801b6e07f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.582764] >ffff8801b6e08000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.590109] ^ [ 35.596334] ffff8801b6e08080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.603691] ffff8801b6e08100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.611050] ================================================================== [ 35.618400] Kernel panic - not syncing: panic_on_warn set ... [ 35.618400] [ 35.625767] CPU: 0 PID: 4661 Comm: syz-executor547 Tainted: G B 4.19.0-rc2+ #220 [ 35.635113] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.644464] Call Trace: [ 35.647061] dump_stack+0x1c9/0x2b4 [ 35.650688] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.655898] ? lock_downgrade+0x8f0/0x8f0 [ 35.660064] ? __schedule+0xf54/0x1df0 [ 35.663947] panic+0x238/0x4e7 [ 35.667150] ? add_taint.cold.5+0x16/0x16 [ 35.671303] ? print_shadow_for_address+0xba/0x116 [ 35.676254] ? trace_hardirqs_off+0xaf/0x2b0 [ 35.680661] ? trace_hardirqs_off+0x77/0x2b0 [ 35.685077] ? __schedule+0xf54/0x1df0 [ 35.688975] kasan_end_report+0x47/0x4f [ 35.692956] kasan_report.cold.7+0x76/0x30d [ 35.697291] __asan_report_load8_noabort+0x14/0x20 [ 35.702220] __schedule+0xf54/0x1df0 [ 35.705944] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.711067] ? __sched_text_start+0x8/0x8 [ 35.715215] ? __call_srcu+0x7e7/0x1040 [ 35.719195] ? check_same_owner+0x340/0x340 [ 35.723510] ? mark_held_locks+0x160/0x160 [ 35.727748] ? find_held_lock+0x36/0x1c0 [ 35.731809] preempt_schedule_common+0x22/0x60 [ 35.736388] _cond_resched+0x1d/0x30 [ 35.740101] wait_for_completion+0xa5/0x8d0 [ 35.744420] ? wait_for_completion_interruptible+0x950/0x950 [ 35.750216] ? __lockdep_init_map+0x105/0x590 [ 35.754715] ? __init_waitqueue_head+0x9e/0x150 [ 35.759397] ? init_wait_entry+0x1c0/0x1c0 [ 35.763638] __synchronize_srcu+0x189/0x240 [ 35.767958] ? call_srcu+0x10/0x10 [ 35.771515] ? rcu_unexpedite_gp+0x20/0x20 [ 35.775758] synchronize_srcu+0x335/0x56f [ 35.779905] ? lock_downgrade+0x8f0/0x8f0 [ 35.784053] ? synchronize_srcu_expedited+0x20/0x20 [ 35.789073] ? kasan_check_read+0x11/0x20 [ 35.793224] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.797804] ? kasan_check_write+0x14/0x20 [ 35.802034] ? do_raw_spin_lock+0xc1/0x200 [ 35.806279] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.812000] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.817447] ? kvfree+0x61/0x70 [ 35.820730] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.825743] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.829802] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.834236] ? kvm_arch_sync_events+0x30/0x30 [ 35.838736] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.844292] ? mmu_notifier_unregister+0x474/0x600 [ 35.849217] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.853625] ? kfree+0x111/0x210 [ 35.857003] ? __mmu_notifier_register+0x30/0x30 [ 35.861761] ? __free_pages+0x10a/0x190 [ 35.865737] ? free_unref_page+0x930/0x930 [ 35.869991] kvm_put_kvm+0x73f/0x1060 [ 35.873798] ? kvm_write_guest_cached+0x40/0x40 [ 35.878469] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.882990] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.887500] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.892088] ? kasan_check_write+0x14/0x20 [ 35.896323] ? do_raw_spin_lock+0xc1/0x200 [ 35.900560] ? kvm_irqfd_release+0xdd/0x120 [ 35.904876] ? kvm_irqfd_release+0xdd/0x120 [ 35.909198] ? kvm_put_kvm+0x1060/0x1060 [ 35.913255] kvm_vm_release+0x42/0x50 [ 35.917056] __fput+0x38a/0xa40 [ 35.920336] ? __alloc_file+0x400/0x400 [ 35.924311] ? check_same_owner+0x340/0x340 [ 35.928630] ? kasan_check_write+0x14/0x20 [ 35.932863] ? do_raw_spin_lock+0xc1/0x200 [ 35.937097] ____fput+0x15/0x20 [ 35.940372] task_work_run+0x1e8/0x2a0 [ 35.944256] ? task_work_cancel+0x240/0x240 [ 35.948581] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.954118] ? switch_task_namespaces+0xa2/0xd0 [ 35.958810] do_exit+0x1ae4/0x26e0 [ 35.962363] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.967035] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.971291] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.976303] ? kfree+0x1d7/0x210 [ 35.979681] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.983928] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.989639] ? is_bpf_text_address+0xd7/0x170 [ 35.994136] ? kernel_text_address+0x79/0xf0 [ 35.999037] ? __kernel_text_address+0xd/0x40 [ 36.003557] ? unwind_get_return_address+0x61/0xa0 [ 36.008489] ? __save_stack_trace+0x8d/0xf0 [ 36.012815] ? save_stack+0xa9/0xd0 [ 36.016437] ? save_stack+0x43/0xd0 [ 36.020071] ? __kasan_slab_free+0x11a/0x170 [ 36.024477] ? kasan_slab_free+0xe/0x10 [ 36.028447] ? putname+0xf2/0x130 [ 36.031909] ? __x64_sys_openat+0x9d/0x100 [ 36.036140] ? do_syscall_64+0x1b9/0x820 [ 36.040197] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.045584] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.050007] ? kasan_check_read+0x11/0x20 [ 36.054176] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.058593] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.063003] ? initcall_blacklisted+0x9a/0x1e0 [ 36.067586] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 36.072703] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.078413] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.083945] ? do_vfs_ioctl+0x201/0x1720 [ 36.088017] ? rcu_is_watching+0x8c/0x150 [ 36.092167] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.096498] ? ioctl_preallocate+0x300/0x300 [ 36.100906] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.106442] ? __fget_light+0x2f7/0x440 [ 36.110415] ? fget_raw+0x20/0x20 [ 36.113876] ? putname+0xf2/0x130 [ 36.117329] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.122344] ? kmem_cache_free+0x246/0x280 [ 36.126575] ? putname+0xf7/0x130 [ 36.130027] do_group_exit+0x177/0x440 [ 36.133921] ? trace_hardirqs_on+0xbd/0x2c0 [ 36.138258] ? __ia32_sys_exit+0x50/0x50 [ 36.142315] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.147427] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.152961] ? ksys_ioctl+0x81/0xd0 [ 36.156603] __x64_sys_exit_group+0x3e/0x50 [ 36.160925] do_syscall_64+0x1b9/0x820 [ 36.164813] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.170178] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.175107] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.179943] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 36.184970] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.190009] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.195024] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.199865] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.205045] RIP: 0033:0x43f028 [ 36.208239] Code: Bad RIP value. [ 36.211607] RSP: 002b:00007fff81b02c48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 36.219321] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 36.226584] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 36.233860] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 36.241136] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 36.248397] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 36.255671] [ 36.255676] ====================================================== [ 36.255681] WARNING: possible circular locking dependency detected [ 36.255685] 4.19.0-rc2+ #220 Not tainted [ 36.255690] ------------------------------------------------------ [ 36.255695] syz-executor547/4661 is trying to acquire lock: [ 36.255699] 00000000951f0015 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 36.255713] [ 36.255717] but task is already holding lock: [ 36.255720] 000000003dd374b6 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.255734] [ 36.255738] which lock already depends on the new lock. [ 36.255741] [ 36.255743] [ 36.255748] the existing dependency chain (in reverse order) is: [ 36.255750] [ 36.255752] -> #3 (report_lock){....}: [ 36.255767] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.255770] kasan_report+0x8e/0x110 [ 36.255775] __asan_report_load8_noabort+0x14/0x20 [ 36.255778] __schedule+0xf54/0x1df0 [ 36.255783] preempt_schedule_common+0x22/0x60 [ 36.255786] _cond_resched+0x1d/0x30 [ 36.255791] wait_for_completion+0xa5/0x8d0 [ 36.255795] __synchronize_srcu+0x189/0x240 [ 36.255799] synchronize_srcu+0x335/0x56f [ 36.255803] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.255807] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.255811] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.255815] kvm_put_kvm+0x73f/0x1060 [ 36.255819] kvm_vm_release+0x42/0x50 [ 36.255822] __fput+0x38a/0xa40 [ 36.255826] ____fput+0x15/0x20 [ 36.255830] task_work_run+0x1e8/0x2a0 [ 36.255833] do_exit+0x1ae4/0x26e0 [ 36.255837] do_group_exit+0x177/0x440 [ 36.255841] __x64_sys_exit_group+0x3e/0x50 [ 36.255845] do_syscall_64+0x1b9/0x820 [ 36.255849] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.255851] [ 36.255854] -> #2 (&rq->lock){-.-.}: [ 36.255867] _raw_spin_lock+0x2a/0x40 [ 36.255871] task_fork_fair+0x93/0x680 [ 36.255874] sched_fork+0x44b/0xbd0 [ 36.255878] copy_process+0x235e/0x7ad0 [ 36.255882] _do_fork+0x1ca/0x1170 [ 36.255886] kernel_thread+0x34/0x40 [ 36.255889] rest_init+0x22/0xe4 [ 36.255893] start_kernel+0x913/0x94e [ 36.255897] x86_64_start_reservations+0x29/0x2b [ 36.255901] x86_64_start_kernel+0x76/0x79 [ 36.255905] secondary_startup_64+0xa4/0xb0 [ 36.255907] [ 36.255909] -> #1 (&p->pi_lock){-.-.}: [ 36.255923] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.255927] try_to_wake_up+0xd2/0x1250 [ 36.255931] wake_up_process+0x10/0x20 [ 36.255935] __up.isra.1+0x1c0/0x2a0 [ 36.255938] up+0x13c/0x1c0 [ 36.255942] __up_console_sem+0xbe/0x1b0 [ 36.255946] console_unlock+0x506/0x10d0 [ 36.255949] vprintk_emit+0x33a/0x910 [ 36.255953] vprintk_default+0x28/0x30 [ 36.255957] vprintk_func+0x7a/0x117 [ 36.255960] printk+0xa7/0xcf [ 36.255973] load_umh+0x51/0xbd [ 36.255983] do_one_initcall+0x127/0x838 [ 36.255987] kernel_init_freeable+0x4bb/0x5ae [ 36.255991] kernel_init+0x11/0x1b3 [ 36.255994] ret_from_fork+0x3a/0x50 [ 36.255996] [ 36.255999] -> #0 ((console_sem).lock){-...}: [ 36.256013] lock_acquire+0x1e4/0x4f0 [ 36.256017] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.256020] down_trylock+0x13/0x70 [ 36.256025] __down_trylock_console_sem+0xae/0x200 [ 36.256029] console_trylock+0x15/0xa0 [ 36.256032] vprintk_emit+0x31f/0x910 [ 36.256036] vprintk_default+0x28/0x30 [ 36.256040] vprintk_func+0x7a/0x117 [ 36.256043] printk+0xa7/0xcf [ 36.256047] kasan_report+0x9e/0x110 [ 36.256051] __asan_report_load8_noabort+0x14/0x20 [ 36.256055] __schedule+0xf54/0x1df0 [ 36.256059] preempt_schedule_common+0x22/0x60 [ 36.256063] _cond_resched+0x1d/0x30 [ 36.256067] wait_for_completion+0xa5/0x8d0 [ 36.256071] __synchronize_srcu+0x189/0x240 [ 36.256075] synchronize_srcu+0x335/0x56f [ 36.256080] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.256083] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.256088] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.256091] kvm_put_kvm+0x73f/0x1060 [ 36.256095] kvm_vm_release+0x42/0x50 [ 36.256098] __fput+0x38a/0xa40 [ 36.256102] ____fput+0x15/0x20 [ 36.256106] task_work_run+0x1e8/0x2a0 [ 36.256109] do_exit+0x1ae4/0x26e0 [ 36.256113] do_group_exit+0x177/0x440 [ 36.256117] __x64_sys_exit_group+0x3e/0x50 [ 36.256121] do_syscall_64+0x1b9/0x820 [ 36.256125] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.256127] [ 36.256132] other info that might help us debug this: [ 36.256134] [ 36.256137] Chain exists of: [ 36.256139] (console_sem).lock --> &rq->lock --> report_lock [ 36.256156] [ 36.256160] Possible unsafe locking scenario: [ 36.256163] [ 36.256167] CPU0 CPU1 [ 36.256171] ---- ---- [ 36.256173] lock(report_lock); [ 36.256182] lock(&rq->lock); [ 36.256191] lock(report_lock); [ 36.256199] lock((console_sem).lock); [ 36.256207] [ 36.256210] *** DEADLOCK *** [ 36.256212] [ 36.256216] 2 locks held by syz-executor547/4661: [ 36.256218] #0: 00000000dab71b50 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 36.256234] #1: 000000003dd374b6 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 36.256251] [ 36.256254] stack backtrace: [ 36.256259] CPU: 0 PID: 4661 Comm: syz-executor547 Not tainted 4.19.0-rc2+ #220 [ 36.256266] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.256269] Call Trace: [ 36.256273] dump_stack+0x1c9/0x2b4 [ 36.256278] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.256281] ? vprintk_func+0x100/0x117 [ 36.256286] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 36.256290] ? save_trace+0xe0/0x290 [ 36.256294] __lock_acquire+0x3449/0x5020 [ 36.256298] ? mark_held_locks+0x160/0x160 [ 36.256302] ? mark_held_locks+0x160/0x160 [ 36.256306] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 36.256310] ? is_bpf_text_address+0xd7/0x170 [ 36.256314] ? kernel_text_address+0x79/0xf0 [ 36.256318] ? __kernel_text_address+0xd/0x40 [ 36.256322] ? __save_stack_trace+0x8d/0xf0 [ 36.256326] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 36.256330] ? save_trace+0x290/0x290 [ 36.256334] ? save_stack_trace+0x1a/0x20 [ 36.256338] ? save_trace+0xe0/0x290 [ 36.256341] ? graph_lock+0x170/0x170 [ 36.256346] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.256350] lock_acquire+0x1e4/0x4f0 [ 36.256354] ? down_trylock+0x13/0x70 [ 36.256357] ? lock_release+0x9f0/0x9f0 [ 36.256361] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.256365] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.256369] ? trace_hardirqs_off+0xb8/0x2b0 [ 36.256373] ? log_store+0x34f/0x4c0 [ 36.256377] ? vprintk_emit+0x31f/0x910 [ 36.256381] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.256385] ? down_trylock+0x13/0x70 [ 36.256388] down_trylock+0x13/0x70 [ 36.256393] __down_trylock_console_sem+0xae/0x200 [ 36.256396] console_trylock+0x15/0xa0 [ 36.256400] vprintk_emit+0x31f/0x910 [ 36.256404] ? wake_up_klogd+0x110/0x110 [ 36.256408] ? run_rebalance_domains+0x4c0/0x4c0 [ 36.256412] ? kasan_check_read+0x11/0x20 [ 36.256416] ? rcu_is_watching+0x8c/0x150 [ 36.256420] ? rcu_pm_notify+0xc0/0xc0 [ 36.256424] ? lock_acquire+0x1e4/0x4f0 [ 36.256427] ? kasan_report+0x8e/0x110 [ 36.256431] ? __schedule+0xf54/0x1df0 [ 36.256435] vprintk_default+0x28/0x30 [ 36.256438] vprintk_func+0x7a/0x117 [ 36.256442] printk+0xa7/0xcf [ 36.256446] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.256450] ? kasan_check_write+0x14/0x20 [ 36.256454] ? do_raw_spin_lock+0xc1/0x200 [ 36.256458] ? do_raw_spin_lock+0xc1/0x200 [ 36.256461] kasan_report+0x9e/0x110 [ 36.256466] __asan_report_load8_noabort+0x14/0x20 [ 36.256469] __schedule+0xf54/0x1df0 [ 36.256474] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 36.256478] ? __sched_text_start+0x8/0x8 [ 36.256482] ? __call_srcu+0x7e7/0x1040 [ 36.256486] ? check_same_owner+0x340/0x340 [ 36.256490] ? mark_held_locks+0x160/0x160 [ 36.256494] ? find_held_lock+0x36/0x1c0 [ 36.256498] preempt_schedule_common+0x22/0x60 [ 36.256502] _cond_resched+0x1d/0x30 [ 36.256506] wait_for_completion+0xa5/0x8d0 [ 36.256510] ? wait_for_completion_interruptible+0x950/0x950 [ 36.256515] ? __lockdep_init_map+0x105/0x590 [ 36.256519] ? __init_waitqueue_head+0x9e/0x150 [ 36.256523] ? init_wait_entry+0x1c0/0x1c0 [ 36.256527] __synchronize_srcu+0x189/0x240 [ 36.256530] ? call_srcu+0x10/0x10 [ 36.256534] ? rcu_unexpedite_gp+0x20/0x20 [ 36.256538] synchronize_srcu+0x335/0x56f [ 36.256542] ? lock_downgrade+0x8f0/0x8f0 [ 36.256546] ? synchronize_srcu_expedited+0x20/0x20 [ 36.256550] ? kasan_check_read+0x11/0x20 [ 36.256554] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 36.256558] ? kasan_check_write+0x14/0x20 [ 36.256562] ? do_raw_spin_lock+0xc1/0x200 [ 36.256567] kvm_page_track_unregister_notifier+0x17d/0x250 [ 36.256572] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 36.256575] ? kvfree+0x61/0x70 [ 36.256580] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.256583] kvm_mmu_uninit_vm+0x1c/0x20 [ 36.256587] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 36.256592] ? kvm_arch_sync_events+0x30/0x30 [ 36.256596] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.256601] ? mmu_notifier_unregister+0x474/0x600 [ 36.256605] ? trace_hardirqs_on+0x2c0/0x2c0 [ 36.256608] ? kfree+0x111/0x210 [ 36.256612] ? __mmu_notifier_register+0x30/0x30 [ 36.256616] ? __free_pages+0x10a/0x190 [ 36.256620] ? free_unref_page+0x930/0x930 [ 36.256624] kvm_put_kvm+0x73f/0x1060 [ 36.256628] ? kvm_write_guest_cached+0x40/0x40 [ 36.256632] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.256636] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.256640] ? lockdep_hardirqs_on+0x421/0x5c0 [ 36.256644] ? kasan_check_write+0x14/0x20 [ 36.256648] ? do_raw_spin_lock+0xc1/0x200 [ 36.256652] ? kvm_irqfd_release+0xdd/0x120 [ 36.256656] ? kvm_irqfd_release+0xdd/0x120 [ 36.256660] ? kvm_put_kvm+0x1060/0x1060 [ 36.256664] kvm_vm_release+0x42/0x50 [ 36.256667] __fput+0x38a/0xa40 [ 36.256671] ? __alloc_file+0x400/0x400 [ 36.256675] ? check_same_owner+0x340/0x340 [ 36.256679] ? kasan_check_write+0x14/0x20 [ 36.256683] ? do_raw_spin_lock+0xc1/0x200 [ 36.256686] ____fput+0x15/0x20 [ 36.256690] task_work_run+0x1e8/0x2a0 [ 36.256694] ? task_work_cancel+0x240/0x240 [ 36.256698] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 36.256703] ? switch_task_namespaces+0xa2/0xd0 [ 36.256706] do_exit+0x1ae4/0x26e0 [ 36.256710] ? mm_update_next_owner+0x9a0/0x9a0 [ 36.256714] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 36.256719] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.256722] ? kfree+0x1d7/0x210 [ 36.256726] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 36.256731] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 36.256735] ? is_bpf_text_address+0xd7/0x170 [ 36.256737] ? [ 36.256744] Lost 55 message(s)! [ 37.360478] Shutting down cpus with NMI [ 38.420581] Dumping ftrace buffer: [ 38.424120] (ftrace buffer empty) [ 38.427818] Kernel Offset: disabled [ 38.431469] Rebooting in 86400 seconds..