From fc682ed0ac6fb4d40a0f09f27f0cc24de8a70ac9 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 31 Aug 2020 12:21:06 -0400 Subject: [PATCH] Fixed rpc.gssd: munmap_chunk(): invalid pointer Signed-off-by: Steve Dickson --- nfs-utils-2.5.2-rc4.patch | 16 ++++------------ nfs-utils.spec | 5 ++++- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/nfs-utils-2.5.2-rc4.patch b/nfs-utils-2.5.2-rc4.patch index 50237d9..7ac28ba 100644 --- a/nfs-utils-2.5.2-rc4.patch +++ b/nfs-utils-2.5.2-rc4.patch @@ -867,7 +867,7 @@ index f4f5975..1e8c58d 100644 #endif /* _RPC_GSSD_H_ */ diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c -index 8fe6605..2a8b618 100644 +index 8fe6605..e830f49 100644 --- a/utils/gssd/gssd_proc.c +++ b/utils/gssd/gssd_proc.c @@ -149,9 +149,10 @@ do_downcall(int k5_fd, uid_t uid, struct authgss_private_data *pd, @@ -919,15 +919,7 @@ index 8fe6605..2a8b618 100644 service, srchost); /* * Get a list of credential cache names and try each -@@ -686,6 +687,7 @@ process_krb5_upcall(struct clnt_info *clp, uid_t uid, int fd, char *srchost, - } else { - get_hostbased_client_buffer(gacceptor, mech, &acceptor); - gss_release_name(&min_stat, &gacceptor); -+ gss_release_oid(&min_stat, &mech); - } - - /* -@@ -730,7 +732,7 @@ handle_krb5_upcall(struct clnt_upcall_info *info) +@@ -730,7 +731,7 @@ handle_krb5_upcall(struct clnt_upcall_info *info) printerr(2, "\n%s: uid %d (%s)\n", __func__, info->uid, clp->relpath); process_krb5_upcall(clp, info->uid, clp->krb5_fd, NULL, NULL, NULL); @@ -936,7 +928,7 @@ index 8fe6605..2a8b618 100644 } void -@@ -747,8 +749,10 @@ handle_gssd_upcall(struct clnt_upcall_info *info) +@@ -747,8 +748,10 @@ handle_gssd_upcall(struct clnt_upcall_info *info) char *enctypes = NULL; char *upcall_str; char *pbuf = info->lbuf; @@ -948,7 +940,7 @@ index 8fe6605..2a8b618 100644 upcall_str = strdup(info->lbuf); if (upcall_str == NULL) { -@@ -830,6 +834,6 @@ handle_gssd_upcall(struct clnt_upcall_info *info) +@@ -830,6 +833,6 @@ handle_gssd_upcall(struct clnt_upcall_info *info) out: free(upcall_str); out_nomem: diff --git a/nfs-utils.spec b/nfs-utils.spec index 5d7875b..f4dd7ed 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser Name: nfs-utils URL: http://linux-nfs.org/ Version: 2.5.1 -Release: 2.rc4%{?dist} +Release: 3.rc4%{?dist} Epoch: 1 # group all 32bit related archs @@ -365,6 +365,9 @@ fi %{_pkgdir}/*/var-lib-nfs-rpc_pipefs.mount %changelog +* Mon Aug 31 2020 Steve Dickson 2.5.2-3.rc4 +- Fixed rpc.gssd: munmap_chunk(): invalid pointer + * Mon Aug 31 2020 Steve Dickson 2.5.2-2.rc4 - Updated to the latest RC release: nfs-utils-2-5-2-rc4