[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 22.425000] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.429160] random: sshd: uninitialized urandom read (32 bytes read) [ 25.747926] random: sshd: uninitialized urandom read (32 bytes read) [ 26.300147] random: sshd: uninitialized urandom read (32 bytes read) [ 26.473970] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.18' (ECDSA) to the list of known hosts. [ 32.060789] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 32.157284] 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. [ 32.183527] ================================================================== [ 32.193833] BUG: KASAN: use-after-free in __schedule+0xf54/0x1df0 [ 32.200054] Read of size 8 at addr ffff8801ac4d8058 by task syz-executor728/4454 [ 32.207579] [ 32.209207] CPU: 0 PID: 4454 Comm: syz-executor728 Not tainted 4.18.0+ #209 [ 32.216292] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.225632] Call Trace: [ 32.228218] dump_stack+0x1c9/0x2b4 [ 32.231848] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.237050] ? printk+0xa7/0xcf [ 32.240325] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.245075] ? __schedule+0xf54/0x1df0 [ 32.248963] print_address_description+0x6c/0x20b [ 32.253809] ? __schedule+0xf54/0x1df0 [ 32.257697] kasan_report.cold.7+0x242/0x30d [ 32.262108] __asan_report_load8_noabort+0x14/0x20 [ 32.267028] __schedule+0xf54/0x1df0 [ 32.270978] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.276092] ? __sched_text_start+0x8/0x8 [ 32.280235] ? __call_srcu+0x7e7/0x1040 [ 32.284210] ? check_same_owner+0x340/0x340 [ 32.288524] ? mark_held_locks+0x160/0x160 [ 32.292758] ? find_held_lock+0x36/0x1c0 [ 32.296815] preempt_schedule_common+0x22/0x60 [ 32.301394] _cond_resched+0x1d/0x30 [ 32.305100] wait_for_completion+0xa5/0x8d0 [ 32.309422] ? wait_for_completion_interruptible+0x950/0x950 [ 32.315246] ? __lockdep_init_map+0x105/0x590 [ 32.319742] ? __init_waitqueue_head+0x9e/0x150 [ 32.324404] ? init_wait_entry+0x1c0/0x1c0 [ 32.328636] __synchronize_srcu+0x189/0x240 [ 32.332953] ? call_srcu+0x10/0x10 [ 32.336489] ? rcu_unexpedite_gp+0x20/0x20 [ 32.340725] synchronize_srcu+0x335/0x56f [ 32.344866] ? lock_downgrade+0x8f0/0x8f0 [ 32.349013] ? synchronize_srcu_expedited+0x20/0x20 [ 32.354027] ? kasan_check_read+0x11/0x20 [ 32.358170] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 32.362752] ? kasan_check_write+0x14/0x20 [ 32.366982] ? do_raw_spin_lock+0xc1/0x200 [ 32.371218] kvm_page_track_unregister_notifier+0x17d/0x250 [ 32.376926] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 32.382373] ? kvfree+0x61/0x70 [ 32.385653] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.390754] kvm_mmu_uninit_vm+0x1c/0x20 [ 32.394811] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 32.399246] ? kvm_arch_sync_events+0x30/0x30 [ 32.403743] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.409282] ? mmu_notifier_unregister+0x474/0x600 [ 32.414209] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.418611] ? kfree+0x111/0x210 [ 32.421978] ? __mmu_notifier_register+0x30/0x30 [ 32.426731] ? __free_pages+0x10a/0x190 [ 32.430701] ? free_unref_page+0x930/0x930 [ 32.434942] kvm_put_kvm+0x73f/0x1060 [ 32.438748] ? kvm_write_guest_cached+0x40/0x40 [ 32.443421] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.447910] ? _raw_spin_unlock_irq+0x27/0x70 [ 32.452399] ? lockdep_hardirqs_on+0x421/0x5c0 [ 32.457001] ? kasan_check_write+0x14/0x20 [ 32.461235] ? do_raw_spin_lock+0xc1/0x200 [ 32.465467] ? kvm_irqfd_release+0xdd/0x120 [ 32.469786] ? kvm_irqfd_release+0xdd/0x120 [ 32.474107] ? kvm_put_kvm+0x1060/0x1060 [ 32.478166] kvm_vm_release+0x42/0x50 [ 32.481964] __fput+0x36e/0x8c0 [ 32.485239] ? __alloc_file+0x400/0x400 [ 32.489210] ? check_same_owner+0x340/0x340 [ 32.493525] ? kasan_check_write+0x14/0x20 [ 32.497763] ? do_raw_spin_lock+0xc1/0x200 [ 32.502001] ____fput+0x15/0x20 [ 32.505278] task_work_run+0x1e8/0x2a0 [ 32.509162] ? task_work_cancel+0x240/0x240 [ 32.513483] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 32.519045] ? switch_task_namespaces+0xa2/0xd0 [ 32.523715] do_exit+0x1ae4/0x26e0 [ 32.527255] ? mm_update_next_owner+0x9a0/0x9a0 [ 32.531925] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 32.536157] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.541168] ? kfree+0x1d7/0x210 [ 32.544533] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 32.548776] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.554484] ? is_bpf_text_address+0xd7/0x170 [ 32.559066] ? kernel_text_address+0x79/0xf0 [ 32.563467] ? __kernel_text_address+0xd/0x40 [ 32.567957] ? unwind_get_return_address+0x61/0xa0 [ 32.572884] ? __save_stack_trace+0x8d/0xf0 [ 32.577207] ? save_stack+0xa9/0xd0 [ 32.580827] ? save_stack+0x43/0xd0 [ 32.584447] ? __kasan_slab_free+0x11a/0x170 [ 32.588851] ? kasan_slab_free+0xe/0x10 [ 32.592832] ? putname+0xf2/0x130 [ 32.596298] ? __x64_sys_openat+0x9d/0x100 [ 32.600535] ? do_syscall_64+0x1b9/0x820 [ 32.604613] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.609984] ? trace_hardirqs_off+0xb8/0x2b0 [ 32.614389] ? kasan_check_read+0x11/0x20 [ 32.618535] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.622958] ? trace_hardirqs_on+0x2c0/0x2c0 [ 32.627372] ? initcall_blacklisted+0x9a/0x1e0 [ 32.631961] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 32.637068] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 32.642780] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.648311] ? do_vfs_ioctl+0x201/0x1720 [ 32.652368] ? rcu_is_watching+0x8c/0x150 [ 32.656513] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.660834] ? ioctl_preallocate+0x300/0x300 [ 32.665242] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.670775] ? __fget_light+0x2f7/0x440 [ 32.674747] ? fget_raw+0x20/0x20 [ 32.678191] ? putname+0xf2/0x130 [ 32.681642] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.686655] ? kmem_cache_free+0x246/0x280 [ 32.690881] ? putname+0xf7/0x130 [ 32.694331] do_group_exit+0x177/0x440 [ 32.698222] ? trace_hardirqs_on+0xbd/0x2c0 [ 32.702537] ? __ia32_sys_exit+0x50/0x50 [ 32.706611] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 32.711715] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.717248] ? ksys_ioctl+0x81/0xd0 [ 32.720876] __x64_sys_exit_group+0x3e/0x50 [ 32.725192] do_syscall_64+0x1b9/0x820 [ 32.729082] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 32.734454] ? syscall_return_slowpath+0x5e0/0x5e0 [ 32.739397] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.744236] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 32.749251] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.754264] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.759284] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.764141] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.769332] RIP: 0033:0x43ecc8 [ 32.772522] Code: Bad RIP value. [ 32.775889] RSP: 002b:00007ffc5d8988a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 32.783596] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 32.790857] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 32.798118] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 32.805379] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 32.812641] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 32.819908] [ 32.821526] Allocated by task 4454: [ 32.825164] save_stack+0x43/0xd0 [ 32.828611] kasan_kmalloc+0xc4/0xe0 [ 32.832319] kasan_slab_alloc+0x12/0x20 [ 32.836299] kmem_cache_alloc+0x12e/0x710 [ 32.840442] vmx_create_vcpu+0xcf/0x2830 [ 32.844495] kvm_arch_vcpu_create+0xe5/0x220 [ 32.848902] kvm_vm_ioctl+0x488/0x1d80 [ 32.852788] do_vfs_ioctl+0x1de/0x1720 [ 32.856667] ksys_ioctl+0xa9/0xd0 [ 32.860112] __x64_sys_ioctl+0x73/0xb0 [ 32.864002] do_syscall_64+0x1b9/0x820 [ 32.867902] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.873078] [ 32.874693] Freed by task 4454: [ 32.877967] save_stack+0x43/0xd0 [ 32.881412] __kasan_slab_free+0x11a/0x170 [ 32.885639] kasan_slab_free+0xe/0x10 [ 32.889431] kmem_cache_free+0x86/0x280 [ 32.893407] vmx_free_vcpu+0x26b/0x300 [ 32.897288] kvm_arch_destroy_vm+0x365/0x7c0 [ 32.901694] kvm_put_kvm+0x73f/0x1060 [ 32.905487] kvm_vm_release+0x42/0x50 [ 32.909280] __fput+0x36e/0x8c0 [ 32.912560] ____fput+0x15/0x20 [ 32.915840] task_work_run+0x1e8/0x2a0 [ 32.919720] do_exit+0x1ae4/0x26e0 [ 32.923250] do_group_exit+0x177/0x440 [ 32.927129] __x64_sys_exit_group+0x3e/0x50 [ 32.931446] do_syscall_64+0x1b9/0x820 [ 32.935330] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 32.940504] [ 32.942122] The buggy address belongs to the object at ffff8801ac4d8040 [ 32.942122] which belongs to the cache kvm_vcpu of size 23872 [ 32.954689] The buggy address is located 24 bytes inside of [ 32.954689] 23872-byte region [ffff8801ac4d8040, ffff8801ac4ddd80) [ 32.966638] The buggy address belongs to the page: [ 32.971573] page:ffffea0006b13600 count:1 mapcount:0 mapping:ffff8801d4c14c40 index:0x0 compound_mapcount: 0 [ 32.981538] flags: 0x2fffc0000008100(slab|head) [ 32.986224] raw: 02fffc0000008100 ffff8801d53c6648 ffff8801d53c6648 ffff8801d4c14c40 [ 32.994103] raw: 0000000000000000 ffff8801ac4d8040 0000000100000001 0000000000000000 [ 33.001971] page dumped because: kasan: bad access detected [ 33.007666] [ 33.009285] Memory state around the buggy address: [ 33.014205] ffff8801ac4d7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.021561] ffff8801ac4d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.028918] >ffff8801ac4d8000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 33.036266] ^ [ 33.042487] ffff8801ac4d8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.049835] ffff8801ac4d8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.057179] ================================================================== [ 33.064531] Kernel panic - not syncing: panic_on_warn set ... [ 33.064531] [ 33.071909] CPU: 0 PID: 4454 Comm: syz-executor728 Tainted: G B 4.18.0+ #209 [ 33.080386] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.089727] Call Trace: [ 33.092320] dump_stack+0x1c9/0x2b4 [ 33.095944] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.101135] ? lock_downgrade+0x8f0/0x8f0 [ 33.105276] ? __schedule+0xf54/0x1df0 [ 33.109161] panic+0x238/0x4e7 [ 33.112345] ? add_taint.cold.5+0x16/0x16 [ 33.116491] ? print_shadow_for_address+0xba/0x116 [ 33.121430] ? trace_hardirqs_off+0xaf/0x2b0 [ 33.125834] ? trace_hardirqs_off+0x77/0x2b0 [ 33.130236] ? __schedule+0xf54/0x1df0 [ 33.134121] kasan_end_report+0x47/0x4f [ 33.138089] kasan_report.cold.7+0x76/0x30d [ 33.142408] __asan_report_load8_noabort+0x14/0x20 [ 33.147330] __schedule+0xf54/0x1df0 [ 33.151036] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.156137] ? __sched_text_start+0x8/0x8 [ 33.160284] ? __call_srcu+0x7e7/0x1040 [ 33.164263] ? check_same_owner+0x340/0x340 [ 33.168586] ? mark_held_locks+0x160/0x160 [ 33.172817] ? find_held_lock+0x36/0x1c0 [ 33.176874] preempt_schedule_common+0x22/0x60 [ 33.181452] _cond_resched+0x1d/0x30 [ 33.185160] wait_for_completion+0xa5/0x8d0 [ 33.189480] ? wait_for_completion_interruptible+0x950/0x950 [ 33.195273] ? __lockdep_init_map+0x105/0x590 [ 33.199764] ? __init_waitqueue_head+0x9e/0x150 [ 33.204426] ? init_wait_entry+0x1c0/0x1c0 [ 33.208664] __synchronize_srcu+0x189/0x240 [ 33.212982] ? call_srcu+0x10/0x10 [ 33.216517] ? rcu_unexpedite_gp+0x20/0x20 [ 33.220761] synchronize_srcu+0x335/0x56f [ 33.224900] ? lock_downgrade+0x8f0/0x8f0 [ 33.229041] ? synchronize_srcu_expedited+0x20/0x20 [ 33.234055] ? kasan_check_read+0x11/0x20 [ 33.238203] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.242788] ? kasan_check_write+0x14/0x20 [ 33.247018] ? do_raw_spin_lock+0xc1/0x200 [ 33.251256] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.256963] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.262410] ? kvfree+0x61/0x70 [ 33.265690] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.271133] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.275194] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.279604] ? kvm_arch_sync_events+0x30/0x30 [ 33.284100] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.289637] ? mmu_notifier_unregister+0x474/0x600 [ 33.294574] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.298980] ? kfree+0x111/0x210 [ 33.302342] ? __mmu_notifier_register+0x30/0x30 [ 33.307095] ? __free_pages+0x10a/0x190 [ 33.311064] ? free_unref_page+0x930/0x930 [ 33.315313] kvm_put_kvm+0x73f/0x1060 [ 33.319116] ? kvm_write_guest_cached+0x40/0x40 [ 33.323790] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.328284] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.332777] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.337358] ? kasan_check_write+0x14/0x20 [ 33.341594] ? do_raw_spin_lock+0xc1/0x200 [ 33.345829] ? kvm_irqfd_release+0xdd/0x120 [ 33.350143] ? kvm_irqfd_release+0xdd/0x120 [ 33.354464] ? kvm_put_kvm+0x1060/0x1060 [ 33.358523] kvm_vm_release+0x42/0x50 [ 33.362337] __fput+0x36e/0x8c0 [ 33.365618] ? __alloc_file+0x400/0x400 [ 33.369605] ? check_same_owner+0x340/0x340 [ 33.373925] ? kasan_check_write+0x14/0x20 [ 33.378162] ? do_raw_spin_lock+0xc1/0x200 [ 33.382392] ____fput+0x15/0x20 [ 33.385928] task_work_run+0x1e8/0x2a0 [ 33.389814] ? task_work_cancel+0x240/0x240 [ 33.394136] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.399940] ? switch_task_namespaces+0xa2/0xd0 [ 33.404612] do_exit+0x1ae4/0x26e0 [ 33.408152] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.412820] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.417053] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.422068] ? kfree+0x1d7/0x210 [ 33.425433] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.429663] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.435372] ? is_bpf_text_address+0xd7/0x170 [ 33.439860] ? kernel_text_address+0x79/0xf0 [ 33.444261] ? __kernel_text_address+0xd/0x40 [ 33.448752] ? unwind_get_return_address+0x61/0xa0 [ 33.453681] ? __save_stack_trace+0x8d/0xf0 [ 33.458003] ? save_stack+0xa9/0xd0 [ 33.461626] ? save_stack+0x43/0xd0 [ 33.465245] ? __kasan_slab_free+0x11a/0x170 [ 33.469655] ? kasan_slab_free+0xe/0x10 [ 33.473631] ? putname+0xf2/0x130 [ 33.477083] ? __x64_sys_openat+0x9d/0x100 [ 33.481314] ? do_syscall_64+0x1b9/0x820 [ 33.485373] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.490733] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.495134] ? kasan_check_read+0x11/0x20 [ 33.499296] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.503704] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.508107] ? initcall_blacklisted+0x9a/0x1e0 [ 33.512687] ? _raw_spin_unlock_irqrestore+0x63/0xc0 [ 33.517795] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.523507] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.529042] ? do_vfs_ioctl+0x201/0x1720 [ 33.533097] ? rcu_is_watching+0x8c/0x150 [ 33.537236] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.541560] ? ioctl_preallocate+0x300/0x300 [ 33.545977] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.551511] ? __fget_light+0x2f7/0x440 [ 33.555481] ? fget_raw+0x20/0x20 [ 33.558924] ? putname+0xf2/0x130 [ 33.562375] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.567387] ? kmem_cache_free+0x246/0x280 [ 33.571619] ? putname+0xf7/0x130 [ 33.575070] do_group_exit+0x177/0x440 [ 33.578956] ? trace_hardirqs_on+0xbd/0x2c0 [ 33.583274] ? __ia32_sys_exit+0x50/0x50 [ 33.587329] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.592434] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.597991] ? ksys_ioctl+0x81/0xd0 [ 33.601626] __x64_sys_exit_group+0x3e/0x50 [ 33.605946] do_syscall_64+0x1b9/0x820 [ 33.609838] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.615199] ? syscall_return_slowpath+0x5e0/0x5e0 [ 33.620123] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.624963] ? trace_hardirqs_on_caller+0x2b0/0x2b0 [ 33.629973] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.634992] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.640010] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.644855] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.650040] RIP: 0033:0x43ecc8 [ 33.653229] Code: Bad RIP value. [ 33.656601] RSP: 002b:00007ffc5d8988a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.664312] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ecc8 [ 33.671581] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.678843] RBP: 00000000004be588 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.686103] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 33.693375] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 33.700658] [ 33.700663] ====================================================== [ 33.700668] WARNING: possible circular locking dependency detected [ 33.700672] 4.18.0+ #209 Not tainted [ 33.700677] ------------------------------------------------------ [ 33.700682] syz-executor728/4454 is trying to acquire lock: [ 33.700685] 000000002082bdf9 ((console_sem).lock){-...}, at: down_trylock+0x13/0x70 [ 33.700700] [ 33.700704] but task is already holding lock: [ 33.700707] 000000007322183f (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.700721] [ 33.700726] which lock already depends on the new lock. [ 33.700728] [ 33.700730] [ 33.700735] the existing dependency chain (in reverse order) is: [ 33.700737] [ 33.700740] -> #3 (report_lock){....}: [ 33.700754] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.700758] kasan_report+0x8e/0x110 [ 33.700762] __asan_report_load8_noabort+0x14/0x20 [ 33.700766] __schedule+0xf54/0x1df0 [ 33.700770] preempt_schedule_common+0x22/0x60 [ 33.700774] _cond_resched+0x1d/0x30 [ 33.700778] wait_for_completion+0xa5/0x8d0 [ 33.700782] __synchronize_srcu+0x189/0x240 [ 33.700787] synchronize_srcu+0x335/0x56f [ 33.700791] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.700795] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.700799] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.700803] kvm_put_kvm+0x73f/0x1060 [ 33.700807] kvm_vm_release+0x42/0x50 [ 33.700810] __fput+0x36e/0x8c0 [ 33.700814] ____fput+0x15/0x20 [ 33.700818] task_work_run+0x1e8/0x2a0 [ 33.700821] do_exit+0x1ae4/0x26e0 [ 33.700825] do_group_exit+0x177/0x440 [ 33.700829] __x64_sys_exit_group+0x3e/0x50 [ 33.700833] do_syscall_64+0x1b9/0x820 [ 33.700838] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.700840] [ 33.700842] -> #2 (&rq->lock){-.-.}: [ 33.700856] _raw_spin_lock+0x2a/0x40 [ 33.700860] task_fork_fair+0x93/0x680 [ 33.700863] sched_fork+0x44b/0xbd0 [ 33.700867] copy_process+0x235e/0x7ad0 [ 33.700871] _do_fork+0x1ca/0x1170 [ 33.700874] kernel_thread+0x34/0x40 [ 33.700878] rest_init+0x22/0xe4 [ 33.700882] start_kernel+0x913/0x94e [ 33.700886] x86_64_start_reservations+0x29/0x2b [ 33.700890] x86_64_start_kernel+0x76/0x79 [ 33.700894] secondary_startup_64+0xa4/0xb0 [ 33.700896] [ 33.700899] -> #1 (&p->pi_lock){-.-.}: [ 33.700913] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.700917] try_to_wake_up+0xd2/0x1250 [ 33.700920] wake_up_process+0x10/0x20 [ 33.700924] __up.isra.1+0x1c0/0x2a0 [ 33.700927] up+0x13c/0x1c0 [ 33.700931] __up_console_sem+0xbe/0x1b0 [ 33.700935] console_unlock+0x506/0x10d0 [ 33.700939] vprintk_emit+0x33a/0x910 [ 33.700943] vprintk_default+0x28/0x30 [ 33.700946] vprintk_func+0x7a/0x117 [ 33.700950] printk+0xa7/0xcf [ 33.700953] load_umh+0x51/0xbd [ 33.700957] do_one_initcall+0x127/0x838 [ 33.700961] kernel_init_freeable+0x4bb/0x5ae [ 33.700965] kernel_init+0x11/0x1b3 [ 33.700969] ret_from_fork+0x3a/0x50 [ 33.700971] [ 33.700973] -> #0 ((console_sem).lock){-...}: [ 33.700987] lock_acquire+0x1e4/0x4f0 [ 33.700991] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.700995] down_trylock+0x13/0x70 [ 33.700999] __down_trylock_console_sem+0xae/0x200 [ 33.701003] console_trylock+0x15/0xa0 [ 33.701007] vprintk_emit+0x31f/0x910 [ 33.701011] vprintk_default+0x28/0x30 [ 33.701014] vprintk_func+0x7a/0x117 [ 33.701018] printk+0xa7/0xcf [ 33.701022] kasan_report+0x9e/0x110 [ 33.701026] __asan_report_load8_noabort+0x14/0x20 [ 33.701030] __schedule+0xf54/0x1df0 [ 33.701034] preempt_schedule_common+0x22/0x60 [ 33.701038] _cond_resched+0x1d/0x30 [ 33.701046] wait_for_completion+0xa5/0x8d0 [ 33.701050] __synchronize_srcu+0x189/0x240 [ 33.701054] synchronize_srcu+0x335/0x56f [ 33.701059] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.701063] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.701067] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.701071] kvm_put_kvm+0x73f/0x1060 [ 33.701075] kvm_vm_release+0x42/0x50 [ 33.701079] __fput+0x36e/0x8c0 [ 33.701082] ____fput+0x15/0x20 [ 33.701086] task_work_run+0x1e8/0x2a0 [ 33.701090] do_exit+0x1ae4/0x26e0 [ 33.701094] do_group_exit+0x177/0x440 [ 33.701098] __x64_sys_exit_group+0x3e/0x50 [ 33.701102] do_syscall_64+0x1b9/0x820 [ 33.701106] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.701108] [ 33.701113] other info that might help us debug this: [ 33.701115] [ 33.701118] Chain exists of: [ 33.701120] (console_sem).lock --> &rq->lock --> report_lock [ 33.701138] [ 33.701142] Possible unsafe locking scenario: [ 33.701144] [ 33.701148] CPU0 CPU1 [ 33.701152] ---- ---- [ 33.701155] lock(report_lock); [ 33.701164] lock(&rq->lock); [ 33.701173] lock(report_lock); [ 33.701181] lock((console_sem).lock); [ 33.701189] [ 33.701192] *** DEADLOCK *** [ 33.701194] [ 33.701198] 2 locks held by syz-executor728/4454: [ 33.701200] #0: 000000002fd33947 (&rq->lock){-.-.}, at: __schedule+0x24d/0x1df0 [ 33.701217] #1: 000000007322183f (report_lock){....}, at: kasan_report+0x8e/0x110 [ 33.701233] [ 33.701236] stack backtrace: [ 33.701242] CPU: 0 PID: 4454 Comm: syz-executor728 Not tainted 4.18.0+ #209 [ 33.701249] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.701252] Call Trace: [ 33.701256] dump_stack+0x1c9/0x2b4 [ 33.701260] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.701264] ? vprintk_func+0x100/0x117 [ 33.701269] print_circular_bug.isra.34.cold.55+0x1bd/0x27d [ 33.701272] ? save_trace+0xe0/0x290 [ 33.701276] __lock_acquire+0x3449/0x5020 [ 33.701280] ? mark_held_locks+0x160/0x160 [ 33.701284] ? mark_held_locks+0x160/0x160 [ 33.701289] ? rcu_cleanup_dead_rnp+0x200/0x200 [ 33.701293] ? is_bpf_text_address+0xd7/0x170 [ 33.701297] ? kernel_text_address+0x79/0xf0 [ 33.701301] ? __kernel_text_address+0xd/0x40 [ 33.701305] ? __save_stack_trace+0x8d/0xf0 [ 33.701309] ? add_lock_to_list.isra.27+0x1ec/0x4b0 [ 33.701313] ? save_trace+0x290/0x290 [ 33.701317] ? save_stack_trace+0x1a/0x20 [ 33.701320] ? save_trace+0xe0/0x290 [ 33.701324] ? graph_lock+0x170/0x170 [ 33.701329] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.701333] lock_acquire+0x1e4/0x4f0 [ 33.701336] ? down_trylock+0x13/0x70 [ 33.701340] ? lock_release+0x9f0/0x9f0 [ 33.701344] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.701348] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.701352] ? trace_hardirqs_off+0xb8/0x2b0 [ 33.701356] ? log_store+0x34f/0x4c0 [ 33.701360] ? vprintk_emit+0x31f/0x910 [ 33.701364] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.701368] ? down_trylock+0x13/0x70 [ 33.701371] down_trylock+0x13/0x70 [ 33.701375] __down_trylock_console_sem+0xae/0x200 [ 33.701379] console_trylock+0x15/0xa0 [ 33.701383] vprintk_emit+0x31f/0x910 [ 33.701387] ? wake_up_klogd+0x110/0x110 [ 33.701391] ? run_rebalance_domains+0x4c0/0x4c0 [ 33.701395] ? kasan_check_read+0x11/0x20 [ 33.701399] ? rcu_is_watching+0x8c/0x150 [ 33.701403] ? rcu_pm_notify+0xc0/0xc0 [ 33.701406] ? lock_acquire+0x1e4/0x4f0 [ 33.701410] ? kasan_report+0x8e/0x110 [ 33.701414] ? __schedule+0xf54/0x1df0 [ 33.701418] vprintk_default+0x28/0x30 [ 33.701421] vprintk_func+0x7a/0x117 [ 33.701425] printk+0xa7/0xcf [ 33.701429] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.701433] ? kasan_check_write+0x14/0x20 [ 33.701437] ? do_raw_spin_lock+0xc1/0x200 [ 33.701441] ? do_raw_spin_lock+0xc1/0x200 [ 33.701444] kasan_report+0x9e/0x110 [ 33.701449] __asan_report_load8_noabort+0x14/0x20 [ 33.701452] __schedule+0xf54/0x1df0 [ 33.701457] ? trace_hardirqs_off_caller+0x2b0/0x2b0 [ 33.701461] ? __sched_text_start+0x8/0x8 [ 33.701465] ? __call_srcu+0x7e7/0x1040 [ 33.701469] ? check_same_owner+0x340/0x340 [ 33.701473] ? mark_held_locks+0x160/0x160 [ 33.701476] ? find_held_lock+0x36/0x1c0 [ 33.701481] preempt_schedule_common+0x22/0x60 [ 33.701484] _cond_resched+0x1d/0x30 [ 33.701488] wait_for_completion+0xa5/0x8d0 [ 33.701493] ? wait_for_completion_interruptible+0x950/0x950 [ 33.701498] ? __lockdep_init_map+0x105/0x590 [ 33.701502] ? __init_waitqueue_head+0x9e/0x150 [ 33.701506] ? init_wait_entry+0x1c0/0x1c0 [ 33.701510] __synchronize_srcu+0x189/0x240 [ 33.701513] ? call_srcu+0x10/0x10 [ 33.701517] ? rcu_unexpedite_gp+0x20/0x20 [ 33.701521] synchronize_srcu+0x335/0x56f [ 33.701526] ? lock_downgrade+0x8f0/0x8f0 [ 33.701530] ? synchronize_srcu_expedited+0x20/0x20 [ 33.701534] ? kasan_check_read+0x11/0x20 [ 33.701538] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 33.701542] ? kasan_check_write+0x14/0x20 [ 33.701554] ? do_raw_spin_lock+0xc1/0x200 [ 33.701559] kvm_page_track_unregister_notifier+0x17d/0x250 [ 33.701563] ? kvm_slot_page_track_remove_page+0x70/0x70 [ 33.701567] ? kvfree+0x61/0x70 [ 33.701576] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.701580] kvm_mmu_uninit_vm+0x1c/0x20 [ 33.701584] kvm_arch_destroy_vm+0x5f2/0x7c0 [ 33.701589] ? kvm_arch_sync_events+0x30/0x30 [ 33.701594] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.701598] ? mmu_notifier_unregister+0x474/0x600 [ 33.701602] ? trace_hardirqs_on+0x2c0/0x2c0 [ 33.701606] ? kfree+0x111/0x210 [ 33.701610] ? __mmu_notifier_register+0x30/0x30 [ 33.701614] ? __free_pages+0x10a/0x190 [ 33.701618] ? free_unref_page+0x930/0x930 [ 33.701622] kvm_put_kvm+0x73f/0x1060 [ 33.701626] ? kvm_write_guest_cached+0x40/0x40 [ 33.701630] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.701634] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.701639] ? lockdep_hardirqs_on+0x421/0x5c0 [ 33.701643] ? kasan_check_write+0x14/0x20 [ 33.701647] ? do_raw_spin_lock+0xc1/0x200 [ 33.701651] ? kvm_irqfd_release+0xdd/0x120 [ 33.701655] ? kvm_irqfd_release+0xdd/0x120 [ 33.701658] ? kvm_put_kvm+0x1060/0x1060 [ 33.701662] kvm_vm_release+0x42/0x50 [ 33.701666] __fput+0x36e/0x8c0 [ 33.701669] ? __alloc_file+0x400/0x400 [ 33.701673] ? check_same_owner+0x340/0x340 [ 33.701677] ? kasan_check_write+0x14/0x20 [ 33.701681] ? do_raw_spin_lock+0xc1/0x200 [ 33.701685] ____fput+0x15/0x20 [ 33.701689] task_work_run+0x1e8/0x2a0 [ 33.701693] ? task_work_cancel+0x240/0x240 [ 33.701697] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 33.701701] ? switch_task_namespaces+0xa2/0xd0 [ 33.701705] do_exit+0x1ae4/0x26e0 [ 33.701709] ? mm_update_next_owner+0x9a0/0x9a0 [ 33.701713] ? kvm_vcpu_ioctl+0x2b5/0x1280 [ 33.701718] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.701721] ? kfree+0x1d7/0x210 [ 33.701725] ? kvm_vcpu_ioctl+0x2ba/0x1280 [ 33.701730] ? kvm_uevent_notify_change.part.32+0x440/0x440 [ 33.701734] ? is_bpf_text_address+0xd7/0x170 [ 33.701737] ? kernel_ [ 33.701744] Lost 55 message(s)! [ 34.769135] Shutting down cpus with NMI [ 35.828843] Dumping ftrace buffer: [ 35.832365] (ftrace buffer empty) [ 35.836054] Kernel Offset: disabled [ 35.839663] Rebooting in 86400 seconds..