diff mbox series

[meta-networking,05/15] cannelloni: upgrade 2.0.0 -> 2.1.3

Message ID 20261127041827.1778052-6-khem.raj@oss.qualcomm.com
State New
Headers show
Series Source fixes and upgrades | expand

Commit Message

Khem Raj Nov. 27, 2026, 4:18 a.m. UTC
- 2.1.2/2.1.3: reject oversized frame lengths in the network parser
  and the TCP decoder to prevent out-of-bounds writes (CVE-2026-37539)
- 2.1.0: CAN frames undeliverable on a stuck bus are dropped after a
  staleness timeout, configurable with the new -x option
- 2.1.0: the default remote address when -R is omitted is now
  127.0.0.1 / ::1 as documented

Drop the clang -Wno-error=vla-cxx-extension workaround, upstream no
longer uses variable length arrays in sctpthread.cpp. Fetch by tag now.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../cannelloni/cannelloni_2.0.0.bb            | 23 -------------------
 .../cannelloni/cannelloni_2.1.3.bb            | 15 ++++++++++++
 2 files changed, 15 insertions(+), 23 deletions(-)
 delete mode 100644 meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
 create mode 100644 meta-networking/recipes-connectivity/cannelloni/cannelloni_2.1.3.bb
diff mbox series

Patch

diff --git a/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb b/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
deleted file mode 100644
index f1eaaf80db..0000000000
--- a/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.0.0.bb
+++ /dev/null
@@ -1,23 +0,0 @@ 
-SUMMARY = "a SocketCAN over Ethernet tunnel"
-HOMEPAGE = "https://github.com/mguentner/cannelloni"
-LICENSE = "GPL-2.0-only"
-
-SRC_URI = "git://github.com/mguentner/cannelloni.git;protocol=https;branch=master"
-SRCREV = "9f649ef21710999c6f674bc3d914ab2e88363bac"
-
-UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
-
-LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-
-inherit cmake
-
-PACKAGECONFIG ??= "lksctp-tools"
-PACKAGECONFIG[lksctp-tools] = "-DSCTP_SUPPORT=true, -DSCTP_SUPPORT=false, lksctp-tools"
-
-# Workaround for Clang error:
-# sctpthread.cpp:95:18: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
-#   95 |   uint8_t buffer[m_linkMtuSize];
-#      |                  ^~~~~~~~~~~~~
-# Upstream fix proposed: https://github.com/mguentner/cannelloni/pull/82
-# When upgrading the recipe, remove this flag once the upstream patch is merged and included to new version.
-CXXFLAGS:append:toolchain-clang = " -Wno-error=vla-cxx-extension"
diff --git a/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.1.3.bb b/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.1.3.bb
new file mode 100644
index 0000000000..0771d4ac85
--- /dev/null
+++ b/meta-networking/recipes-connectivity/cannelloni/cannelloni_2.1.3.bb
@@ -0,0 +1,15 @@ 
+SUMMARY = "a SocketCAN over Ethernet tunnel"
+HOMEPAGE = "https://github.com/mguentner/cannelloni"
+LICENSE = "GPL-2.0-only"
+
+SRC_URI = "git://github.com/mguentner/cannelloni.git;protocol=https;branch=master;tag=v${PV}"
+SRCREV = "873b99f3cdfc7d998d333c50e9cab7e12f58a40d"
+
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
+
+LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+inherit cmake
+
+PACKAGECONFIG ??= "lksctp-tools"
+PACKAGECONFIG[lksctp-tools] = "-DSCTP_SUPPORT=true, -DSCTP_SUPPORT=false, lksctp-tools"