Messages in this thread | | | From | Linus Torvalds <> | Date | Mon, 30 Apr 2018 16:57:36 +0000 | Subject | Re: Hashed pointer issues |
| |
On Mon, Apr 30, 2018 at 9:41 AM Steven Rostedt <rostedt@goodmis.org> wrote:
> > > > And if we really want a command line option, can we make that still hash > > the pointer, just force the entropy early. That way kernel developers that > > test that command line option are still testing the *hashing*, they just > > are missing the good entropy.
> That may work too. Even with bad entropy, pointers at start up are hard > to come by, and I can't see a hacker being able to use them as it only > happens once during boot.
No, if people use the command line option, *all* pointers - not just the boot-time ones - would get cryptographically bad hashes, since you don't want to change the hash once it's picked (because then you couldn't use the hashing to identify objects).
So the boot command line wouldn't affect just the bootup hashing, it would be bad at runtime too.
But at least a person booting with that option would get the same *behavior* as everybody else, and they wouldn't be testing something fundamnetally different (it's still hashing, just not cryptographically strong).
Although in *practice* we'd have tons of entropy on any modern development CPU too, since any new hardware will have the hardware random number generation. Some overly cautious person might not trust it, of course.
Linus
| |