Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3061268imm; Sun, 1 Jul 2018 11:19:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe2TSxGu3lUjukYfZj4+9SNjP5vwtk7Fvff4bVqGvNdMI75AgQoepvd/+8/nMpCCUA8I20g X-Received: by 2002:a17:902:1a9:: with SMTP id b38-v6mr10968975plb.89.1530469190004; Sun, 01 Jul 2018 11:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530469189; cv=none; d=google.com; s=arc-20160816; b=0fg3LfD6tE8zwIwKtQhZluGpv8vzHZal2d2ATUk5FeDdy9p6eIjz76CUWpVz3YxSGf a6Rnl7P6t6c8zkdLifoUeGhoVcugaUT3OCdUX32UI0Q2hM+W25XufMfSnfUxUWT0MZMy 6d8W6koqIr3vyZ/TVshaeva+Df3PTuHBVvdCdl2cXpuRS7XNagA/1h2ll8QyqBPKoGs1 Wp2OECoZOSDnIszagGyTnPxNbqzr7g8s80S01+QHfw5iifXRos34fQQyX+tQm3AhkhAT z7BTZp71fEqMwRDKmPHr+tthQ9JDkCHcxS4C7su+hr09MMziam/QHlZfEaDK11oq9XoN 61Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=nG4MBvzSut0XHxeA9BkcY8AaExi3cL2IikaRZ/PdK/A=; b=sw6RJFsHWLCZkbo5UqLM6WD2GaDZNb4xx4VuBTLdgDEVdcJuYDDeJ9zaXxyLhGm92F Ux0f2WtKmag6UFO4stgXJIt4IXzD6y75c0XcMxYsMIQp7KMCr7mh7uFSLbIhJ4Xvxue2 9XjvMz368Lh+Jst9alGQJ+D9h+rFe7Q6tyf4QiUwMsZ63LRBEfssvl1wVfhFJXH+s3cD eA/0ZOa3+Vft7+SuvKQ1aHV1BSyWXCfDVJl0TBNNR3wwQF0yfhPsI7lb1M95v5d9bxaX fnl5BVEymh+KNHxcvHHMD6dAg3Kh2D4XmNYZHSRmdtVLTNwY+ThjhSNOouNJC0BWrYw3 aUxQ== 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 o1-v6si14041044pld.424.2018.07.01.11.19.35; Sun, 01 Jul 2018 11:19:49 -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 S965415AbeGASQ7 (ORCPT + 99 others); Sun, 1 Jul 2018 14:16:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33820 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965303AbeGAQ0M (ORCPT ); Sun, 1 Jul 2018 12:26:12 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E0BF3ACD; Sun, 1 Jul 2018 16:26:11 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Sagi Grimberg , "Martin K. Petersen" , Max Gurtovoy , Jason Gunthorpe Subject: [PATCH 4.9 038/101] IB/isert: fix T10-pi check mask setting Date: Sun, 1 Jul 2018 18:21:24 +0200 Message-Id: <20180701160758.694755552@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.9-stable 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") Cc: stable@vger.kernel.org Reviewed-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Reviewed-by: Martin K. Petersen Signed-off-by: Max Gurtovoy Signed-off-by: Jason Gunthorpe Signed-off-by: Greg Kroah-Hartman --- 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 @@ -2090,7 +2090,7 @@ isert_set_sig_attrs(struct se_cmd *se_cm sig_attrs->check_mask = (se_cmd->prot_checks & TARGET_DIF_CHECK_GUARD ? 0xc0 : 0) | - (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x30 : 0) | + (se_cmd->prot_checks & TARGET_DIF_CHECK_APPTAG ? 0x30 : 0) | (se_cmd->prot_checks & TARGET_DIF_CHECK_REFTAG ? 0x0f : 0); return 0; }