Skip to content

RFC Use __kernel_[u]long_t for x32 user space compatibility

H.J. Lu linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 51 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Use __kernel_long_t in struct timexinclude/linux/timex.h+17 -179 replies
2/10Use __kernel_ulong_t in struct shm_infoinclude/linux/shm.h+5 -50 replies
3/10Use __kernel_[u]long_t in linux/resource.hinclude/linux/resource.h+16 -160 replies
4/10Use __kernel_long_t in struct msgbufinclude/linux/msg.h+2 -20 replies
5/10Use __kernel_long_t in struct mq_attrinclude/linux/mqueue.h+5 -50 replies
6/10Use __kernel_ulong_t in x86 struct semid64_dsarch/x86/include/asm/sembuf.h+5 -50 replies
7/10Use __kernel_ulong_t in struct shmid64_ds/shminfo64include/asm-generic/shmbuf.h+12 -120 replies
8/10Use __kernel_ulong_t in struct msqid64_dsinclude/asm-generic/msgbuf.h+5 -535 replies
9/10Use __kernel_ulong_t in struct ipc64_perminclude/asm-generic/ipcbuf.h+2 -20 replies
10/10Use __kernel_[u]long_t in x86-64 struct statarch/x86/include/asm/stat.h+22 -200 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 00/10] Use __kernel_[u]long_t for x32 user space compatibility

From: H.J. Lu <[email protected]>

This patch set changes a number of places where the kernel headers are exported to user space and currently use explicit "long" or "unsigned long" to use __kernel_[u]long_t in order to be compatible with the x32 user space ABI. These location are places where x32 uses the x86-64 ABI.

It is quite possible that some, or even all, of these locations should really use dedicated types, but in the meantime this gives the correct results which the current headers do not.