Thread (10 messages) flat view 10 messages, 4 authors, 2021-11-16

Re: [PATCH] tipc: check for null after calling kmemdup

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-11-13 04:08:33
Also in: lkml, stable

On Thu, 11 Nov 2021 12:59:15 -0800 Tadeusz Struk wrote:
kmemdup can return a null pointer so need to check for it, otherwise
the null key will be dereferenced later in tipc_crypto_key_xmit as
can be seen in the trace [1].
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Tadeusz Struk <redacted>
Fixes: 1ef6f7c9390f ("tipc: add automatic session key exchange")
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help