[ Sasha's backport helper bot ]
Hi,
The upstream commit SHA1 provided is correct: d7f01649f4eaf1878472d3d3f480ae1e50d98f6c
WARNING: Author mismatch between patch and upstream commit: Backport author: bin.lan.cn@eng.windriver.com Commit author: Jia Jie Ho jiajie.ho@starfivetech.com
Status in newer kernel trees: 6.12.y | Present (exact SHA1) 6.11.y | Present (exact SHA1) 6.6.y | Not found
Note: The patch differs from the upstream commit: --- 1: d7f01649f4eaf ! 1: f914a30081e60 crypto: starfive - Do not free stack buffer @@ Metadata ## Commit message ## crypto: starfive - Do not free stack buffer
+ [ Upstream commit d7f01649f4eaf1878472d3d3f480ae1e50d98f6c ] + RSA text data uses variable length buffer allocated in software stack. Calling kfree on it causes undefined behaviour in subsequent operations.
Cc: stable@vger.kernel.org #6.7+ Signed-off-by: Jia Jie Ho jiajie.ho@starfivetech.com Signed-off-by: Herbert Xu herbert@gondor.apana.org.au + Signed-off-by: Bin Lan bin.lan.cn@windriver.com
## drivers/crypto/starfive/jh7110-rsa.c ## @@ drivers/crypto/starfive/jh7110-rsa.c: static int starfive_rsa_enc_core(struct starfive_cryp_ctx *ctx, int enc) ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.6.y | Success | Failed |
Build Errors: Build error for stable/linux-6.6.y: