mbox series

[RFC,v3,0/5] Improve simple directory offset wrap behavior

Message ID 20241127152815.151781-1-cel@kernel.org (mailing list archive)
Headers show
Series Improve simple directory offset wrap behavior | expand

Message

Chuck Lever Nov. 27, 2024, 3:28 p.m. UTC
From: Chuck Lever <chuck.lever@oracle.com>

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(-)