Openembedded Core Discussions
 help / color / mirror / Atom feed
* [OE-Core][master][kirkstone][PATCH] dhcpcd: fix dhcpcd start failure on qemuppc64
@ 2023-02-10  2:18 Xiangyu Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Xiangyu Chen @ 2023-02-10  2:18 UTC (permalink / raw)
  To: openembedded-core

From: Xiangyu Chen <xiangyu.chen@windriver.com>

Backport patch to fix dhcpcd start failed on qemuppc64.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
---
 .../dhcpcd/dhcpcd_9.4.1.bb                    |  1 +
 ...x-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch | 34 +++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch

diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
index 5cf77fa0f6..39e689d2f6 100644
--- a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
+++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
@@ -16,6 +16,7 @@ SRC_URI = "https://roy.marples.name/downloads/${BPN}/${BPN}-${PV}.tar.xz \
            file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
            file://0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch \
            file://0002-privsep-Allow-newfstatat-syscall-as-well.patch \
+           file://0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch \
            file://dhcpcd.service \
            file://dhcpcd@.service \
            "
diff --git a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
new file mode 100644
index 0000000000..1c514f9b8c
--- /dev/null
+++ b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
@@ -0,0 +1,34 @@
+From 7a2d9767585ed2c407d4985bd2d81552034fb90a Mon Sep 17 00:00:00 2001
+From: CHEN Xiangyu <xiangyu.chen@aol.com>
+Date: Thu, 9 Feb 2023 18:41:52 +0800
+Subject: [PATCH] privsep-linux: fix SECCOMP_AUDIT_ARCH missing ppc64le (#181)
+
+when dhcpcd running on ppc64le platform, it would be killed by SIGSYS.
+
+Upstream-Status: Backport [7a2d9767585ed2c407d4985bd2d81552034fb90a]
+
+Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
+---
+ src/privsep-linux.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/src/privsep-linux.c b/src/privsep-linux.c
+index 7372d26b..6a301950 100644
+--- a/src/privsep-linux.c
++++ b/src/privsep-linux.c
+@@ -232,7 +232,11 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg)
+ #elif defined(__or1k__)
+ #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_OPENRISC
+ #elif defined(__powerpc64__)
+-#  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
++#  if (BYTE_ORDER == LITTLE_ENDIAN)
++#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
++#  else
++#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
++#  endif
+ #elif defined(__powerpc__)
+ #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
+ #elif defined(__riscv)
+-- 
+2.34.1
+
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-Core][master][kirkstone][PATCH] dhcpcd: fix dhcpcd start failure on qemuppc64
       [not found] <17425510A5DF8C5B.6713@lists.openembedded.org>
@ 2023-02-14  8:32 ` xiangyu.chen
  2023-02-14  9:06   ` Alexandre Belloni
  0 siblings, 1 reply; 3+ messages in thread
From: xiangyu.chen @ 2023-02-14  8:32 UTC (permalink / raw)
  To: openembedded-core


On 2/10/23 10:18, Xiangyu Chen wrote:
> From: Xiangyu Chen <xiangyu.chen@windriver.com>
>
> Backport patch to fix dhcpcd start failed on qemuppc64.

Friendly ping, thanks.


>
> Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> ---
>   .../dhcpcd/dhcpcd_9.4.1.bb                    |  1 +
>   ...x-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch | 34 +++++++++++++++++++
>   2 files changed, 35 insertions(+)
>   create mode 100644 meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
>
> diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
> index 5cf77fa0f6..39e689d2f6 100644
> --- a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
> +++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
> @@ -16,6 +16,7 @@ SRC_URI = "https://roy.marples.name/downloads/${BPN}/${BPN}-${PV}.tar.xz \
>              file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
>              file://0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch \
>              file://0002-privsep-Allow-newfstatat-syscall-as-well.patch \
> +           file://0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch \
>              file://dhcpcd.service \
>              file://dhcpcd@.service \
>              "
> diff --git a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
> new file mode 100644
> index 0000000000..1c514f9b8c
> --- /dev/null
> +++ b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
> @@ -0,0 +1,34 @@
> +From 7a2d9767585ed2c407d4985bd2d81552034fb90a Mon Sep 17 00:00:00 2001
> +From: CHEN Xiangyu <xiangyu.chen@aol.com>
> +Date: Thu, 9 Feb 2023 18:41:52 +0800
> +Subject: [PATCH] privsep-linux: fix SECCOMP_AUDIT_ARCH missing ppc64le (#181)
> +
> +when dhcpcd running on ppc64le platform, it would be killed by SIGSYS.
> +
> +Upstream-Status: Backport [7a2d9767585ed2c407d4985bd2d81552034fb90a]
> +
> +Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> +---
> + src/privsep-linux.c | 6 +++++-
> + 1 file changed, 5 insertions(+), 1 deletion(-)
> +
> +diff --git a/src/privsep-linux.c b/src/privsep-linux.c
> +index 7372d26b..6a301950 100644
> +--- a/src/privsep-linux.c
> ++++ b/src/privsep-linux.c
> +@@ -232,7 +232,11 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg)
> + #elif defined(__or1k__)
> + #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_OPENRISC
> + #elif defined(__powerpc64__)
> +-#  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
> ++#  if (BYTE_ORDER == LITTLE_ENDIAN)
> ++#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
> ++#  else
> ++#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
> ++#  endif
> + #elif defined(__powerpc__)
> + #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
> + #elif defined(__riscv)
> +--
> +2.34.1
> +
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#176972): https://lists.openembedded.org/g/openembedded-core/message/176972
> Mute This Topic: https://lists.openembedded.org/mt/96868623/7175143
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [xiangyu.chen@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-Core][master][kirkstone][PATCH] dhcpcd: fix dhcpcd start failure on qemuppc64
  2023-02-14  8:32 ` [OE-Core][master][kirkstone][PATCH] dhcpcd: fix dhcpcd start failure on qemuppc64 xiangyu.chen
@ 2023-02-14  9:06   ` Alexandre Belloni
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandre Belloni @ 2023-02-14  9:06 UTC (permalink / raw)
  To: Xiangyu Chen; +Cc: openembedded-core

