]> git.baikalelectronics.ru Git - kernel.git/commit
ipc: add COMPAT_SHMLBA support
authorWill Deacon <will.deacon@arm.com>
Mon, 30 Jul 2012 21:42:38 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:20 +0000 (17:25 -0700)
commitf4cec68014e03d0fd135463e2423d916d9273102
tree52acdeda67006d3d85eee0a17d6241657ba270dc
parent0b151bbfb96e2ff146e4a0183018567a607866fb
ipc: add COMPAT_SHMLBA support

If the SHMLBA definition for a native task differs from the definition for
a compat task, the do_shmat() function would need to handle both.

This patch introduces COMPAT_SHMLBA, which is used by the compat shmat
syscall when calling the ipc code and allows architectures such as AArch64
(where the native SHMLBA is 64k but the compat (AArch32) definition is
16k) to provide the correct semantics for compat IPC system calls.

Cc: David S. Miller <davem@davemloft.net>
Cc: Chris Zankel <chris@zankel.net>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sparc/kernel/sys_sparc_64.c
arch/xtensa/kernel/syscall.c
include/linux/shm.h
ipc/compat.c
ipc/shm.c
ipc/syscall.c