1. 07 12月, 2016 1 次提交
  2. 09 8月, 2016 5 次提交
  3. 28 7月, 2016 1 次提交
  4. 23 6月, 2016 6 次提交
  5. 05 4月, 2016 1 次提交
  6. 17 3月, 2016 2 次提交
    • B
      crypto: marvell/cesa - initialize hash states · b0ef5106
      Boris BREZILLON 提交于
      ->export() might be called before we have done an update operation,
      and in this case the ->state field is left uninitialized.
      Put the correct default value when initializing the request.
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      b0ef5106
    • B
      crypto: marvell/cesa - fix memory leak · 7850c91b
      Boris BREZILLON 提交于
      Crypto requests are not guaranteed to be finalized (->final() call),
      and can be freed at any moment, without getting any notification from
      the core. This can lead to memory leaks of the ->cache buffer.
      
      Make this buffer part of the request object, and allocate an extra buffer
      from the DMA cache pool when doing DMA operations.
      
      As a side effect, this patch also fixes another bug related to cache
      allocation and DMA operations. When the core allocates a new request and
      import an existing state, a cache buffer can be allocated (depending
      on the state). The problem is, at that very moment, we don't know yet
      whether the request will use DMA or not, and since everything is
      likely to be initialized to zero, mv_cesa_ahash_alloc_cache() thinks it
      should allocate a buffer for standard operation. But when
      mv_cesa_ahash_free_cache() is called, req->type has been set to
      CESA_DMA_REQ in the meantime, thus leading to an invalind dma_pool_free()
      call (the buffer passed in argument has not been allocated from the pool).
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      Reported-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      7850c91b
  7. 17 11月, 2015 1 次提交
  8. 20 10月, 2015 19 次提交
  9. 14 10月, 2015 4 次提交