Skip to content
Commit c28294b9 authored by Alexander Potapenko's avatar Alexander Potapenko Committed by David S. Miller
Browse files

net: don't call strlen on non-terminated string in dev_set_alias()



KMSAN reported a use of uninitialized memory in dev_set_alias(),
which was caused by calling strlcpy() (which in turn called strlen())
on the user-supplied non-terminated string.

Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b29794ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment