summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalaji Pothunoori <quic_bpothuno@quicinc.com>2025-03-05 12:11:01 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-06 11:16:47 +0000
commit58f56c364936c2c675d68ac1a3e1886ddc3b2562 (patch)
tree7f796c4a41096d1f24c41df79de47062656968d0
parentf88aa1c7720da78ff2bb45f482ea474399668c7f (diff)
downloadpoky-58f56c364936c2c675d68ac1a3e1886ddc3b2562.tar.gz
dhcpcd: fix for unexpected syscall 135 for 10.1.0 version
Current dhcpcd (version 10.1.0) service crashes on the WiFi (wlan0) interface with the following error: "ps_seccomp_violation: unexpected syscall 135" This update pulls in fix #421 for dhcpcd 10.1.0 to address this issue. (From OE-Core rev: 2bb20f49ada56f1c7707565e475051174feba945) Signed-off-by: Balaji Pothunoori <quic_bpothuno@quicinc.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/dhcpcd/dhcpcd_10.1.0.bb1
-rw-r--r--meta/recipes-connectivity/dhcpcd/files/0001-linux-Allow-the-__NR_rt_sigprocmask-syscall.patch30
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_10.1.0.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_10.1.0.bb
index 3f806bb187..99b72852bf 100644
--- a/meta/recipes-connectivity/dhcpcd/dhcpcd_10.1.0.bb
+++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_10.1.0.bb
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/NetworkConfiguration/dhcpcd;protocol=https;branch=ma
15 file://dhcpcd.service \ 15 file://dhcpcd.service \
16 file://dhcpcd@.service \ 16 file://dhcpcd@.service \
17 file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \ 17 file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \
18 file://0001-linux-Allow-the-__NR_rt_sigprocmask-syscall.patch \
18 " 19 "
19 20
20SRCREV = "57c3506a5622e199cf0e3fc1ef26a71cdedc9521" 21SRCREV = "57c3506a5622e199cf0e3fc1ef26a71cdedc9521"
diff --git a/meta/recipes-connectivity/dhcpcd/files/0001-linux-Allow-the-__NR_rt_sigprocmask-syscall.patch b/meta/recipes-connectivity/dhcpcd/files/0001-linux-Allow-the-__NR_rt_sigprocmask-syscall.patch
new file mode 100644
index 0000000000..7058330165
--- /dev/null
+++ b/meta/recipes-connectivity/dhcpcd/files/0001-linux-Allow-the-__NR_rt_sigprocmask-syscall.patch
@@ -0,0 +1,30 @@
1From e9e40400003db2e4f12dba85acabbaf2212a520f Mon Sep 17 00:00:00 2001
2From: Scott Shambarger <devel@shambarger.net>
3Date: Sat, 7 Dec 2024 16:37:28 +0000
4Subject: [PATCH] linux: Allow the __NR_rt_sigprocmask syscall
5
6Fixes recent glibc changes to getrandom() used by arc4random().
7Fixes #421.
8
9Upstream-Status: Backport
10See details in https://github.com/NetworkConfiguration/dhcpcd/issues/421
11
12Signed-off-by: Scott Shambarger <devel@shambarger.net>
13---
14 src/privsep-linux.c | 3 +++
15 1 file changed, 3 insertions(+)
16
17diff --git a/src/privsep-linux.c b/src/privsep-linux.c
18index 8357904c9c9a..e3485a2efdfc 100644
19--- a/src/privsep-linux.c
20+++ b/src/privsep-linux.c
21@@ -409,6 +409,9 @@ static struct sock_filter ps_seccomp_filter[] = {
22 #ifdef __NR_recvmsg
23 SECCOMP_ALLOW(__NR_recvmsg),
24 #endif
25+#ifdef __NR_rt_sigprocmask
26+ SECCOMP_ALLOW(__NR_rt_sigprocmask),
27+#endif
28 #ifdef __NR_rt_sigreturn
29 SECCOMP_ALLOW(__NR_rt_sigreturn),
30 #endif