]> git.baikalelectronics.ru Git - kernel.git/commit
ipc: fix semtimedop for generic 32-bit architectures
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Sep 2019 14:20:09 +0000 (16:20 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 6 Sep 2019 19:49:24 +0000 (21:49 +0200)
commit11d35a99e5a616ad268962c03bb0db5f60cf2b21
tree8d9d0fcd6a4bb3409843a3af755dcac0ab1ce4e1
parent8a9d99520c17c557e8eba8e3fb857089f0033021
ipc: fix semtimedop for generic 32-bit architectures

As Vincent noticed, the y2038 conversion of semtimedop in linux-5.1
broke when commit 3df8a9f623cf ("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 <deanbo422@gmail.com>
Cc: stable@vger.kernel.org
Cc: Vincent Chen <deanbo422@gmail.com>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Stafford Horne <shorne@gmail.com>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <jacquiot.aurelien@gmail.com>
Cc: Guo Ren <guoren@kernel.org>
Fixes: 3df8a9f623cf ("y2038: use time32 syscall names on 32-bit")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/uapi/asm-generic/unistd.h