Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755545AbdCGO2N (ORCPT ); Tue, 7 Mar 2017 09:28:13 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34933 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755186AbdCGO1I (ORCPT ); Tue, 7 Mar 2017 09:27:08 -0500 Message-ID: <1488896800.9415.398.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: [PATCH] net: initialize msg.msg_flags in recvfrom From: Eric Dumazet To: Alexander Potapenko Cc: dvyukov@google.com, kcc@google.com, edumazet@google.com, davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Date: Tue, 07 Mar 2017 06:26:40 -0800 In-Reply-To: <20170307135810.90371-1-glider@google.com> References: <20170307135810.90371-1-glider@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 25 On Tue, 2017-03-07 at 14:58 +0100, Alexander Potapenko wrote: > KMSAN (KernelMemorySanitizer, a new error detection tool) reports use > of uninitialized memory in put_cmsg()): I would prefer that you do not put the stack trace in the changelog, same for the reproducer since this has little value in understanding the impact. It looks like a false positive, but you do not say. recvmsg() does not care about msg.msg_flags, only KMSAN. (The important part is that msg.msg_control and msg.msg_controllen are 0) Fine to avoid the false positive, but better be explicit in the changelog and says there is no visible effect for this bug. If there is a visible effect, please state so instead of technical details. We try to reduce S/N in the changelogs ;) Thanks a lot !