Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752963AbbHZEPb (ORCPT ); Wed, 26 Aug 2015 00:15:31 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:36340 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750920AbbHZEP2 (ORCPT ); Wed, 26 Aug 2015 00:15:28 -0400 From: "Nicholas A. Bellinger" To: linux-scsi Cc: linux-kernel , James Bottomley , Calvin Owens , Christoph Hellwig , Sreekanth Reddy , "MPT-FusionLinux.pdl" , Nicholas Bellinger Subject: [PATCH 0/2] mpt3sas: Reference counting fixes from in-flight mpt2sas Date: Wed, 26 Aug 2015 04:09:42 +0000 Message-Id: <1440562184-23945-1-git-send-email-nab@daterainc.com> X-Mailer: git-send-email 1.7.2.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1650 Lines: 46 From: Nicholas Bellinger Hi James & Co, This series is a mpt3sas forward port of Calvin Owens' in-flight reference counting bugfixes for mpt2sas LLD code here: [PATCH v4 0/2] Fixes for memory corruption in mpt2sas http://marc.info/?l=linux-scsi&m=143951695904115&w=2 The differences between mpt2sas + mpt3sas in this area are very, very small, and is required to address a NULL pointer dereference OOPsen in _scsih_probe_sas() -> mpt3sas_transport_port_add() -> sas_port_add_phy() that I've been hitting occasionally on boot during initial LUN scan. So far this code has been tested on v3.14.47 with a small cluster using SAS3008 HBAs plus a few preceeding upstream mpt3sas patches so these patches apply cleanly, and with the changes in place the original OOPsen appears to be resolved. This patch series is cut atop v4.2-rc1 code, and barring any objections from Avago folks et al., should be considered along with Calvin's mpt2sas patch set for v4.3-rc1 code. Thank you, --nab Nicholas Bellinger (2): mpt3sas: Refcount sas_device objects and fix unsafe list usage mpt3sas: Refcount fw_events and fix unsafe list usage drivers/scsi/mpt3sas/mpt3sas_base.h | 23 +- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 592 ++++++++++++++++++++++--------- drivers/scsi/mpt3sas/mpt3sas_transport.c | 12 +- 3 files changed, 449 insertions(+), 178 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/