commit | c28294b941232931fbd714099798eb7aa7e865d7 | [log] [tgz] |
---|---|---|
author | Alexander Potapenko <glider@google.com> | Tue Jun 06 15:56:54 2017 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Jun 07 12:58:45 2017 -0400 |
tree | 34ebac6259d426d260ad707793f17cc3ae8df66b | |
parent | b29794ec95c6856b316c2295904208bf11ffddd9 [diff] |
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: Alexander Potapenko <glider@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>