Received: by 10.223.185.116 with SMTP id b49csp4189978wrg; Mon, 26 Feb 2018 12:52:44 -0800 (PST) X-Google-Smtp-Source: AH8x225+2mHODsQeeCjVSSps+iKEbLfKMCXHTUjFpIUbfGOnOCjewhQhuW68XARSbHoyUl3zGMNy X-Received: by 10.98.60.15 with SMTP id j15mr11866355pfa.7.1519678364624; Mon, 26 Feb 2018 12:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519678364; cv=none; d=google.com; s=arc-20160816; b=qCXhGblMYCWmjaF8s1k1riLrm7nJaaWJGygzurDRPy1ZFw5rHorPCqp6HbpF6hd1JS OK4wLYNKKxTu5aRj8O7BImBof3D+ZA4miBqgwfh637507yQMkNCb/vI1zbdHIq1N0ENi YZMSApLeM8GmcDgqbjjbGhDEO03kOATJJlFz5ukuVCpoe3m2MqRlGfCJpsi93nNtHsuU Tf2JgiSkNDf8UQnlSt4xY/ekkWMUiNuX3N2xG5+u5FZ+GldGBMco7qO2TjtYvNk5Zon3 FVvqoG+icg9NbZFmR06ByxaldYrlkUuh8F/hc7qlTqTHN5LZA/gNeBe8ZdYP5xKgVlKj KWYw== 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=xQoRG4qoW0aoyeuaGsUhFl4GxXQKiLIvpA+49JRz58w=; b=lF0fgpUTTjHEg7GpOJ7AA8Tb+WBNCyWky3EZKoxQZsDnd2cUYtFqPDaX0oGFz47Yx3 a6hEervmYSj8CQRjW/s2mZVvyFJCQRT5AL8UykaSd4FGRVlUySHKhUNcj0jBZ4h2XEfk 6ZTUsxDxmPw6/DTrMnMqnw2he+aWFME42Cmk7BuYRbzN4DabkaL/ymorn0tnj1f/BhvF YBcdRi96+LTYsnLH3JWpuvM3fYcwtVu9pxncBQbiWZcWyT/u6C1zYAq3lbf6V1ejBleu NV2CnPKzH/RUTRIPvwH8w8TIaGtquJrKMaE68lPZhhJTe4Va9MFL/c+Qlngbk3ct2COp 8Tig== 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 e18si7259458pfi.130.2018.02.26.12.52.28; Mon, 26 Feb 2018 12:52:44 -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 S1753004AbeBZUYo (ORCPT + 99 others); Mon, 26 Feb 2018 15:24:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35224 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751553AbeBZUYn (ORCPT ); Mon, 26 Feb 2018 15:24:43 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A49BFF8B; Mon, 26 Feb 2018 20:24:42 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , Tyrel Datwyler , "Martin K. Petersen" Subject: [PATCH 4.14 06/54] scsi: ibmvfc: fix misdefined reserved field in ibmvfc_fcp_rsp_info Date: Mon, 26 Feb 2018 21:21:43 +0100 Message-Id: <20180226202144.669074979@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202144.375869933@linuxfoundation.org> References: <20180226202144.375869933@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tyrel Datwyler commit c39813652700f3df552b6557530f1e5f782dbe2f upstream. The fcp_rsp_info structure as defined in the FC spec has an initial 3 bytes reserved field. The ibmvfc driver mistakenly defined this field as 4 bytes resulting in the rsp_code field being defined in what should be the start of the second reserved field and thus always being reported as zero by the driver. Ideally, we should wire ibmvfc up with libfc for the sake of code deduplication, and ease of maintaining standardized structures in a single place. However, for now simply fixup the definition in ibmvfc for backporting to distros on older kernels. Wiring up with libfc will be done in a followup patch. Cc: Reported-by: Hannes Reinecke Signed-off-by: Tyrel Datwyler Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ibmvscsi/ibmvfc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h @@ -367,7 +367,7 @@ enum ibmvfc_fcp_rsp_info_codes { }; struct ibmvfc_fcp_rsp_info { - __be16 reserved; + u8 reserved[3]; u8 rsp_code; u8 reserved2[4]; }__attribute__((packed, aligned (2)));