From: Chuck Lever <chuck.lever@xxxxxxxxxx> The purpose of this series is construct a set of upstream fixes that can be backported to v6.6 to address CVE-2024-46701. The v3 series updates yesterday's v2. Some bugs and review comments have been addressed, and the rationale for reverting 64a7ce76fb90 ("libfs: fix infinite directory reads for offset dir") has been clarified. v3 passes xfstests except for generic/637. The series has been pushed to: https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/log/?h=tmpfs-fixes Chuck Lever (5): libfs: Return ENOSPC when the directory offset range is exhausted libfs: Remove unnecessary locking from simple_offset_empty() Revert "libfs: fix infinite directory reads for offset dir" libfs: Refactor end-of-directory detection for simple_offset directories libfs: Refactor offset_iterate_dir() fs/libfs.c | 145 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 107 insertions(+), 38 deletions(-) -- 2.47.0