Blame SOURCES/autofs-5.1.8-fix-fix-root-offset-error-handling.patch

91594d
autofs-5.1.8 - fix fix root offset error handling
91594d
91594d
From: Ian Kent <raven@themaw.net>
91594d
91594d
The change to fix root offset error handlling is missing a cache read
91594d
lock prior to the key lookup, the following unmatched unlock then
91594d
causes a hang.
91594d
91594d
Signed-off-by: Ian Kent <raven@themaw.net>
91594d
---
91594d
 CHANGELOG       |    1 +
91594d
 daemon/direct.c |    1 +
91594d
 2 files changed, 2 insertions(+)
91594d
91594d
--- autofs-5.1.7.orig/CHANGELOG
91594d
+++ autofs-5.1.7/CHANGELOG
91594d
@@ -85,6 +85,7 @@
91594d
 - fix set open file limit.
91594d
 - improve descriptor open error reporting.
91594d
 - fix root offset error handling.
91594d
+- fix fix root offset error handling.
91594d
 
91594d
 25/01/2021 autofs-5.1.7
91594d
 - make bind mounts propagation slave by default.
91594d
--- autofs-5.1.7.orig/daemon/direct.c
91594d
+++ autofs-5.1.7/daemon/direct.c
91594d
@@ -1271,6 +1271,7 @@ static void *do_mount_direct(void *arg)
91594d
 		/* If this is a multi-mount subtree mount failure
91594d
 		 * ensure the tree continues to expire.
91594d
 		 */
91594d
+		cache_readlock(mt.mc);
91594d
 		me = cache_lookup_distinct(mt.mc, mt.name);
91594d
 		if (me && IS_MM(me) && !IS_MM_ROOT(me))
91594d
 			conditional_alarm_add(ap, ap->exp_runfreq);