Skip to content

Update kernel uabi header files for x32

H.J. Lu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Use __kernel_long_t in struct timexinclude/uapi/linux/timex.h+38 -84 replies
2/8Use __kernel_long_t/__kernel_ulong_t in <linux/resource.h>include/uapi/linux/resource.h+24 -20 replies
3/8Use __kernel_ulong_t in uapi struct ipc64_perminclude/uapi/asm-generic/ipcbuf.h+5 -00 replies
4/8Use __kernel_long_t in struct msgbufinclude/uapi/linux/msg.h+6 -20 replies
5/8Use __kernel_ulong_t in struct msqid64_dsinclude/uapi/asm-generic/msgbuf.h+14 -50 replies
6/8Use __kernel_ulong_t in x86 struct semid64_dsarch/x86/include/uapi/asm/sembuf.h+5 -54 replies
7/8Use __kernel_ulong_t in shmid64_ds/shminfo64/shm_infoinclude/uapi/asm-generic/shmbuf.h include/uapi/linux/shm.h+38 -120 replies
8/8Use __kernel_long_t in struct mq_attrinclude/uapi/linux/mqueue.h+13 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Update kernel uabi header files for x32

X32 uses the same kernel system call interface as x86-64 for many system calls. However, "long" is 64-bit for x86-64 and is 32-bit for x32. Where long or unsigned long are used in struct types for such system calls, they are wrong for x32. __kernel_[u]long_t is [unsigned] long for all ABIs other than x32. I am submitting 8 patches to replace long or unsigned long with __kernel_[u]long_t so that those struct types can be used with x32 system calls.

H.J. Lu (8):
Use __kernel_long_t in struct timex
Use __kernel_long_t/__kernel_ulong_t in <linux/resource.h> Use __kernel_ulong_t in uapi struct ipc64_perm Use __kernel_long_t in struct msgbuf
Use __kernel_ulong_t in struct msqid64_ds
Use __kernel_ulong_t in x86 struct semid64_ds Use __kernel_ulong_t in shmid64_ds/shminfo64/shm_info Use __kernel_long_t in struct mq_attr

 arch/x86/include/uapi/asm/sembuf.h | 10 ++++-----
 include/uapi/asm-generic/ipcbuf.h  |  5 +++++
 include/uapi/asm-generic/msgbuf.h  | 19 +++++++++++-----
 include/uapi/asm-generic/shmbuf.h  | 36 +++++++++++++++++++++--------
 include/uapi/linux/mqueue.h        | 18 ++++++++++-----
 include/uapi/linux/msg.h           |  8 +++++--
 include/uapi/linux/resource.h      | 26 +++++++++++++++++++--
 include/uapi/linux/shm.h           | 14 +++++++++---
 include/uapi/linux/timex.h         | 46 +++++++++++++++++++++++++++++++-------
 9 files changed, 143 insertions(+), 39 deletions(-)
Signature · 1 line
1.8.4.2