Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933876AbbEODmp (ORCPT ); Thu, 14 May 2015 23:42:45 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:39087 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932748AbbEODmm (ORCPT ); Thu, 14 May 2015 23:42:42 -0400 From: Calvin Owens To: Nagalakshmi Nandigama , Praveen Krishnamoorthy , Sreekanth Reddy , Abhijit Mahajan CC: , , , , Subject: [PATCH 0/6] Fixes for memory corruption in mpt2sas Date: Thu, 14 May 2015 20:41:56 -0700 Message-ID: <1431661322-3097935-1-git-send-email-calvinowens@fb.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <20150506184852.GA1007288@mail.thefacebook.com> References: <20150506184852.GA1007288@mail.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.52.13] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-05-15_01:2015-05-14,2015-05-15,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1417 Lines: 39 Hello all, This patchset attempts to address problems we've been having with panics due to memory corruption from the mpt2sas driver. I will provide a similar set of fixes for mpt3sas, since we see similar issues there as well. "Porting" this to mpt3sas will be trivial since the part of the driver I'm touching is nearly identical between the two, so I thought it would be simpler to review a patch against mpt2sas alone at first. I've tested this for a few days on a big storage box that seemed to be very susceptible to the panics, and so far it seems to have eliminated them. Thanks, Calvin Total diffstat: drivers/scsi/mpt2sas/mpt2sas_base.h | 20 +- drivers/scsi/mpt2sas/mpt2sas_scsih.c | 482 +++++++++++++++++++++---------- drivers/scsi/mpt2sas/mpt2sas_transport.c | 12 +- 3 files changed, 359 insertions(+), 155 deletions(-) Patches: * [PATCH 1/6] Add refcount to sas_device struct * [PATCH 2/6] Refactor code to use new sas_device refcount * [PATCH 3/6] Fix unsafe sas_device_list usage * [PATCH 4/6] Add refcount to fw_event_work struct * [PATCH 5/6] Refactor code to use new fw_event refcount * [PATCH 6/6] Fix unsafe fw_event_list usage -- 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/