From 1ccb57efbcb7c2179230c1c01a0a4653e926267e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 16 Dec 2015 14:35:16 +0100 Subject: [PATCH] time.2: Where time() is provided by vDSO, an invalid address may give SIGSEGV Reported-by: H.J. Lu Signed-off-by: Michael Kerrisk --- man2/time.2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man2/time.2 b/man2/time.2 index 38c0b7f23..d21eb029a 100644 --- a/man2/time.2 +++ b/man2/time.2 @@ -52,6 +52,15 @@ appropriately. .B EFAULT .I t points outside your accessible address space. + +On systems where the C library +.BR time () +wrapper function invokes an implementation provided by the +.BR vdso (7) +(so that there is no trap into the kernel), +an invalid address may instead trigger a +.B SIGSEGV +signal. .SH CONFORMING TO SVr4, 4.3BSD, C89, C99, POSIX.1-2001. .\" .br