Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp14305img; Mon, 25 Feb 2019 16:31:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IbRlWkiQ6tkZtVpD/XaZcutRX5AuGOHkg/xb9/zwLIcihO74oK7Nu2eYcYB8hv796B/W5uG X-Received: by 2002:a17:902:7889:: with SMTP id q9mr23724917pll.305.1551141092082; Mon, 25 Feb 2019 16:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551141092; cv=none; d=google.com; s=arc-20160816; b=RIA5xDBB0cgrxFDb2953xlhW5nUB0Etaq5XgCoGltP1InJUIBT+qmfy4aZ0QoRmDfC NS6W8G2QKczu2V1Yy8mGEhbUI3PRRp8Lm0nj1u3y2/qYqsPf6L3MwjoRHobIcQ/n+BOE bYIcfLmpol53JosWs7QMx3q6oTXOJbXw5UyIRCeIP6m34MKjrd6wu7emmQNBo41HdSe3 5goo130xcK07s0ag+mKtICF0Py0rk+8pu/7YNEB9BjzXtwvzoitTQp4nnkEnXUKQuvJO ibpYF80aRWrTIFMqhMb2XC0dKehw0fyNOVDt6tv6I13GCuYZfolAvhfst1Xt2TNkfYIM iiPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YvExDddq4M/SVqwop6GFX1tVTd5CG7BGv3x/6RAwRNI=; b=RYgucVrLK7h9+DSzXiAeG78IhAGkZ6ZtKSHfeUa2GtEnVEGNcamTYn+MHI8S+XnLTC GgZUoybk2/XHeyablPi+i+bXqwy3TYJAdj9+RUYbzvbu/AZIhauyzZZxH+LZsVAV8dIa cPtKUCIw0ETWTpBsT41tga/S7YSC0u5Ziqgtwd3RQbhOdwFAQGQiWd0h6GcqzSeSU3El shQ5IXXDphOeSjLkEdfflbQNQY40Lr2LTR+4d8DTR3A4uEAWTnYPKWDl9hdyowcRYmWO hDRy4fwGoXnMN1nkh2VnJ7uD0InR6kSA3tIFdvIV0OJ3YcTIkrzBNHc3Y04Rq4K7+fKj 7NWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=aaszYhEU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si7692042pgj.217.2019.02.25.16.31.16; Mon, 25 Feb 2019 16:31:32 -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=@oracle.com header.s=corp-2018-07-02 header.b=aaszYhEU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729341AbfBZA3R (ORCPT + 99 others); Mon, 25 Feb 2019 19:29:17 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:45206 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728953AbfBZA3R (ORCPT ); Mon, 25 Feb 2019 19:29:17 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1Q0TC4A067132; Tue, 26 Feb 2019 00:29:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=YvExDddq4M/SVqwop6GFX1tVTd5CG7BGv3x/6RAwRNI=; b=aaszYhEUFFCSiV8WNnygJKWiyhPP2VG+uKFjpZaxiRPlro75d4rg7zh4tJVsK1ekmXUi Z600cPI2yxMDWaYBZF4i5enjfRLqHUl2QodzDk8VjOyOVU7eci3Xj75DEafP45zBpzDg wwkFAdpuGg1AJLP7yOR3SulOHnYRwpyVOEI77IwsT+pBSjKS1rtWnXqG8Mq7qYJ3Epkh 0qhgqQtLDKmI7Tt98ejelfVEfR5nEXM60u1pvqslnv1mx+QDdUz9ZLailLoxh+BDIlpy 86zviocBbjcEeu0TzPeESYp/l/Y7NoJaZhCkkGwxkAYsofs17wnYF1mij23Ptxp44Z8h Ag== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2qtxtrhhvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Feb 2019 00:29:12 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x1Q0T6PJ016173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Feb 2019 00:29:06 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x1Q0T5tq011329; Tue, 26 Feb 2019 00:29:05 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Feb 2019 16:29:05 -0800 Date: Mon, 25 Feb 2019 16:29:04 -0800 From: "Darrick J. Wong" To: Linus Torvalds Cc: Qian Cai , Hugh Dickins , Andrew Morton , Matej Kupljen , Al Viro , Dan Carpenter , Linux List Kernel Mailing , linux-fsdevel , Linux-MM Subject: Re: [PATCH] tmpfs: fix uninitialized return value in shmem_link Message-ID: <20190226002904.GE6474@magnolia> References: <20190221222123.GC6474@magnolia> <86649ee4-9794-77a3-502c-f4cd10019c36@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9178 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=27 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902260001 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 04:07:12PM -0800, Linus Torvalds wrote: > 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? He didn't say specifically how he found it, but I would guess he was running smatch...? --D > Linus