]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Apr 2026 08:46:47 +0000 (10:46 +0200)
commit5cdf57eda01a1ffaeb61ac39ec4dcc94a690431e
treed72419fb3da9818f1f9ad270d2d5fc912aef43c7
parent895e1e48b75032e472dfec73c89176a623edb843
rxrpc: Fix missing error checks for rxkad encryption/decryption failure

commit f93af41b9f5f798823d0d0fb8765c2a936d76270 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rxrpc/rxkad.c