Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp5033145imc; Mon, 25 Feb 2019 16:08:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IYvoIJt4hlHvDuA5Q7XOp++5uhLV+p0sKFh1uo4dOJDSio0WPyh9GZ5NlxDoKhN+uugrRmo X-Received: by 2002:a65:65c9:: with SMTP id y9mr22056905pgv.438.1551139696877; Mon, 25 Feb 2019 16:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551139696; cv=none; d=google.com; s=arc-20160816; b=o3uaVp5NuE7ZCFzb5FBycJLvY65s4zuKrIbV3EhMrUfJmAhP5PcGDYVtzCn3DOo1ei ANu0N56Zm0DnTpXzbEwiQ+K9a5rUkXWobTCxvPxXsmGK6wonEkc+TA0VE09GUJ/rCK95 fdVWmdEdwOW5l8vA5kqvu/IKpuOXZDPg7Y5fq7LvEyqBwvTQlxIj2YKuOnehE5YD5TNd WmmrGWpjR0KsyyvHGtf6+VZ663TtIeGvx1wUPuCi6vyccMzwnOmVOo7y1lR/0LVJWEhg go8Jmwf8DLWpBY+sjiRbN4xSaZViFg+hc4zljs7gqUNKf3JSnKhgrhoyN+i/YNw0UEXW 7/tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0/RCL+H9yC/RWFMtaWm284KCaP64OOSmBn5G9YZ2KtA=; b=V06aoBepS9n5tJA3zZdx7O+/zbgX6+eo6w9ZjA94r0hel0VLG7WVeIYbFSnLEYTZNv nHuDWg25z7q65r/dnM9NOv+aAI79JUcdTQQDI41aT+ptP8g60mhW/gheHv8xBdGtDoW9 WOoE/X8EEG3f/lUCgFq30b9AFZoXdaCNmibPft1ztSOHEsJAfn6g2QHQ+EfpCKaeJyZ/ mFoOIUw+sib1WnIzjQYgV+7rqHCK25/3UxuQIPAKXhnuydJm6mBBTF5H+Yal26AstczS ffsbU5fCbNjvBNJQOVogoSgHO0t7H49xsjCeaHtRZxwjbfxMF/Kf1bFMCCeRX6TIL7ol uu+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bNZr7nXI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x17si10802149plr.435.2019.02.25.16.08.01; Mon, 25 Feb 2019 16:08:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bNZr7nXI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729124AbfBZAHd (ORCPT + 99 others); Mon, 25 Feb 2019 19:07:33 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38124 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728530AbfBZAHd (ORCPT ); Mon, 25 Feb 2019 19:07:33 -0500 Received: by mail-lf1-f67.google.com with SMTP id n15so8277175lfe.5 for ; Mon, 25 Feb 2019 16:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0/RCL+H9yC/RWFMtaWm284KCaP64OOSmBn5G9YZ2KtA=; b=bNZr7nXI+nIktrAxf5ZjL1b7XP4SSnerSSU1J8dZOjk6LLGkSlefNh6KNOMaAxUP9u m2XpNxKf3eJLN3njAYmwKY0KuQSXY+s+ijf1ib1CUS3T6gjAfGM6JVVd9dZ6/Le/ISG6 qF+2IPWv+qy16dnaD1+WDd7yY2DMNYpVUumbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0/RCL+H9yC/RWFMtaWm284KCaP64OOSmBn5G9YZ2KtA=; b=X+aomWv2AQG7ivVcpUfrHfbSw8lWMwHx3dCtCOTPlAgcGJzU0ucI6rOWy/EAdyuJM9 QvQwmoG6eFWlGAtiWCHnhhGxaxOcTt9bzn4jX7Lz9pKMybO+4Lb66xlRLEkUwMZYwAf1 wYbbwbM3LP8AOsRzvquuZNrPQwWRe4rUR+SFGB6dO7TNhXrNsxGj300D+jF+hgEP7bhA USH6DX/XIWRB7suM75HfVSXdCXnValGLk9gqqjLR+MA8Iq5f3ByEL/rTLpVfgyz84sH4 xnqti8xLgiNWgiEaj4RRfEXzXVFofR3Xg43EroGhfi92vYPwALPlEAsud8JEcLdM0b2O hM3w== X-Gm-Message-State: AHQUAuaX00Ue1BsOQZrZAo0LiyS3xds/7wFhs96yABffPo8lgu8Mf97M EpS+HCIP736kJGTaQRf3AGAqMGA70Gc= X-Received: by 2002:a19:384c:: with SMTP id d12mr11429140lfj.105.1551139650160; Mon, 25 Feb 2019 16:07:30 -0800 (PST) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com. [209.85.208.170]) by smtp.gmail.com with ESMTPSA id 5sm2515144ljf.86.2019.02.25.16.07.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Feb 2019 16:07:29 -0800 (PST) Received: by mail-lj1-f170.google.com with SMTP id w6so9110651ljd.7 for ; Mon, 25 Feb 2019 16:07:28 -0800 (PST) X-Received: by 2002:a2e:9786:: with SMTP id y6mr10251793lji.79.1551139648545; Mon, 25 Feb 2019 16:07:28 -0800 (PST) MIME-Version: 1.0 References: <20190221222123.GC6474@magnolia> <86649ee4-9794-77a3-502c-f4cd10019c36@lca.pw> In-Reply-To: <86649ee4-9794-77a3-502c-f4cd10019c36@lca.pw> From: Linus Torvalds Date: Mon, 25 Feb 2019 16:07:12 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tmpfs: fix uninitialized return value in shmem_link To: Qian Cai Cc: Hugh Dickins , "Darrick J. Wong" , Andrew Morton , Matej Kupljen , Al Viro , Dan Carpenter , Linux List Kernel Mailing , linux-fsdevel , Linux-MM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 25, 2019 at 4:03 PM Qian Cai 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