Re: [PATCH] x86/uaccess: small optimization in unsafe_copy_to_user()
From: Linus Torvalds
Date: Sat Apr 17 2021 - 12:16:50 EST
On Sat, Apr 17, 2021 at 9:03 AM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> 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