Skip to content

name_is_dot* cleanup

Amir Goldstein linux-fsdevel linux-unionfs 1 version Applied

Status from this message: Applied to the vfs-7.0.misc branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3ovl: Fix uninit-value in ovl_fill_realfs/overlayfs/readdir.c+1 -11 reply
2/3fs: add helpers name_is_dot{,dot,_dotdot}fs/crypto/fname.c fs/ecryptfs/crypto.c fs/exportfs/expfs.c +6 more+22 -100 replies
3/3ovl: use name_is_dot* helpers in readdir codefs/overlayfs/readdir.c+13 -232 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BiggersMiklos Szeredi
SeriesR-b
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] name_is_dot* cleanup

Miklos,

Following the syzbot ovl bug report and a fix by Qing Wang, I decided to follow up with a small vfs cleanup of some open coded version of checking "." and ".." name in readdir.

The fix patch is applied at the start of this cleanup series to allow for easy backporting, but it is not an urgent fix so I don't think there is a need to fast track it.

Christian,

I am assuming that you would want to take the vfs cleanup via your tree, so might as well take the ovl adjacent patches with it.

If you want me to drive this entire series via ovl tree, please ack the vfs cleanup patch.

Thanks,
Amir.

[1] https://lore.kernel.org/linux-unionfs/[email protected]/

Amir Goldstein (2):
fs: add helpers name_is_dot{,dot,_dotdot}
ovl: use name_is_dot* helpers in readdir code

Qing Wang (1):
ovl: Fix uninit-value in ovl_fill_real

 fs/crypto/fname.c      |  2 +-
 fs/ecryptfs/crypto.c   |  2 +-
 fs/exportfs/expfs.c    |  3 ++-
 fs/f2fs/dir.c          |  2 +-
 fs/f2fs/hash.c         |  2 +-
 fs/namei.c             |  2 +-
 fs/overlayfs/readdir.c | 39 +++++++++++++++------------------------
 fs/smb/server/vfs.c    |  2 +-
 include/linux/fs.h     | 14 ++++++++++++--
 9 files changed, 35 insertions(+), 33 deletions(-)
Signature · 1 line
2.52.0