diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-09-16 10:42:41 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-25 12:16:53 +0300 |
| commit | 045ee26aa3920a47ec46d7fcb302420bf01fd753 (patch) | |
| tree | 1e6f22cf64937e921bb50f78229f36d3a48d42a4 /scripts/gdb/linux/xarray.py | |
| parent | 3fabb1236f2e3ad78d531be0a4ad9f4a4ccdda87 (diff) | |
| download | linux-045ee26aa3920a47ec46d7fcb302420bf01fd753.tar.xz | |
crypto: af_alg - Set merge to zero early in af_alg_sendmsg
[ Upstream commit 9574b2330dbd2b5459b74d3b5e9619d39299fc6f ]
If an error causes af_alg_sendmsg to abort, ctx->merge may contain
a garbage value from the previous loop. This may then trigger a
crash on the next entry into af_alg_sendmsg when it attempts to do
a merge that can't be done.
Fix this by setting ctx->merge to zero near the start of the loop.
Fixes: 8ff590903d5 ("crypto: algif_skcipher - User-space interface for skcipher operations")
Reported-by: Muhammad Alifa Ramdhan <ramdhan@starlabs.sg>
Reported-by: Bing-Jhong Billy Jheng <billy@starlabs.sg>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions
