Skip to content

Commit 78e0597

Browse files
committed
ipc: fix semtimedop for generic 32-bit architectures
As Vincent noticed, the y2038 conversion of semtimedop in linux-5.1 broke when commit 00bf25d ("y2038: use time32 syscall names on 32-bit") changed all system calls on all architectures that take a 32-bit time_t to point to the _time32 implementation, but left out semtimedop in the asm-generic header. This affects all 32-bit architectures using asm-generic/unistd.h: h8300, unicore32, openrisc, nios2, hexagon, c6x, arc, nds32 and csky. The notable exception is riscv32, which has dropped support for the time32 system calls entirely. Reported-by: Vincent Chen <[email protected]> Cc: [email protected] Cc: Vincent Chen <[email protected]> Cc: Greentime Hu <[email protected]> Cc: Yoshinori Sato <[email protected]> Cc: Guan Xuetao <[email protected]> Cc: Stafford Horne <[email protected]> Cc: Jonas Bonn <[email protected]> Cc: Stefan Kristiansson <[email protected]> Cc: Ley Foon Tan <[email protected]> Cc: Richard Kuo <[email protected]> Cc: Mark Salter <[email protected]> Cc: Aurelien Jacquiot <[email protected]> Cc: Guo Ren <[email protected]> Fixes: 00bf25d ("y2038: use time32 syscall names on 32-bit") Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 089cf7f commit 78e0597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/asm-generic/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ __SYSCALL(__NR_semget, sys_semget)
569569
__SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl)
570570
#if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
571571
#define __NR_semtimedop 192
572-
__SC_COMP(__NR_semtimedop, sys_semtimedop, sys_semtimedop_time32)
572+
__SC_3264(__NR_semtimedop, sys_semtimedop_time32, sys_semtimedop)
573573
#endif
574574
#define __NR_semop 193
575575
__SYSCALL(__NR_semop, sys_semop)

0 commit comments

Comments
 (0)