syzbot


KASAN: null-ptr-deref Read in filp_close
Status: fixed on 2021/03/10 01:48
Reported-by: syzbot+96cfd2b22b3213646a93@syzkaller.appspotmail.com
Fix commit: fec8a6a69103 close_range: unshare all fds for CLOSE_RANGE_UNSHARE | CLOSE_RANGE_CLOEXEC 6abc20f8f879 selftests/core: add regression test for CLOSE_RANGE_UNSHARE | CLOSE_RANGE_CLOEXEC
First crash: 347d, last: 344d

Cause bisection: introduced by (bisect log) :
commit 582f1fb6b721facf04848d2ca57f34468da1813e
Author: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Wed Nov 18 10:47:45 2020 +0000

  fs, close_range: add flag CLOSE_RANGE_CLOEXEC

Crash: BUG: unable to handle kernel NULL pointer dereference in filp_close (log)
Repro: C syz .config
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: null-ptr-deref Read in filp_close (2) C 3 139d 247d 22/22 fixed on 2021/11/10 13:22
Patch testing requests:
Created Duration User Patch Repo Result
2020/12/19 11:55 17m christian.brauner@ubuntu.com git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git vfs OK
2020/12/17 19:41 18m christian.brauner@ubuntu.com git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git 3274183b76d169a0807413dc325e4e39a670a662 OK

Sample crash report:

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2020/12/17 02:16 upstream 5e60366d56c6 04201c06 .config log report syz C
ci-upstream-kasan-gce 2020/12/19 14:22 upstream 3644e2d2dda7 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/19 11:45 upstream 3644e2d2dda7 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/19 04:46 upstream a409ed156a90 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/18 13:47 upstream d64c6f96ba86 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/17 17:11 upstream accefff5b547 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/17 14:20 upstream accefff5b547 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/17 08:09 upstream 5e60366d56c6 04201c06 .config log report info
ci-upstream-kasan-gce 2020/12/17 01:53 upstream 5e60366d56c6 04201c06 .config log report info