Compare commits

...

No commits in common. 'c9' and 'c8-beta' have entirely different histories.
c9 ... c8-beta

2
.gitignore vendored

@ -1 +1 @@
SOURCES/libvma-9.8.20.tar.gz SOURCES/libvma-9.8.31.tar.gz

@ -1 +1 @@
fab25759447602ec4602b1c2c949b8f153d34e1d SOURCES/libvma-9.8.20.tar.gz e1520e183451753867f0c25344f4a92f7359731e SOURCES/libvma-9.8.31.tar.gz

@ -1,35 +0,0 @@
From 92f3868fd0474956afe6cb43f8de4d16abba83d6 Mon Sep 17 00:00:00 2001
From: Iftah Levi <iftahl@nvidia.com>
Date: Sun, 9 Jul 2023 14:08:44 +0300
Subject: [PATCH] issue: 3525812 Fix buffer leak socketextreme
In reclaim buffer api - vma_socketxtreme_free_vma_packets
we use reclaim_recv_buffers method which uses try_lock
on the ring, but in case the lock has failed - buffers
will not be returned.
The fix - in case the ring is locked - reclaim buffers
to the global pool.
Signed-off-by: Iftah Levi <iftahl@nvidia.com>
---
src/vma/sock/sock-redirect.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/vma/sock/sock-redirect.cpp b/src/vma/sock/sock-redirect.cpp
index 4308d21e8478..9b232e6093ca 100644
--- a/src/vma/sock/sock-redirect.cpp
+++ b/src/vma/sock/sock-redirect.cpp
@@ -466,7 +466,9 @@ int vma_socketxtreme_free_vma_packets(struct vma_packet_desc_t *packets, int num
p_socket_object->free_buffs(packets[i].total_len);
}
if (rng) {
- rng->reclaim_recv_buffers(desc);
+ if (!rng->reclaim_recv_buffers(desc)) {
+ g_buffer_pool_rx->put_buffers_thread_safe(desc);
+ }
} else {
goto err;
}
--
2.41.0

