Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp628534pxv; Wed, 14 Jul 2021 11:33:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwToy8fbNs2PHyOkp7gQFcE2BW05XD1/SHZfz6LPN7AtfdtSsJt4s2gSKsLQ16+8BrjK1Fi X-Received: by 2002:a17:906:1284:: with SMTP id k4mr13489333ejb.329.1626287604993; Wed, 14 Jul 2021 11:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626287604; cv=none; d=google.com; s=arc-20160816; b=WJ1GtEm7+jVM1yxAp3UQI34pTi40MRk0PJxBI/eBUwWutX8Op1ySTEoXzb/jlVFLqk jlw8dqERF61xUw/pFJoCVr91mLQly9VCJxBYO0hCNNYhPPLla8t8G/lbg3fFoObFHkoW 0bsCt5/Rd58mHHqrDnBgY4dwTgEohK3rUcrURk56ps67MQ18ytaiBh50ngam1Vu4rJ9v +3Q200LW9Ze8Wk9IXOQcamBpBwSsyG5pN2vjBv8BGBg6hbeEeE/sIarHoSpc1hW0ias3 /w3waHIIp08pKF+7YaVBWmCyWoiuE89vjnj5ayBY95iFr/5KOm5kYhhJO8Dd6pukbGyV xFlQ== 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=tIIdaGLH7MetxsTU1O2/4Cko7Nz2qhK8AgOjAAYK8D2SsGFNjY/zqJsK2atam/0yCa Who2Ny/9udEtlLwI0VGhLxhC4UBgbu3iMPjRFPmd42hBbAYGm46tbUePUTBQN5b+w3Y+ tcZZ1cNYUGdRVSoYZAfkfvZvnlxh/4LIwNMcrqzXzW9NQAjR+G/pXdarw4/uUgInE/8y hzKKZIqdylKYL4gA8SpNFC+FC8P7lkx9QqfDShqmYRKCMgPSBLdG2pMyzvn2LIRauUGQ +ip6GjR3OATKKQ4btji7jY3mXeMBdxdI5tSObwqQ+eiklnXlM1+cdlBMFLv2WYKDkXDg rHiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="2AEGO/AA"; 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 w6si3441314eds.443.2021.07.14.11.33.00; Wed, 14 Jul 2021 11:33:24 -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="2AEGO/AA"; 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 S240138AbhGNSby (ORCPT + 99 others); Wed, 14 Jul 2021 14:31:54 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:55496 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240007AbhGNSbk (ORCPT ); Wed, 14 Jul 2021 14:31:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1626287328; x=1657823328; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YCU1lNbnN3QiScgV4I4qmlBlxDGRHX9C+VP7ZGwbfYg=; b=2AEGO/AArr5VDQPA9ujtadgIRaQqgyhWRjl/hot8O7Q9t1Ii1DqN1Ru9 oP9/w2Jt8uXIBcAIKEb+mepy6ImWspXcJDDyR+Ip+HVotrIBIAbi/aJBD KAz7sskl8cw7uGar9PcIW6nRg/igU5HrBLkaRM5WnKYnX6qYpNvpLXELo AP5fVlHeyvhbz/bIilmTKlL+5xWfNsf7Nt4+LtWNLoNHncL8YmEUx5NKg T51pxvYFLu1tUVAU4DSgy9KDEAWEvSrB2JtIecoNlGToNymySoC1lSbOf 4777scFpKVQGmX3YqyGLvuD6BNqeaJN51vGf2Gn+DfgfqbnH18eDK3s99 A==; IronPort-SDR: RvAJnvaO8m8cdFmG/3ImMEzxHkbbN8HR9VpV9Njb78jnlN/p3xJqiixc8wi63QDcEl15T36lMG k3ZDKbJm5Ubsn2rx3poZdTje0gtI4yPpxDW3FfNR46aP+IgyuD0wif3OwxR+tOkYz2Ck1anIbd 1b45doyga8gwT4rf+8B1GwNdjBbIaUGr4ht0y946npZXOXxHF98j3R9sxCKAjsoXKNcJDRnL2D aEr2R3/LI3Illk4cmRPpxMf7BmFUeW5nY52Qr1iG3elyjrfE+ogfreJaRzmqpT4qmsbyf7DQq/ 4qs= X-IronPort-AV: E=Sophos;i="5.84,239,1620716400"; d="scan'208";a="135875340" Received: from f5out.microchip.com (HELO smtp.microsemi.com) ([198.175.253.81]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Jul 2021 11:28:48 -0700 Received: from AUSMBX1.microsemi.net (10.10.76.217) by AVMBX1.microsemi.net (10.10.46.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 14 Jul 2021 11:28:47 -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; Wed, 14 Jul 2021 11:28:47 -0700 Received: by brunhilda.pdev.net (Postfix, from userid 1467) id 5956C703469; Wed, 14 Jul 2021 13:28:47 -0500 (CDT) From: Don Brace To: , , , CC: , , , , , , , , , , , , , , , Subject: [smartpqi updates V3 PATCH 8/9] smartpqi: fix isr accessing uninitialized data Date: Wed, 14 Jul 2021 13:28:46 -0500 Message-ID: <20210714182847.50360-9-don.brace@microchip.com> X-Mailer: git-send-email 2.28.0.rc1.9.ge7ae437ac1 In-Reply-To: <20210714182847.50360-1-don.brace@microchip.com> References: <20210714182847.50360-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