Skip to content

Fix a SEGV that occurs during a restart when remounting already mounted

Ian Kent requested to merge raven-au/autofs:RHEL-19731-fix-multi-mount-check into c9s

Jira: https://issues.redhat.com/browse/RHEL-19731

In commit 635b90ecc (autofs-5.1.8 - fix mount tree startup reconnect) when getting the parent the check for a multi-mount should include a check for the root of the multi-mount as well since the root does not set the parent.

There's also a possible deadlock when re-connecting to existing direct mounts. If we're starting up or trying to re-connect to an existing direct mount we could be iterating through the map entries with the readlock held so we can't just take the writelock for direct mounts. But when trying to re-connect to an existing mount at startup there won't be any other process updating the map entry cache.

Signed-off-by: Ian Kent ikent@redhat.com

Closes RHEL-19731

Merge request reports