- rpc-gssd.service has status failed (due to rpc.gssd segfault)
This commit is contained in:
		
							parent
							
								
									7e7b4a502a
								
							
						
					
					
						commit
						5db8c0c435
					
				
							
								
								
									
										32
									
								
								SOURCES/nfs-utils-2.5.4-gssd-segfault.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								SOURCES/nfs-utils-2.5.4-gssd-segfault.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| commit 92995e0d38dc00e930c562cf936220f83c09d082 | ||||
| Author: Paulo Andrade <pandrade@redhat.com> | ||||
| Date:   Tue Jul 23 12:03:30 2024 -0400 | ||||
| 
 | ||||
|     rpc-gssd.service has status failed (due to rpc.gssd segfault) | ||||
|      | ||||
|     Ensure strings are not NULL before doing a strdup() in error path. | ||||
|      | ||||
|     Fixes: https://issues.redhat.com/browse/RHEL-43286 | ||||
|     Signed-off-by: Steve Dickson <steved@redhat.com> | ||||
| 
 | ||||
| diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c
 | ||||
| index d7a28225..01ce7d18 100644
 | ||||
| --- a/utils/gssd/gssd.c
 | ||||
| +++ b/utils/gssd/gssd.c
 | ||||
| @@ -365,12 +365,12 @@ gssd_read_service_info(int dirfd, struct clnt_info *clp)
 | ||||
|   | ||||
|  fail: | ||||
|  	printerr(0, "ERROR: failed to parse %s/info\n", clp->relpath); | ||||
| -	clp->upcall_address = strdup(address);
 | ||||
| -	clp->upcall_port = strdup(port);
 | ||||
| +	clp->upcall_address = address ? strdup(address) : NULL;
 | ||||
| +	clp->upcall_port = port ? strdup(port) : NULL;
 | ||||
|  	clp->upcall_program = program; | ||||
|  	clp->upcall_vers = version; | ||||
| -	clp->upcall_protoname = strdup(protoname);
 | ||||
| -	clp->upcall_service = strdup(service);
 | ||||
| +	clp->upcall_protoname = protoname ? strdup(protoname) : NULL;
 | ||||
| +	clp->upcall_service = service ? strdup(service) : NULL;
 | ||||
|  	free(servername); | ||||
|  	free(protoname); | ||||
|  	clp->servicename = NULL; | ||||
| @ -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.4 | ||||
| Release: 25%{?dist} | ||||
| Release: 26%{?dist}.alma.1 | ||||
| Epoch: 1 | ||||
| 
 | ||||
| # group all 32bit related archs | ||||
| @ -59,6 +59,10 @@ Patch023: nfs-utils-2.5.4-fix-typos-in-messages.patch | ||||
| Patch024: nfs-utils-2.5.4-blkmapd-double-free.patch | ||||
| Patch025: nfs-utils-2.5.4-rpcdebug-check-read-return.patch | ||||
| 
 | ||||
| # Patches were taken from: | ||||
| # https://gitlab.com/redhat/centos-stream/rpms/nfs-utils/-/commit/5e9c6b49e4be17fe05f01487e306fc7fc97847c6 | ||||
| Patch026: nfs-utils-2.5.4-gssd-segfault.patch | ||||
| 
 | ||||
| Patch100: nfs-utils-1.2.1-statdpath-man.patch | ||||
| Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch | ||||
| Patch102: nfs-utils-1.2.5-idmap-errmsg.patch | ||||
| @ -499,6 +503,9 @@ fi | ||||
| %{_mandir}/*/nfsiostat.8.gz | ||||
| 
 | ||||
| %changelog | ||||
| * Tue Sep 03 2024 Eduard Abdullin <eabdullin@almalinux.org> 2.5.4-26.alma.1 | ||||
| - rpc-gssd.service has status failed (due to rpc.gssd segfault) | ||||
| 
 | ||||
| * Sun Feb 18 2024 Steve Dickson <steved@redhat.com> 2.5.4-25 | ||||
| - Update: Typos and documentation fixes (RHEL-22654) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user