lkml.org 
[lkml]   [1998]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: patch for 2.1.90 net/core/iovec et al
Date
Followup to:  <m0yHZeI-000aQ2C@the-village.bc.nu>
By author: alan@lxorguk.ukuu.org.uk (Alan Cox)
In newsgroup: linux.dev.kernel
>
> 2.0.x preserves the read position when you get an EFAULT. Nothing I can find
> in the holy manual of posix says what happens if you get an EFAULT on a tcp
> operation, so I think we can do what we like.
>

In fact, POSIX doesn't distinguish between system calls and library
functions, so according to POSIX it is perfectly valid to throw
SIGSEGV instead of return EFAULT. Personally, I think there should be
a kernel option to turn EFAULT into SIGSEGV, because that's really
what it is -- a segfault where the access happens to be from kernel
space.

-hpa
--
PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See http://www.zytor.com/~hpa/ for web page and full PGP public key
I am Bahá'í -- ask me about it or see http://www.bahai.org/
"To love another person is to see the face of God." -- Les Misérables

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.054 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site