android_kernel_google_msm/ipc
Will Deacon 9587d567d2 BACKPORT: 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.

Change-Id: I0292f1fedabaa6cbbab843611aa76a8f50f47771
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>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2023-02-18 18:32:08 +01:00
..
compat.c BACKPORT: ipc: add COMPAT_SHMLBA support 2023-02-18 18:32:08 +01:00
compat_mq.c ipc: initialize structure memory to zero for compat functions 2010-10-27 18:03:13 -07:00
ipc_sysctl.c ipc: introduce shm_rmid_forced sysctl 2011-07-26 16:49:44 -07:00
ipcns_notifier.c
Makefile Add generic sys_ipc wrapper 2010-03-12 15:52:32 -08:00
mq_sysctl.c
mqueue.c vfs: define struct filename and have getname() return it 2018-12-07 22:28:48 +04:00
msg.c Initialize msg/shm IPC objects before doing ipc_addid() 2016-03-21 09:17:56 +08:00
msgutil.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
namespace.c proc: Usable inode numbers for the namespace file descriptors. 2015-07-13 11:18:01 -07:00
sem.c ipc,sem: fix use after free on IPC_RMID after a task using same semaphore set exits 2016-03-21 09:17:52 +08:00
shm.c BACKPORT: ipc: add COMPAT_SHMLBA support 2023-02-18 18:32:08 +01:00
syscall.c BACKPORT: ipc: add COMPAT_SHMLBA support 2023-02-18 18:32:08 +01:00
util.c Initialize msg/shm IPC objects before doing ipc_addid() 2016-03-21 09:17:56 +08:00
util.h ipc, msg: fix message length check for negative values 2014-04-14 06:44:16 -07:00