diff --git a/dist b/dist index 535c6900412d365bb0ff6de8d1f27110833b3ae3..9c0e36ec42a2d9bfefacb21ac6354c9ddd910533 100644 --- a/dist +++ b/dist @@ -1 +1 @@ -an8_7 +an8 diff --git a/nfs-utils-2.3.3-covscan-return-value.patch b/nfs-utils-2.3.3-covscan-return-value.patch new file mode 100644 index 0000000000000000000000000000000000000000..94fc5a1cad26c5d17290bcaddd4970dedfc0c9c6 --- /dev/null +++ b/nfs-utils-2.3.3-covscan-return-value.patch @@ -0,0 +1,25 @@ +diff -up nfs-utils-2.3.3/support/export/client.c.orig nfs-utils-2.3.3/support/export/client.c +--- nfs-utils-2.3.3/support/export/client.c.orig 2018-09-06 14:09:08.000000000 -0400 ++++ nfs-utils-2.3.3/support/export/client.c 2023-01-12 08:59:44.171609492 -0500 +@@ -689,6 +689,9 @@ check_netgroup(const nfs_client *clp, co + + /* check whether the IP itself is in the netgroup */ + ip = calloc(INET6_ADDRSTRLEN, 1); ++ if (ip == NULL) ++ goto out; ++ + if (inet_ntop(ai->ai_family, &(((struct sockaddr_in *)ai->ai_addr)->sin_addr), ip, INET6_ADDRSTRLEN) == ip) { + if (innetgr(netgroup, ip, NULL, NULL)) { + free(hname); +diff -up nfs-utils-2.3.3/tools/nfsrahead/main.c.orig nfs-utils-2.3.3/tools/nfsrahead/main.c +--- nfs-utils-2.3.3/tools/nfsrahead/main.c.orig 2023-01-12 08:58:28.297466979 -0500 ++++ nfs-utils-2.3.3/tools/nfsrahead/main.c 2023-01-12 09:00:37.988419866 -0500 +@@ -167,7 +167,7 @@ int main(int argc, char **argv) + if ((ret = get_device_info(argv[optind], &device)) == 0) + break; + +- if (ret != 0) { ++ if (ret != 0 || device.fstype == NULL) { + xlog(D_GENERAL, "unable to find device %s\n", argv[optind]); + goto out; + } diff --git a/nfs-utils.spec b/nfs-utils.spec index d51ddcaf352fcee42d3b01b19d90e06c9feeb1c2..fcb7425870f60425855ec229f2bd06d26650b65d 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -3,7 +3,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser Name: nfs-utils URL: http://linux-nfs.org/ Version: 2.3.3 -Release: 57%{anolis_release}%{?dist}.1 +Release: 59%{anolis_release}%{?dist} Epoch: 1 # group all 32bit related archs @@ -105,9 +105,10 @@ Patch054: nfs-utils-2.3.3-rpcctl-posixpath.patch Patch055: nfs-utils-2.3.3-systemd-rpcstatd.patch # -# RHEL 8.7.z +# rhel 8.8 # Patch056: nfs-utils-2.3.3-mountd-v4clnts.patch +Patch057: nfs-utils-2.3.3-covscan-return-value.patch Patch100: nfs-utils-1.2.1-statdpath-man.patch Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch @@ -394,14 +395,18 @@ fi %{_libdir}/libnfsidmap.so %changelog -* Thu Mar 02 2023 Weitao Zhou 2.3.3-57.0.1.1 +* Thu May 25 2023 Weitao Zhou 2.3.3-59.0.1 - use extern in header files when declaring global variables for compatible gcc10 build - allow compilation to succeed with -fno-common - Add libuuid-devel buildrequires (wb-zh951434@alibaba-inc.com) - Disable v4client on loongarch platform (liwei.glw@alibaba-inc.com) -* Wed Dec 7 2022 Steve Dickson 2.3.3-57_7.1 -- mountd: Check 'nfsd/clients' directory presence (bz 2150899) +* Thu Jan 12 2023 Steve Dickson 2.3.3-59 +- Covscan Scan: Wrong Check of Return Value (bz 2151966) +- Covscan Scan: Clang (experimental) (bz 2151971) + +* Mon Sep 26 2022 Steve Dickson 2.3.3-58 +- mountd: Check 'nfsd/clients' directory presence (bz 2123073) * Tue Aug 2 2022 Steve Dickson 2.3.3-57 - rpc-statd.service: Stop rpcbind and rpc.stat in an exit race (bz 2100395)