@ -1,14 +1,13 @@
%{!?configure_options: %global configure_options %{nil}} %{!?configure_options: %global configure_options %{nil}}
Name: libvma Name: libvma
Version: 9.8.20 Version: 9.8.31
Release: 3%{?dist} Release: 1%{?dist}
Summary: A library for boosting TCP and UDP traffic (over RDMA hardware) Summary: A library for boosting TCP and UDP traffic (over RDMA hardware)
License: GPLv2 or BSD License: GPLv2 or BSD
Url: https://github.com/Mellanox/libvma Url: https://github.com/Mellanox/libvma
Source0: https://github.com/Mellanox/libvma/archive/%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/Mellanox/libvma/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-issue-3525812-Fix-buffer-leak-socketextreme.patch
# libvma currently supports only the following architectures # libvma currently supports only the following architectures
ExclusiveArch: x86_64 ppc64le ppc64 aarch64 ExclusiveArch: x86_64 ppc64le ppc64 aarch64
@ -100,65 +99,124 @@ rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/vma
%{_mandir}/man8/vma_stats.* %{_mandir}/man8/vma_stats.*
%changelog %changelog
* Tue Oct 24 2023 Kamal Heib <kheib@redhat.com> - 9.8.31-1
- Update to upstream release 9.8.31.
- Resolves: RHEL-933
* Mon Jul 31 2023 Kamal Heib <kheib@redhat.com> - 9.8.20-3 * Mon Jul 31 2023 Kamal Heib <kheib@redhat.com> - 9.8.20-3
- Rebuilt for libvma-utils - Rebuilt for libvma-utils
- Resolves: rhbz#2227843 - Resolves: rhbz#2217883
* Tue Jul 18 2023 Kamal Heib <kheib@redhat.com> - 9.8.20-2 * Tue Jul 18 2023 Kamal Heib <kheib@redhat.com> - 9.8.20-2
- Fix Socketxtreme buffer reclaim leak - Fix Socketxtreme buffer reclaim leak
- Resolves: rhbz#2223701 - Resolves: rhbz#2223720
* Mon Jun 05 2023 Kamal Heib <kheib@redhat.com> - 9.8.20-1.1
- Add gating tests
- Resolves: rhbz#2170074
* Thu Jun 01 2023 Kamal Heib <kheib@redhat.com> - 9.8.20-1 * Thu Jun 01 2023 Kamal Heib <kheib@redhat.com> - 9.8.20-1
- Update to upstream release 9.8.20. - Update to upstream release 9.8.20.
- Resolves: rhbz#2170370 - Add gating tests
- Resolves: rhbz#2170074
* Wed Aug 03 2022 Michal Schmidt <mschmidt@redhat.com> - 9.6.4-1 * Wed Aug 17 2022 Michal Schmidt <mschmidt@redhat.com> - 9.6.4-1
- Update to upstream release 9.6.4. - Update to upstream release 9.6.4.
- Resolves: rhbz#2049573 - Resolves: rhbz#2049572
* Sat Nov 27 2021 Honggang Li <honli@redhat.com> - 9.4.0-1 * Tue Nov 30 2021 Honggang Li <honli@redhat.com> - 9.4.0-1
- Bump version to 9.4.0 - Bump version to 9.4.0
- Resolves: rhbz#2024548 - Resolves: rhbz#1982205
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 9.3.1-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Tue Jul 06 2021 Honggang Li <honli@redhat.com> - 9.3.1-1 * Tue Jul 06 2021 Honggang Li <honli@redhat.com> - 9.3.1-1
- Bump version to 9.3.1 - Bump version to 9.3.1
- Resolves: rhbz#1858572 - Resolves: rhbz#1915316
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 9.2.2-3 * Thu Feb 04 2021 Honggang Li <honli@redhat.com> - 9.2.2-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Skip team interface when check bonding
- Resolves: rhbz#1916670
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 9.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Dec 16 2020 Honggang Li <honli@redhat.com> - 9.2.2-1
- Update to upstream v9.2.2 release
* Wed Dec 16 2020 Igor Ivanov <igor.ivanov.va@gmail.com> 9.2.2-1 - Resolves: rhbz#1851727
- Bump version to 9.2.2
- Fix issues for gcc-11 * Wed Apr 15 2020 Honggang Li <honli@redhat.com> - 9.0.2-1
- Update to upstream v9.0.2 release
* Thu Dec 10 2020 Jeff Law <law@redhat.com> 9.1.1-2 - Resolves: rhbz#1789385
- Don't use "register" in C++17. Still FTBFS though.
* Tue Jul 23 2019 Jarod Wilson <jarod@redhat.com> - 8.9.5-1
* Sun Nov 15 2020 Igor Ivanov <igor.ivanov.va@gmail.com> 9.1.1-1 - Update to upstream v8.9.5 release
- Bump version to 9.1.1 - Resolves: rhbz#1722259
* Fri Apr 17 2020 Igor Ivanov <igor.ivanov.va@gmail.com> 9.0.2-1 * Fri May 31 2019 Jarod Wilson <jarod@redhat.com> - 8.7.7-1
- Align with Fedora guidelines - Update to upstream v8.7.7 stable release
- Bump version to 9.0.2
* Thu Nov 08 2018 Jarod Wilson <jarod@redhat.com> - 8.7.3-0.1
* Thu Feb 7 2019 Igor Ivanov <igor.ivanov.va@gmail.com> 8.8.2-1 - Rebase to upstream v8.7.3 pre-release
- Improve package update processing - Resolves: rhbz#1648011
* Tue Dec 19 2017 Igor Ivanov <igor.ivanov.va@gmail.com> 8.5.1-1 * Fri Jun 29 2018 Jarod Wilson <jarod@redhat.com> - 8.6.10-0.1
- Add systemd support - Rebase to upstream v8.6.10 pre-release, use 0.x release number scheme
as means to differentiate pre-release from release
* Tue May 9 2017 Ophir Munk <ophirmu@mellanox.com> 8.3.4-1
- Add libvma-debug.so installation * Mon Jun 04 2018 Jarod Wilson <jarod@redhat.com> - 8.6.6-1
- Rebase to upstream v8.6.6 pre-release
* Mon Nov 28 2016 Igor Ivanov <igor.ivanov.va@gmail.com> 8.2.2-1
- Add daemon * Wed Apr 25 2018 Jarod Wilson <jarod@redhat.com> - 8.6.0-1
- Rebase to upstream v8.6.0 pre-release
* Mon Jan 4 2016 Avner BenHanoch <avnerb@mellanox.com> 7.0.12-1
* Tue Dec 05 2017 Jarod Wilson <jarod@redhat.com> - 8.4.10-1
- Rebase to upstream v8.4.10 release
- Resolves: rhbz#1456519
* Wed Aug 24 2016 Jarod Wilson <jarod@redhat.com> - 8.1.4-1
- Rebase to 8.1.4 after latest round of coverity fixes upstream
reduced reported defects to 0
- Related: rhbz#1271624
* Mon Aug 22 2016 Jarod Wilson <jarod@redhat.com> - 8.1.3-1
- Patch in additional coverity fixes from upstream git tree
- Rebase to 8.1.3 to pick up copious coverity corrections
- Related: rhbz#1271624
* Mon Jul 25 2016 Donald Dutile <ddutile@redhat.com> - 8.1.1-1
- Rebase to 8.1.1, re-apply patch to 8.0.1-2
- Add (Build)Requires of libibverbs to 1.2.2
- Resolves: rhbz#1353704
* Wed May 25 2016 Donald Dutile <ddutile@redhat.com> - 8.0.1-2
- ExcludeArch s390's, ppc, i686 and catch in h-file check
- Resolves: rhbz#1271624
* Wed May 25 2016 Donald Dutile <ddutile@redhat.com> - 8.0.1-1
- Initial import to RHEL-7.3
- Resolves: rhbz#1271624
* Sun Mar 13 2016 Alex Vainman <alexv@mellanox.com> - 8.0.1-1
- New upstream release
- Move to dual license: GPLv2 or BSD
- ExcludeArch update
- Removal of extra space in:
config(noreplace) {_sysconfdir}/security/limits.d/30-libvma-limits.conf
- Add V=1 to make
* Wed Mar 2 2016 Alex Vainman <alexv@mellanox.com> - 7.0.14-2
- Added reasoning for archs exclusion
- Package description improvement
- Removal of the pre scriplet
- Added COPYING and LICENSE files to the package
* Sun Feb 21 2016 Alex Vainman <alexv@mellanox.com> - 7.0.14-1
- New upstream release
- Removal of redundant macros and obsolete/unneeded tags
- Added ExcludeArch, BuildRequires and Require sections
- Fixes and cleanups in the build and installation sections
- Install 30-libvma-limits.conf file under
/etc/security/limits.d/
- Fixes related to files/directories ownerships
- Removal of vma_perf_envelope.sh from the utility package
- Update Source tag URL
- Fix most of the rpmlint warnings
* Mon Jan 4 2016 Avner BenHanoch <avnerb@mellanox.com> - 7.0.12-1
- Initial Packaging - Initial Packaging

Loading…
Cancel
Save