Linux 5.9 adds a close_range() syscall, which can be used to provide a more efficient closefrom().
close_range()
closefrom()