Skip to content

fix nfsv4 bugs of opening with O_ACCMODE flag

ChenXiaoSong linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Revert "NFSv4: Handle the special Linux file open access mode"fs/nfs/inode.c fs/nfs/nfs4file.c+1 -20 replies
2/2NFSv4: fix open failure with O_ACCMODE flagfs/nfs/dir.c fs/nfs/internal.h fs/nfs/nfs4file.c+14 -123 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -next 0/2] fix nfsv4 bugs of opening with O_ACCMODE flag

This series fixes following bugs:

When lseek() a file secondly opened with O_ACCMODE|O_DIRECT flags, nfs4_valid_open_stateid() will dereference NULL nfs4_state.

open() with O_ACCMODE|O_DIRECT flags secondly will fail.

ChenXiaoSong (2):
Revert "NFSv4: Handle the special Linux file open access mode"
NFSv4: fix open failure with O_ACCMODE flag

 fs/nfs/dir.c      | 10 ----------
 fs/nfs/inode.c    |  1 -
 fs/nfs/internal.h | 10 ++++++++++
 fs/nfs/nfs4file.c |  6 ++++--
 4 files changed, 14 insertions(+), 13 deletions(-)
Signature · 1 line
2.31.1