Skip to content

Commit 8f469dc

Browse files
arndbgregkh
authored andcommitted
mips: fix n32 compat_ipc_parse_version
commit 5a9372f upstream. While reading through the sysvipc implementation, I noticed that the n32 semctl/shmctl/msgctl system calls behave differently based on whether o32 support is enabled or not: Without o32, the IPC_64 flag passed by user space is rejected but calls without that flag get IPC_64 behavior. As far as I can tell, this was inadvertently changed by a cleanup patch but never noticed by anyone, possibly nobody has tried using sysvipc on n32 after linux-3.19. Change it back to the old behavior now. Fixes: 78aaf95 ("MIPS: Compat: Fix build error if CONFIG_MIPS32_COMPAT but no compat ABI.") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org Cc: stable@vger.kernel.org # 3.19+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9d37f4a commit 8f469dc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,6 +3149,7 @@ config MIPS32_O32
31493149
config MIPS32_N32
31503150
bool "Kernel support for n32 binaries"
31513151
depends on 64BIT
3152+
select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
31523153
select COMPAT
31533154
select MIPS32_COMPAT
31543155
select SYSVIPC_COMPAT if SYSVIPC

0 commit comments

Comments
 (0)