Skip to content

nfs: fix credential handling problems in flexfiles code

Jeff Layton linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfs: fix potential credential leak in ff_layout_update_mirror_credfs/nfs/flexfilelayout/flexfilelayoutdev.c+2 -10 replies
2/2nfs: always update creds in mirror, even when we have an already connected dsfs/nfs/flexfilelayout/flexfilelayoutdev.c+2 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] nfs: fix credential handling problems in flexfiles code

Tom reported seeing some NFSv3 WRITE calls going to a mirror DS that were using the MDS credentials instead of the ones that were provided in the LAYOUTGET response.

The problem turns out to be an issue in how mirror creds were being set up. Creds are associated with the mirror, not the DS, but we'd skip trying to set up the credentials in the mirror when we found that the DS was already connected.

While I was in there, I spotted a potential credential leak too and fixed that as well.

Jeff Layton (2):
nfs: fix potential credential leak in ff_layout_update_mirror_cred
nfs: always update creds in mirror, even when we have an already
connected ds

 fs/nfs/flexfilelayout/flexfilelayoutdev.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.4.3