]> git.baikalelectronics.ru Git - kernel.git/commit
sparc32: fix struct ipc64_perm type definition
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Jan 2020 13:26:14 +0000 (14:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 12:26:19 +0000 (13:26 +0100)
commit59f03a70bb62dc013b57001732ff273c7dceaf14
tree367a62fa3bacef7fbacbdf1f73dab910b9e4eaf1
parent2bc58ea14e76d31c1e5fa1dcbd916a304045b487
sparc32: fix struct ipc64_perm type definition

As discussed in the strace issue tracker, it appears that the sparc32
sysvipc support has been broken for the past 11 years. It was however
working in compat mode, which is how it must have escaped most of the
regular testing.

The problem is that a cleanup patch inadvertently changed the uid/gid
fields in struct ipc64_perm from 32-bit types to 16-bit types in uapi
headers.

Both glibc and uclibc-ng still use the original types, so they should
work fine with compat mode, but not natively.  Change the definitions
to use __kernel_uid32_t and __kernel_gid32_t again.

Fixes: 7f2236c1e6f6 ("sparc: unify ipcbuf.h")
Link: https://github.com/strace/strace/issues/116
Cc: <stable@vger.kernel.org> # v2.6.29
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: "Dmitry V . Levin" <ldv@altlinux.org>
Cc: Rich Felker <dalias@libc.org>
Cc: libc-alpha@sourceware.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/uapi/asm/ipcbuf.h