Revision 1a512c0882bd311c5b5561840fcfbe4c25b8f319 authored by Arnd Bergmann on 24 April 2018, 21:19:51 UTC, committed by Thomas Gleixner on 27 April 2018, 15:06:29 UTC
A bugfix broke the x32 shmid64_ds and msqid64_ds data structure layout (as seen from user space) a few years ago: Originally, __BITS_PER_LONG was defined as 64 on x32, so we did not have padding after the 64-bit __kernel_time_t fields, After __BITS_PER_LONG got changed to 32, applications would observe extra padding. In other parts of the uapi headers we seem to have a mix of those expecting either 32 or 64 on x32 applications, so we can't easily revert the path that broke these two structures. Instead, this patch decouples x32 from the other architectures and moves it back into arch specific headers, partially reverting the even older commit 73a2d096fdf2 ("x86: remove all now-duplicate header files"). It's not clear whether this ever made any difference, since at least glibc carries its own (correct) copy of both of these header files, so possibly no application has ever observed the definitions here. Based on a suggestion from H.J. Lu, I tried out the tool from https://github.com/hjl-tools/linux-header to find other such bugs, which pointed out the same bug in statfs(), which also has a separate (correct) copy in glibc. Fixes: f4b4aae18288 ("x86/headers/uapi: Fix __BITS_PER_LONG value for x32 builds") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: "H . J . Lu" <hjl.tools@gmail.com> Cc: Jeffrey Walton <noloader@gmail.com> Cc: stable@vger.kernel.org Cc: "H. Peter Anvin" <hpa@zytor.com> Link: https://lkml.kernel.org/r/20180424212013.3967461-1-arnd@arndb.de
1 parent 3db3eb2
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 963 bytes |
Makefile | -rw-r--r-- | 416 bytes |
client.c | -rw-r--r-- | 52.6 KB |
error.c | -rw-r--r-- | 7.4 KB |
mod.c | -rw-r--r-- | 4.3 KB |
protocol.c | -rw-r--r-- | 13.5 KB |
protocol.h | -rw-r--r-- | 1.3 KB |
trans_common.c | -rw-r--r-- | 797 bytes |
trans_common.h | -rw-r--r-- | 546 bytes |
trans_fd.c | -rw-r--r-- | 25.5 KB |
trans_rdma.c | -rw-r--r-- | 19.1 KB |
trans_virtio.c | -rw-r--r-- | 19.3 KB |
trans_xen.c | -rw-r--r-- | 13.7 KB |
util.c | -rw-r--r-- | 3.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...