1. 07 5月, 2014 1 次提交
  2. 18 4月, 2014 6 次提交
  3. 17 4月, 2014 3 次提交
  4. 11 4月, 2014 1 次提交
    • M
      hwrng: bcm2835 - fix oops when rng h/w is accessed during registration · eb4a5346
      Matt Porter 提交于
      Commit "d9e79726 hwrng: add randomness to system from rng sources"
      exposed a bug in the bcm2835-rng driver resulting in boot failure
      on Raspberry Pi due to the following oops:
      
      [   28.261523] BUG: soft lockup - CPU#0 stuck for 23s! [swapper:1]
      [   28.271058]
      [   28.275958] CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.0+ #11
      [   28.285374] task: db480000 ti: db484000 task.ti: db484000
      [   28.294279] PC is at bcm2835_rng_read+0x28/0x48
      [   28.302276] LR is at hwrng_register+0x1a8/0x238
      .
      .
      .
      
      The RNG h/w is not completely initialized and enabled before
      hwrng_register() is called and so the bcm2835_rng_read() fails.
      Fix this by making the warmup/enable writes before registering
      the RNG source with the hwrng core.
      Signed-off-by: NMatt Porter <mporter@linaro.org>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      eb4a5346
  5. 08 4月, 2014 1 次提交
  6. 07 4月, 2014 1 次提交
  7. 02 4月, 2014 1 次提交
  8. 20 3月, 2014 15 次提交
  9. 13 3月, 2014 1 次提交
  10. 10 3月, 2014 6 次提交
  11. 27 2月, 2014 2 次提交
  12. 21 2月, 2014 1 次提交
  13. 16 2月, 2014 1 次提交
    • P
      /dev/mem: handle out-of-bounds read/write · 08d2d00b
      Petr Tesarik 提交于
      The loff_t type may be wider than phys_addr_t (e.g. on 32-bit systems).
      Consequently, the file offset may be truncated in the assignment.
      Currently, /dev/mem wraps around, which may cause applications to read
      or write incorrect regions of memory by accident.
      
      Let's follow POSIX file semantics here and return 0 when reading from
      and -EFBIG when writing to an offset that cannot be represented by a
      phys_addr_t.
      
      Note that the conditional is optimized out by the compiler if loff_t
      has the same size as phys_addr_t.
      Signed-off-by: NPetr Tesarik <ptesarik@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      08d2d00b