A tool for automatically mounting and unmounting filesystems
Go to file
Ian Kent 511169a715 libnss_sss: threads stuck at sss_nss_lock from initgroups
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2087535

In threaded programs it's required to not call functions that are
not async-thread safe between fork(2) and exec(3).

Unfortunately initgroups(3) is not async-thread safe but is called
between these two functions and it leads to automount(8) hanging.

But getgroups(2) and setgroups(2) can be used for this and even though
setgroups(2) is not listed as async-thread safe it is in fact safe to
call here.

This MR changes automount(8) to use getgroups(2)/setgroups(2) instead
if initgroups(3) and testing shows that this resolves the hang problem.

Resolves: rhbz#2087535

Signed-off-by: Ian Kent ikent@redhat.com
2022-05-30 10:28:50 +08:00
.gitignore - update distribution tar to eliminate rejected license (bug 1951344). 2021-04-20 10:13:45 +08:00
autofs-5.1.7-add-a-len-field-to-struct-autofs_point.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-ext_mount_hash_mutex-lock-helpers.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-add-length-check-in-umount_subtree_mounts.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-add-mapent-tree-implementation.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-missing-description-of-null-map-option.patch - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
autofs-5.1.7-add-missing-free-in-handle_mounts.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-add-mount-and-umount-offsets-functions.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-set_offset_tree_catatonic.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-some-multi-mount-macros.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-tree_mapent_add_node.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-tree_mapent_cleanup_offsets.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-tree_mapent_delete_offsets.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-tree_mapent_traverse_subtree.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-add-xdr_exports.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-also-require-TCP_REQUESTED-when-setting-NFS-port.patch autofs is slow to mount when doing lookups returns multiple entries 2022-05-18 09:52:43 +08:00
autofs-5.1.7-cater-for-empty-mounts-list-in-mnts_get_expire_list.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-check-for-offset-with-no-mount-location.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-cleanup-cache_delete-a-little.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-dont-add-offset-mounts-to-mounted-mounts-table.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-dont-pass-root-to-do_mount_autofs_offset.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-dont-try-umount-after-stat-ENOENT-fail.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-dont-use-realloc-in-host-exports-list-processing.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-eliminate-cache_lookup_offset-usage.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-eliminate-clean_stale_multi_triggers.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-eliminate-count_mounts-from-expire_proc_indirect.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-eliminate-redundant-cache-lookup-in-tree_mapent_add_node.patch - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
autofs-5.1.7-eliminate-some-more-alloca-usage.patch - update patch "eliminate-some-more-alloca-usage" for bug 1984813. 2021-08-02 07:54:03 +08:00
autofs-5.1.7-eliminate-some-strlen-calls-in-offset-handling.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-amd-hosts-mount-expire.patch - add missing patch for bug 1942371, add fixes for bugs 1958489 and 1958486. 2021-05-11 12:05:17 +08:00
autofs-5.1.7-fix-amd-section-mounts-map-reload.patch - add missing patch for bug 1942371, add fixes for bugs 1958489 and 1958486. 2021-05-11 12:05:17 +08:00
autofs-5.1.7-fix-arg-not-used-in-print.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-concat_options-error-handling.patch - correct patch, fix concat_options() error handling for bug 1938682. 2021-07-02 08:04:24 +08:00
autofs-5.1.7-fix-dandling-symlink-creation-if-nis-support-is-not-available.patch - add changes for bug 1942371. 2021-04-19 08:11:05 +08:00
autofs-5.1.7-fix-dangling-symlink-creation-if-nis-support-is-not-available.patch - add missing patch for bug 1942371, add fixes for bugs 1958489 and 1958486. 2021-05-11 12:05:17 +08:00
autofs-5.1.7-fix-dead-code-in-mnts_add_mount.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-direct-mount-deadlock.patch - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
autofs-5.1.7-fix-double-free-in-parse_mapent.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-double-unlock-in-parse_mount.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-flag-check-in-umount_multi.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-hosts-map-offset-order.patch - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
autofs-5.1.7-fix-inconsistent-locking-in-parse_mount.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-inconsistent-locking-in-umount_subtree_mounts.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-is-mounted-check-on-non-existent-path.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-lookup_prune_one_cache-refactoring-change.patch - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
autofs-5.1.7-fix-missing-lock-release-in-mount_subtree.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-mnts_get_expire_list-expire-list-construction.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-mnts_remove_amdmount-uses-wrong-list.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-mount_fullpath.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-nonstrict-offset-mount-fail-handling.patch - add change for bug 1973892. 2021-06-22 10:16:40 +08:00
autofs-5.1.7-fix-offset-entries-order.patch - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
autofs-5.1.7-Fix-option-for-master_read_wait.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-fix-possible-memory-leak-in-master_parse.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-possible-memory-leak-in-mnts_add_amdmount.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-fix-return-from-umount_subtree_mounts-on-offset-list-delete.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-make-NFS-version-check-flags-consistent.patch autofs is slow to mount when doing lookups returns multiple entries 2022-05-18 09:52:43 +08:00
autofs-5.1.7-make-tree-implementation-data-independent.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-move-amd-mounts-removal-into-lib_mounts_c.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-pass-mapent_cache-to-update_offset_entry.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-pass-root-length-to-mount_fullpath.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-reduce-umount-EBUSY-check-delay.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-refactor-get_nfs_info.patch autofs is slow to mount when doing lookups returns multiple entries 2022-05-18 09:52:43 +08:00
autofs-5.1.7-refactor-lookup_prune_one_cache-a-bit.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-refactor-umount_multi_triggers.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-mount_x-and-rpcgen-dependencies.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-mounts_mutex.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-obsolete-functions.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-redundant-assignment-in-master_add_amd_mount_section_mounts.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-remove-redundant-if-check.patch - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
autofs-5.1.7-remove-redundant-local-var-from-sun_mount.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-redundant-variables-from-mount_autofs_offset.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-unused-function-master_submount_list_empty.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-unused-functions-cache_dump_multi-and-cache_dump_cache.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-unused-mount-offset-list-lock-functions.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-unused-parameter-form-do_mount_autofs_offset.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-remove-unused-variable-from-get_exports.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-rename-path-to-m_offset-in-update_offset_entry.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-rename-tree-implementation-functions.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-set-offset-parent-in-update_offset_entry.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-simplify-get_parent.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-simplify-mount_subtree-mount-check.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-switch-to-use-tree-implementation-for-offsets.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-use-default-stack-size-for-threads.patch - add changes for bug 1984813. 2021-07-30 14:45:13 +08:00
autofs-5.1.7-use-mapent-tree-root-for-tree_mapent_add_node.patch - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
autofs-5.1.7-use-mount_fullpath-in-one-spot-in-parse_mount.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.7-use-sprintf-when-constructing-hosts-mapent.patch Merged update from upstream sources 2021-03-26 02:05:45 +00:00
autofs-5.1.8-avoid-calling-pthread_getspecific-with-NULL-key_thread_attempt_id.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-bailout-on-rpc-systemerror.patch autofs is slow to mount when doing lookups returns multiple entries 2022-05-18 09:52:43 +08:00
autofs-5.1.8-dont-fail-on-duplicate-host-export-entry.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-dont-use-initgroups-at-spawn.patch libnss_sss: threads stuck at sss_nss_lock from initgroups 2022-05-30 10:28:50 +08:00
autofs-5.1.8-fix-fedfs-build-flags.patch - fix fedfs build flags (realted bug 2028301). 2021-12-21 09:00:12 +08:00
autofs-5.1.8-fix-fix-root-offset-error-handling.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-fix-handling-of-incorrect-return-from-umount_ent.patch autofs attempts unmount on directory in use 2022-05-16 07:13:05 +08:00
autofs-5.1.8-fix-kernel-mount-status-notification.patch - add fix fro bug 2028301. 2021-12-20 09:42:10 +08:00
autofs-5.1.8-fix-loop-under-run-in-cache_get_offset_parent.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-fix-memory-leak-in-xdr_exports.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-fix-nfsv4-only-mounts-should-not-use-rpcbind.patch autofs is slow to mount when doing lookups returns multiple entries 2022-05-18 09:52:43 +08:00
autofs-5.1.8-fix-nonstrict-fail-handling-of-last-offset-mount.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-fix-root-offset-error-handling.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-fix-set-open-file-limit.patch - add fixes for bug 2028746. 2022-01-09 12:16:28 +08:00
autofs-5.1.8-fix-sysconf-return-handling.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-fix-use-after-free-in-tree_mapent_delete_offset_tree.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs-5.1.8-improve-descriptor-open-error-reporting.patch - add fixes for bug 2028746. 2022-01-09 12:16:28 +08:00
autofs-5.1.8-remove-nonstrict-parameter-from-tree_mapent_umount_offsets.patch autofs attempts unmount on directory in use 2022-05-16 07:13:05 +08:00
autofs-5.1.8-simplify-cache_add-a-little.patch Using -hosts option does not work in RHEL 9 2022-05-12 10:13:51 +08:00
autofs.spec libnss_sss: threads stuck at sss_nss_lock from initgroups 2022-05-30 10:28:50 +08:00
gating.yaml - add gating.yaml (bug 1951393). 2021-06-23 10:22:36 +08:00
sources - update distribution tar to eliminate rejected license (bug 1951344). 2021-04-20 10:13:45 +08:00