Message ID | FR0P281MB21234EA6C74C286904E682CB94319@FR0P281MB2123.DEUP281.PROD.OUTLOOK.COM (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFE43C38A2D for <linux-scsi@archiver.kernel.org>; Tue, 25 Oct 2022 12:52:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232202AbiJYMwd (ORCPT <rfc822;linux-scsi@archiver.kernel.org>); Tue, 25 Oct 2022 08:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232518AbiJYMv5 (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 25 Oct 2022 08:51:57 -0400 X-Greylist: delayed 64 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 25 Oct 2022 05:49:03 PDT Received: from esa10.fujitsucc.c3s2.iphmx.com (esa10.fujitsucc.c3s2.iphmx.com [68.232.159.247]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FDCF18F929 for <linux-scsi@vger.kernel.org>; Tue, 25 Oct 2022 05:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1; t=1666702143; x=1698238143; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=tvARzfp71ZAdMIZJHeOjZUoy8ZHz2flPjPJ8kBo870k=; b=tZ0Lsqsvr+ysmeTbvrcOpxNj3EGavTplzbj14g66A1DQV+exFsAfzIGY LU/0oM1nkMc81gLxeYng+Mr6Zz8RkeLyb3A+0he1GL+lXWgetFl0fO/Ra H9qPTHU5a0g+cwcsrpgn8r/wgwl9v/GvntSdWlAfFpc5M9UxoNNRwuv7i Tu/HoF0acmYSU4Sf2YJQXYipc0dHZ0wjmtGLmQucGiF/Xi0DctMugFp2q bto4ThFdzL/Tqdnr6c/qgMKCTnXLINBrbwisHcV+QF4SdxfQCE2kAhJ+w drRBDW0itNRDW4VTW43XAiGEMD1jHeGkv/8IIuRWswtUFoxLQZ5KfaUnF A==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="68487501" X-IronPort-AV: E=Sophos;i="5.95,212,1661785200"; d="scan'208";a="68487501" Received: from mail-fr2deu01lp2171.outbound.protection.outlook.com (HELO DEU01-FR2-obe.outbound.protection.outlook.com) ([104.47.11.171]) by ob1.fujitsucc.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2022 21:47:17 +0900 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V/vfnO3i1SG2zSWBYQo3QrzU/bYehdpNQDp+AnZfYRzbsLCMnAgRd6MBSlx+ELL6JhdLfdFwY2OdM+l8DRzCy3o/j32UCOvhBeHxb3q+Wae8uVqwX5cnQ3zMYl9HP7AhNedrDqsPH5VAD3IOaHO4g99NbRD2Vqck+WAQB8FOztJJ3PGPoOvRaCcYPUV0b27nInYYNxLIIuwFQvMxjUD0NqX7h4obq+ddaixNamT+Rv74LJE+EwkucX0X7+8AE8/zvU6S/ghD93T6rkNBiGyyd1CkzJXv3XQhb/WvctMxnA0jQPeB/IZBxuuAoDOlHeOtUgeIsWbMjeibhauPmLk1fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KnEBAv/yGSKJ9WhrrsPkzt0Uvx7FLtOEf4/+fhKu1ps=; b=iggWzKIujzKxqnTTmWOUvdv/WpJVAkK4SiTfgG5yxx3qqAzYqRasr7AkHpMCyaeVImOutAaEhmjo2Ei5fz/k+oAQ5M7DZohf4iDZhpt+aWiyXWij/opMxCf64kNya9GVN7Qx8JakGfYzyUbKvQTb0AxtVXkQcPfXe2dNa6ghQMCbAFi430ZscL+C/djexCnJhbDv3JMxlL1pxKf/vMKxtyxISvvQsklQ0TW6H8lySfFB126bZXu60DUoTMBqXabwhF2o1L0LZdGnTKPeRqRyVE77h2n4rfNvb+MeVCiXScgolju43s74VYjiPcuKKc3v4fuRU/4j9PANekL5uZhkGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none Received: from FR0P281MB2123.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:29::6) by FR2P281MB3118.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:61::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Tue, 25 Oct 2022 12:47:17 +0000 Received: from FR0P281MB2123.DEUP281.PROD.OUTLOOK.COM ([fe80::57f2:6845:67a5:c492]) by FR0P281MB2123.DEUP281.PROD.OUTLOOK.COM ([fe80::57f2:6845:67a5:c492%6]) with mapi id 15.20.5746.028; Tue, 25 Oct 2022 12:47:17 +0000 From: "Dietmar Hahn (Fujitsu)" <dietmar.hahn@fujitsu.com> To: James Smart <james.smart@broadcom.com>, Dick Kennedy <dick.kennedy@broadcom.com> CC: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org> Subject: [BUG] lpfc: kernel NULL pointer dereference Thread-Topic: [BUG] lpfc: kernel NULL pointer dereference Thread-Index: Adjob4K7Zd/FVp3IS5i8J6dm3vreCQ== Date: Tue, 25 Oct 2022 12:47:16 +0000 Message-ID: <FR0P281MB21234EA6C74C286904E682CB94319@FR0P281MB2123.DEUP281.PROD.OUTLOOK.COM> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ActionId=2e575510-1e3d-4360-9f5c-cc359c5b7383;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ContentBits=0;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Enabled=true;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Method=Standard;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Name=FUJITSU-RESTRICTED???;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SetDate=2022-10-25T12:39:19Z;MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SiteId=a19f121d-81e1-4858-a9d8-736e267fd4c7; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=fujitsu.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: FR0P281MB2123:EE_|FR2P281MB3118:EE_ x-ms-office365-filtering-correlation-id: 032a8b41-0fe9-4efd-23c1-08dab6870c5c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U+nvt8x3DxlF32cGP62/RDqUsyOEiBcoksn6gPshP8KiCLis2M1Z+NuIZr8xR6TKhWdeqo/uwgJKny1JQAvxxtz9c1gEwZ/q7fYH9m07TjvdbaDGCeTE9VpxlNImqL8Lzf6i30qd9rea03RTSHgYjmRb88S4fG4+b1b/MUFRTIWka+opFpI5H75YeCyKZZHMsbzDAjmcR/CeiwZN8/fvj+Q7hwo8V8ECGEm78TTdD1/SIPxHH0aZLHW3F9v5Pne5GCjio/apnmCHyIVHS6lvSFaJD9wzIznHhushxw2Kf5T9GNw+X/sCpqrOVJFTvtvVkc1oHrf4lhJww5JThSnqquuklfxZtMVXtYVmUsyvQGzGQ8Qa/+JhHxx1Be09dkwg10HFiJ6DgYT9Y9DEYONVs6u9H3i/c59ZjzHUAX9wXY9Z64SLWMGye2o7rVSzmOJZGCVKmSKp493KM8gITafKTofrQx1337ba2Ltz1HTdkYyspuAeMAJ7kKEtKwjyNHaYRUx+KH7l7QSxamrRuzd8aSejA7UmpQxuy1+5Buu+9wDJJNg4avK9LuUyzvhB2AQAbqZr8SSffkL/ZEEogzMOBfYd86/iYRuNYMMHrfNbqaJQcMaL01reDuK4sVUc3O9MiqhEdvB2/LkJMtpmIF6/mY9qTjbUosK+EMCzKI+3oN2sEzZFKIu8YZ8xTL5ole6oM4fCtPdEOqr1WNCLPAH7CHp7Nu3cIgpeMclK/DPmp5veEEg9ioilF8Id7eFC9k5BvQU6Vy9Nh4dJOw46du018w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:FR0P281MB2123.DEUP281.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(366004)(376002)(39860400002)(396003)(136003)(451199015)(55016003)(5660300002)(33656002)(83380400001)(7696005)(6506007)(38100700002)(26005)(2906002)(122000001)(86362001)(82960400001)(9686003)(38070700005)(71200400001)(478600001)(186003)(66476007)(66556008)(66446008)(8676002)(4326008)(64756008)(66946007)(76116006)(110136005)(8936002)(52536014)(41300700001)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?X8692CCtENDAf8SN5iXJOks?= =?iso-8859-1?q?GA9CsDbtni1+eN64oXJubXtlQmepzWTUJRrpD1taf+m1eZyao7Rc9109wnYG?= =?iso-8859-1?q?NzPyVBm++r/wabPJkfzui6RKB6lwS2BUwfUfCojdUkEbMWRl/Ep83ev1qZsk?= =?iso-8859-1?q?FtODbG0W6gULUcvu5849D7i6emM0us4lPKEDVqnyJNr6nZp/FIBQr3n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hiXAuK5bGX75hMzLuEcVCOkpoc3T1h2OJIHOnA7CO9btgfPfgqR?= =?iso-8859-1?q?jJ2qZxMPgxMbGETveIW8ZCflOj9vxEUlN67YdlB0kQiziaHfbZEFRDYjD5Jv?= =?iso-8859-1?q?9pVJSJUrfjHQYwGXH6SZM2ZGLk1ab2rAf8Y4EDF14uW3b9k547prULu9EwIG?= =?iso-8859-1?q?LGKBFas83aPXZc3R8kDZsPjAOeXfauonLEvN3VZlXJpZ4YdAfZVdPjbU/J2s?= =?iso-8859-1?q?1vxknFtub7LJ3rHsXyFQE3eb3bseZr2AjdmQDW196fVb1nh4ocSHCas+qJwE?= =?iso-8859-1?q?bxQbOT6xaK+sDS4z94EGQwLuIx0FV0gu7A5HgVx+kR7bEQNHWc8cjg4OiS4h?= =?iso-8859-1?q?XUStCeC8ojFNeNBs8E4+k42jnfpzqHJxgbH8iDCyXRDJ5BC4DT6Nuwe9S+X3?= =?iso-8859-1?q?PeReDDjY1UORsdkwnvqlU4hevj76fkwb4BI/9N9ycGSmuIsmouYgS9rTfYd4?= =?iso-8859-1?q?XPFpYI3urV93DisB2URLmy+WYyWsxXwGzPBMxxAghWJ0gqX4TH54sR7ThKoS?= =?iso-8859-1?q?QJthPWwXYakajZtvCiiqXstonuf+f/+KjqYWnjQ=3D=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: fujitsu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: FR0P281MB2123.DEUP281.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 032a8b41-0fe9-4efd-23c1-08dab6870c5c X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2022 12:47:16.9926 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ev3bGaO4/oN7R00I0vkPIwRmtgSuZX32i4r2uZpV7hWGnRQjVZW5tLKyXyhPdDwYJwkGwMuIWnLX3y1OHQjBEJGwpIpgQFOzk2TVZqErLRw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: FR2P281MB3118 Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
[BUG] lpfc: kernel NULL pointer dereference
|
expand
|
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index d38ebd7281b9..5c5684909d24 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c @@ -160,6 +160,9 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport *rport) if (!ndlp) return; + if (!ndlp->vport) + return; + vport = ndlp->vport; phba = vport->phba;