arm64: uid16: fix __kernel_old_{gid,uid}_t definitions
authorWill Deacon <will.deacon@arm.com>
Mon, 2 Jun 2014 10:47:29 +0000 (11:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 18 Jun 2014 11:41:09 +0000 (12:41 +0100)
commit34c65c43f1518bf85f93526ad373adc6a683b4c5
tree2905578f17e2f92b9dc217bddd9421998c0e3d6b
parentc168870704bcde6bb63d05f7882b620dd3985a46
arm64: uid16: fix __kernel_old_{gid,uid}_t definitions

Whilst native arm64 applications don't have the 16-bit UID/GID syscalls
wired up, compat tasks can still access them. The 16-bit wrappers for
these syscalls use __kernel_old_uid_t and __kernel_old_gid_t, which must
be 16-bit data types to maintain compatibility with the 16-bit UIDs used
by compat applications.

This patch defines 16-bit __kernel_old_{gid,uid}_t types for arm64
instead of using the 32-bit types provided by asm-generic.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/Kbuild
arch/arm64/include/uapi/asm/posix_types.h [new file with mode: 0644]