All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] autofs: fix two related bugs with lookup + expired yp maps
@ 2016-05-05  0:03 jeffm
  2016-05-05  0:03 ` [PATCH 1/2] autofs: fix yp map age not updated in s/_/./g case jeffm
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: jeffm @ 2016-05-05  0:03 UTC (permalink / raw)
  To: autofs; +Cc: Jeff Mahoney

From: Jeff Mahoney <jeffm@suse.com>

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

-- 
2.7.1

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-05 13:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-05  0:03 [PATCH 0/2] autofs: fix two related bugs with lookup + expired yp maps jeffm
2016-05-05  0:03 ` [PATCH 1/2] autofs: fix yp map age not updated in s/_/./g case jeffm
2016-05-05  0:03 ` [PATCH 2/2] autofs: properly handle errors in lookup_nss_mount jeffm
2016-05-05  8:35 ` [PATCH 0/2] autofs: fix two related bugs with lookup + expired yp maps Ian Kent
2016-05-05 10:21   ` Ian Kent
2016-05-05 13:06     ` Jeff Mahoney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.