[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.946027] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.824051] random: sshd: uninitialized urandom read (32 bytes read) [ 25.142231] random: sshd: uninitialized urandom read (32 bytes read) [ 25.677020] random: sshd: uninitialized urandom read (32 bytes read) [ 37.392333] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.10' (ECDSA) to the list of known hosts. [ 43.036206] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 43.134477] 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. [ 43.159206] ================================================================== [ 43.169038] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 43.175261] Read of size 8 at addr ffff8801b8958058 by task syz-executor658/4655 [ 43.182778] [ 43.184411] CPU: 1 PID: 4655 Comm: syz-executor658 Not tainted 4.19.0-rc2+ #220 [ 43.191847] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.201211] Call Trace: [ 43.203803] dump_stack+0x1c9/0x2b4 [ 43.207440] ? dump_stack_print_info.cold.2+0x52/0x52 [ 43.212645] ? printk+0xa7/0xcf [ 43.215921] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 43.220676] ? __schedule+0xf54/0x1df0 [ 43.224572] print_address_description+0x6c/0x20b [ 43.229410] ? __schedule+0xf54/0x1df0 [ 43.233292] kasan_report.cold.7+0x242/0x30d [ 43.237708] __asan_report_load8_noabort+0x14/0x20 [ 43.242639] __schedule+0xf54/0x1df0 [ 43.246350] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 43.251453] ? __sched_text_start+0x8/0x8 [ 43.255602] ? __call_srcu+0x7e7/0x1040 [ 43.259586] ? check_same_owner+0x340/0x340 [ 43.263901] ? mark_held_locks+0x160/0x160 [ 43.268129] ? find_held_lock+0x36/0x1c0 [ 43.272186] preempt_schedule_common+0x22/0x60 [ 43.276766] _cond_resched+0x1d/0x30 [ 43.280478] wait_for_completion+0xa5/0x8d0 [ 43.284807] ? wait_for_completion_interruptible+0x950/0x950 [ 43.290600] ? __lockdep_init_map+0x105/0x590 [ 43.295094] ? __init_waitqueue_head+0x9e/0x150 [ 43.299757] ? init_wait_entry+0x1c0/0x1c0 [ 43.303997] __synchronize_srcu+0x189/0x240 [ 43.308335] ? call_srcu+0x10/0x10 [ 43.311874] ? rcu_unexpedite_gp+0x20/0x20 [ 43.316114] synchronize_srcu+0x335/0x56f [ 43.320259] ? lock_downgrade+0x8f0/0x8f0 [ 43.324403] ? synchronize_srcu_expedited+0x20/0x20 [ 43.329418] ? kasan_check_read+0x11/0x20 [ 43.333563] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 43.338139] ? kasan_check_write+0x14/0x20 [ 43.342371] ? do_raw_spin_lock+0xc1/0x200 [ 43.346616] kvm_page_track_unregister_notifier+0x17d/0x250 [ 43.352329] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 43.357774] ? kvfree+0x61/0x70 [ 43.361053] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.366066] kvm_mmu_uninit_vm+0x1c/0x20 [ 43.370120] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 43.374527] ? kvm_arch_sync_events+0x30/0x30 [ 43.379021] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.384554] ? mmu_notifier_unregister+0x474/0x600 [ 43.389489] ? trace_hardirqs_on+0x2c0/0x2c0 [ 43.393890] ? kfree+0x111/0x210 [ 43.397251] ? __mmu_notifier_register+0x30/0x30 [ 43.402007] ? __free_pages+0x10a/0x190 [ 43.405979] ? free_unref_page+0x930/0x930 [ 43.410218] kvm_put_kvm+0x73f/0x1060 [ 43.414022] ? kvm_write_guest_cached+0x40/0x40 [ 43.418689] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.423186] ? _raw_spin_unlock_irq+0x27/0x70 [ 43.427678] ? lockdep_hardirqs_on+0x421/0x5c0 [ 43.432265] ? kasan_check_write+0x14/0x20 [ 43.436499] ? do_raw_spin_lock+0xc1/0x200 [ 43.440735] ? kvm_irqfd_release+0xdd/0x120 [ 43.445048] ? kvm_irqfd_release+0xdd/0x120 [ 43.449369] ? kvm_put_kvm+0x1060/0x1060 [ 43.453423] kvm_vm_release+0x42/0x50 [ 43.457220] __fput+0x38a/0xa40 [ 43.460508] ? __alloc_file+0x400/0x400 [ 43.464483] ? check_same_owner+0x340/0x340 [ 43.468800] ? kasan_check_write+0x14/0x20 [ 43.473032] ? do_raw_spin_lock+0xc1/0x200 [ 43.477260] ____fput+0x15/0x20 [ 43.480537] task_work_run+0x1e8/0x2a0 [ 43.484422] ? task_work_cancel+0x240/0x240 [ 43.488742] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 43.494277] ? switch_task_namespaces+0xa2/0xd0 [ 43.498942] do_exit+0x1ae4/0x26e0 [ 43.502479] ? mm_update_next_owner+0x9a0/0x9a0 [ 43.507148] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 43.511379] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.516389] ? kfree+0x1d7/0x210 [ 43.519752] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 43.523984] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 43.529713] ? is_bpf_text_address+0xd7/0x170 [ 43.534208] ? kernel_text_address+0x79/0xf0 [ 43.538611] ? __kernel_text_address+0xd/0x40 [ 43.543108] ? unwind_get_return_address+0x61/0xa0 [ 43.548036] ? __save_stack_trace+0x8d/0xf0 [ 43.552364] ? save_stack+0xa9/0xd0 [ 43.555987] ? save_stack+0x43/0xd0 [ 43.559621] ? __kasan_slab_free+0x11a/0x170 [ 43.564027] ? kasan_slab_free+0xe/0x10 [ 43.568000] ? putname+0xf2/0x130 [ 43.571450] ? __x64_sys_openat+0x9d/0x100 [ 43.575681] ? do_syscall_64+0x1b9/0x820 [ 43.579757] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.585117] ? trace_hardirqs_off+0xb8/0x2b0 [ 43.589520] ? kasan_check_read+0x11/0x20 [ 43.593666] ? do_raw_spin_unlock+0xa7/0x2f0 [ 43.598078] ? trace_hardirqs_on+0x2c0/0x2c0 [ 43.602483] ? initcall_blacklisted+0x9a/0x1e0 [ 43.607062] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 43.612168] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 43.617876] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.623409] ? do_vfs_ioctl+0x201/0x1720 [ 43.627467] ? rcu_is_watching+0x8c/0x150 [ 43.631612] ? trace_hardirqs_on+0xbd/0x2c0 [ 43.635939] ? ioctl_preallocate+0x300/0x300 [ 43.640344] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.645908] ? __fget_light+0x2f7/0x440 [ 43.649880] ? fget_raw+0x20/0x20 [ 43.653325] ? putname+0xf2/0x130 [ 43.656778] ? rcu_read_lock_sched_held+0x108/0x120 [ 43.661787] ? kmem_cache_free+0x246/0x280 [ 43.666016] ? putname+0xf7/0x130 [ 43.669495] do_group_exit+0x177/0x440 [ 43.673379] ? trace_hardirqs_on+0xbd/0x2c0 [ 43.677734] ? __ia32_sys_exit+0x50/0x50 [ 43.681792] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 43.686890] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.692424] ? ksys_ioctl+0x81/0xd0 [ 43.696051] __x64_sys_exit_group+0x3e/0x50 [ 43.700372] do_syscall_64+0x1b9/0x820 [ 43.704259] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 43.709620] ? syscall_return_slowpath+0x5e0/0x5e0 [ 43.714548] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.719388] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 43.724399] ? prepare_exit_to_usermode+0x291/0x3b0 [ 43.729416] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.734259] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.739445] RIP: 0033:0x43f028 [ 43.742637] Code: Bad RIP value. [ 43.745992] RSP: 002b:00007ffcc5f31998 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 43.753705] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 43.760971] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 43.768235] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 43.775588] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 43.782854] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 43.790120] [ 43.791742] Allocated by task 4655: [ 43.795372] save_stack+0x43/0xd0 [ 43.798820] kasan_kmalloc+0xc4/0xe0 [ 43.802532] kasan_slab_alloc+0x12/0x20 [ 43.806498] kmem_cache_alloc+0x12e/0x710 [ 43.810641] vmx_create_vcpu+0xcf/0x2830 [ 43.814704] kvm_arch_vcpu_create+0xe5/0x220 [ 43.819109] kvm_vm_ioctl+0x488/0x1d80 [ 43.822993] do_vfs_ioctl+0x1de/0x1720 [ 43.826874] ksys_ioctl+0xa9/0xd0 [ 43.830323] __x64_sys_ioctl+0x73/0xb0 [ 43.834206] do_syscall_64+0x1b9/0x820 [ 43.838088] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.843772] [ 43.845390] Freed by task 4655: [ 43.848662] save_stack+0x43/0xd0 [ 43.852112] __kasan_slab_free+0x11a/0x170 [ 43.856345] kasan_slab_free+0xe/0x10 [ 43.860138] kmem_cache_free+0x86/0x280 [ 43.864107] vmx_free_vcpu+0x26b/0x300 [ 43.867989] kvm_arch_destroy_vm+0x365/0x7c0 [ 43.872393] kvm_put_kvm+0x73f/0x1060 [ 43.876191] kvm_vm_release+0x42/0x50 [ 43.879984] __fput+0x38a/0xa40 [ 43.883258] ____fput+0x15/0x20 [ 43.886534] task_work_run+0x1e8/0x2a0 [ 43.890416] do_exit+0x1ae4/0x26e0 [ 43.893955] do_group_exit+0x177/0x440 [ 43.897836] __x64_sys_exit_group+0x3e/0x50 [ 43.902154] do_syscall_64+0x1b9/0x820 [ 43.906037] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.911210] [ 43.912835] The buggy address belongs to the object at ffff8801b8958040 [ 43.912835] which belongs to the cache kvm_vcpu of size 23872 [ 43.925401] The buggy address is located 24 bytes inside of [ 43.925401] 23872-byte region [ffff8801b8958040, ffff8801b895dd80) [ 43.937351] The buggy address belongs to the page: [ 43.942276] page:ffffea0006e25600 count:1 mapcount:0 mapping:ffff8801d5262d80 index:0x0 compound_mapcount: 0 [ 43.952239] flags: 0x2fffc0000008100(slab|head) [ 43.956908] raw: 02fffc0000008100 ffff8801d5258848 ffff8801d5258848 ffff8801d5262d80 [ 43.964793] raw: 0000000000000000 ffff8801b8958040 0000000100000001 0000000000000000 [ 43.973015] page dumped because: kasan: bad access detected [ 43.978715] [ 43.980330] Memory state around the buggy address: [ 43.985252] ffff8801b8957f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.992605] ffff8801b8957f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.999963] >ffff8801b8958000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 44.007309] ^ [ 44.013535] ffff8801b8958080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.020886] ffff8801b8958100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.028230] ================================================================== [ 44.035599] Kernel panic - not syncing: panic_on_warn set ... [ 44.035599] [ 44.042973] CPU: 1 PID: 4655 Comm: syz-executor658 Tainted: G B 4.19.0-rc2+ #220 [ 44.051811] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.061153] Call Trace: [ 44.063748] dump_stack+0x1c9/0x2b4 [ 44.067376] ? dump_stack_print_info.cold.2+0x52/0x52 [ 44.072566] ? lock_downgrade+0x8f0/0x8f0 [ 44.076719] ? __schedule+0xf54/0x1df0 [ 44.080605] panic+0x238/0x4e7 [ 44.084312] ? add_taint.cold.5+0x16/0x16 [ 44.088466] ? print_shadow_for_address+0xba/0x116 [ 44.093389] ? trace_hardirqs_off+0xaf/0x2b0 [ 44.097795] ? trace_hardirqs_off+0x77/0x2b0 [ 44.102202] ? __schedule+0xf54/0x1df0 [ 44.106092] kasan_end_report+0x47/0x4f [ 44.110064] kasan_report.cold.7+0x76/0x30d [ 44.114408] __asan_report_load8_noabort+0x14/0x20 [ 44.119335] __schedule+0xf54/0x1df0 [ 44.123041] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 44.128144] ? __sched_text_start+0x8/0x8 [ 44.132289] ? __call_srcu+0x7e7/0x1040 [ 44.136266] ? check_same_owner+0x340/0x340 [ 44.140580] ? mark_held_locks+0x160/0x160 [ 44.144808] ? find_held_lock+0x36/0x1c0 [ 44.148873] preempt_schedule_common+0x22/0x60 [ 44.153452] _cond_resched+0x1d/0x30 [ 44.157165] wait_for_completion+0xa5/0x8d0 [ 44.161499] ? wait_for_completion_interruptible+0x950/0x950 [ 44.167293] ? __lockdep_init_map+0x105/0x590 [ 44.171790] ? __init_waitqueue_head+0x9e/0x150 [ 44.176453] ? init_wait_entry+0x1c0/0x1c0 [ 44.180715] __synchronize_srcu+0x189/0x240 [ 44.185030] ? call_srcu+0x10/0x10 [ 44.188571] ? rcu_unexpedite_gp+0x20/0x20 [ 44.192811] synchronize_srcu+0x335/0x56f [ 44.196961] ? lock_downgrade+0x8f0/0x8f0 [ 44.201106] ? synchronize_srcu_expedited+0x20/0x20 [ 44.206121] ? kasan_check_read+0x11/0x20 [ 44.210265] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 44.214844] ? kasan_check_write+0x14/0x20 [ 44.219077] ? do_raw_spin_lock+0xc1/0x200 [ 44.223316] kvm_page_track_unregister_notifier+0x17d/0x250 [ 44.229025] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 44.234480] ? kvfree+0x61/0x70 [ 44.237770] ? rcu_read_lock_sched_held+0x108/0x120 [ 44.242788] kvm_mmu_uninit_vm+0x1c/0x20 [ 44.246847] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 44.251253] ? kvm_arch_sync_events+0x30/0x30 [ 44.255752] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 44.261288] ? mmu_notifier_unregister+0x474/0x600 [ 44.266215] ? trace_hardirqs_on+0x2c0/0x2c0 [ 44.270617] ? kfree+0x111/0x210 [ 44.273984] ? __mmu_notifier_register+0x30/0x30 [ 44.278742] ? __free_pages+0x10a/0x190 [ 44.282720] ? free_unref_page+0x930/0x930 [ 44.286962] kvm_put_kvm+0x73f/0x1060 [ 44.290766] ? kvm_write_guest_cached+0x40/0x40 [ 44.295437] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.299926] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.304424] ? lockdep_hardirqs_on+0x421/0x5c0 [ 44.309009] ? kasan_check_write+0x14/0x20 [ 44.313238] ? do_raw_spin_lock+0xc1/0x200 [ 44.317470] ? kvm_irqfd_release+0xdd/0x120 [ 44.321784] ? kvm_irqfd_release+0xdd/0x120 [ 44.326104] ? kvm_put_kvm+0x1060/0x1060 [ 44.330159] kvm_vm_release+0x42/0x50 [ 44.333961] __fput+0x38a/0xa40 [ 44.337247] ? __alloc_file+0x400/0x400 [ 44.341225] ? check_same_owner+0x340/0x340 [ 44.345542] ? kasan_check_write+0x14/0x20 [ 44.349773] ? do_raw_spin_lock+0xc1/0x200 [ 44.354004] ____fput+0x15/0x20 [ 44.357277] task_work_run+0x1e8/0x2a0 [ 44.361160] ? task_work_cancel+0x240/0x240 [ 44.365480] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 44.371027] ? switch_task_namespaces+0xa2/0xd0 [ 44.375703] do_exit+0x1ae4/0x26e0 [ 44.379245] ? mm_update_next_owner+0x9a0/0x9a0 [ 44.383918] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 44.388157] ? rcu_read_lock_sched_held+0x108/0x120 [ 44.393167] ? kfree+0x1d7/0x210 [ 44.396530] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 44.400764] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 44.406472] ? is_bpf_text_address+0xd7/0x170 [ 44.410965] ? kernel_text_address+0x79/0xf0 [ 44.415370] ? __kernel_text_address+0xd/0x40 [ 44.419864] ? unwind_get_return_address+0x61/0xa0 [ 44.424793] ? __save_stack_trace+0x8d/0xf0 [ 44.429116] ? save_stack+0xa9/0xd0 [ 44.432741] ? save_stack+0x43/0xd0 [ 44.436363] ? __kasan_slab_free+0x11a/0x170 [ 44.440767] ? kasan_slab_free+0xe/0x10 [ 44.444757] ? putname+0xf2/0x130 [ 44.448207] ? __x64_sys_openat+0x9d/0x100 [ 44.452439] ? do_syscall_64+0x1b9/0x820 [ 44.456495] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.461863] ? trace_hardirqs_off+0xb8/0x2b0 [ 44.466263] ? kasan_check_read+0x11/0x20 [ 44.470407] ? do_raw_spin_unlock+0xa7/0x2f0 [ 44.474809] ? trace_hardirqs_on+0x2c0/0x2c0 [ 44.479216] ? initcall_blacklisted+0x9a/0x1e0 [ 44.483798] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 44.488903] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 44.494617] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.500149] ? do_vfs_ioctl+0x201/0x1720 [ 44.504207] ? rcu_is_watching+0x8c/0x150 [ 44.508348] ? trace_hardirqs_on+0xbd/0x2c0 [ 44.512668] ? ioctl_preallocate+0x300/0x300 [ 44.517083] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.522615] ? __fget_light+0x2f7/0x440 [ 44.526589] ? fget_raw+0x20/0x20 [ 44.530038] ? putname+0xf2/0x130 [ 44.533491] ? rcu_read_lock_sched_held+0x108/0x120 [ 44.538504] ? kmem_cache_free+0x246/0x280 [ 44.542735] ? putname+0xf7/0x130 [ 44.546190] do_group_exit+0x177/0x440 [ 44.550071] ? trace_hardirqs_on+0xbd/0x2c0 [ 44.554386] ? __ia32_sys_exit+0x50/0x50 [ 44.558440] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 44.563539] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.569071] ? ksys_ioctl+0x81/0xd0 [ 44.572707] __x64_sys_exit_group+0x3e/0x50 [ 44.577061] do_syscall_64+0x1b9/0x820 [ 44.580953] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 44.586327] ? syscall_return_slowpath+0x5e0/0x5e0 [ 44.591251] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.596089] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 44.601108] ? prepare_exit_to_usermode+0x291/0x3b0 [ 44.606122] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.610969] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.616151] RIP: 0033:0x43f028 [ 44.619343] Code: Bad RIP value. [ 44.622707] RSP: 002b:00007ffcc5f31998 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 44.630414] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f028 [ 44.637681] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 44.644956] RBP: 00000000004c08e8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 44.652217] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 44.659477] R13: 00000000006d2180 R14: 0000000000000000 R15: 0000000000000000 [ 44.666756] [ 44.666761] ====================================================== [ 44.666767] WARNING: possible circular locking dependency detected [ 44.666771] 4.19.0-rc2+ #220 Not tainted [ 44.666776] ------------------------------------------------------ [ 44.666781] syz-executor658/4655 is trying to acquire lock: [ 44.666785] 00000000885d181b ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 44.666800] [ 44.666804] but task is already holding lock: [ 44.666807] 000000000443e970 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 44.666821] [ 44.666825] which lock already depends on the new lock. [ 44.666828] [ 44.666830] [ 44.666835] the existing dependency chain (in reverse order) is: [ 44.666837] [ 44.666840] -> #3 (report_lock){....}: [ 44.666854] _raw_spin_lock_irqsave+0x96/0xc0 [ 44.666858] kasan_report+0x8e/0x110 [ 44.666862] __asan_report_load8_noabort+0x14/0x20 [ 44.666866] __schedule+0xf54/0x1df0 [ 44.666870] preempt_schedule_common+0x22/0x60 [ 44.666874] _cond_resched+0x1d/0x30 [ 44.666879] wait_for_completion+0xa5/0x8d0 [ 44.666883] __synchronize_srcu+0x189/0x240 [ 44.666887] synchronize_srcu+0x335/0x56f [ 44.666892] kvm_page_track_unregister_notifier+0x17d/0x250 [ 44.666896] kvm_mmu_uninit_vm+0x1c/0x20 [ 44.666900] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 44.666904] kvm_put_kvm+0x73f/0x1060 [ 44.666908] kvm_vm_release+0x42/0x50 [ 44.666912] __fput+0x38a/0xa40 [ 44.666915] ____fput+0x15/0x20 [ 44.666919] task_work_run+0x1e8/0x2a0 [ 44.666923] do_exit+0x1ae4/0x26e0 [ 44.666927] do_group_exit+0x177/0x440 [ 44.666931] __x64_sys_exit_group+0x3e/0x50 [ 44.666940] do_syscall_64+0x1b9/0x820 [ 44.666945] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.666947] [ 44.666950] -> #2 (&rq->lock){-.-.}: [ 44.666964] _raw_spin_lock+0x2a/0x40 [ 44.666968] task_fork_fair+0x93/0x680 [ 44.666971] sched_fork+0x44b/0xbd0 [ 44.666975] copy_process+0x235e/0x7ad0 [ 44.666979] _do_fork+0x1ca/0x1170 [ 44.666983] kernel_thread+0x34/0x40 [ 44.666987] rest_init+0x22/0xe4 [ 44.666990] start_kernel+0x913/0x94e [ 44.666995] x86_64_start_reservations+0x29/0x2b [ 44.666999] x86_64_start_kernel+0x76/0x79 [ 44.667003] secondary_startup_64+0xa4/0xb0 [ 44.667005] [ 44.667008] -> #1 (&p->pi_lock){-.-.}: [ 44.667022] _raw_spin_lock_irqsave+0x96/0xc0 [ 44.667026] try_to_wake_up+0xd2/0x1250 [ 44.667030] wake_up_process+0x10/0x20 [ 44.667034] __up.isra.1+0x1c0/0x2a0 [ 44.667037] up+0x13c/0x1c0 [ 44.667041] __up_console_sem+0xbe/0x1b0 [ 44.667045] console_unlock+0x506/0x10d0 [ 44.667049] vprintk_emit+0x33a/0x910 [ 44.667053] vprintk_default+0x28/0x30 [ 44.667056] vprintk_func+0x7a/0x117 [ 44.667060] printk+0xa7/0xcf [ 44.667063] load_umh+0x51/0xbd [ 44.667067] do_one_initcall+0x127/0x838 [ 44.667072] kernel_init_freeable+0x4bb/0x5ae [ 44.667075] kernel_init+0x11/0x1b3 [ 44.667079] ret_from_fork+0x3a/0x50 [ 44.667081] [ 44.667083] -> #0 ((console_sem).lock){-...}: [ 44.667098] lock_acquire+0x1e4/0x4f0 [ 44.667102] _raw_spin_lock_irqsave+0x96/0xc0 [ 44.667106] down_trylock+0x13/0x70 [ 44.667110] __down_trylock_console_sem+0xae/0x200 [ 44.667114] console_trylock+0x15/0xa0 [ 44.667118] vprintk_emit+0x31f/0x910 [ 44.667122] vprintk_default+0x28/0x30 [ 44.667126] vprintk_func+0x7a/0x117 [ 44.667129] printk+0xa7/0xcf [ 44.667133] kasan_report+0x9e/0x110 [ 44.667138] __asan_report_load8_noabort+0x14/0x20 [ 44.667141] __schedule+0xf54/0x1df0 [ 44.667146] preempt_schedule_common+0x22/0x60 [ 44.667149] _cond_resched+0x1d/0x30 [ 44.667154] wait_for_completion+0xa5/0x8d0 [ 44.667158] __synchronize_srcu+0x189/0x240 [ 44.667162] synchronize_srcu+0x335/0x56f [ 44.667167] kvm_page_track_unregister_notifier+0x17d/0x250 [ 44.667171] kvm_mmu_uninit_vm+0x1c/0x20 [ 44.667175] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 44.667179] kvm_put_kvm+0x73f/0x1060 [ 44.667182] kvm_vm_release+0x42/0x50 [ 44.667186] __fput+0x38a/0xa40 [ 44.667189] ____fput+0x15/0x20 [ 44.667193] task_work_run+0x1e8/0x2a0 [ 44.667197] do_exit+0x1ae4/0x26e0 [ 44.667201] do_group_exit+0x177/0x440 [ 44.667205] __x64_sys_exit_group+0x3e/0x50 [ 44.667209] do_syscall_64+0x1b9/0x820 [ 44.667214] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.667216] [ 44.667220] other info that might help us debug this: [ 44.667222] [ 44.667225] Chain exists of: [ 44.667228] (console_sem).lock --> &rq->lock --> report_lock [ 44.667246] [ 44.667250] Possible unsafe locking scenario: [ 44.667252] [ 44.667256] CPU0 CPU1 [ 44.667260] ---- ---- [ 44.667262] lock(report_lock); [ 44.667272] lock(&rq->lock); [ 44.667281] lock(report_lock); [ 44.667289] lock((console_sem).lock); [ 44.667297] [ 44.667300] *** DEADLOCK *** [ 44.667302] [ 44.667307] 2 locks held by syz-executor658/4655: [ 44.667309] #0: 00000000d6e4b306 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 44.667326] #1: 000000000443e970 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 44.667342] [ 44.667345] stack backtrace: [ 44.667351] CPU: 1 PID: 4655 Comm: syz-executor658 Not tainted 4.19.0-rc2+ #220 [ 44.667358] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.667362] Call Trace: [ 44.667365] dump_stack+0x1c9/0x2b4 [ 44.667370] ? dump_stack_print_info.cold.2+0x52/0x52 [ 44.667374] ? vprintk_func+0x100/0x117 [ 44.667379] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 44.667382] ? save_trace+0xe0/0x290 [ 44.667387] __lock_acquire+0x3449/0x5020 [ 44.667391] ? mark_held_locks+0x160/0x160 [ 44.667395] ? mark_held_locks+0x160/0x160 [ 44.667399] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 44.667403] ? is_bpf_text_address+0xd7/0x170 [ 44.667407] ? kernel_text_address+0x79/0xf0 [ 44.667412] ? __kernel_text_address+0xd/0x40 [ 44.667416] ? __save_stack_trace+0x8d/0xf0 [ 44.667420] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 44.667424] ? save_trace+0x290/0x290 [ 44.667428] ? save_stack_trace+0x1a/0x20 [ 44.667432] ? save_trace+0xe0/0x290 [ 44.667435] ? graph_lock+0x170/0x170 [ 44.667441] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 44.667445] lock_acquire+0x1e4/0x4f0 [ 44.667449] ? down_trylock+0x13/0x70 [ 44.667453] ? lock_release+0x9f0/0x9f0 [ 44.667457] ? trace_hardirqs_off+0xb8/0x2b0 [ 44.667461] ? trace_hardirqs_on+0x2c0/0x2c0 [ 44.667465] ? trace_hardirqs_off+0xb8/0x2b0 [ 44.667469] ? log_store+0x34f/0x4c0 [ 44.667473] ? vprintk_emit+0x31f/0x910 [ 44.667477] _raw_spin_lock_irqsave+0x96/0xc0 [ 44.667481] ? down_trylock+0x13/0x70 [ 44.667484] down_trylock+0x13/0x70 [ 44.667489] __down_trylock_console_sem+0xae/0x200 [ 44.667493] console_trylock+0x15/0xa0 [ 44.667496] vprintk_emit+0x31f/0x910 [ 44.667500] ? wake_up_klogd+0x110/0x110 [ 44.667505] ? run_rebalance_domains+0x4c0/0x4c0 [ 44.667509] ? kasan_check_read+0x11/0x20 [ 44.667513] ? rcu_is_watching+0x8c/0x150 [ 44.667517] ? rcu_pm_notify+0xc0/0xc0 [ 44.667521] ? lock_acquire+0x1e4/0x4f0 [ 44.667524] ? kasan_report+0x8e/0x110 [ 44.667528] ? __schedule+0xf54/0x1df0 [ 44.667532] vprintk_default+0x28/0x30 [ 44.667536] vprintk_func+0x7a/0x117 [ 44.667539] printk+0xa7/0xcf [ 44.667544] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 44.667548] ? kasan_check_write+0x14/0x20 [ 44.667552] ? do_raw_spin_lock+0xc1/0x200 [ 44.667556] ? do_raw_spin_lock+0xc1/0x200 [ 44.667560] kasan_report+0x9e/0x110 [ 44.667564] __asan_report_load8_noabort+0x14/0x20 [ 44.667568] __schedule+0xf54/0x1df0 [ 44.667572] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 44.667577] ? __sched_text_start+0x8/0x8 [ 44.667580] ? __call_srcu+0x7e7/0x1040 [ 44.667585] ? check_same_owner+0x340/0x340 [ 44.667589] ? mark_held_locks+0x160/0x160 [ 44.667593] ? find_held_lock+0x36/0x1c0 [ 44.667597] preempt_schedule_common+0x22/0x60 [ 44.667601] _cond_resched+0x1d/0x30 [ 44.667605] wait_for_completion+0xa5/0x8d0 [ 44.667610] ? wait_for_completion_interruptible+0x950/0x950 [ 44.667614] ? __lockdep_init_map+0x105/0x590 [ 44.667618] ? __init_waitqueue_head+0x9e/0x150 [ 44.667622] ? init_wait_entry+0x1c0/0x1c0 [ 44.667626] __synchronize_srcu+0x189/0x240 [ 44.667630] ? call_srcu+0x10/0x10 [ 44.667634] ? rcu_unexpedite_gp+0x20/0x20 [ 44.667638] synchronize_srcu+0x335/0x56f [ 44.667642] ? lock_downgrade+0x8f0/0x8f0 [ 44.667647] ? synchronize_srcu_expedited+0x20/0x20 [ 44.667651] ? kasan_check_read+0x11/0x20 [ 44.667655] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 44.667659] ? kasan_check_write+0x14/0x20 [ 44.667664] ? do_raw_spin_lock+0xc1/0x200 [ 44.667669] kvm_page_track_unregister_notifier+0x17d/0x250 [ 44.667674] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 44.667677] ? kvfree+0x61/0x70 [ 44.667682] ? rcu_read_lock_sched_held+0x108/0x120 [ 44.667686] kvm_mmu_uninit_vm+0x1c/0x20 [ 44.667690] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 44.667701] ? kvm_arch_sync_events+0x30/0x30 [ 44.667706] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 44.667711] ? mmu_notifier_unregister+0x474/0x600 [ 44.667715] ? trace_hardirqs_on+0x2c0/0x2c0 [ 44.667719] ? kfree+0x111/0x210 [ 44.667723] ? __mmu_notifier_register+0x30/0x30 [ 44.667727] ? __free_pages+0x10a/0x190 [ 44.667731] ? free_unref_page+0x930/0x930 [ 44.667735] kvm_put_kvm+0x73f/0x1060 [ 44.667739] ? kvm_write_guest_cached+0x40/0x40 [ 44.667744] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.667748] ? _raw_spin_unlock_irq+0x27/0x70 [ 44.667752] ? lockdep_hardirqs_on+0x421/0x5c0 [ 44.667757] ? kasan_check_write+0x14/0x20 [ 44.667761] ? do_raw_spin_lock+0xc1/0x200 [ 44.667765] ? kvm_irqfd_release+0xdd/0x120 [ 44.667769] ? kvm_irqfd_release+0xdd/0x120 [ 44.667773] ? kvm_put_kvm+0x1060/0x1060 [ 44.667777] kvm_vm_release+0x42/0x50 [ 44.667781] __fput+0x38a/0xa40 [ 44.667785] ? __alloc_file+0x400/0x400 [ 44.667789] ? check_same_owner+0x340/0x340 [ 44.667793] ? kasan_check_write+0x14/0x20 [ 44.667797] ? do_raw_spin_lock+0xc1/0x200 [ 44.667801] ____fput+0x15/0x20 [ 44.667805] task_work_run+0x1e8/0x2a0 [ 44.667809] ? task_work_cancel+0x240/0x240 [ 44.667814] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 44.667818] ? switch_task_namespaces+0xa2/0xd0 [ 44.667822] do_exit+0x1ae4/0x26e0 [ 44.667826] ? mm_update_next_owner+0x9a0/0x9a0 [ 44.667830] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 44.667834] ? rcu_read_lock_sched_held+0x108/0x120 [ 44.667838] ? kfree+0x1d7/0x210 [ 44.667842] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 44.667847] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 44.667851] ? is_bpf_text_address+0xd7/0x170 [ 44.667854] ? [ 44.667861] Lost 54 message(s)! [ 45.725442] Shutting down cpus with NMI [ 46.785860] Dumping ftrace buffer: [ 46.789386] (ftrace buffer empty) [ 46.793074] Kernel Offset: disabled [ 46.796680] Rebooting in 86400 seconds..