[REVIEW PATCH v5 0/3] close_range()

From: Christian Brauner
Date: Fri Oct 25 2019 - 08:33:12 EST


Hey everyone,

I've recently been pinged by quite a few people about the state of the
close_range() patchset. I've been sitting on this for a while because
other stuff came up. Last time it was considered to be in mergeable
state and I plan to send it for v5.5 since quite a bunch of projects in
userspace have expressed interest in using this including Python and
systemd.

I've also coordinated with some FreeBSD developers who got in touch with
me. FreeBSD has expressed interest in adding the same syscall once we
merged it.

This is a resend of the close_range() patchset (cf. [1]). I'd like to
target v5.5.

[1]: https://lwn.net/Articles/789023/

Thanks!
Christian

Christian Brauner (3):
open: add close_range()
arch: wire-up close_range()
tests: add close_range() tests

arch/alpha/kernel/syscalls/syscall.tbl | 1 +
arch/arm/tools/syscall.tbl | 1 +
arch/arm64/include/asm/unistd.h | 2 +-
arch/arm64/include/asm/unistd32.h | 2 +
arch/ia64/kernel/syscalls/syscall.tbl | 1 +
arch/m68k/kernel/syscalls/syscall.tbl | 1 +
arch/microblaze/kernel/syscalls/syscall.tbl | 1 +
arch/mips/kernel/syscalls/syscall_n32.tbl | 1 +
arch/mips/kernel/syscalls/syscall_n64.tbl | 1 +
arch/mips/kernel/syscalls/syscall_o32.tbl | 1 +
arch/parisc/kernel/syscalls/syscall.tbl | 1 +
arch/powerpc/kernel/syscalls/syscall.tbl | 1 +
arch/s390/kernel/syscalls/syscall.tbl | 1 +
arch/sh/kernel/syscalls/syscall.tbl | 1 +
arch/sparc/kernel/syscalls/syscall.tbl | 1 +
arch/x86/entry/syscalls/syscall_32.tbl | 1 +
arch/x86/entry/syscalls/syscall_64.tbl | 1 +
arch/xtensa/kernel/syscalls/syscall.tbl | 1 +
fs/file.c | 62 +++++++-
fs/open.c | 20 +++
include/linux/fdtable.h | 2 +
include/linux/syscalls.h | 2 +
include/uapi/asm-generic/unistd.h | 4 +-
tools/testing/selftests/Makefile | 1 +
tools/testing/selftests/core/.gitignore | 1 +
tools/testing/selftests/core/Makefile | 7 +
.../testing/selftests/core/close_range_test.c | 149 ++++++++++++++++++
27 files changed, 258 insertions(+), 10 deletions(-)
create mode 100644 tools/testing/selftests/core/.gitignore
create mode 100644 tools/testing/selftests/core/Makefile
create mode 100644 tools/testing/selftests/core/close_range_test.c

--
2.23.0