SHA256
1
0
forked from pool/dpdk

Compare commits

...

9 Commits

Author SHA256 Message Date
4c485462ff Accepting request 1249226 from network
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1249226
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dpdk?expand=0&rev=69
2025-03-02 11:17:30 +00:00
c22189e94f - Update to LTS version 24.11
* Changelog: https://doc.dpdk.org/guides/rel_notes/release_24_11.html
  * This update fix build with glibc 2.41
- Use gcc14 on x86_64 SLE15/16 to avoid the inline error

OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=175
2025-02-28 10:17:30 +00:00
Ana Guerrero
82ff4e904a Accepting request 1236877 from network
OBS-URL: https://build.opensuse.org/request/show/1236877
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dpdk?expand=0&rev=68
2025-01-12 10:08:53 +00:00
Duraisankar P
784fe585de - Fix CVE-2024-11614 [bsc#1234718] - Denial Of Service from malicious guest on hypervisors using DPDK Vhost library
-  Added patch,
     + dpdk-CVE-2024-11614.patch

OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=173
2025-01-10 13:55:39 +00:00
Ana Guerrero
02a1f951af Accepting request 1203005 from network
- Enable (disabled by default) installation of headers needed
  to build drivers.

- Use python macros from build config

    * preamble
    * 0001-fix-cpu-compatibility.patch
        0002-SLE15-SP3-compatibility-patch-for-kni.patch
  manually (bsc#1200620)
- rename
- Add patch to resolve build error reported in Staging:E project
  * https://doc.dpdk.org/guides/rel_notes/release_19_11.html#new-features
- Changed to multibuild (bsc#1151455).
    [-0002-kni-define-HAVE_VF_VLAN_PROTO-for-SLES12SP3.patch
    -0003-kni-define-HAVE_TRANS_START_HELPER-for-SLES12SP3.patch
    -0004-net-thunderx-sync-mailbox-definitions-with-Linux-PF-.patch
    -0005-kni-fix-build-with-gcc-7.1.patch
    -0006-kni-fix-ethtool-build-with-kernel-4.11.patch
   more details can be found in
- Remove CONFIG_RTE_LIBRTE_MBUF_OFFLOAD as cryptodev is not depending
- Added support for aarch64 compilation.
- Disabled aarch64 dpdk-examples package for the time being as it
- Removed unwanted files(bsc#984437).
- Applied all the fixes recommended by upstream for
- DPDK is most common vhost-user backend, Adding upstream patches to
- Added CONFIG_RTE_BUILD_COMBINE_LIBS flags to club all all *.so into
- Intial version 2.2.0(fate#319169)

OBS-URL: https://build.opensuse.org/request/show/1203005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dpdk?expand=0&rev=67
2024-09-25 19:52:59 +00:00
450b426d20 OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=171 2024-09-24 14:35:38 +00:00
8c23f8b4f3 - Enable (disabled by default) installation of headers needed
* preamble
    * 0001-fix-cpu-compatibility.patch
        0002-SLE15-SP3-compatibility-patch-for-kni.patch
  manually (bsc#1200620)
- rename
- Add patch to resolve build error reported in Staging:E project
  * https://doc.dpdk.org/guides/rel_notes/release_19_11.html#new-features
- Changed to multibuild (bsc#1151455).
    [-0002-kni-define-HAVE_VF_VLAN_PROTO-for-SLES12SP3.patch
    -0003-kni-define-HAVE_TRANS_START_HELPER-for-SLES12SP3.patch
    -0004-net-thunderx-sync-mailbox-definitions-with-Linux-PF-.patch
    -0005-kni-fix-build-with-gcc-7.1.patch
    -0006-kni-fix-ethtool-build-with-kernel-4.11.patch
   more details can be found in
- Remove CONFIG_RTE_LIBRTE_MBUF_OFFLOAD as cryptodev is not depending
- Added support for aarch64 compilation.
- Disabled aarch64 dpdk-examples package for the time being as it
- Removed unwanted files(bsc#984437).
- Applied all the fixes recommended by upstream for
- DPDK is most common vhost-user backend, Adding upstream patches to
- Added CONFIG_RTE_BUILD_COMBINE_LIBS flags to club all all *.so into
- Intial version 2.2.0(fate#319169)

OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=170
2024-09-24 14:35:01 +00:00
0bda8618f9 For the maintainer: this is needed to build fd.io VPP
DPDK plugin, in addition to pure DPDK driver development.

- Enable (disabled by default) instalation of headers needed 
  to build drivers.

OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=169
2024-09-24 11:57:09 +00:00
b6c1153b84 - Use python macros from build config
OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=168
2024-09-24 11:56:09 +00:00
5 changed files with 113 additions and 33 deletions

BIN
dpdk-23.11.1.tar.xz (Stored with Git LFS)

Binary file not shown.

3
dpdk-24.11.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b1abc1fda430192ac7eb2ac9f8d83f268a32cd1bb7995b1d6ee8009c67f8f8f
size 17410740

35
dpdk-CVE-2024-11614.patch Normal file
View File

@ -0,0 +1,35 @@
From fdf13ea6fede07538fbe5e2a46fa6d4b2368fa81 Mon Sep 17 00:00:00 2001
From: Olivier Matz <olivier.matz@6wind.com>
Date: Thu, 28 Nov 2024 12:09:56 +0100
Subject: net/virtio: fix Rx checksum calculation
If hdr->csum_start is larger than packet length, the len argument passed
to rte_raw_cksum_mbuf() overflows and causes a segmentation fault.
Ignore checksum computation in this case.
CVE-2024-11614
Fixes: ca7036b4af3a ("vhost: fix offload flags in Rx path")
Signed-off-by: Maxime Gouin <maxime.gouin@6wind.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
---
lib/vhost/virtio_net.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c
index d764d4bc6a..69901ab3b5 100644
--- a/lib/vhost/virtio_net.c
+++ b/lib/vhost/virtio_net.c
@@ -2823,6 +2823,9 @@ vhost_dequeue_offload(struct virtio_net *dev, struct virtio_net_hdr *hdr,
*/
uint16_t csum = 0, off;
+ if (hdr->csum_start >= rte_pktmbuf_pkt_len(m))
+ return;
+
if (rte_raw_cksum_mbuf(m, hdr->csum_start,
rte_pktmbuf_pkt_len(m) - hdr->csum_start, &csum) < 0)
return;

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Mon Feb 17 07:38:12 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to LTS version 24.11
* Changelog: https://doc.dpdk.org/guides/rel_notes/release_24_11.html
* This update fix build with glibc 2.41
- Use gcc14 on x86_64 SLE15/16 to avoid the inline error
-------------------------------------------------------------------
Wed Jan 1 13:12:20 UTC 2025 - Duraisankar P <Duraisankar.pitchumani@suse.com>
- Fix CVE-2024-11614 [bsc#1234718] - Denial Of Service from malicious guest on hypervisors using DPDK Vhost library
- Added patch,
+ dpdk-CVE-2024-11614.patch
-------------------------------------------------------------------
Sat Sep 14 12:34:14 UTC 2024 - Dan Partelly <d.partelly@yahoo.com>
- Enable (disabled by default) installation of headers needed
to build drivers.
-------------------------------------------------------------------
Fri Sep 13 05:08:15 UTC 2024 - Duraisankar P <Duraisankar.pitchumani@suse.com>
- Use python macros from build config
-------------------------------------------------------------------
Thu Sep 5 11:40:32 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package dpdk
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -35,17 +35,24 @@
%endif
# This is in sync with <src>/ABI_VERSION
# TODO: automate this sync
%define maj 24
%define maj 25
%define min 0
#%%define lname libdpdk-%%{maj}_%%{min}
%define lname libdpdk-%{maj}
#
%if 0%{?sle_version} >= 150600
%global pprefix python311
%{?sle15_python_module_pythons}
%else
%global pythons python3
%global pprefix python3
%endif
# Add option to build without examples
%bcond_without examples
# Add option to build without tools
%bcond_without tools
#
Name: dpdk%{name_tag}
Version: 23.11.1
Version: 24.11
Release: 0
Summary: Set of libraries and drivers for fast packet processing
License: BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-only
@ -56,6 +63,17 @@ Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz
Patch0: 0001-fix-cpu-compatibility.patch
# PATCH-FIX-UPSTREAM - https://bugs.dpdk.org/show_bug.cgi?id=1530
Patch1: 0001-examples-vm_power_manager-add-missing-header.patch
# PATCH-FIX-UPSTREAM - CVE-2024-11614 [bsc#1234718], net/virtio: Fix Denial Of Service from malicious guest on hypervisors using DPDK Vhost library
Patch2: dpdk-CVE-2024-11614.patch
%ifarch x86_64
%if 0%{suse_version} < 1699
# Workaround for build failure related to inline error
BuildRequires: gcc14
%endif
%endif
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pyelftools >= 0.22}
BuildRequires: %{pythons}
BuildRequires: binutils
BuildRequires: doxygen
BuildRequires: fdupes
@ -66,9 +84,6 @@ BuildRequires: modutils
BuildRequires: patchelf
BuildRequires: pesign-obs-integration
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: python3-Sphinx
BuildRequires: python3-pyelftools >= 0.22
BuildRequires: rdma-core-devel
BuildRequires: pkgconfig(jansson)
BuildRequires: pkgconfig(libcrypto)
@ -165,7 +180,7 @@ as L2 and L3 forwarding.
%prep
# can't use %%{name} because of dpdk-thunderx
%setup -n dpdk-stable-%{version}
%setup -q -n dpdk-%{version}
%if 0%{?suse_version} > 1600
%autopatch -p1
%else
@ -184,6 +199,9 @@ sed -i "/performance-thread/d" examples/meson.build
%ifarch x86_64
export CFLAGS="%{optflags} -U_FORTIFY_SOURCE -msse4"
%if 0%{suse_version} < 1699
export CC=gcc-14
%endif
%endif
examples="all"
for flavor in %{flavors_to_build}; do
@ -197,6 +215,7 @@ for flavor in %{flavors_to_build}; do
-Dplatform="%{platform}" \
-Dcpu_instruction_set=%{machine} \
-Denable_kmods=true \
-Denable_driver_sdk=true \
-Ddrivers_install_subdir=%{pmddir} \
-Dkernel_dir="%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor"
%meson_build