* [Buildroot] [PATCH] strace: fix build for no-MMU targets
@ 2021-03-11 4:59 Baruch Siach
2021-03-11 14:51 ` Baruch Siach
2021-03-11 21:01 ` Yann E. MORIN
0 siblings, 2 replies; 3+ messages in thread
From: Baruch Siach @ 2021-03-11 4:59 UTC (permalink / raw)
To: buildroot
Add patch to disable fork() calling code on !HAVE_FORK.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
...et_syscall_info-disable_ptrace_getre.patch | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
diff --git a/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch b/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
new file mode 100644
index 000000000000..1367d2985a0f
--- /dev/null
+++ b/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
@@ -0,0 +1,33 @@
+From 84536a993417f3bfff4a54830fa34a3f91f5716e Mon Sep 17 00:00:00 2001
+From: Baruch Siach <baruch@tkos.co.il>
+Date: Thu, 11 Mar 2021 06:43:26 +0200
+Subject: [PATCH] disable_ptrace_get_syscall_info, disable_ptrace_getregset:
+ require fork()
+
+These helper programs require fork(), so they are incompatible with
+no-MMU systems. Make the code depend on HAVE_FORK.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Upstream status: https://lists.strace.io/pipermail/strace-devel/2021-March/010421.html
+
+ src/disable_ptrace_request.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/disable_ptrace_request.c b/src/disable_ptrace_request.c
+index 57163e77f0f4..715006941572 100644
+--- a/src/disable_ptrace_request.c
++++ b/src/disable_ptrace_request.c
+@@ -41,7 +41,8 @@ init(int argc, char **argv)
+ && defined PR_SET_NO_NEW_PRIVS \
+ && defined PR_SET_SECCOMP \
+ && defined BPF_JUMP \
+- && defined BPF_STMT
++ && defined BPF_STMT \
++ && defined HAVE_FORK
+
+ static unsigned int
+ get_arch(void)
+--
+2.30.1
+
--
2.30.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] strace: fix build for no-MMU targets
2021-03-11 4:59 [Buildroot] [PATCH] strace: fix build for no-MMU targets Baruch Siach
@ 2021-03-11 14:51 ` Baruch Siach
2021-03-11 21:01 ` Yann E. MORIN
1 sibling, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2021-03-11 14:51 UTC (permalink / raw)
To: buildroot
Hi Buildroot list,
On Thu, Mar 11 2021, Baruch Siach wrote:
> Add patch to disable fork() calling code on !HAVE_FORK.
I forgot the reference to autobuild failure.
Fixes:
http://autobuild.buildroot.net/results/3d506e2f6337327c0783cf3cc12a8b5fb78521e4/
baruch
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> ...et_syscall_info-disable_ptrace_getre.patch | 33 +++++++++++++++++++
> 1 file changed, 33 insertions(+)
> create mode 100644 package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
>
> diff --git a/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch b/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
> new file mode 100644
> index 000000000000..1367d2985a0f
> --- /dev/null
> +++ b/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
> @@ -0,0 +1,33 @@
> +From 84536a993417f3bfff4a54830fa34a3f91f5716e Mon Sep 17 00:00:00 2001
> +From: Baruch Siach <baruch@tkos.co.il>
> +Date: Thu, 11 Mar 2021 06:43:26 +0200
> +Subject: [PATCH] disable_ptrace_get_syscall_info, disable_ptrace_getregset:
> + require fork()
> +
> +These helper programs require fork(), so they are incompatible with
> +no-MMU systems. Make the code depend on HAVE_FORK.
> +
> +Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> +---
> +Upstream status: https://lists.strace.io/pipermail/strace-devel/2021-March/010421.html
> +
> + src/disable_ptrace_request.c | 3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/src/disable_ptrace_request.c b/src/disable_ptrace_request.c
> +index 57163e77f0f4..715006941572 100644
> +--- a/src/disable_ptrace_request.c
> ++++ b/src/disable_ptrace_request.c
> +@@ -41,7 +41,8 @@ init(int argc, char **argv)
> + && defined PR_SET_NO_NEW_PRIVS \
> + && defined PR_SET_SECCOMP \
> + && defined BPF_JUMP \
> +- && defined BPF_STMT
> ++ && defined BPF_STMT \
> ++ && defined HAVE_FORK
> +
> + static unsigned int
> + get_arch(void)
> +--
> +2.30.1
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] strace: fix build for no-MMU targets
2021-03-11 4:59 [Buildroot] [PATCH] strace: fix build for no-MMU targets Baruch Siach
2021-03-11 14:51 ` Baruch Siach
@ 2021-03-11 21:01 ` Yann E. MORIN
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2021-03-11 21:01 UTC (permalink / raw)
To: buildroot
Baruch, All,
On 2021-03-11 06:59 +0200, Baruch Siach spake thusly:
> Add patch to disable fork() calling code on !HAVE_FORK.
>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Applied to master with the autobuilder reference added, thanks.
Regards,
Yann E. MORIN.
> ---
> ...et_syscall_info-disable_ptrace_getre.patch | 33 +++++++++++++++++++
> 1 file changed, 33 insertions(+)
> create mode 100644 package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
>
> diff --git a/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch b/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
> new file mode 100644
> index 000000000000..1367d2985a0f
> --- /dev/null
> +++ b/package/strace/0001-disable_ptrace_get_syscall_info-disable_ptrace_getre.patch
> @@ -0,0 +1,33 @@
> +From 84536a993417f3bfff4a54830fa34a3f91f5716e Mon Sep 17 00:00:00 2001
> +From: Baruch Siach <baruch@tkos.co.il>
> +Date: Thu, 11 Mar 2021 06:43:26 +0200
> +Subject: [PATCH] disable_ptrace_get_syscall_info, disable_ptrace_getregset:
> + require fork()
> +
> +These helper programs require fork(), so they are incompatible with
> +no-MMU systems. Make the code depend on HAVE_FORK.
> +
> +Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> +---
> +Upstream status: https://lists.strace.io/pipermail/strace-devel/2021-March/010421.html
> +
> + src/disable_ptrace_request.c | 3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/src/disable_ptrace_request.c b/src/disable_ptrace_request.c
> +index 57163e77f0f4..715006941572 100644
> +--- a/src/disable_ptrace_request.c
> ++++ b/src/disable_ptrace_request.c
> +@@ -41,7 +41,8 @@ init(int argc, char **argv)
> + && defined PR_SET_NO_NEW_PRIVS \
> + && defined PR_SET_SECCOMP \
> + && defined BPF_JUMP \
> +- && defined BPF_STMT
> ++ && defined BPF_STMT \
> ++ && defined HAVE_FORK
> +
> + static unsigned int
> + get_arch(void)
> +--
> +2.30.1
> +
> --
> 2.30.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-11 21:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-11 4:59 [Buildroot] [PATCH] strace: fix build for no-MMU targets Baruch Siach
2021-03-11 14:51 ` Baruch Siach
2021-03-11 21:01 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox