Re: [PATCH-v1 16/22] Fix crash after issuing lip reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 19, 2017 at 09:46:35PM -0700, jsmart2021@xxxxxxxxx wrote:
> From: James Smart <jsmart2021@xxxxxxxxx>
> 
> When RPI is not available, driver sends WQE with invalid RPI value and
> rejected by HBA.
> lpfc 0000:82:00.3: 1:3154 BLS ABORT RSP failed, data:  x3/xa0320008
> and
> lpfc :2753 PLOGI failure DID:FFFFFA Status:x3/xa0240008
> 
> In this case, driver accesses rpi_ids array out of bounds.
> 
> Fix:
> Check return value of lpfc_sli4_alloc_rpi(). Do not allocate
> lpfc_nodelist entry if RPI is not available.
> 
> When RPI is not available, we will get discovery timeouts and
> command drops for some of the vports as seen below.
> 
> 
> lpfc :0273 Unexpected discovery timeout, vport State x0
> lpfc :0230 Unexpected timeout, hba link state x5
> lpfc :0111 Dropping received ELS cmd Data: x0 xc90c55 x0
> 
> Signed-off-by: Dick Kennedy <dick.kennedy@xxxxxxxxxxxx>
> Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx>
> ---

Reviewed-by: Johannes Thumshirn <jthumshirn@xxxxxxx>
-- 
Johannes Thumshirn                                          Storage
jthumshirn@xxxxxxx                                +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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux