syzbot


possible deadlock in do_fcntl
Status: upstream: reported C repro on 2020/09/28 07:17
Reported-by: syzbot+e6d5398a02c516ce5e70@syzkaller.appspotmail.com
Fix commit: fcntl: fix potential deadlocks for &fown_struct.lock
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 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-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 304d, last: 3d15h

Cause bisection: introduced by (bisect log) :
commit e918188611f073063415f40fae568fa4d86d9044
Author: Boqun Feng <boqun.feng@gmail.com>
Date: Fri Aug 7 07:42:20 2020 +0000

  locking: More accurate annotations for read_lock()

Crash: possible deadlock in do_fcntl (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/07/07 01:56 17m desmondcheongzx@gmail.com patch upstream OK
2021/07/06 12:44 18m desmondcheongzx@gmail.com patch upstream error
2021/07/05 11:03 17m desmondcheongzx@gmail.com patch upstream error
2021/07/03 08:09 18m desmondcheongzx@gmail.com patch upstream error
2021/07/02 08:46 16m desmondcheongzx@gmail.com patch upstream OK
2021/07/02 07:13 16m desmondcheongzx@gmail.com patch upstream OK
2021/07/02 06:40 12m desmondcheongzx@gmail.com upstream report log

Sample crash report:

Crashes (241):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/04/30 09:36 upstream d2b6f8a17919 77e2b668 .config log report syz C possible deadlock in do_fcntl
ci-upstream-kasan-gce-smack-root 2021/04/02 05:49 upstream ffd9fb546d49 6a81331a .config log report syz C possible deadlock in do_fcntl
ci-upstream-linux-next-kasan-gce-root 2021/05/07 02:26 linux-next 23c498428c14 06585184 .config log report syz C possible deadlock in do_fcntl
ci-upstream-kasan-gce 2020/12/10 03:44 upstream a68a0262abda c090b4da .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/10/31 17:38 linux-next 4e78c578cb98 8bc4594f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2021/07/25 22:10 upstream d8079fac1681 4d1b57d4 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/07/24 01:45 upstream 8baef6386baa bc5f1d88 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/07/19 06:17 upstream 2734d6c1b1a0 f115ae98 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-root 2021/07/10 01:06 upstream 3dbdb38e2869 8f5a7b8c .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/06/26 07:13 upstream b7050b242430 9d2ab5df .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/06/20 22:38 upstream cba5e97280f5 aba2b2fb .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/06/20 08:03 upstream 913ec3c22ef4 aba2b2fb .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/06/16 00:34 upstream 94f0b2d4a1d0 990d3cbe .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/06/12 15:42 upstream ad347abe4a98 1ba81399 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/06/09 15:10 upstream 368094df48e6 84fe5d96 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/06/05 01:13 upstream 16f0596fc1d7 966a236b .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-smack-root 2021/05/22 21:42 upstream 23d729263037 3c7fef33 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/05/21 02:33 upstream f01da525b3de 3c7fef33 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/05/17 02:25 upstream d07f6ca923ea f54a5c09 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-smack-root 2021/05/05 01:18 upstream d2b6f8a17919 06c27ff5 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/05/02 22:46 upstream d2b6f8a17919 77e2b668 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-root 2021/04/26 18:06 upstream 9f4ad9e425a1 e60b7df1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/04/26 15:29 upstream 9f4ad9e425a1 e60b7df1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/04/26 02:00 upstream d2d09fbe33f8 2a82f1b3 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/04/25 08:59 upstream 2a1d7946fa53 36c88236 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/04/23 11:49 upstream 18a3c5f7abfd 17f0b706 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/04/23 01:29 upstream 90c911ad7445 590921a5 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-smack-root 2021/04/20 02:02 upstream 7af08140979a 4285c989 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/04/17 08:48 upstream 9cdbf6467424 7e2b734b .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/04/15 20:22 upstream 7e25f40eab52 c59079a6 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-smack-root 2021/04/15 01:46 upstream 7f75285ca572 fcdb12ba .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/04/14 14:32 upstream 50987beca096 3134b37f .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/04/14 12:21 upstream 50987beca096 3134b37f .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/04/13 19:55 upstream 89698becf06d a184b83e .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/04/13 04:09 upstream 89698becf06d bfeda1b1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/04/12 14:06 upstream d434405aaab7 bfeda1b1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce 2021/04/11 03:42 upstream 52e44129fba5 bfeda1b1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-selinux-root 2021/04/10 08:51 upstream d4961772226d bfeda1b1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-smack-root 2021/04/09 19:43 upstream 17e7124aad76 6a81331a .config log report info possible deadlock in do_fcntl
ci-qemu-upstream 2021/03/29 06:56 upstream 36a14638f7c0 a8529b82 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/05/18 00:24 upstream 8ac91e6c6033 a343ba6b .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/05/16 00:24 upstream c12a29ed9094 f54a5c09 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/05/03 20:58 upstream d2b6f8a17919 ad61f371 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/24 19:59 upstream 2a1d7946fa53 17f0b706 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/23 18:48 upstream 18a3c5f7abfd 17f0b706 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/22 23:12 upstream 90c911ad7445 590921a5 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/21 12:05 upstream 1fe5501ba1ab 95777977 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/21 03:39 upstream 1fe5501ba1ab c0ced557 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/20 14:19 upstream 7af08140979a c0ced557 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/16 16:33 upstream 7e25f40eab52 7e2b734b .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/12 00:25 upstream 7d900724913c bfeda1b1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/04/11 02:04 upstream 52e44129fba5 bfeda1b1 .config log report info possible deadlock in do_fcntl
ci-upstream-kasan-gce-386 2021/01/17 14:15 upstream 0da0a8a0a0e1 813be542 .config log report info
ci-upstream-linux-next-kasan-gce-root 2020/09/28 06:34 linux-next d1d2220c7f39 5dd8aee8 .config log report info