Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: bin.lan.cn@eng.windriver.com, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.6] crypto: starfive - Do not free stack buffer
Date: Tue,  3 Dec 2024 13:13:33 -0500	[thread overview]
Message-ID: <20241203073530-2e4fab4b9d39837f@stable.kernel.org> (raw)
In-Reply-To: <20241203065213.67046-1-bin.lan.cn@eng.windriver.com>

[ 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:
    

      parent reply	other threads:[~2024-12-03 18:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03  6:52 [PATCH 6.6] crypto: starfive - Do not free stack buffer bin.lan.cn
2024-12-03  8:23 ` Greg KH
2024-12-03  8:34   ` Bin Lan
2024-12-03  8:48     ` Greg KH
2024-12-03 18:13 ` Sasha Levin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241203073530-2e4fab4b9d39837f@stable.kernel.org \
    --to=sashal@kernel.org \
    --cc=bin.lan.cn@eng.windriver.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox