Skip to content

Commit f85a857

Browse files
amlutoKAGA-KOKO
authored andcommitted
x86/syscalls: Disallow compat entries for all types of 64-bit syscalls
A "compat" entry in the syscall tables means to use a different entry on 32-bit and 64-bit builds. This only makes sense for syscalls that exist in the first place in 32-bit builds, so disallow it for anything other than i386. Signed-off-by: Andy Lutomirski <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/4b7565954c5a06530ac01d98cb1592538fd8ae51.1562185330.git.luto@kernel.org
1 parent a8d03c3 commit f85a857

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/entry/syscalls/syscalltbl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ emit() {
2727
compat="$4"
2828
umlentry=""
2929

30-
if [ "$abi" = "64" -a -n "$compat" ]; then
31-
echo "a compat entry for a 64-bit syscall makes no sense" >&2
30+
if [ "$abi" != "I386" -a -n "$compat" ]; then
31+
echo "a compat entry ($abi: $compat) for a 64-bit syscall makes no sense" >&2
3232
exit 1
3333
fi
3434

0 commit comments

Comments
 (0)