]> git.hungrycats.org Git - linux/commit
rxrpc: Fix missing error checks for rxkad encryption/decryption failure
authorDavid Howells <dhowells@redhat.com>
Wed, 8 Apr 2026 12:12:44 +0000 (13:12 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Apr 2026 01:44:34 +0000 (18:44 -0700)
commitf93af41b9f5f798823d0d0fb8765c2a936d76270
treed2e1fe746c72ee44c64aab0a04a1e78841640922
parent2afd86ccbb2082a3c4258aea8c07e5bb6267bc2f
rxrpc: Fix missing error checks for rxkad encryption/decryption failure

Add error checking for failure of crypto_skcipher_en/decrypt() to various
rxkad function as the crypto functions can fail with ENOMEM at least.

Fixes: 17926a79320a ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both")
Closes: https://sashiko.dev/#/patchset/20260401105614.1696001-10-dhowells@redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Jeffrey Altman <jaltman@auristor.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
cc: stable@kernel.org
Link: https://patch.msgid.link/20260408121252.2249051-17-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rxrpc/rxkad.c