1. 09 3月, 2015 1 次提交
  2. 06 3月, 2015 1 次提交
  3. 01 3月, 2015 3 次提交
  4. 26 1月, 2015 1 次提交
  5. 21 1月, 2015 1 次提交
  6. 26 12月, 2014 5 次提交
  7. 22 12月, 2014 6 次提交
  8. 04 12月, 2014 1 次提交
  9. 20 11月, 2014 2 次提交
  10. 06 11月, 2014 1 次提交
    • G
      hwrng: pseries - port to new read API and fix stack corruption · 24c65bc7
      Greg Kurz 提交于
      The add_early_randomness() function in drivers/char/hw_random/core.c passes
      a 16-byte buffer to pseries_rng_data_read(). Unfortunately, plpar_hcall()
      returns four 64-bit values and trashes 16 bytes on the stack.
      
      This bug has been lying around for a long time. It got unveiled by:
      
      commit d3cc7996
      Author: Amit Shah <amit.shah@redhat.com>
      Date:   Thu Jul 10 15:42:34 2014 +0530
      
          hwrng: fetch randomness only after device init
      
      It may trig a oops while loading or unloading the pseries-rng module for both
      PowerVM and PowerKVM guests.
      
      This patch does two things:
      - pass an intermediate well sized buffer to plpar_hcall(). This is acceptalbe
        since we're not on a hot path.
      - move to the new read API so that we know the return buffer size for sure.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      24c65bc7
  11. 24 10月, 2014 1 次提交
  12. 20 10月, 2014 1 次提交
  13. 15 10月, 2014 1 次提交
  14. 02 10月, 2014 1 次提交
  15. 11 9月, 2014 2 次提交
  16. 29 8月, 2014 1 次提交
  17. 15 8月, 2014 1 次提交
  18. 06 8月, 2014 1 次提交
  19. 27 7月, 2014 4 次提交
  20. 15 7月, 2014 3 次提交
  21. 14 7月, 2014 2 次提交
    • A
      hwrng: virtio - ensure reads happen after successful probe · e052dbf5
      Amit Shah 提交于
      The hwrng core asks for random data in the hwrng_register() call itself
      from commit d9e79726.  This doesn't play well with virtio -- the
      DRIVER_OK bit is only set by virtio core on a successful probe, and
      we're not yet out of our probe routine when this call is made.  This
      causes the host to not acknowledge any requests we put in the virtqueue,
      and the insmod or kernel boot process just waits for data to arrive from
      the host, which never happens.
      
      CC: Kees Cook <keescook@chromium.org>
      CC: Jason Cooper <jason@lakedaemon.net>
      CC: Herbert Xu <herbert@gondor.apana.org.au>
      CC: <stable@vger.kernel.org> # For v3.15+
      Reviewed-by: NJason Cooper <jason@lakedaemon.net>
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      e052dbf5
    • A
      hwrng: fetch randomness only after device init · d3cc7996
      Amit Shah 提交于
      Commit d9e79726 "hwrng: add randomness to system from rng sources"
      added a call to rng_get_data() from the hwrng_register() function.
      However, some rng devices need initialization before data can be read
      from them.
      
      This commit makes the call to rng_get_data() depend on no init fn
      pointer being registered by the device.  If an init function is
      registered, this call is made after device init.
      
      CC: Kees Cook <keescook@chromium.org>
      CC: Jason Cooper <jason@lakedaemon.net>
      CC: Herbert Xu <herbert@gondor.apana.org.au>
      CC: <stable@vger.kernel.org> # For v3.15+
      Signed-off-by: NAmit Shah <amit.shah@redhat.com>
      Reviewed-by: NJason Cooper <jason@lakedaemon.net>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      d3cc7996