Messages in this thread | | | Date | Fri, 12 Nov 2021 20:08:28 -0800 | From | Jakub Kicinski <> | Subject | Re: [PATCH] tipc: check for null after calling kmemdup |
| |
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 <tadeusz.struk@linaro.org>
Fixes: 1ef6f7c9390f ("tipc: add automatic session key exchange")
| |