Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1063707ybm; Tue, 21 May 2019 08:07:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqya99oWfLy+18yPTRpeVMi1SVUbigwPA4HpXz7Ao6JWp23uHRmcnLXuK4hHNLeKOo9YxlrO X-Received: by 2002:a65:6449:: with SMTP id s9mr80583471pgv.90.1558451240885; Tue, 21 May 2019 08:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558451240; cv=none; d=google.com; s=arc-20160816; b=msv8x5BFJP2t85Dkoserj5c8Wjvid1ZIlv3SWqqM5uXWgHPdkqcqtDLD/yIRNGktsT m8TQPROObtVcg7QIy/wjtw8HCPdkMjL3bL8w/WzCnnwAkHeD+epzqT99ZwpODgCk4mXE FaZYSzZ7LR1EorHIKmR21vN3G/LP8jfaY6aq3Xd5FnEyLac0eAQkBz1AWR5yHwrkA25B xHQd+J3EbNEfo07tmZN/NR/GSNEkia2I7wLW0ba7Rn9z7BB0bmeZCN2W33MJz+uF+Y3P AGXeU/7FdmfYc0XjnJxvQuOVngQV7KR1C6WHqcLUC9evchmySaUUoEkCYxzP4vXWpQyn AAng== 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=35tZeQA6ZY3DGjuTLtn9WnT9tN8MglgeZRXykYFX0Wo=; b=i1VEucs4NcCosFZvOLZ7Ph0VHyvqw3fbPErLGyzTOaYz+Ami6bVGmzCRepk0OdKdFL GpsIBie03EyXSo8IFKzV2foSzmNYvXxj8VH4YT72etDeedLIw4JWOOxc28jn2dRFSyTL fNl/Go70FlRZ3lCR9TS33AAJRDw9AjNMe4WlZCAXZFaF6JkIubX8RLQhhNViMLG1kjJB ukT6bSv8nqnBaHPZHjnjvcITGk4NR9fsxZNN/NvxSdWhQNiD3zaYQuItAtrx5qSeyBnM 63iSJpmu7KnO8s46CPSVv8WlYFhbEppzAfXe0IGB3GNWXlm0uBpmvZOE4yorZ8Kq3/qk xh1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=rq4TFyqi; 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 65si21132066plb.39.2019.05.21.08.06.54; Tue, 21 May 2019 08:07:20 -0700 (PDT) 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=rq4TFyqi; 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 S1728840AbfEUPEJ (ORCPT + 99 others); Tue, 21 May 2019 11:04:09 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:54098 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728144AbfEUPEJ (ORCPT ); Tue, 21 May 2019 11:04:09 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4LF1oGJ100284; Tue, 21 May 2019 15:03:22 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=35tZeQA6ZY3DGjuTLtn9WnT9tN8MglgeZRXykYFX0Wo=; b=rq4TFyqiow+82j8Ho6ihMfG8c1IKNUX05juKGjRVWrnutGhYtwzde8qdGhWNqKA5whYo 8loF7dTrxwX+8atkZwgwl1TsAEumsgTLtYMGrgbUvwpmLR72bfPTeFFfD/Vs5vhP6Sj/ NspMAyh/yK4UrAhB4+VRKG0u6/ZqUfTPDROnCnWcub70+I7DjIYHHnNLzMG7LAZOOuvC sb87KzHyxeV7ZFnEyyBWj93tB2oJ40WH+PtpBTplhhGFYnmwElP0JjEaH+Ra4oU1LEL0 TXrcJiGc3mGovHKiN5jpf/r8GW2vqO3EDg0okxA0XEaHSe2wnm9gOsSBAv2ZO4SBryJp nA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 2sj7jdp82v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 May 2019 15:03:22 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4LF1eu1016990; Tue, 21 May 2019 15:03:22 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2sks1jgjm4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 May 2019 15:03:21 +0000 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 x4LF3J4w026807; Tue, 21 May 2019 15:03:19 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 21 May 2019 15:03:19 +0000 Date: Tue, 21 May 2019 18:03:11 +0300 From: Dan Carpenter To: Mike Marshall Cc: Colin King , Martin Brandenburg , devel@lists.orangefs.org, kernel-janitors@vger.kernel.org, LKML Subject: Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index Message-ID: <20190521150311.GL31203@kadam> References: <20190511132700.4862-1-colin.king@canonical.com> 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=9263 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905210094 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9264 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 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-1905210094 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 12:06:31PM -0400, Mike Marshall wrote: > Hi Colin... > > Thanks for the patch. Before I initialized buffer_index, Dan Williams sent > in a warning that a particular error path could try to use ibuffer_index > uninitialized. I could induce the problem he described with one > of the xfstests resulting in a crashed kernel. I will try to refactor > the code to fix the problem some other way than initializing > buffer_index in the declaration. > The only explanation I can think of is that you guys are discussing different code. :P regards, dan carpenter