Re: [RFC] situation with csum_and_copy_... API

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2014-11-19 20:40:56
Also in
lkml
Reply to
David Miller, 2014-11-19
On Wed, Nov 19, 2014 at 12:31 PM, David Miller [off-list ref] wrote:
But that is just my opinion, and yes I do acknowledge that we've had
serious holes in this area in the past.
The serious holes have generally been exactly in the "upper layers
already check" camp, and then it turns out that some odd ioctl or
other thing ends up doing something odd and interesting.

If Al has actual performance profiles showing that the access_ok() is
a real problem, then fine. As a low-level optimization, I agree with
it. But not as a "let's just drop them, and make the security rules be
non-local and subtle, and require people to know the details of the
whole call-chain".

Seeing a "__get_user()" and just being able to glance up in the same
function and seeing the "access_ok()" is just a good safety net. And
means that people don't have to waste time thinking about or looking
for where the hell the security net really is.

                    Linus
Thread (133 messages) 133 messages, 9 authors, last reply 2015-02-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help