* [Buildroot] [PATCH 1/1] package/sudo: drop uClibc-exec_ptrace fix applied upstream
@ 2025-07-16 11:49 James Knight
2025-07-17 8:52 ` Titouan Christophe via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: James Knight @ 2025-07-16 11:49 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Perale, James Knight
This commit drops a uClibc patch that was included in sudo's 1.9.16p2
release. This was applied on the primary development branch [1];
however, when porting fixes on 2025.05.x, a jump was made from 1.9.15p5
to 1.9.17p1 [2] which did not remove the patch.
[1]: 969bdb9d2e1857589292122adbc75073b1b30cd5
[2]: 07cde1ad1efe24d826ca99166534b3f0212cb5f7
Signed-off-by: James Knight <git@jdknight.me>
---
This patch is for 2025.05.x.
---
...e-fix-build-without-precess_vm_readv.patch | 41 -------------------
1 file changed, 41 deletions(-)
delete mode 100644 package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch
diff --git a/package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch b/package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch
deleted file mode 100644
index 446f1d1797..0000000000
--- a/package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 5bbfaa8e68b5ee6f27d4fbfa3c4e789341724f9c Mon Sep 17 00:00:00 2001
-From: "Yann E. MORIN" <yann.morin.1998@free.fr>
-Date: Sat, 17 Feb 2024 17:52:45 +0100
-Subject: [PATCH] src/exec_ptrace: fix build without precess_vm_readv()
-
-Commit 32f4b98f6b4a (sudo frontend: silence most -Wconversion warnings.)
-broke the build on C libraries that miss process_vm_readv(), like
-uClibc-ng.
-
-Indeed, the ssize_t nwritten is declared guarded by HAVE_PROCESS_VM_READV,
-but is then re-assigned and used a few lines below, outside any guard.
-
-Fix that by always declaring the object, as it is always needed.
-
-Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-Upstream: https://github.com/sudo-project/sudo/commit/5bbfaa8e68b5ee6f27d4fbfa3c4e789341724f9c
----
- src/exec_ptrace.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/exec_ptrace.c b/src/exec_ptrace.c
-index 9dd36c275..3d44b82e2 100644
---- a/src/exec_ptrace.c
-+++ b/src/exec_ptrace.c
-@@ -878,11 +878,12 @@ ptrace_write_vec(pid_t pid, struct sudo_ptrace_regs *regs, char **vec,
- unsigned long addr, unsigned long strtab)
- {
- const unsigned long strtab0 = strtab;
-+ ssize_t nwritten;
- size_t i;
- debug_decl(ptrace_write_vec, SUDO_DEBUG_EXEC);
-
- #ifdef HAVE_PROCESS_VM_READV
-- ssize_t nwritten = ptrace_writev_vec(pid, regs, vec, addr, strtab);
-+ nwritten = ptrace_writev_vec(pid, regs, vec, addr, strtab);
- if (nwritten != -1 || errno != ENOSYS)
- debug_return_ssize_t(nwritten);
- #endif /* HAVE_PROCESS_VM_READV */
---
-2.43.0
-
--
2.49.0.windows.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/sudo: drop uClibc-exec_ptrace fix applied upstream
2025-07-16 11:49 [Buildroot] [PATCH 1/1] package/sudo: drop uClibc-exec_ptrace fix applied upstream James Knight
@ 2025-07-17 8:52 ` Titouan Christophe via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Titouan Christophe via buildroot @ 2025-07-17 8:52 UTC (permalink / raw)
To: James Knight, buildroot; +Cc: Thomas Perale
Hello James, Thomas, and all,
Thank you for submitting this patch, although we already committed a
similar one on the .pre branch (ie. what is going to become 2025.05.x as
soon as Arnout officially pushes to the main Buildroot repository); see
https://gitlab.com/essensium-mind/buildroot/-/commit/2b23a3bc199ca3156713530d0a108b27bd11977b
Have a nice day,
Titouan
On 16/07/25 13:49, James Knight wrote:
> This commit drops a uClibc patch that was included in sudo's 1.9.16p2
> release. This was applied on the primary development branch [1];
> however, when porting fixes on 2025.05.x, a jump was made from 1.9.15p5
> to 1.9.17p1 [2] which did not remove the patch.
>
> [1]: 969bdb9d2e1857589292122adbc75073b1b30cd5
> [2]: 07cde1ad1efe24d826ca99166534b3f0212cb5f7
>
> Signed-off-by: James Knight <git@jdknight.me>
> ---
> This patch is for 2025.05.x.
> ---
> ...e-fix-build-without-precess_vm_readv.patch | 41 -------------------
> 1 file changed, 41 deletions(-)
> delete mode 100644 package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch
>
> diff --git a/package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch b/package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch
> deleted file mode 100644
> index 446f1d1797..0000000000
> --- a/package/sudo/0001-src-exec_ptrace-fix-build-without-precess_vm_readv.patch
> +++ /dev/null
> @@ -1,41 +0,0 @@
> -From 5bbfaa8e68b5ee6f27d4fbfa3c4e789341724f9c Mon Sep 17 00:00:00 2001
> -From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> -Date: Sat, 17 Feb 2024 17:52:45 +0100
> -Subject: [PATCH] src/exec_ptrace: fix build without precess_vm_readv()
> -
> -Commit 32f4b98f6b4a (sudo frontend: silence most -Wconversion warnings.)
> -broke the build on C libraries that miss process_vm_readv(), like
> -uClibc-ng.
> -
> -Indeed, the ssize_t nwritten is declared guarded by HAVE_PROCESS_VM_READV,
> -but is then re-assigned and used a few lines below, outside any guard.
> -
> -Fix that by always declaring the object, as it is always needed.
> -
> -Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> -Upstream: https://github.com/sudo-project/sudo/commit/5bbfaa8e68b5ee6f27d4fbfa3c4e789341724f9c
> ----
> - src/exec_ptrace.c | 3 ++-
> - 1 file changed, 2 insertions(+), 1 deletion(-)
> -
> -diff --git a/src/exec_ptrace.c b/src/exec_ptrace.c
> -index 9dd36c275..3d44b82e2 100644
> ---- a/src/exec_ptrace.c
> -+++ b/src/exec_ptrace.c
> -@@ -878,11 +878,12 @@ ptrace_write_vec(pid_t pid, struct sudo_ptrace_regs *regs, char **vec,
> - unsigned long addr, unsigned long strtab)
> - {
> - const unsigned long strtab0 = strtab;
> -+ ssize_t nwritten;
> - size_t i;
> - debug_decl(ptrace_write_vec, SUDO_DEBUG_EXEC);
> -
> - #ifdef HAVE_PROCESS_VM_READV
> -- ssize_t nwritten = ptrace_writev_vec(pid, regs, vec, addr, strtab);
> -+ nwritten = ptrace_writev_vec(pid, regs, vec, addr, strtab);
> - if (nwritten != -1 || errno != ENOSYS)
> - debug_return_ssize_t(nwritten);
> - #endif /* HAVE_PROCESS_VM_READV */
> ---
> -2.43.0
> -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-17 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 11:49 [Buildroot] [PATCH 1/1] package/sudo: drop uClibc-exec_ptrace fix applied upstream James Knight
2025-07-17 8:52 ` Titouan Christophe via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.