syzbot


KASAN: null-ptr-deref Read in filp_close (2)
Status: upstream: reported C repro on 2021/03/26 07:55
Reported-by: syzbot+283ce5a46486d6acdbaf@syzkaller.appspotmail.com
Fix commit: 3b0462726e7e cgroup: verify that source is a string 9b5b872215fe file: fix close_range() for unshare+cloexec
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte], missing on: [ci-qemu2-arm32 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]
First crash: 136d, last: 23d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: null-ptr-deref Read in filp_close C done 9 229d 231d 21/22 fixed on 2021/03/10 01:48
android-54 KASAN: use-after-free Read in filp_close C 3 1d09h 206d 0/1 upstream: reported C repro on 2021/01/11 12:38
Patch testing requests:
Created Duration User Patch Repo Result
2021/07/14 13:58 16m christian.brauner@ubuntu.com https://gitlab.com/brauner/linux.git 595fac5cecba71935450ec431eb8dfa963cf45fe OK
2021/07/14 13:52 1m christian.brauner@ubuntu.com https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/ 595fac5cecba71935450ec431eb8dfa963cf45fe error

Sample crash report:

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/07/13 04:11 upstream 7fef2edf7cc7 f415556d .config log report syz C KASAN: use-after-free Read in filp_close
ci-upstream-kasan-gce 2021/03/22 07:43 upstream 5ee96fa9dd78 bea32f74 .config log report info KASAN: null-ptr-deref Read in filp_close
ci-upstream-kasan-gce-root 2021/06/28 19:38 upstream 62fb9874f5da 9d2ab5df .config log report info KASAN: use-after-free Read in filp_close