syzbot


possible deadlock in io_sq_thread_finish
Status: upstream: reported C repro on 2021/03/07 09:49
Reported-by: syzbot+ac39856cb1b332dbbdda@syzkaller.appspotmail.com
Fix commit: f4e61f0c x86/kvm: Fix broken irq restoration in kvm_wait
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-arm32]
First crash: 46d, last: 44d

Cause bisection: introduced by (bisect log) [merge commit]:
commit a4dec04c7ff4307973ba502ce7b27330d9fe04b7
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Feb 24 17:54:24 2021 +0000

  Merge tag 'dma-mapping-5.12' of git://git.infradead.org/users/hch/dma-mapping

Crash: WARNING in kvm_wait (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) :
commit f4e61f0c9add3b00bd5f2df3c814d688849b8707
Author: Wanpeng Li <wanpengli@tencent.com>
Date: Mon Mar 15 06:55:28 2021 +0000

  x86/kvm: Fix broken irq restoration in kvm_wait

Patch testing requests:
Created Duration User Patch Repo Result
2021/03/10 14:37 18m axboe@kernel.dk git://git.kernel.dk/linux-block io_uring-5.12 OK
2021/03/09 23:45 16m axboe@kernel.dk git://git.kernel.dk/linux-block io_uring-5.12 report log
2021/03/09 23:34 10m axboe@kernel.dk git://git.kernel.dk/linux-block io_uring-5.12 report log
2021/03/09 14:57 10m axboe@kernel.dk git://git.kernel.dk/linux-block io_uring-5.12 report log

Sample crash report:

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/03/09 14:03 upstream 144c79ef 09fbf400 .config log report syz C possible deadlock in io_sq_thread_finish
ci-upstream-kasan-gce-root 2021/03/09 15:58 upstream 144c79ef 09fbf400 .config log report info possible deadlock in io_sq_thread_finish
ci-upstream-kasan-gce-root 2021/03/09 13:24 upstream 144c79ef 09fbf400 .config log report info possible deadlock in io_sq_thread_finish
ci-upstream-kasan-gce-root 2021/03/07 09:19 upstream a38fd874 e4b4d570 .config log report info possible deadlock in io_sq_thread_finish