Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1199098

Re: [PATCH 1/1] x86: replace RDRAND forced-reseed with simple sanity check

From Len Brown <lenb@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] x86: replace RDRAND forced-reseed with simple sanity check
Date 2015-08-03 19:30 +0200
Message-ID <pTrIJ-1iX-9@gated-at.bofh.it> (permalink)
References <pSkq0-1ly-41@gated-at.bofh.it> <pT3ZL-vY-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> If we trust built-in-self-test...
> why do we need to do this at all? We
> should check the return value at every call, anyway...

Yes, we do trust built-in-self-test.
Yes, we do check for errors on on every call, not just here in boot.

The sanity check at boot from the kernel allows Linux to disable
the feature, preventing user-space from thrashing trying to use it.

There is also a line of reasoning that if the circuit is going to fail,
chances are that it will fail immediately.
I have no reason to believe that the circuit will fail in the field
either at run-time or at boot-time.  But that line of reasoning
suggests that O(1 usec) to check at boot is a prudent investment --
it is certainly a better investment per time than may of the other
things Linux does.

thanks,
Len Brown, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] x86: replace RDRAND forced-reseed with simple sanity check Len Brown <lenb@kernel.org> - 2015-07-31 17:30 +0200
  Re: [PATCH 1/1] x86: replace RDRAND forced-reseed with simple sanity  check Thomas Gleixner <tglx@linutronix.de> - 2015-08-02 21:00 +0200
  Re: [PATCH 1/1] x86: replace RDRAND forced-reseed with simple sanity  check Pavel Machek <pavel@ucw.cz> - 2015-08-02 18:10 +0200
    Re: [PATCH 1/1] x86: replace RDRAND forced-reseed with simple sanity check Len Brown <lenb@kernel.org> - 2015-08-03 19:30 +0200
  Re: [PATCH 1/1] x86: replace RDRAND forced-reseed with simple sanity  check Jeff Epler <jepler@unpythonic.net> - 2015-08-02 19:50 +0200

csiph-web