crypto: hisilicon/sec - fix the aead software fallback for engine
authorKai Ye <yekai13@huawei.com>
Sat, 19 Feb 2022 08:08:08 +0000 (16:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:07 +0000 (14:23 +0200)
commit40dba7c26e897c637e91312b35f664f1d4d0073c
treec5c3b4b81b6d4b2bdf342ef9f2f6a56892f5f259
parentc71e4d45dcc479a9f522b958d3c759d99bd9faee
crypto: hisilicon/sec - fix the aead software fallback for engine

[ Upstream commit 0a2a464f863187f97e96ebc6384c052cafd4a54c ]

Due to the subreq pointer misuse the private context memory. The aead
soft crypto occasionally casues the OS panic as setting the 64K page.
Here is fix it.

Fixes: 6c46a3297bea ("crypto: hisilicon/sec - add fallback tfm...")
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/sec2/sec_crypto.c