Re: [PATCH v4] net: don't call strlen() on the user buffer in packet_bind_spkt()

From: Eric Dumazet
Date: Wed Mar 01 2017 - 10:54:48 EST


On Wed, 2017-03-01 at 12:57 +0100, Alexander Potapenko wrote:
> KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of
> uninitialized memory in packet_bind_spkt():
...
> Signed-off-by: Alexander Potapenko <glider@xxxxxxxxxx>
> ---
> Changes since v3:
> - addressed comments by Eric Dumazet (avoid using constants,
> use memcpy() instead of strncpy())
> ---

Acked-by: Eric Dumazet <edumazet@xxxxxxxxxx>