Compare commits

...

2 Commits

Author SHA1 Message Date
Pavel Reichl 3b1543bd3e Fix gating (RHEL-25837) 2024-02-17 03:16:40 +00:00
Steve Dickson ada4673f0a rpcdebug: avoid buffer underflow (RHEL-7931)
Signed-off-by: Steve Dickson <steved@redhat.com>
Resolves: RHEL-7931
2024-02-06 12:13:16 -05:00
4 changed files with 38 additions and 9 deletions

1
.nfs-utils.metadata Normal file
View File

@ -0,0 +1 @@
1b097d511c85f95671619f51b37abd75d56ea777 nfs-utils-2.5.4.tar.xz

View File

@ -0,0 +1,24 @@
commit a746c35822e557766d1871ec976490a71e6962d9
Author: Zhi Li <yieli@redhat.com>
Date: Wed Apr 5 12:08:10 2023 -0400
rpcdebug: avoid buffer underflow if read() returns 0
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2176740
Signed-off-by: Zhi Li <yieli@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
diff --git a/tools/rpcdebug/rpcdebug.c b/tools/rpcdebug/rpcdebug.c
index 68206cc5..ec05179e 100644
--- a/tools/rpcdebug/rpcdebug.c
+++ b/tools/rpcdebug/rpcdebug.c
@@ -257,7 +257,7 @@ get_flags(char *module)
perror(filename);
exit(1);
}
- if ((len = read(sysfd, buffer, sizeof(buffer))) < 0) {
+ if ((len = read(sysfd, buffer, sizeof(buffer))) <= 0) {
perror("read");
exit(1);
}

View File

@ -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: 23%{?dist}
Release: 24%{?dist}
Epoch: 1
# group all 32bit related archs
@ -57,6 +57,7 @@ Patch021: nfs-utils-2.5.4-mount-mountconf-typo.patch
Patch022: nfs-utils-2.5.4-support-for-rpc-with-tls.patch
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
Patch100: nfs-utils-1.2.1-statdpath-man.patch
Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch
@ -498,9 +499,13 @@ fi
%{_mandir}/*/nfsiostat.8.gz
%changelog
* Mon Feb 5 2024 Steve Dickson <steved@redhat.com> 2.5.4-23
* Fri Feb 16 2024 Pavel Reichl <preichl@redhat.com> - 2.5.4-24
- Fix gating (RHEL-25837)
* Tue Feb 6 2024 Steve Dickson <steved@redhat.com> 2.5.4-23
- Typos and documentation fixes (RHEL-22654)
- blkmapd: fix coredump in bl_add_disk (RHEL-7941)
- rpcdebug: avoid buffer underflow (RHEL-7931)
* Thu Feb 1 2024 Steve Dickson <steved@redhat.com> 2.5.4-22
- nfsmount.conf: Fix typo of the attribute name (RHEL-7904)

View File

@ -7,15 +7,14 @@
tags:
- classic
repositories:
- repo: "git://pkgs.devel.redhat.com/tests/nfs-utils"
- repo: "https://pkgs.devel.redhat.com/git/tests/nfs-utils"
dest: "tests"
version: "6f3c1af32931edef9c0a2829a570156ec3ba94d6"
tests:
- tests/commands/utils/umount
- tests/commands/utils/exportfs
- tests/commands/utils/mount
- tests/services/systemd/nfs
- tests/function/nfs-mount-options-all
- tests/commands/utils/umount/main.sh
- tests/commands/utils/exportfs/main.sh
- tests/commands/utils/mount/main.sh
- tests/services/systemd/nfs/main.sh
- tests/function/nfs-mount-options-all/main.sh
required_packages:
- nfs-utils
- redhat-lsb-core # lsb_release is needed by tests