1
0
Fork 0
alistair23-linux/arch/mips/vdso
Vincenzo Frascino 520e3bd3de mips: Fix gettimeofday() in the vdso library
[ Upstream commit 7d2aa4bb90 ]

The libc provides a discovery mechanism for vDSO library and its
symbols. When a symbol is not exposed by the vDSOs the libc falls back
on the system calls.

With the introduction of the unified vDSO library on mips this behavior
is not honored anymore by the kernel in the case of gettimeofday().

The issue has been noticed and reported due to a dhclient failure on the
CI20 board:

root@letux:~# dhclient
../../../../lib/isc/unix/time.c:200: Operation not permitted
root@letux:~#

Restore the original behavior fixing gettimeofday() in the vDSO library.

Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com> # CI20 with JZ4780
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: mips-creator-ci20-dev@googlegroups.com
Cc: letux-kernel@openphoenux.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-17 19:49:04 +01:00
..
.gitignore
Makefile MIPS: Disable Loongson MMI instructions for kernel build 2019-10-10 11:58:52 -07:00
config-n32-o32-env.c mips: compat: vdso: Use legacy syscalls as fallback 2019-09-03 15:35:23 +01:00
elf.S mips: Add support for generic vDSO 2019-07-25 21:45:05 -07:00
genvdso.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
genvdso.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sigreturn.S mips: Add support for generic vDSO 2019-07-25 21:45:05 -07:00
vdso.lds.S mips: Add clock_gettime64 entry point 2019-07-25 21:45:52 -07:00
vgettimeofday.c mips: Fix gettimeofday() in the vdso library 2020-01-17 19:49:04 +01:00