Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3313394imu; Sun, 11 Nov 2018 12:09:46 -0800 (PST) X-Google-Smtp-Source: AJdET5eekk6VSwfCt8FMhtokXwsQsZJmkE6ULh2Uar1YA2Jvr2pz/pD0zvnI+uJfBzYSt9SSiaJr X-Received: by 2002:a63:c10f:: with SMTP id w15mr14862969pgf.199.1541966986136; Sun, 11 Nov 2018 12:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541966986; cv=none; d=google.com; s=arc-20160816; b=wPgvgWxr/4a9ZJnXfkdQLvhAEL5GpyDSocwzqVEGvGD83wn86xf+TyZgq7ywn1GHfr gTEFL6ouECQPgds0d4+0G+kDL/4i7t1jIM0A7bOe6j0Mj+m+luLUjfLp36SA7za20RJY S2OKvsVesJkEY/wvYW7j1BevCY5XsGOSNi9Nk7VoazCNGhRw1Au8QtmiSJi6A+RwJY21 UnkRubx8+hz0ooeOz2DwA2zO8WMZpUjOCMrSgRRlojOJdGm4S0lmFCeYQgwhAOOruPI8 2Wa0NeXNee0Uz+qJvaaGU3PZee4QJkJqaKzpn8scjJxPNXQ9RcYsvm9sV4beru9XRtxS xyQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=29NC3c6UulpACb5PK+RUbwKiuJoyKUrMfZFjGSna5js=; b=gMgoc+9Juua1Rmc1OLSkOMujr2hzpOws8wz8jmB1nBQtUmKEv9Hr8RSy1toegLVNwB VZt7elwAKnlm5/0ImBqEvYK5uENKRiEtyi1sXfFH/+4BjtD8n1Krz851/PAFiIvMrDfB XSC/Neg9cgStFFrcZMdpG+/PqDaUtaf9ZFU6bh6/NiZymHSmPuSAzntCqnn5t4BhzQT3 Ef2tKpzHK1p8/kezWhxbiAb4VKB8TSmejX0SBUCV8Jz4vE7SbhqQ9449K/Byb25i3tT3 FNylHKVC2xckxEPyaHWpuRIg+2BlNL++4Tdf6DokOy9QIEZLYyfvRggADmdX8g3I2pqT nbAQ== 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 c1-v6si14102269pgp.376.2018.11.11.12.09.30; Sun, 11 Nov 2018 12:09:46 -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; 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 S1731605AbeKLF51 (ORCPT + 99 others); Mon, 12 Nov 2018 00:57:27 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:52228 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730938AbeKLF51 (ORCPT ); Mon, 12 Nov 2018 00:57:27 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvt4-0000lF-WB; Sun, 11 Nov 2018 19:59:15 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsR-0001Vc-2X; Sun, 11 Nov 2018 19:58:35 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Jason Gunthorpe" , "Christoph Hellwig" , "Martin K. Petersen" , "Sagi Grimberg" , "Max Gurtovoy" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 110/366] IB/isert: fix T10-pi check mask setting In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Max Gurtovoy commit 0e12af84cdd3056460f928adc164f9e87f4b303b upstream. A copy/paste bug (probably) caused setting of an app_tag check mask in case where a ref_tag check was needed. Fixes: 38a2d0d429f1 ("IB/isert: convert to the generic RDMA READ/WRITE API") Fixes: 9e961ae73c2c ("IB/isert: Support T10-PI protected transactions") Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Reviewed-by: Martin K. Petersen Signed-off-by: Max Gurtovoy Signed-off-by: Jason Gunthorpe [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- drivers/infiniband/ulp/isert/ib_isert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -2822,7 +2822,7 @@ static inline u8 isert_set_prot_checks(u8 prot_checks) { return (prot_checks & TARGET_DIF_CHECK_GUARD ? 0xc0 : 0) | - (prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x30 : 0) | + (prot_checks & TARGET_DIF_CHECK_APPTAG ? 0x30 : 0) | (prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x0f : 0); }