Re: [PATCH v2] net: initialize msg.msg_flags in recvfrom

2017-03-09 Thread David Miller
From: Alexander Potapenko 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 the

[PATCH v2] net: initialize msg.msg_flags in recvfrom

2017-03-08 Thread Alexander Potapenko
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 --- Changes since v1: