1. 06 11月, 2014 1 次提交
    • L
      crypto: nx - Fixing the limit number of bytes to be processed · f129430d
      Leonidas S. Barbosa 提交于
      The previous limits were estimated locally in a single step
      basead on bound values, however it was not correct since
      when given certain scatterlist the function nx_build_sg_lists
      was consuming more sg entries than allocated causing a
      memory corruption and crashes.
      
      e.g.: in the worst case we could have one sg entry for a single byte.
      
      This patch fixes it modifying the logic of the bound limit
      moving it to nx_sg_build_lists and set a correct sg_max limit,
      adding a trim function to ensure the bound in sg_list. Also fixing
      nx_build_sg_list  NULL and untreated return in case of overflow.
      Signed-off-by: NLeonidas S. Barbosa <leosilva@linux.vnet.ibm.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f129430d
  2. 02 9月, 2013 1 次提交
  3. 14 8月, 2013 1 次提交
  4. 16 5月, 2012 1 次提交