git: 6cc60a705ffa - stable/13 - linux_copyout_strings: Use PROC_PS_STRINGS().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:38:38 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=6cc60a705ffa5ea88d311442c9ae8f40075400b8
commit 6cc60a705ffa5ea88d311442c9ae8f40075400b8
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-02-04 23:57:57 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-17 19:33:42 +0000
linux_copyout_strings: Use PROC_PS_STRINGS().
Reviewed by: markj
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D34173
(cherry picked from commit 6bea696af25c606452515bc812c23b9f2614344a)
---
sys/amd64/linux32/linux32_sysvec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index 7905b8587192..e84b61580b42 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -770,7 +770,7 @@ linux_copyout_strings(struct image_params *imgp, uintptr_t *stack_base)
char canary[LINUX_AT_RANDOM_LEN];
size_t execpath_len;
- arginfo = (struct linux32_ps_strings *)LINUX32_PS_STRINGS;
+ arginfo = (struct linux32_ps_strings *)PROC_PS_STRINGS(imgp->proc);
destp = (uintptr_t)arginfo;
if (imgp->execpath != NULL && imgp->auxargs != NULL) {