“f21dd005df95e0fc6a578342c61b5333ce2abc2b”上不存在“drivers/net/wireless/iwlegacy/debug.c”
crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest()
mainline inclusion from mainline-dec3d0b1071a undefined commit dec3d0b1071a category: bugfix bugzilla: 14524 CVE: NA ------------------------------------------------- The ->digest() method of crct10dif-pclmul reads the current CRC value from the shash_desc context. But this value is uninitialized, causing crypto_shash_digest() to compute the wrong result. Fix it. Probably this wasn't noticed before because lib/crc-t10dif.c only uses crypto_shash_update(), not crypto_shash_digest(). Likewise, crypto_shash_digest() is not yet tested by the crypto self-tests because those only test the ahash API which only uses shash init/update/final. Fixes: 0b95a7f8 ("crypto: crct10dif - Glue code to cast accelerated CRCT10DIF assembly as a crypto transform") Cc: <stable@vger.kernel.org> # v3.11+ Cc: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: NEric Biggers <ebiggers@google.com> Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NChen Zhou <chenzhou10@huawei.com> Reviewed-by: NJason Yan <yanaijie@huawei.com> Reviewed-by: NYao Hongbo <yaohongbo@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录