]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ipc: add COMPAT_SHMLBA support
authorWill Deacon <will.deacon@arm.com>
Sat, 21 Jul 2012 00:55:12 +0000 (10:55 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:29 +0000 (13:53 +1000)
commit5504023160ff2d9d59e8dbbe9093cd925a2a1c94
tree82614cf612033b14da1f987d12bdccf9534b809a
parentf08bf6aaf5c1bc1d0f595e4185165e787d54ada0
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>
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