Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2509252imm; Mon, 24 Sep 2018 05:40:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60e06UDSUtq3czldEGNxxK9fb8ngpo8814T39SEHA/cdP3xl2ZmYQqo9sInnqaK3s241Gkq X-Received: by 2002:a17:902:ba8b:: with SMTP id k11-v6mr10672699pls.12.1537792822378; Mon, 24 Sep 2018 05:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792822; cv=none; d=google.com; s=arc-20160816; b=w8PEfFlSksqtUgf6VQAI4FGqV1Y8y+phl037Czb06FfEovEn9sfz+AonNClPFDzRjP jwVylVpjb5XSpADBXBdNbhot2RzU+rOQVvmmy5RL70T+qXNurp4m+FCZyu/xSyIAg7VL O3yw0mOSFQkycjSHhlDYIH/mYxNcVqK0bzTrP+5xb9n90ZmVvXk2UdQWzsN4TD7lThaH ofVx+NuKWTssJmLhRCQjQmsMyU0/rqeOh+5GzXpnwc1y7UulBIt3/SrvVZxbgLlKCdJk +qCEGOvq7sDiFrg1eKYF+KcBq60/elEXHjEZrGCubadrgCCeySw+W/thbw7wEMKmZF7N x95w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=SxpbkLdmPW4oY2T06G7SlW93N6t+VRdrhapyN8fvmks=; b=ag0mnGYfNDT2/R/X6YeGA8s21GenT8tCak5EFA1WC5mdNP4vGB1hX5Z+siZ7ZUQdCx 13tg5kJPa+rGOggtn1JQHfk4BAVaW7Hoc1P/LYyIeQvuJyBypfE8upHZmzz4THbt6ds/ bgOQOjRl8oYSHJNG7et3RLk6ceOoEauB3yHdPbW2BgY0GTxIzsRnCqk/xpuUMAjrbFVp ER6ENiPYNMoPd62E98BH9qnsjWYeyAtDy9SkIUKphdU75GV6YV0nG3E4l8NmW58S4VNr nx08nKfR/15p8jLaeoBwMfg+lkX/eASZ7EssCAIB+OyAzmrHqLugMxIisreNynFfV4rc Or2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 c5-v6si10090167pll.414.2018.09.24.05.40.05; Mon, 24 Sep 2018 05:40:22 -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; 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 S2388416AbeIXSlD (ORCPT + 99 others); Mon, 24 Sep 2018 14:41:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58804 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729740AbeIXSlC (ORCPT ); Mon, 24 Sep 2018 14:41:02 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1A6B71098; Mon, 24 Sep 2018 12:39:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trond Myklebust , Anna Schumaker Subject: [PATCH 4.18 142/235] NFSv4: Fix a tracepoint Oops in initiate_file_draining() Date: Mon, 24 Sep 2018 13:52:08 +0200 Message-Id: <20180924113119.806214851@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Trond Myklebust commit 2a534a7473bf4e7f1c12805113f80c795fc8e89a upstream. Now that the value of 'ino' can be NULL or an ERR_PTR(), we need to change the test in the tracepoint. Fixes: ce5624f7e6675 ("NFSv4: Return NFS4ERR_DELAY when a layout fails...") Signed-off-by: Trond Myklebust Cc: stable@vger.kernel.org # v4.17+ Signed-off-by: Anna Schumaker Signed-off-by: Greg Kroah-Hartman --- fs/nfs/nfs4trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/nfs4trace.h +++ b/fs/nfs/nfs4trace.h @@ -1194,7 +1194,7 @@ DECLARE_EVENT_CLASS(nfs4_inode_stateid_c TP_fast_assign( __entry->error = error; __entry->fhandle = nfs_fhandle_hash(fhandle); - if (inode != NULL) { + if (!IS_ERR_OR_NULL(inode)) { __entry->fileid = NFS_FILEID(inode); __entry->dev = inode->i_sb->s_dev; } else {