From: Johannes Thumshirn <jthumshirn@suse.de>
To: Dick Kennedy <dick.kennedy@broadcom.com>
Cc: linux-scsi@vger.kernel.org, James Smart <james.smart@broadcom.com>
Subject: Re: [lpfc 05/19] Fix driver unload/reload operation.
Date: Wed, 5 Apr 2017 09:20:01 +0200 [thread overview]
Message-ID: <20170405072001.GE3941@linux-x5ow.site> (raw)
In-Reply-To: <1491326232-11255-6-git-send-email-rkennedy@broadcom.com>
On Tue, Apr 04, 2017 at 10:16:58AM -0700, Dick Kennedy wrote:
> From: Dick Kennedy <rkennedy@lvnvda1400.lvn.broadcom.net>
>
> Two issues: (1) driver could not be unloaded and
> reloaded without some Oops or Panic occurring. (2) The
> driver was panicking because of a corruption in the Memory
> Manager when the iocb list was getting allocated.
>
> Root cause for the memory corruption was a double
> free of the Work Queue ring pointer memory - Freed once
> in the lpfc_sli4_queue_free when the CQ was destroyed
> and again in lpfc_sli4_queue_free when the WQ was
> destroyed. While the linux memory manager protects
> against NULL pointers, it can't protect against stale
> pointer kfree calls.
>
> There are other fixes in this patch found during testing.
> While they are not a direct corruption cause, they should
> be fixed to ensure consistent unload/reload.
>
> Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
> Signed-off-by: James Smart <james.smart@broadcom.com>
> ---
Is this the regression Junichi Nomura reported? If yes please Cc him to get a
test result (plus proper Reported-by: attribution).
Note there was also a fix from Mauricio Faria de Oliveira [1] which IIRC
Junichi successfully tested.
[1] http://www.spinics.net/lists/linux-scsi/msg106877.html
--
Johannes Thumshirn Storage
jthumshirn@suse.de +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
next prev parent reply other threads:[~2017-04-05 7:20 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-04 17:16 [lpfc 00/19] lpfc updates Dick Kennedy
2017-04-04 17:16 ` [lpfc 01/19] Fix advertised max_sgl_segment count for NVMET Dick Kennedy
2017-04-05 7:08 ` Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 02/19] Fixes after reviewing last set of patches. Minor fixes to previous patches Dick Kennedy
2017-04-05 7:10 ` Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 03/19] Fix spelling in comments Dick Kennedy
2017-04-05 7:12 ` Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 04/19] Fix PRLI ACC rsp for NVME Dick Kennedy
2017-04-05 7:15 ` Johannes Thumshirn
2017-04-04 17:16 ` [lpfc 05/19] Fix driver unload/reload operation Dick Kennedy
2017-04-05 7:20 ` Johannes Thumshirn [this message]
2017-04-05 13:30 ` Mauricio Faria de Oliveira
2017-04-04 17:16 ` [lpfc 06/19] Fix discovery error handling in NVME initiator Dick Kennedy
2017-04-04 17:17 ` [lpfc 07/19] Fix driver usage of 128B WQEs when WQ_CREATE is V1 Dick Kennedy
2017-04-04 17:17 ` [lpfc 08/19] Fix nvme initiator handling when CONFIG_LPFC_NVME_INITIATOR is not enabled Dick Kennedy
2017-04-04 17:17 ` [lpfc 09/19] Fix Kconfig defines Dick Kennedy
2017-04-04 17:17 ` [lpfc 10/19] Remove hba lock from NVMET isssue WQE Dick Kennedy
2017-04-04 17:17 ` [lpfc 11/19] Add NVMET changes to interface with 4.11 kernel Dick Kennedy
2017-04-04 17:17 ` [lpfc 12/19] cannot establish connection with target that sends PRLI in PT2PT Dick Kennedy
2017-04-04 17:17 ` [lpfc 13/19] Fix driver load issues when MRQ=8 Dick Kennedy
2017-04-04 17:17 ` [lpfc 14/19] Fix crash after issuing lip reset Dick Kennedy
2017-04-04 17:17 ` [lpfc 15/19] Fix max_sgl_segments settings for NVME / NVMET Dick Kennedy
2017-04-04 17:17 ` [lpfc 16/19] Add Fabric assigned WWN support Dick Kennedy
2017-04-04 17:17 ` [lpfc 17/19] Fix implicit logo and RSCN handling for NVMET Dick Kennedy
2017-04-04 17:17 ` [lpfc 18/19] Update ABORT processing " Dick Kennedy
2017-04-04 17:17 ` [lpfc 19/19] lpfc revison 11.2.0.12 Dick Kennedy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170405072001.GE3941@linux-x5ow.site \
--to=jthumshirn@suse.de \
--cc=dick.kennedy@broadcom.com \
--cc=james.smart@broadcom.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox