Date: Tue, 18 Jan 2022 18:43:11 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: da7fc5c33f9a - main - freebsd32: Fix layout of struct shmid_kernel32. Message-ID: <202201181843.20IIhB9l031277@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=da7fc5c33f9a4c906068a9a43f43f8d295100418 commit da7fc5c33f9a4c906068a9a43f43f8d295100418 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-01-18 18:42:21 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-01-18 18:42:21 +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 --- 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 6c34445e363b..e3677d186da9 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201181843.20IIhB9l031277>