On Wed, May 12, 2021 at 2:33 PM Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > From: Alexei Starovoitov <ast@xxxxxxxxxx> > > Add bpf_sys_close() helper to be used by the syscall/loader program to close > intermediate FDs and other cleanup. > Note this helper must never be allowed inside fdget/fdput bracketing. > > Signed-off-by: Alexei Starovoitov <ast@xxxxxxxxxx> > --- Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > include/uapi/linux/bpf.h | 7 +++++++ > kernel/bpf/syscall.c | 19 +++++++++++++++++++ > tools/include/uapi/linux/bpf.h | 7 +++++++ > 3 files changed, 33 insertions(+) > [...]