Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp966325lko; Tue, 13 Jul 2021 14:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP7CRnvhfsIHsXQeqbOg0zsNJLOGgKrKFLpgtk6+8fNO9xTizxVtxYP93vFUVUqAGLP89i X-Received: by 2002:a5d:9c01:: with SMTP id 1mr4501393ioe.169.1626210289102; Tue, 13 Jul 2021 14:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626210289; cv=none; d=google.com; s=arc-20160816; b=FH4PG7yVVSDII96/cBAn6iK9OOgY9X3FY2NKKX3XYLY9S+yruQ5lG3fKmAPFBNOEvi b+fpjBhA4WrgkXLt6ILH6tikVnNL9Vj4dBgVwd3XYqKN0txGZpHXXEEHCpcNfrDFS639 MxxDTaNwZXkVM9t1iLczfob9xkEPMdbZ7JhHtM32jas6I5f6e6oUj+s+b/vm6NolZJu1 xMx8OUOSP59i2TB+mpQ21VYFiYbk3xoe/Fc/ks9Z+DzbOMUYlwtgICE+Y1Qu+PppWDmz bQYHxvtXsqmzu0PYp6qphjTcCgfpFc/tygpsllOZkBFV+H2L+QMv+YSoGdTrBsCKWbiA OpbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:dkim-signature; bh=M65YxhmuKIpZ0EfQRS96D0v8Xq+EmBu/z+AD0LZ2IRE=; b=aWsrJ3GPHzLYsu7q67Yylmp3m7ETur4KzPDe+HNO+vvyMUvTX11sMY7tQYfsKJ3ddB 4TBRQtW+1+gYsTRskPmcUn7SkRKsn3JZz8vm1FFX/vFxSWailqigTin2qhIO/N8p9yl6 L78KobOyIWXpW5SGMY9rM1R/Vm/FUG0z5tA0sKnMiS6kXJaPghpYcQo+o/Smdxe1QM56 p2wwoAMLMQqyZt2zAzxF7jidJwIl0eZGdRPUZjkPzpz1UPJ3OQLD/KqQ9steb5v9DExf 73OrjZDqSVrbBvqBhNqp1AxCym8sCVUEJYGYTa3ul1NMY5wzudRYTZJrxUbdj+krAsc0 KTTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=pisslaDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si21918110ila.30.2021.07.13.14.04.26; Tue, 13 Jul 2021 14:04:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=pisslaDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236175AbhGMVFv (ORCPT + 99 others); Tue, 13 Jul 2021 17:05:51 -0400 Received: from esa.microchip.iphmx.com ([68.232.154.123]:8300 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235545AbhGMVFf (ORCPT ); Tue, 13 Jul 2021 17:05:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1626210165; x=1657746165; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YCU1lNbnN3QiScgV4I4qmlBlxDGRHX9C+VP7ZGwbfYg=; b=pisslaDmmA7ROmT7kCGx/w0VZ2aQOnowOnwoQhMyWBzwcXEioeqz1vdW e8CeV8NTZU6qhGTVlXdZQ5q7AzDRKVFy28KmCd2iRXe9Wfuzn/v+xW7Wp or1vwKGlpJyUVgXKxcHkrslctIX8nqATe2fQ6I8XI/9SJVXjGIZwJilnS 7hXUhLYImsyCdXqUOuTmYgsVNV05m5zmWVTqAiw3L092PoQ4RvXENBWC3 S+SMkefWCTdCOLsxT043/gvHTLiLc/FxrboTlr0qm6f7dQ+FCJ3J011KK T8iAWh1FeT3DN6W/O1lrXAqx0c31/Wop/E09uaN+yDZ92KI7zbT/QA8Eq g==; IronPort-SDR: 5ni/sRww5tZghr+xVpS/r2c7ExmTKUt4lrY4IDXe6EMQAGhqOjVGsipd/4nyqCUw3iUNYSrsJf G7E+0H4HV4r0PTjDVXEDAyig2/Wti4FGRuFOLlUQh53ahTB4/5SwozXTcyYj8FGHPS3VTv290n fuMHY/7bueWscMHkUGsNmtHgI2gdYrRjZun6i1VSUOMEHQlwdqxzPi4HxYeWAvhGKX6J37W+Mg OATm+3q8nr/cFOQ4LlVq7eRc/Ru2bqopzb8hDofJPg8cweUPPzj5ENAsUme1TNBwVYSi9nOIio EC8= X-IronPort-AV: E=Sophos;i="5.84,237,1620716400"; d="scan'208";a="121925990" Received: from f5out.microchip.com (HELO smtp.microsemi.com) ([198.175.253.81]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jul 2021 14:02:44 -0700 Received: from AUSMBX1.microsemi.net (10.10.76.217) by AVMBX2.microsemi.net (10.10.46.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 13 Jul 2021 14:02:43 -0700 Received: from brunhilda.pdev.net (10.238.32.34) by ausmbx1.microsemi.net (10.10.76.217) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 13 Jul 2021 14:02:43 -0700 Received: by brunhilda.pdev.net (Postfix, from userid 1467) id 917F0703519; Tue, 13 Jul 2021 16:02:43 -0500 (CDT) From: Don Brace To: , , , CC: , , , , , , , , , , , , , , , Subject: [smartpqi updates V2 PATCH 8/9] smartpqi: fix isr accessing uninitialized data Date: Tue, 13 Jul 2021 16:02:42 -0500 Message-ID: <20210713210243.40594-9-don.brace@microchip.com> X-Mailer: git-send-email 2.28.0.rc1.9.ge7ae437ac1 In-Reply-To: <20210713210243.40594-1-don.brace@microchip.com> References: <20210713210243.40594-1-don.brace@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike McGowen Correct driver's ISR accessing a data structure member that has not been fully initialized during driver initialization. - The pqi queue groups can have uninitialized members when an interrupt fires. This has not resulted in any driver crashes. This was found during our own internal testing. No bugs were ever filed. Reviewed-by: Kevin Barnett Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Signed-off-by: Mike McGowen Signed-off-by: Don Brace --- drivers/scsi/smartpqi/smartpqi_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index f0e84354f782..ab1c9c483478 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -7760,11 +7760,11 @@ static int pqi_ctrl_init(struct pqi_ctrl_info *ctrl_info) pqi_init_operational_queues(ctrl_info); - rc = pqi_request_irqs(ctrl_info); + rc = pqi_create_queues(ctrl_info); if (rc) return rc; - rc = pqi_create_queues(ctrl_info); + rc = pqi_request_irqs(ctrl_info); if (rc) return rc; -- 2.28.0.rc1.9.ge7ae437ac1