]> git.baikalelectronics.ru Git - kernel.git/commit
x86/syscalls: Revert "x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long"
authorAndy Lutomirski <luto@kernel.org>
Sat, 9 May 2020 00:25:32 +0000 (17:25 -0700)
committerBorislav Petkov <bp@suse.de>
Tue, 26 May 2020 14:42:43 +0000 (16:42 +0200)
commitb4130a8d6e6d7219b0edec6e106f4eba796bafc6
tree59478760a27451a973433c3f412d79a69ae070e6
parentae1635a76aa66d84790309cee01dfbe51e92a9b8
x86/syscalls: Revert "x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long"

Revert

  a29604c0fd4c ("x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long")

and add a comment to discourage someone else from making the same
mistake again.

It turns out that some user code fails to compile if __X32_SYSCALL_BIT
is unsigned long. See, for example [1] below.

 [ bp: Massage and do the same thing in the respective tools/ header. ]

Fixes: a29604c0fd4c ("x86/syscalls: Make __X32_SYSCALL_BIT be unsigned long")
Reported-by: Thorsten Glaser <t.glaser@tarent.de>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: stable@kernel.org
Link: [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954294
Link: https://lkml.kernel.org/r/92e55442b744a5951fdc9cfee10badd0a5f7f828.1588983892.git.luto@kernel.org
arch/x86/include/uapi/asm/unistd.h
tools/arch/x86/include/uapi/asm/unistd.h