[....] 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[ 21.874549] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 26.910838] random: sshd: uninitialized urandom read (32 bytes read) [ 27.143253] random: sshd: uninitialized urandom read (32 bytes read) [ 27.663043] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.59' (ECDSA) to the list of known hosts. [ 33.401412] urandom_read: 1 callbacks suppressed [ 33.401418] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 33.503970] 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.529307] ================================================================== [ 33.539133] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 33.545357] Read of size 8 at addr ffff8801d8ca0058 by task syz-executor130/4667 [ 33.552875] [ 33.554500] CPU: 0 PID: 4667 Comm: syz-executor130 Not tainted 4.19.0-rc2+ #2 [ 33.561764] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.571114] Call Trace: [ 33.573704] dump_stack+0x1c9/0x2b4 [ 33.577330] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.582520] ? printk+0xa7/0xcf [ 33.585798] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.590556] ? __schedule+0xf54/0x1df0 [ 33.594448] print_address_description+0x6c/0x20b [ 33.599287] ? __schedule+0xf54/0x1df0 [ 33.603173] kasan_report.cold.7+0x242/0x30d [ 33.607582] __asan_report_load8_noabort+0x14/0x20 [ 33.612536] __schedule+0xf54/0x1df0 [ 33.616256] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.621359] ? __sched_text_start+0x8/0x8 [ 33.625509] ? __call_srcu+0x7e7/0x1040 [ 33.629491] ? check_same_owner+0x340/0x340 [ 33.633810] ? mark_held_locks+0x160/0x160 [ 33.638038] ? find_held_lock+0x36/0x1c0 [ 33.642101] preempt_schedule_common+0x22/0x60 [ 33.646681] _cond_resched+0x1d/0x30 [ 33.650391] wait_for_completion+0xa5/0x8d0 [ 33.654714] ? wait_for_completion_interruptible+0x950/0x950 [ 33.660509] ? __lockdep_init_map+0x105/0x590 [ 33.665001] ? __init_waitqueue_head+0x9e/0x150 [ 33.669664] ? init_wait_entry+0x1c0/0x1c0 [ 33.673902] __synchronize_srcu+0x189/0x240 [ 33.678220] ? call_srcu+0x10/0x10 [ 33.681756] ? rcu_unexpedite_gp+0x20/0x20 [ 33.685995] synchronize_srcu+0x335/0x56f [ 33.690141] ? lock_downgrade+0x8f0/0x8f0 [ 33.694284] ? synchronize_srcu_expedited+0x20/0x20 [ 33.699309] ? kasan_check_read+0x11/0x20 [ 33.703453] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.708033] ? kasan_check_write+0x14/0x20 [ 33.712264] ? do_raw_spin_lock+0xc1/0x200 [ 33.716504] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.722213] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.727659] ? kvfree+0x61/0x70 [ 33.730937] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.735955] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.740012] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.744417] ? kvm_arch_sync_events+0x30/0x30 [ 33.748913] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.754447] ? mmu_notifier_unregister+0x474/0x600 [ 33.759371] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.763777] ? kfree+0x111/0x210 [ 33.767141] ? __mmu_notifier_register+0x30/0x30 [ 33.771895] ? __free_pages+0x10a/0x190 [ 33.775872] ? free_unref_page+0x930/0x930 [ 33.780116] kvm_put_kvm+0x73f/0x1060 [ 33.783920] ? kvm_write_guest_cached+0x40/0x40 [ 33.788589] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.793098] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.797595] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.802191] ? kasan_check_write+0x14/0x20 [ 33.806427] ? do_raw_spin_lock+0xc1/0x200 [ 33.810662] ? kvm_irqfd_release+0xdd/0x120 [ 33.814985] ? kvm_irqfd_release+0xdd/0x120 [ 33.819302] ? kvm_put_kvm+0x1060/0x1060 [ 33.823364] kvm_vm_release+0x42/0x50 [ 33.827159] __fput+0x38a/0xa40 [ 33.830438] ? __alloc_file+0x400/0x400 [ 33.834412] ? check_same_owner+0x340/0x340 [ 33.838739] ? kasan_check_write+0x14/0x20 [ 33.842983] ? do_raw_spin_lock+0xc1/0x200 [ 33.847216] ____fput+0x15/0x20 [ 33.850493] task_work_run+0x1e8/0x2a0 [ 33.854380] ? task_work_cancel+0x240/0x240 [ 33.858700] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.864231] ? switch_task_namespaces+0xa2/0xd0 [ 33.868897] do_exit+0x1ae4/0x26e0 [ 33.872439] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.877108] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.881341] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.886356] ? kfree+0x1d7/0x210 [ 33.889730] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.893963] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.899674] ? is_bpf_text_address+0xd7/0x170 [ 33.904164] ? kernel_text_address+0x79/0xf0 [ 33.908569] ? __kernel_text_address+0xd/0x40 [ 33.913066] ? unwind_get_return_address+0x61/0xa0 [ 33.917992] ? __save_stack_trace+0x8d/0xf0 [ 33.922674] ? save_stack+0xa9/0xd0 [ 33.926301] ? save_stack+0x43/0xd0 [ 33.929924] ? __kasan_slab_free+0x11a/0x170 [ 33.934332] ? kasan_slab_free+0xe/0x10 [ 33.938300] ? putname+0xf2/0x130 [ 33.941754] ? __x64_sys_openat+0x9d/0x100 [ 33.945984] ? do_syscall_64+0x1b9/0x820 [ 33.950047] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.955407] ? trace_hardirqs_off+0xb8/0x2c0 [ 33.959811] ? kasan_check_read+0x11/0x20 [ 33.963960] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.968368] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.972774] ? initcall_blacklisted+0x9a/0x1e0 [ 33.977356] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.982457] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.988169] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.993714] ? do_vfs_ioctl+0x201/0x1720 [ 33.997771] ? rcu_is_watching+0x8c/0x150 [ 34.001912] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.006233] ? ioctl_preallocate+0x300/0x300 [ 34.010643] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.016179] ? __fget_light+0x2f7/0x440 [ 34.020155] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.025696] ? smack_file_ioctl+0x210/0x3c0 [ 34.030011] ? fget_raw+0x20/0x20 [ 34.033461] ? smack_file_lock+0x2e0/0x2e0 [ 34.037708] do_group_exit+0x177/0x440 [ 34.041601] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.045925] ? __ia32_sys_exit+0x50/0x50 [ 34.050002] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.055104] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.060638] ? ksys_ioctl+0x81/0xd0 [ 34.064263] __x64_sys_exit_group+0x3e/0x50 [ 34.068582] do_syscall_64+0x1b9/0x820 [ 34.072470] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.077830] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.082757] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.087594] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 34.092622] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.097675] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.102700] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.107539] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.112721] RIP: 0033:0x43ef08 [ 34.115913] Code: Bad RIP value. [ 34.119271] RSP: 002b:00007ffd78b7c738 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.126975] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 34.134234] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.141499] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.148764] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 34.156026] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 34.163295] [ 34.164910] Allocated by task 4667: [ 34.168535] save_stack+0x43/0xd0 [ 34.171979] kasan_kmalloc+0xc4/0xe0 [ 34.175689] kasan_slab_alloc+0x12/0x20 [ 34.179655] kmem_cache_alloc+0x12e/0x710 [ 34.183800] vmx_create_vcpu+0xcf/0x2830 [ 34.187853] kvm_arch_vcpu_create+0xe5/0x220 [ 34.192262] kvm_vm_ioctl+0x488/0x1d80 [ 34.196144] do_vfs_ioctl+0x1de/0x1720 [ 34.200027] ksys_ioctl+0xa9/0xd0 [ 34.203477] __x64_sys_ioctl+0x73/0xb0 [ 34.207359] do_syscall_64+0x1b9/0x820 [ 34.211241] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.216414] [ 34.218032] Freed by task 4667: [ 34.221309] save_stack+0x43/0xd0 [ 34.224784] __kasan_slab_free+0x11a/0x170 [ 34.229024] kasan_slab_free+0xe/0x10 [ 34.232819] kmem_cache_free+0x86/0x280 [ 34.236786] vmx_free_vcpu+0x26b/0x300 [ 34.240670] kvm_arch_destroy_vm+0x365/0x7c0 [ 34.245075] kvm_put_kvm+0x73f/0x1060 [ 34.248873] kvm_vm_release+0x42/0x50 [ 34.252664] __fput+0x38a/0xa40 [ 34.255937] ____fput+0x15/0x20 [ 34.259210] task_work_run+0x1e8/0x2a0 [ 34.263093] do_exit+0x1ae4/0x26e0 [ 34.266637] do_group_exit+0x177/0x440 [ 34.270516] __x64_sys_exit_group+0x3e/0x50 [ 34.274830] do_syscall_64+0x1b9/0x820 [ 34.278718] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.283893] [ 34.285524] The buggy address belongs to the object at ffff8801d8ca0040 [ 34.285524] which belongs to the cache kvm_vcpu of size 23872 [ 34.298089] The buggy address is located 24 bytes inside of [ 34.298089] 23872-byte region [ffff8801d8ca0040, ffff8801d8ca5d80) [ 34.310038] The buggy address belongs to the page: [ 34.314968] page:ffffea0007632800 count:1 mapcount:0 mapping:ffff8801d9fc7080 index:0x0 compound_mapcount: 0 [ 34.324941] flags: 0x2fffc0000008100(slab|head) [ 34.329627] raw: 02fffc0000008100 ffff8801d4d1f748 ffff8801d4d1f748 ffff8801d9fc7080 [ 34.337507] raw: 0000000000000000 ffff8801d8ca0040 0000000100000001 0000000000000000 [ 34.345371] page dumped because: kasan: bad access detected [ 34.351063] [ 34.352678] Memory state around the buggy address: [ 34.357614] ffff8801d8c9ff00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 34.364963] ffff8801d8c9ff80: 00 00 01 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.372313] >ffff8801d8ca0000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.379660] ^ [ 34.386060] ffff8801d8ca0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.393412] ffff8801d8ca0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.400758] ================================================================== [ 34.408108] Kernel panic - not syncing: panic_on_warn set ... [ 34.408108] [ 34.415475] CPU: 0 PID: 4667 Comm: syz-executor130 Tainted: G B 4.19.0-rc2+ #2 [ 34.424127] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.433471] Call Trace: [ 34.436060] dump_stack+0x1c9/0x2b4 [ 34.439696] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.444886] ? lock_downgrade+0x8f0/0x8f0 [ 34.449031] ? __schedule+0xf54/0x1df0 [ 34.452913] panic+0x238/0x4e7 [ 34.456102] ? add_taint.cold.5+0x16/0x16 [ 34.460254] ? print_shadow_for_address+0xba/0x116 [ 34.465180] ? trace_hardirqs_off+0xaf/0x2c0 [ 34.469583] ? trace_hardirqs_off+0x77/0x2c0 [ 34.474001] ? __schedule+0xf54/0x1df0 [ 34.477885] kasan_end_report+0x47/0x4f [ 34.481859] kasan_report.cold.7+0x76/0x30d [ 34.486181] __asan_report_load8_noabort+0x14/0x20 [ 34.491105] __schedule+0xf54/0x1df0 [ 34.494813] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.499915] ? __sched_text_start+0x8/0x8 [ 34.504062] ? __call_srcu+0x7e7/0x1040 [ 34.508041] ? check_same_owner+0x340/0x340 [ 34.512393] ? mark_held_locks+0x160/0x160 [ 34.516629] ? find_held_lock+0x36/0x1c0 [ 34.520694] preempt_schedule_common+0x22/0x60 [ 34.525271] _cond_resched+0x1d/0x30 [ 34.528984] wait_for_completion+0xa5/0x8d0 [ 34.533307] ? wait_for_completion_interruptible+0x950/0x950 [ 34.539102] ? __lockdep_init_map+0x105/0x590 [ 34.543593] ? __init_waitqueue_head+0x9e/0x150 [ 34.548266] ? init_wait_entry+0x1c0/0x1c0 [ 34.552512] __synchronize_srcu+0x189/0x240 [ 34.556828] ? call_srcu+0x10/0x10 [ 34.560367] ? rcu_unexpedite_gp+0x20/0x20 [ 34.564615] synchronize_srcu+0x335/0x56f [ 34.568758] ? lock_downgrade+0x8f0/0x8f0 [ 34.572902] ? synchronize_srcu_expedited+0x20/0x20 [ 34.577918] ? kasan_check_read+0x11/0x20 [ 34.582065] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 34.586646] ? kasan_check_write+0x14/0x20 [ 34.590904] ? do_raw_spin_lock+0xc1/0x200 [ 34.595141] kvm_page_track_unregister_notifier+0x17d/0x250 [ 34.600848] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 34.606292] ? kvfree+0x61/0x70 [ 34.609569] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.614583] kvm_mmu_uninit_vm+0x1c/0x20 [ 34.618650] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 34.623054] ? kvm_arch_sync_events+0x30/0x30 [ 34.627546] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.633083] ? mmu_notifier_unregister+0x474/0x600 [ 34.638005] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.642405] ? kfree+0x111/0x210 [ 34.645766] ? __mmu_notifier_register+0x30/0x30 [ 34.650521] ? __free_pages+0x10a/0x190 [ 34.654493] ? free_unref_page+0x930/0x930 [ 34.658732] kvm_put_kvm+0x73f/0x1060 [ 34.662539] ? kvm_write_guest_cached+0x40/0x40 [ 34.667206] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.671702] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.676193] ? lockdep_hardirqs_on+0x421/0x5c0 [ 34.680778] ? kasan_check_write+0x14/0x20 [ 34.685008] ? do_raw_spin_lock+0xc1/0x200 [ 34.689238] ? kvm_irqfd_release+0xdd/0x120 [ 34.693556] ? kvm_irqfd_release+0xdd/0x120 [ 34.697877] ? kvm_put_kvm+0x1060/0x1060 [ 34.701933] kvm_vm_release+0x42/0x50 [ 34.705731] __fput+0x38a/0xa40 [ 34.709010] ? __alloc_file+0x400/0x400 [ 34.712986] ? check_same_owner+0x340/0x340 [ 34.717302] ? kasan_check_write+0x14/0x20 [ 34.721536] ? do_raw_spin_lock+0xc1/0x200 [ 34.725763] ____fput+0x15/0x20 [ 34.729040] task_work_run+0x1e8/0x2a0 [ 34.732924] ? task_work_cancel+0x240/0x240 [ 34.737245] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 34.742788] ? switch_task_namespaces+0xa2/0xd0 [ 34.747454] do_exit+0x1ae4/0x26e0 [ 34.750997] ? mm_update_next_owner+0x9a0/0x9a0 [ 34.755671] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 34.759907] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.764917] ? kfree+0x1d7/0x210 [ 34.768283] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 34.772517] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.778225] ? is_bpf_text_address+0xd7/0x170 [ 34.782719] ? kernel_text_address+0x79/0xf0 [ 34.787120] ? __kernel_text_address+0xd/0x40 [ 34.791617] ? unwind_get_return_address+0x61/0xa0 [ 34.796544] ? __save_stack_trace+0x8d/0xf0 [ 34.800866] ? save_stack+0xa9/0xd0 [ 34.804491] ? save_stack+0x43/0xd0 [ 34.808113] ? __kasan_slab_free+0x11a/0x170 [ 34.812513] ? kasan_slab_free+0xe/0x10 [ 34.816480] ? putname+0xf2/0x130 [ 34.819930] ? __x64_sys_openat+0x9d/0x100 [ 34.824161] ? do_syscall_64+0x1b9/0x820 [ 34.828220] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.833582] ? trace_hardirqs_off+0xb8/0x2c0 [ 34.837979] ? kasan_check_read+0x11/0x20 [ 34.842105] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.846673] ? trace_hardirqs_on+0x2c0/0x2c0 [ 34.851063] ? initcall_blacklisted+0x9a/0x1e0 [ 34.855632] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 34.860719] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 34.866409] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.871926] ? do_vfs_ioctl+0x201/0x1720 [ 34.875963] ? rcu_is_watching+0x8c/0x150 [ 34.880088] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.884388] ? ioctl_preallocate+0x300/0x300 [ 34.888776] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.894292] ? __fget_light+0x2f7/0x440 [ 34.898245] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.903774] ? smack_file_ioctl+0x210/0x3c0 [ 34.908091] ? fget_raw+0x20/0x20 [ 34.911537] ? smack_file_lock+0x2e0/0x2e0 [ 34.915771] do_group_exit+0x177/0x440 [ 34.919655] ? trace_hardirqs_on+0xbd/0x2c0 [ 34.923986] ? __ia32_sys_exit+0x50/0x50 [ 34.928040] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 34.933148] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.938692] ? ksys_ioctl+0x81/0xd0 [ 34.942315] __x64_sys_exit_group+0x3e/0x50 [ 34.946640] do_syscall_64+0x1b9/0x820 [ 34.950525] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.955886] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.961010] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.965844] ? trace_hardirqs_on_caller+0x2c0/0x2c0 [ 34.970857] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.975872] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.980890] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.985730] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.990910] RIP: 0033:0x43ef08 [ 34.994098] Code: Bad RIP value. [ 34.997454] RSP: 002b:00007ffd78b7c738 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.005157] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ef08 [ 35.012417] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.019679] RBP: 00000000004be7c8 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.026947] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 35.034212] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 35.041485] [ 35.041490] ====================================================== [ 35.041496] WARNING: possible circular locking dependency detected [ 35.041499] 4.19.0-rc2+ #2 Not tainted [ 35.041505] ------------------------------------------------------ [ 35.041510] syz-executor130/4667 is trying to acquire lock: [ 35.041513] 000000004743e335 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 35.041528] [ 35.041532] but task is already holding lock: [ 35.041535] 0000000000fb6717 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.041550] [ 35.041554] which lock already depends on the new lock. [ 35.041556] [ 35.041559] [ 35.041564] the existing dependency chain (in reverse order) is: [ 35.041566] [ 35.041569] -> #3 (report_lock){....}: [ 35.041583] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.041587] kasan_report+0x8e/0x110 [ 35.041591] __asan_report_load8_noabort+0x14/0x20 [ 35.041595] __schedule+0xf54/0x1df0 [ 35.041600] preempt_schedule_common+0x22/0x60 [ 35.041603] _cond_resched+0x1d/0x30 [ 35.041615] wait_for_completion+0xa5/0x8d0 [ 35.041619] __synchronize_srcu+0x189/0x240 [ 35.041624] synchronize_srcu+0x335/0x56f [ 35.041629] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.041633] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.041637] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.041641] kvm_put_kvm+0x73f/0x1060 [ 35.041645] kvm_vm_release+0x42/0x50 [ 35.041648] __fput+0x38a/0xa40 [ 35.041652] ____fput+0x15/0x20 [ 35.041656] task_work_run+0x1e8/0x2a0 [ 35.041659] do_exit+0x1ae4/0x26e0 [ 35.041663] do_group_exit+0x177/0x440 [ 35.041668] __x64_sys_exit_group+0x3e/0x50 [ 35.041671] do_syscall_64+0x1b9/0x820 [ 35.041676] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.041678] [ 35.041681] -> #2 (&rq->lock){-.-.}: [ 35.041700] _raw_spin_lock+0x2a/0x40 [ 35.041704] task_fork_fair+0x93/0x680 [ 35.041707] sched_fork+0x44b/0xbd0 [ 35.041711] copy_process+0x235e/0x7af0 [ 35.041715] _do_fork+0x1ca/0x1170 [ 35.041719] kernel_thread+0x34/0x40 [ 35.041722] rest_init+0x22/0xe4 [ 35.041726] start_kernel+0x913/0x94e [ 35.041731] x86_64_start_reservations+0x29/0x2b [ 35.041735] x86_64_start_kernel+0x76/0x79 [ 35.041739] secondary_startup_64+0xa4/0xb0 [ 35.041741] [ 35.041744] -> #1 (&p->pi_lock){-.-.}: [ 35.041758] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.041762] try_to_wake_up+0xd2/0x1250 [ 35.041766] wake_up_process+0x10/0x20 [ 35.041770] __up.isra.1+0x1c0/0x2a0 [ 35.041773] up+0x13c/0x1c0 [ 35.041777] __up_console_sem+0xbe/0x1b0 [ 35.041781] console_unlock+0x506/0x10e0 [ 35.041785] vprintk_emit+0x33a/0x910 [ 35.041789] vprintk_default+0x28/0x30 [ 35.041793] vprintk_func+0x7a/0x117 [ 35.041796] printk+0xa7/0xcf [ 35.041800] do_exit.cold.22+0x120/0x21f [ 35.041804] do_group_exit+0x177/0x440 [ 35.041808] __x64_sys_exit_group+0x3e/0x50 [ 35.041812] do_syscall_64+0x1b9/0x820 [ 35.041817] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.041819] [ 35.041821] -> #0 ((console_sem).lock){-...}: [ 35.041836] lock_acquire+0x1e4/0x4f0 [ 35.041840] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.041844] down_trylock+0x13/0x70 [ 35.041848] __down_trylock_console_sem+0xae/0x200 [ 35.041852] console_trylock+0x15/0xa0 [ 35.041856] vprintk_emit+0x31f/0x910 [ 35.041860] vprintk_default+0x28/0x30 [ 35.041864] vprintk_func+0x7a/0x117 [ 35.041867] printk+0xa7/0xcf [ 35.041871] kasan_report+0x9e/0x110 [ 35.041876] __asan_report_load8_noabort+0x14/0x20 [ 35.041879] __schedule+0xf54/0x1df0 [ 35.041884] preempt_schedule_common+0x22/0x60 [ 35.041888] _cond_resched+0x1d/0x30 [ 35.041892] wait_for_completion+0xa5/0x8d0 [ 35.041896] __synchronize_srcu+0x189/0x240 [ 35.041900] synchronize_srcu+0x335/0x56f [ 35.041905] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.041909] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.041913] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.041917] kvm_put_kvm+0x73f/0x1060 [ 35.041921] kvm_vm_release+0x42/0x50 [ 35.041925] __fput+0x38a/0xa40 [ 35.041928] ____fput+0x15/0x20 [ 35.041932] task_work_run+0x1e8/0x2a0 [ 35.041936] do_exit+0x1ae4/0x26e0 [ 35.041940] do_group_exit+0x177/0x440 [ 35.041944] __x64_sys_exit_group+0x3e/0x50 [ 35.041948] do_syscall_64+0x1b9/0x820 [ 35.041952] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.041955] [ 35.041959] other info that might help us debug this: [ 35.041961] [ 35.041964] Chain exists of: [ 35.041967] (console_sem).lock --> &rq->lock --> report_lock [ 35.041985] [ 35.041989] Possible unsafe locking scenario: [ 35.041991] [ 35.041995] CPU0 CPU1 [ 35.041999] ---- ---- [ 35.042001] lock(report_lock); [ 35.042011] lock(&rq->lock); [ 35.042020] lock(report_lock); [ 35.042028] lock((console_sem).lock); [ 35.042036] [ 35.042039] *** DEADLOCK *** [ 35.042041] [ 35.042045] 2 locks held by syz-executor130/4667: [ 35.042048] #0: 00000000b22aaf88 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 35.042064] #1: 0000000000fb6717 (report_lock){....}, at: kasan_report+0x8e/0x110 [ 35.042081] [ 35.042084] stack backtrace: [ 35.042090] CPU: 0 PID: 4667 Comm: syz-executor130 Not tainted 4.19.0-rc2+ #2 [ 35.042097] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.042100] Call Trace: [ 35.042104] dump_stack+0x1c9/0x2b4 [ 35.042109] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.042113] ? vprintk_func+0x100/0x117 [ 35.042118] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 35.042121] ? save_trace+0xe0/0x290 [ 35.042125] __lock_acquire+0x3449/0x5020 [ 35.042130] ? mark_held_locks+0x160/0x160 [ 35.042134] ? mark_held_locks+0x160/0x160 [ 35.042138] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 35.042142] ? is_bpf_text_address+0xd7/0x170 [ 35.042146] ? kernel_text_address+0x79/0xf0 [ 35.042150] ? __kernel_text_address+0xd/0x40 [ 35.042155] ? __save_stack_trace+0x8d/0xf0 [ 35.042159] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 35.042163] ? save_trace+0x290/0x290 [ 35.042167] ? save_stack_trace+0x1a/0x20 [ 35.042171] ? save_trace+0xe0/0x290 [ 35.042174] ? graph_lock+0x170/0x170 [ 35.042179] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.042183] lock_acquire+0x1e4/0x4f0 [ 35.042187] ? down_trylock+0x13/0x70 [ 35.042191] ? lock_release+0x9f0/0x9f0 [ 35.042196] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.042200] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.042204] ? trace_hardirqs_off+0xb8/0x2c0 [ 35.042208] ? log_store+0x34f/0x4c0 [ 35.042212] ? vprintk_emit+0x31f/0x910 [ 35.042216] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.042220] ? down_trylock+0x13/0x70 [ 35.042223] down_trylock+0x13/0x70 [ 35.042228] __down_trylock_console_sem+0xae/0x200 [ 35.042232] console_trylock+0x15/0xa0 [ 35.042235] vprintk_emit+0x31f/0x910 [ 35.042239] ? wake_up_klogd+0x110/0x110 [ 35.042244] ? run_rebalance_domains+0x4c0/0x4c0 [ 35.042248] ? kasan_check_read+0x11/0x20 [ 35.042252] ? rcu_is_watching+0x8c/0x150 [ 35.042256] ? rcu_pm_notify+0xc0/0xc0 [ 35.042259] ? lock_acquire+0x1e4/0x4f0 [ 35.042263] ? kasan_report+0x8e/0x110 [ 35.042267] ? __schedule+0xf54/0x1df0 [ 35.042271] vprintk_default+0x28/0x30 [ 35.042275] vprintk_func+0x7a/0x117 [ 35.042278] printk+0xa7/0xcf [ 35.042282] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.042286] ? kasan_check_write+0x14/0x20 [ 35.042290] ? do_raw_spin_lock+0xc1/0x200 [ 35.042294] ? do_raw_spin_lock+0xc1/0x200 [ 35.042298] kasan_report+0x9e/0x110 [ 35.042303] __asan_report_load8_noabort+0x14/0x20 [ 35.042306] __schedule+0xf54/0x1df0 [ 35.042311] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 35.042315] ? __sched_text_start+0x8/0x8 [ 35.042319] ? __call_srcu+0x7e7/0x1040 [ 35.042323] ? check_same_owner+0x340/0x340 [ 35.042327] ? mark_held_locks+0x160/0x160 [ 35.042331] ? find_held_lock+0x36/0x1c0 [ 35.042336] preempt_schedule_common+0x22/0x60 [ 35.042339] _cond_resched+0x1d/0x30 [ 35.042343] wait_for_completion+0xa5/0x8d0 [ 35.042349] ? wait_for_completion_interruptible+0x950/0x950 [ 35.042353] ? __lockdep_init_map+0x105/0x590 [ 35.042357] ? __init_waitqueue_head+0x9e/0x150 [ 35.042361] ? init_wait_entry+0x1c0/0x1c0 [ 35.042365] __synchronize_srcu+0x189/0x240 [ 35.042369] ? call_srcu+0x10/0x10 [ 35.042373] ? rcu_unexpedite_gp+0x20/0x20 [ 35.042377] synchronize_srcu+0x335/0x56f [ 35.042381] ? lock_downgrade+0x8f0/0x8f0 [ 35.042386] ? synchronize_srcu_expedited+0x20/0x20 [ 35.042390] ? kasan_check_read+0x11/0x20 [ 35.042394] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 35.042398] ? kasan_check_write+0x14/0x20 [ 35.042402] ? do_raw_spin_lock+0xc1/0x200 [ 35.042407] kvm_page_track_unregister_notifier+0x17d/0x250 [ 35.042412] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 35.042416] ? kvfree+0x61/0x70 [ 35.042420] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.042424] kvm_mmu_uninit_vm+0x1c/0x20 [ 35.042428] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 35.042433] ? kvm_arch_sync_events+0x30/0x30 [ 35.042438] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.042442] ? mmu_notifier_unregister+0x474/0x600 [ 35.042446] ? trace_hardirqs_on+0x2c0/0x2c0 [ 35.042450] ? kfree+0x111/0x210 [ 35.042454] ? __mmu_notifier_register+0x30/0x30 [ 35.042458] ? __free_pages+0x10a/0x190 [ 35.042462] ? free_unref_page+0x930/0x930 [ 35.042466] kvm_put_kvm+0x73f/0x1060 [ 35.042470] ? kvm_write_guest_cached+0x40/0x40 [ 35.042474] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.042479] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.042483] ? lockdep_hardirqs_on+0x421/0x5c0 [ 35.042487] ? kasan_check_write+0x14/0x20 [ 35.042491] ? do_raw_spin_lock+0xc1/0x200 [ 35.042495] ? kvm_irqfd_release+0xdd/0x120 [ 35.042499] ? kvm_irqfd_release+0xdd/0x120 [ 35.042503] ? kvm_put_kvm+0x1060/0x1060 [ 35.042507] kvm_vm_release+0x42/0x50 [ 35.042510] __fput+0x38a/0xa40 [ 35.042514] ? __alloc_file+0x400/0x400 [ 35.042518] ? check_same_owner+0x340/0x340 [ 35.042522] ? kasan_check_write+0x14/0x20 [ 35.042527] ? do_raw_spin_lock+0xc1/0x200 [ 35.042530] ____fput+0x15/0x20 [ 35.042534] task_work_run+0x1e8/0x2a0 [ 35.042538] ? task_work_cancel+0x240/0x240 [ 35.042543] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 35.042547] ? switch_task_namespaces+0xa2/0xd0 [ 35.042551] do_exit+0x1ae4/0x26e0 [ 35.042555] ? mm_update_next_owner+0x9a0/0x9a0 [ 35.042559] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 35.042564] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.042567] ? kfree+0x1d7/0x210 [ 35.042571] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 35.042576] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 35.042579] ? is_bpf_text_ad [ 35.042587] Lost 55 message(s)! [ 36.112106] Shutting down cpus with NMI [ 37.169415] Dumping ftrace buffer: [ 37.172940] (ftrace buffer empty) [ 37.176627] Kernel Offset: disabled [ 37.180257] Rebooting in 86400 seconds..