[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wggjLsi-1BmDHqWAJPzBvTD_-MQNo5qQ9WCuncnyWPROg@mail.gmail.com>
Date: Mon, 25 Feb 2019 16:07:12 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Qian Cai <cai@....pw>
Cc: Hugh Dickins <hughd@...gle.com>,
"Darrick J. Wong" <darrick.wong@...cle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Matej Kupljen <matej.kupljen@...il.com>,
Al Viro <viro@...iv.linux.org.uk>,
Dan Carpenter <dan.carpenter@...cle.com>,
Linux List Kernel Mailing <linux-kernel@...r.kernel.org>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Linux-MM <linux-mm@...ck.org>
Subject: Re: [PATCH] tmpfs: fix uninitialized return value in shmem_link
On Mon, Feb 25, 2019 at 4:03 PM Qian Cai <cai@....pw> wrote:
> >
> > Of course, that's just gcc. I have no idea what llvm ends up doing.
>
> Clang 7.0:
>
> # clang -O2 -S -Wall /tmp/test.c
> /tmp/test.c:46:6: warning: variable 'ret' is used uninitialized whenever 'if'
> condition is false [-Wsometimes-uninitialized]
Ok, good.
Do we have any clang builds in any of the zero-day robot
infrastructure or something? Should we?
And maybe this was how Dan noticed the problem in the first place? Or
is it just because of his eagle-eyes?
Linus
Powered by blists - more mailing lists