Re: [PATCH v2] net: initialize msg.msg_flags in recvfrom
From: David Miller
Date: Thu Mar 09 2017 - 20:23:45 EST
From: Alexander Potapenko <glider@xxxxxxxxxx>
Date: Wed, 8 Mar 2017 18:08:16 +0100
> KMSAN reports a use of uninitialized memory in put_cmsg() because
> msg.msg_flags in recvfrom haven't been initialized properly.
> The flag values don't affect the result on this path, but it's still a
> good idea to initialize them explicitly.
>
> Signed-off-by: Alexander Potapenko <glider@xxxxxxxxxx>
> ---
> Changes since v1:
> - removed KMSAN report and reproducer from the description
Applied, thank you.