git: 62322552c4ac - stable/13 - freebsd32: Fix layout of struct shmid_kernel32.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Apr 2022 23:12:35 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=62322552c4acbb105644cd1b189e224ee4597a09 commit 62322552c4acbb105644cd1b189e224ee4597a09 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-01-18 18:42:21 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-29 23:02:46 +0000 freebsd32: Fix layout of struct shmid_kernel32. The kernel pointers in this structure need to be 32-bit pointers, not native pointers to 32-bit integers. Reviewed by: kib Sponsored by: The University of Cambridge, Google Inc. Differential Revision: https://reviews.freebsd.org/D33905 (cherry picked from commit da7fc5c33f9a4c906068a9a43f43f8d295100418) --- sys/compat/freebsd32/freebsd32_ipc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/compat/freebsd32/freebsd32_ipc.h b/sys/compat/freebsd32/freebsd32_ipc.h index ac469585cafe..10bf60320295 100644 --- a/sys/compat/freebsd32/freebsd32_ipc.h +++ b/sys/compat/freebsd32/freebsd32_ipc.h @@ -104,10 +104,10 @@ struct shmid_ds32 { #ifdef _KERNEL struct shmid_kernel32 { - struct shmid_ds32 u; - int32_t *object; - int32_t *label; - int32_t *cred; + struct shmid_ds32 u; + int32_t object; + int32_t label; + int32_t cred; }; #endif