From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754302AbaCSTIp (ORCPT ); Wed, 19 Mar 2014 15:08:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17378 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752857AbaCSTIU (ORCPT ); Wed, 19 Mar 2014 15:08:20 -0400 Date: Wed, 19 Mar 2014 19:29:10 +0100 From: Oleg Nesterov To: Joseph Salisbury Cc: Tetsuo Handa , JBottomley@parallels.com, Nagalakshmi.Nandigama@lsi.com, Sreekanth.Reddy@lsi.com, rientjes@google.com, akpm@linux-foundation.org, torvalds@linux-foundation.org, tj@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, kernel-team@lists.ubuntu.com, linux-scsi@vger.kernel.org Subject: please fix FUSION (Was: [v3.13][v3.14][Regression] kthread:makekthread_create()killable) Message-ID: <20140319182910.GA14511@redhat.com> References: <20140316162512.GA9467@redhat.com> <201403172138.GFB43278.OOOFFSQLVHJMtF@I-love.SAKURA.ne.jp> <20140317142246.GA27453@redhat.com> <201403182103.BJC78148.tFOFHQOJLOMVSF@I-love.SAKURA.ne.jp> <20140318171620.GA10636@redhat.com> <201403192049.BBI39025.OVFMOOJtFSHFQL@I-love.SAKURA.ne.jp> <5329C22A.5070206@canonical.com> <20140319175253.GB11923@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140319175253.GB11923@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/19, Oleg Nesterov wrote: > > But please do not forget that the kernel crashes. Whatever else we do, this > should be fixed anyway. And this should be fixed in driver. drivers/message/fusion/ is obviously buggy. mptsas_probe() does sh = scsi_host_alloc(...); if (!sh) { ... goto out_mptsas_probe; } ... out_mptsas_probe: mptscsih_remove(pdev); and mptscsih_remove() blindly calls scsi_remove_host(ioc->sh) but ->sh was not initialized, probably it is NULL. and scsi_remove_host(host) obviously assumes that this pointer is valid. I think we should wait for maintainers. Oleg.