Thread (111 messages) 111 messages, 5 authors, 2018-02-06

Re: [PATCH v6 19/36] nds32: VDSO support

From: Vincent Chen <hidden>
Date: 2018-02-06 07:41:16
Also in: linux-arch, linux-serial, lkml, netdev

2018-01-18 18:28 GMT+08:00 Arnd Bergmann [off-list ref]:
On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu [off-list ref] wrote:
quoted
From: Greentime Hu <redacted>

This patch adds VDSO support. The VDSO code is currently used for
sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter).

Signed-off-by: Vincent Chen <redacted>
Signed-off-by: Greentime Hu <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Dear Arnd Bergmann:

We find a small bug here which make LTP 20170929 clock_getres01
fail. The bug is in __vdso_clock_getres() function. When argument res
is NULL, -EFAULT error code is returned now. But, the returned
value is 0 for SyS_clock_getres under the same conditions.
Therefore, testcase thinks it is a bug.

I will modify the code as below and add it in the next version patch
if you think it is OK.
@@ -209,7 +209,7 @@ static notrace int clock_getres_fallback( ...
 {
         if (res == NULL)
-                return -EFAULT;
+                return 0;

Thanks

Vincnet
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help