From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58796 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932217AbbHNApn (ORCPT ); Thu, 13 Aug 2015 20:45:43 -0400 Date: Thu, 13 Aug 2015 17:45:43 -0700 From: Greg-KH To: "Nicholas A. Bellinger" Cc: target-devel , stable , Sagi Grimberg Subject: Re: [PATCH-v3.10.y] iscsi-target: Fix iscsit_start_kthreads failure OOPs Message-ID: <20150814004543.GA23652@kroah.com> References: <1439496730-18376-1-git-send-email-nab@linux-iscsi.org> <1439496730-18376-2-git-send-email-nab@linux-iscsi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439496730-18376-2-git-send-email-nab@linux-iscsi.org> Sender: stable-owner@vger.kernel.org List-ID: On Thu, Aug 13, 2015 at 08:12:10PM +0000, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch fixes a regression introduced with the following commit > in v4.0-rc1 code, where a iscsit_start_kthreads() failure triggers > a NULL pointer dereference OOPs: > > commit 88dcd2dab5c23b1c9cfc396246d8f476c872f0ca > Author: Nicholas Bellinger > Date: Thu Feb 26 22:19:15 2015 -0800 > > iscsi-target: Convert iscsi_thread_set usage to kthread.h > > To address this bug, move iscsit_start_kthreads() immediately > preceeding the transmit of last login response, before signaling > a successful transition into full-feature-phase within existing > iscsi_target_do_tx_login_io() logic. > > This ensures that no target-side resource allocation failures can > occur after the final login response has been successfully sent. > > Also, it adds a iscsi_conn->rx_login_comp to allow the RX thread > to sleep to prevent other socket related failures until the final > iscsi_post_login_handler() call is able to complete. > > Issue DAT-3610 > > Change-Id: Ie41cd45dba698d4984ca711a56e4ffd3bb32ca6d What is that here for? I need to know the git commit id in Linus's tree, I guess I have to go dig it out now...