forked from pool/libfabric
Accepting request 1008573 from home:NMoreyChaisemartin:branches:science:HPC
- Add prov-rxm-Disable-128-bit-atomics.patch to fix a potential segfault on misaligned buffers. - Add prov-rxm-Disable-128-bit-atomics.patch to fix a potential segfault on misaligned buffers. OBS-URL: https://build.opensuse.org/request/show/1008573 OBS-URL: https://build.opensuse.org/package/show/science:HPC/libfabric?expand=0&rev=77
This commit is contained in:
parent
d98f48a74f
commit
f1f52ea9c9
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 6 16:06:29 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
|
||||||
|
- Add prov-rxm-Disable-128-bit-atomics.patch to fix a potential
|
||||||
|
segfault on misaligned buffers.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 30 11:44:45 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
Fri Sep 30 11:44:45 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ URL: http://www.github.com/ofiwg/libfabric
|
|||||||
Source: libfabric-%{version}%{git_ver}.tar.bz2
|
Source: libfabric-%{version}%{git_ver}.tar.bz2
|
||||||
Source1: fabtests-rpmlintrc
|
Source1: fabtests-rpmlintrc
|
||||||
Patch0: libfabric-libtool.patch
|
Patch0: libfabric-libtool.patch
|
||||||
|
Patch1: prov-rxm-Disable-128-bit-atomics.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libfabric-devel = %{version}
|
BuildRequires: libfabric-devel = %{version}
|
||||||
@ -40,6 +41,7 @@ Fabtests provides a set of examples that uses libfabric, a fabric software libra
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n libfabric-%{version}%{git_ver}
|
%setup -q -n libfabric-%{version}%{git_ver}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd fabtests
|
cd fabtests
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 6 16:06:29 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
|
||||||
|
- Add prov-rxm-Disable-128-bit-atomics.patch to fix a potential
|
||||||
|
segfault on misaligned buffers.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 30 11:44:45 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
Fri Sep 30 11:44:45 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Source: %{name}-%{version}%{git_ver}.tar.bz2
|
Source: %{name}-%{version}%{git_ver}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Patch0: libfabric-libtool.patch
|
Patch0: libfabric-libtool.patch
|
||||||
|
Patch1: prov-rxm-Disable-128-bit-atomics.patch
|
||||||
URL: http://www.github.com/ofiwg/libfabric
|
URL: http://www.github.com/ofiwg/libfabric
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -70,6 +71,7 @@ services, such as RDMA. This package contains the development files.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{git_ver}
|
%setup -q -n %{name}-%{version}%{git_ver}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -f config/libtool.m4
|
rm -f config/libtool.m4
|
||||||
|
32
prov-rxm-Disable-128-bit-atomics.patch
Normal file
32
prov-rxm-Disable-128-bit-atomics.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
commit 740b5e9daa2319f7397797f2f17d8e56245fdce4
|
||||||
|
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
Date: Thu Oct 6 18:02:38 2022 +0200
|
||||||
|
|
||||||
|
prov/rxm: Disable 128-bit atomics
|
||||||
|
|
||||||
|
128-bit atomics fail (cause segfault) in release build of
|
||||||
|
provider. Cause is likely related to alignment. Fail
|
||||||
|
query calls for 128-bit integers to indicate support is not
|
||||||
|
provided.
|
||||||
|
|
||||||
|
https://github.com/ofiwg/libfabric/issues/7248
|
||||||
|
|
||||||
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||||
|
|
||||||
|
diff --git prov/rxm/src/rxm_atomic.c prov/rxm/src/rxm_atomic.c
|
||||||
|
index 28e29ade0dde..0f070b92f446 100644
|
||||||
|
--- prov/rxm/src/rxm_atomic.c
|
||||||
|
+++ prov/rxm/src/rxm_atomic.c
|
||||||
|
@@ -509,6 +509,12 @@ int rxm_ep_query_atomic(struct fid_domain *domain, enum fi_datatype datatype,
|
||||||
|
return -FI_EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if ((datatype == FI_INT128) || (datatype == FI_UINT128)) {
|
||||||
|
+ FI_WARN(&rxm_prov, FI_LOG_EP_CTRL,
|
||||||
|
+ "128-bit integers not supported\n");
|
||||||
|
+ return -FI_EOPNOTSUPP;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
ret = ofi_atomic_valid(&rxm_prov, datatype, op, flags);
|
||||||
|
if (ret || !attr)
|
||||||
|
return ret;
|
Loading…
x
Reference in New Issue
Block a user