Skip to content

autofs: fix two related bugs with lookup + expired yp maps

[email protected] autofs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2autofs: fix yp map age not updated in s/_/./g casemodules/lookup_yp.c+8 -90 replies
2/2autofs: properly handle errors in lookup_nss_mountdaemon/lookup.c+4 -10 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] autofs: fix two related bugs with lookup + expired yp maps

From: Jeff Mahoney <[email protected]>

Hi Ian -

We recently encountered an issue where a client would all of a sudden start returning ELOOP for anything involving crossing an autofs mount. We tracked it down to two bugs, one which obscured the other. The first is that we were not properly updating the map age for yp maps when we retry the lookup with dots instead of underscores. The second is that it is possible under several situations to return success when there was a failure in lookup_nss_mount. In this particular case, it was the only map in the list and since the age wasn't update, it was skipped. Then we exit the while loop with ret == 0, ultimately returning success to the caller. Autofs would tell the kernel it succeeded, the kernel would retry the lookup, and we'd loop until we hit the kernel loop limit (40).

These two patches fix each of the issues.

Thanks,

-Jeff

Jeff Mahoney (2):
autofs: fix yp map age not updated in s/_/./g case
autofs: properly handle errors in lookup_nss_mount

 daemon/lookup.c     |  5 ++++-
 modules/lookup_yp.c | 17 ++++++++---------
 2 files changed, 12 insertions(+), 10 deletions(-)
Signature · 4 lines
2.7.1

--
To unsubscribe from this list: send the line "unsubscribe autofs" in