summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-17 09:41:58 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2020-09-17 13:00:46 -0400
commit527c412519eb63ed354790f4291c3728815d11a6 (patch)
treed0fee0cb3bc9bd021f293e3fc8ba46d63f237b32 /arch
parentcc7886d25bcaffe7f4412d774365d85b462366f8 (diff)
downloadlinux-stable-527c412519eb63ed354790f4291c3728815d11a6.tar.gz
linux-stable-527c412519eb63ed354790f4291c3728815d11a6.tar.bz2
linux-stable-527c412519eb63ed354790f4291c3728815d11a6.zip
compat: add a compat_need_64bit_alignment_fixup() helper
Add a helper to check if the calling syscall needs a fixup for non-natural 64-bit type alignment in the compat ABI. This will only return true for i386 syscalls on x86_64. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/compat.h b/arch/x86/include/asm/compat.h
index bf547701f41f..0e327a01f50f 100644
--- a/arch/x86/include/asm/compat.h
+++ b/arch/x86/include/asm/compat.h
@@ -209,6 +209,7 @@ static inline bool in_compat_syscall(void)
return in_32bit_syscall();
}
#define in_compat_syscall in_compat_syscall /* override the generic impl */
+#define compat_need_64bit_alignment_fixup in_ia32_syscall
#endif
struct compat_siginfo;