Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2985143imm; Sun, 1 Jul 2018 09:43:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI6aaA7pncz+J0tiOl1T+9PgFRIs8iOIt2uQJaCtmgbkXryoQdDebh6mKxr/PZoRE0s3AuG X-Received: by 2002:a63:2b15:: with SMTP id r21-v6mr19249152pgr.262.1530463388145; Sun, 01 Jul 2018 09:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530463388; cv=none; d=google.com; s=arc-20160816; b=zqKVDSQ0wHmPdTA3rgf2vBNdyyWP7hAqmO3EhepCYhIjQnL60+EbgDy5y2JbxjB+wF R/h/ehlfGxswbFRaHZvbOvgNBMvcEXz5QBHH7y+JVeXB0cv2EYi/YhfTDPCTc6j1gl6V EuOL6uKyDXcMYNHToNUlKq0m+udeX6tsJqTLSiO4ydEoFrx1eWsrRj+yNVAUU2tZpB+P zv3Pgx544nByq71D4wmWhTJNWCct0+EzbSm46XmeQjsS6EKm3WbNvnEgRb9AlsKnB/7U Y9dO8TZhY7Unz1jEqwwahZjcRm31SrlkIZo0Cp3UJuTM0DA8DhUHQ5ic/qiIwUvgZq75 WOEg== 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=TNKiW6y+mBbFPgIQ633FFTg3IAz62/TSnkjrcNR41Lk=; b=xKtjCZXQbY9wAujKo8lzovl91+CV2Pgchdb4JhAA/op4AAytCXrGQuF90ARI1ni9M8 KyMdlvJLeF4cMZsStsPWuOFkSZzOh06q/SQD8x8EEjrP8tozOUUAbkZBI7bVMPiNbjdv 4o6dyilU0IWUmaTfQqHYL2V/l7XOtz52jhkqnkuwqsU83cGU1KhnGWxQvPGoAQ3+lbzl KWUbFuWBvHf3jnY1Ljr3FCYKj2DWeeJAxwpfvCia73hHfkP44O6EVrsJiT8kZskB46Nh 4Kbe78gm3RLsDI0OeMAfPhQR2OrNetloXq+vxV+HINldR2j69R2P4h8CwS2XomhI4Hc9 +o+Q== 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 a5-v6si3447738pll.412.2018.07.01.09.42.54; Sun, 01 Jul 2018 09:43:08 -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 S1031948AbeGAQkm (ORCPT + 99 others); Sun, 1 Jul 2018 12:40:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37214 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031934AbeGAQki (ORCPT ); Sun, 1 Jul 2018 12:40:38 -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 91AACAA6; Sun, 1 Jul 2018 16:40:37 +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.17 090/220] IB/isert: fix T10-pi check mask setting Date: Sun, 1 Jul 2018 18:21:54 +0200 Message-Id: <20180701160912.176961747@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@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.17-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 @@ -2116,7 +2116,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; }