From: Balaji Pothunoori Date: Wed, 5 Mar 2025 06:41:01 +0000 (+0530) Subject: dhcpcd: fix for unexpected syscall 135 for 10.1.0 version X-Git-Tag: yocto-5.2~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bb20f49ada56f1c7707565e475051174feba945;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Balaji Pothunoori Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_10.1.0.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_10.1.0.bb index 3f806bb1878..99b72852bf3 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 file://dhcpcd.service \ file://dhcpcd@.service \ file://0001-dhcpcd.8-Fix-conflict-error-when-enable-multilib.patch \ + file://0001-linux-Allow-the-__NR_rt_sigprocmask-syscall.patch \ " SRCREV = "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 00000000000..7058330165f --- /dev/null +++ b/meta/recipes-connectivity/dhcpcd/files/0001-linux-Allow-the-__NR_rt_sigprocmask-syscall.patch @@ -0,0 +1,30 @@ +From e9e40400003db2e4f12dba85acabbaf2212a520f Mon Sep 17 00:00:00 2001 +From: Scott Shambarger +Date: Sat, 7 Dec 2024 16:37:28 +0000 +Subject: [PATCH] linux: Allow the __NR_rt_sigprocmask syscall + +Fixes recent glibc changes to getrandom() used by arc4random(). +Fixes #421. + +Upstream-Status: Backport +See details in https://github.com/NetworkConfiguration/dhcpcd/issues/421 + +Signed-off-by: Scott Shambarger +--- + src/privsep-linux.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/privsep-linux.c b/src/privsep-linux.c +index 8357904c9c9a..e3485a2efdfc 100644 +--- a/src/privsep-linux.c ++++ b/src/privsep-linux.c +@@ -409,6 +409,9 @@ static struct sock_filter ps_seccomp_filter[] = { + #ifdef __NR_recvmsg + SECCOMP_ALLOW(__NR_recvmsg), + #endif ++#ifdef __NR_rt_sigprocmask ++ SECCOMP_ALLOW(__NR_rt_sigprocmask), ++#endif + #ifdef __NR_rt_sigreturn + SECCOMP_ALLOW(__NR_rt_sigreturn), + #endif