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

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