Compare commits
9 Commits
Author | SHA256 | Date | |
---|---|---|---|
4c485462ff | |||
c22189e94f | |||
|
82ff4e904a | ||
|
784fe585de | ||
|
02a1f951af | ||
450b426d20 | |||
8c23f8b4f3 | |||
0bda8618f9 | |||
b6c1153b84 |
BIN
dpdk-23.11.1.tar.xz
(Stored with Git LFS)
BIN
dpdk-23.11.1.tar.xz
(Stored with Git LFS)
Binary file not shown.
3
dpdk-24.11.tar.xz
Normal file
3
dpdk-24.11.tar.xz
Normal 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
35
dpdk-CVE-2024-11614.patch
Normal 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;
|
26
dpdk.changes
26
dpdk.changes
@ -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>
|
||||
|
||||
|
35
dpdk.spec
35
dpdk.spec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user