Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1596540

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

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH v2] net: initialize msg.msg_flags in recvfrom
Date 2017-03-10 02:30 +0100
Message-ID <tjhxw-4PH-9@gated-at.bofh.it> (permalink)
References <tiNpM-1c7-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Alexander Potapenko <glider@google.com>
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@google.com>
> ---
> Changes since v1:
>  - removed KMSAN report and reproducer from the description

Applied, thank you.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v2] net: initialize msg.msg_flags in recvfrom Alexander Potapenko <glider@google.com> - 2017-03-08 18:20 +0100
  Re: [PATCH v2] net: initialize msg.msg_flags in recvfrom David Miller <davem@davemloft.net> - 2017-03-10 02:30 +0100

csiph-web