On 14/02/2023 16:32:54+0800, Xiangyu Chen wrote:
> 
> On 2/10/23 10:18, Xiangyu Chen wrote:
> > From: Xiangyu Chen <xiangyu.chen@windriver.com>
> > 
> > Backport patch to fix dhcpcd start failed on qemuppc64.
> 
> Friendly ping, thanks.


You sent this patch 4 days ago, over the weekend, maybe you should have
more patience. Also, you tagged that both master and kirkstone which
will not pass the usual filters as I will drop anything that is for the
stable branches.
> 
> 
> > 
> > Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> > ---
> >   .../dhcpcd/dhcpcd_9.4.1.bb                    |  1 +
> >   ...x-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch | 34 +++++++++++++++++++
> >   2 files changed, 35 insertions(+)
> >   create mode 100644 meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
> > 
> > diff --git a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
> > index 5cf77fa0f6..39e689d2f6 100644
> > --- a/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
> > +++ b/meta/recipes-connectivity/dhcpcd/dhcpcd_9.4.1.bb
> > @@ -16,6 +16,7 @@ SRC_URI = "https://roy.marples.name/downloads/${BPN}/${BPN}-${PV}.tar.xz \
> >              file://0001-20-resolv.conf-improve-the-sitation-of-working-with-.patch \
> >              file://0001-privsep-Allow-getrandom-sysctl-for-newer-glibc.patch \
> >              file://0002-privsep-Allow-newfstatat-syscall-as-well.patch \
> > +           file://0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch \
> >              file://dhcpcd.service \
> >              file://dhcpcd@.service \
> >              "
> > diff --git a/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
> > new file mode 100644
> > index 0000000000..1c514f9b8c
> > --- /dev/null
> > +++ b/meta/recipes-connectivity/dhcpcd/files/0001-privsep-linux-fix-SECCOMP_AUDIT_ARCH-missing-ppc64le.patch
> > @@ -0,0 +1,34 @@
> > +From 7a2d9767585ed2c407d4985bd2d81552034fb90a Mon Sep 17 00:00:00 2001
> > +From: CHEN Xiangyu <xiangyu.chen@aol.com>
> > +Date: Thu, 9 Feb 2023 18:41:52 +0800
> > +Subject: [PATCH] privsep-linux: fix SECCOMP_AUDIT_ARCH missing ppc64le (#181)
> > +
> > +when dhcpcd running on ppc64le platform, it would be killed by SIGSYS.
> > +
> > +Upstream-Status: Backport [7a2d9767585ed2c407d4985bd2d81552034fb90a]
> > +
> > +Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> > +---
> > + src/privsep-linux.c | 6 +++++-
> > + 1 file changed, 5 insertions(+), 1 deletion(-)
> > +
> > +diff --git a/src/privsep-linux.c b/src/privsep-linux.c
> > +index 7372d26b..6a301950 100644
> > +--- a/src/privsep-linux.c
> > ++++ b/src/privsep-linux.c
> > +@@ -232,7 +232,11 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg)
> > + #elif defined(__or1k__)
> > + #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_OPENRISC
> > + #elif defined(__powerpc64__)
> > +-#  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
> > ++#  if (BYTE_ORDER == LITTLE_ENDIAN)
> > ++#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
> > ++#  else
> > ++#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
> > ++#  endif
> > + #elif defined(__powerpc__)
> > + #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
> > + #elif defined(__riscv)
> > +--
> > +2.34.1
> > +
> > 
> > 
> > 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#177128): https://lists.openembedded.org/g/openembedded-core/message/177128
> Mute This Topic: https://lists.openembedded.org/mt/96868623/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-14  9:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <17425510A5DF8C5B.6713@lists.openembedded.org>
2023-02-14  8:32 ` [OE-Core][master][kirkstone][PATCH] dhcpcd: fix dhcpcd start failure on qemuppc64 xiangyu.chen
2023-02-14  9:06   ` Alexandre Belloni
2023-02-10  2:18 Xiangyu Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox