Thread (3 messages) 3 messages, 3 authors, 2025-05-29

Re: [PATCH] net: af_key: Add error check in set_sadb_address()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-05-29 01:53:47
Also in: lkml, stable

On Sun, 25 May 2025 23:53:50 +0800 Wentao Liang wrote:
The function set_sadb_address() calls the function
pfkey_sockaddr_fill(), but does not check its return value.
A proper implementation can be found in set_sadb_kmaddress().

Add an error check for set_sadb_address(), return error code
if the function fails.
Please look at the callers, and you'll find out that the family has
already been validated.
-- 
pw-bot: reject
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help