1. 30 11月, 2016 4 次提交
  2. 29 11月, 2016 2 次提交
  3. 28 11月, 2016 29 次提交
  4. 22 11月, 2016 2 次提交
  5. 21 11月, 2016 2 次提交
  6. 18 11月, 2016 1 次提交
    • H
      crypto: algif_hash - Fix NULL hash crash with shash · a8348bca
      Herbert Xu 提交于
      Recently algif_hash has been changed to allow null hashes.  This
      triggers a bug when used with an shash algorithm whereby it will
      cause a crash during the digest operation.
      
      This patch fixes it by avoiding the digest operation and instead
      doing an init followed by a final which avoids the buggy code in
      shash.
      
      This patch also ensures that the result buffer is freed after an
      error so that it is not returned as a genuine hash result on the
      next recv call.
      
      The shash/ahash wrapper code will be fixed later to handle this
      case correctly.
      
      Fixes: 493b2ed3 ("crypto: algif_hash - Handle NULL hashes correctly")
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Tested-by: NLaura Abbott <labbott@redhat.com>
      a8348bca