syzbot


WARNING: refcount bug in sys_memfd_secret
Status: upstream: reported C repro on 2021/10/22 15:02
Reported-by: syzbot+b904a1de3ec43711eba5@syzkaller.appspotmail.com
Fix commit: 87066fdd2e30 Revert "mm/secretmem: use refcount_t instead of atomic_t"
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte 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-riscv64]
First crash: 40d, last: 37d

Cause bisection: introduced by (bisect log) :
commit 110860541f443f950c1274f217a1a3e298670a33
Author: Jordy Zomer <jordy@jordyzomer.github.io>
Date: Wed Sep 8 02:56:18 2021 +0000

  mm/secretmem: use refcount_t instead of atomic_t

Crash: WARNING: refcount bug in sys_memfd_secret (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) :
commit 87066fdd2e30fe9dd531125d95257c118a74617e
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Oct 24 19:48:33 2021 +0000

  Revert "mm/secretmem: use refcount_t instead of atomic_t"

duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING: refcount bug in secretmem_release 1 38d 38d 0/22 closed as dup on 2021/10/25 06:38
WARNING: refcount bug in memfd_secret C done 851 37d 38d 21/22 closed as dup on 2021/10/25 06:37
Patch testing requests:
Created Duration User Patch Repo Result
2021/10/23 13:34 10m fmdefrancesco@gmail.com patch upstream report log

Sample crash report:

Crashes (4217):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/10/23 13:01 upstream 9c0c4d24ac00 282f03fb .config log report syz C WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/23 13:00 upstream 9c0c4d24ac00 282f03fb .config log report syz C WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/23 12:40 upstream 9c0c4d24ac00 282f03fb .config log report syz C WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/23 12:23 linux-next cf6c9d12750c 282f03fb .config log report syz C WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/23 12:01 linux-next cf6c9d12750c 282f03fb .config log report syz C WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/25 02:51 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/25 02:39 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/25 02:32 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/25 02:23 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-qemu-upstream 2021/10/25 01:40 upstream 6c62666d8879 4f0000ee .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/24 23:25 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 23:14 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 23:08 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 22:56 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 22:48 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 22:42 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 22:35 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 22:29 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/24 22:24 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 22:17 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 22:11 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 22:04 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/24 21:57 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 21:40 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 21:34 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 21:17 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 21:09 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-selinux-root 2021/10/24 21:01 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 20:53 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/24 20:45 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce 2021/10/24 20:33 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 20:08 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-root 2021/10/24 19:53 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-qemu-upstream 2021/10/22 14:39 upstream 64222515138e 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-qemu-upstream-386 2021/10/25 09:03 upstream 6c62666d8879 4f0000ee .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-386 2021/10/25 03:15 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-386 2021/10/24 23:44 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-386 2021/10/24 23:02 upstream 6c62666d8879 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-kasan-gce-386 2021/10/24 17:38 upstream 9c0c4d24ac00 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 08:50 linux-next cf6c9d12750c 4f0000ee .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 08:20 linux-next cf6c9d12750c 4f0000ee .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 07:13 linux-next cf6c9d12750c 4f0000ee .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 06:23 linux-next cf6c9d12750c 4f0000ee .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 06:22 linux-next cf6c9d12750c 4f0000ee .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 01:11 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 00:42 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/25 00:19 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/24 21:47 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/24 21:25 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/24 20:21 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/24 19:40 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/24 19:25 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/24 19:24 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret
ci-upstream-linux-next-kasan-gce-root 2021/10/24 18:24 linux-next cf6c9d12750c 282f03fb .config log report info WARNING: refcount bug in sys_memfd_secret