Messages in this thread | | | From | Linus Torvalds <> | Date | Sat, 17 Apr 2021 09:08:21 -0700 | Subject | Re: [PATCH] x86/uaccess: small optimization in unsafe_copy_to_user() |
| |
On Sat, Apr 17, 2021 at 9:03 AM Linus Torvalds <torvalds@linux-foundation.org> wrote: > > Really. The "unsafe" user accesses are named that way very explicitly, > and for a very very good reason: the safety needs to be guaranteed and > obvious within the context of those accesses. Not within some "oh, > nobody will ever call this with a negative argument" garbage bullshit.
Side note: I'm, looking at the readdir cases that I wrote, and I have to just say that is broken too. So "stones and glass houses" etc, and I'll have to fix that too.
Linus
| |