Variant that deals with that in copy_fd_bitmaps() rather than in dup_fd() Sat in -next since last week... The following changes since commit 8aa37bde1a7b645816cda8b80df4753ecf172bf1: protect the fetch of ->fd[fd] in do_dup2() from mispredictions (2024-08-01 15:51:57 -0400) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-fixes for you to fetch changes up to 9a2fa1472083580b6c66bdaf291f591e1170123a: fix bitmap corruption on close_range() with CLOSE_RANGE_UNSHARE (2024-08-05 19:23:11 -0400) ---------------------------------------------------------------- fix bitmap corruption on close_range(), take 2 ---------------------------------------------------------------- Al Viro (1): fix bitmap corruption on close_range() with CLOSE_RANGE_UNSHARE fs/file.c | 30 +++++++++------------ include/linux/bitmap.h | 12 +++++++++ tools/testing/selftests/core/close_range_test.c | 35 +++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 17 deletions(-)