public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: Pete Wyckoff <pw@osc.edu>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] iscsi: avoid oops when destroying unbound connection
Date: Mon, 30 Oct 2006 12:02:17 -0600	[thread overview]
Message-ID: <45463E29.2070204@cs.wisc.edu> (raw)
In-Reply-To: <20061030012912.GA12233@osc.edu>

Pete Wyckoff wrote:
> Initialize the conn->item list head in a connection, used for
> associating it with a session, to avoid an oops if list_del happens
> before the connection is bound.  The oops is easy enough to
> reproduce by calling CREATE_SESSION, CREATE_CONN, then DESTROY_CONN
> (but no BIND_CONN) from userspace.
> 
> Signed-off-by: Pete Wyckoff <pw@osc.edu>
> ---
>  drivers/scsi/libiscsi.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
> index c542d0e..66fc239 100644
> --- a/drivers/scsi/libiscsi.c
> +++ b/drivers/scsi/libiscsi.c
> @@ -1477,6 +1477,7 @@ iscsi_conn_setup(struct iscsi_cls_sessio
>  	INIT_LIST_HEAD(&conn->run_list);
>  	INIT_LIST_HEAD(&conn->mgmt_run_list);
>  	INIT_LIST_HEAD(&conn->xmitqueue);
> +	INIT_LIST_HEAD(&conn->item);
>  
>  	/* initialize general immediate & non-immediate PDU commands queue */
>  	conn->immqueue = kfifo_alloc(session->mgmtpool_max * sizeof(void*),


Thanks for the patch. We actually already fixed this by just removing
that list. It was not being used for what it was originally intended and
was getting in the way.

The fix should be in 2.6.19-rc4 when it comes out.

  reply	other threads:[~2006-10-30 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-30  1:29 [PATCH] iscsi: avoid oops when destroying unbound connection Pete Wyckoff
2006-10-30 18:02 ` Mike Christie [this message]
2006-10-30 19:17   ` Pete Wyckoff
2006-10-30 19:30     ` Mike Christie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45463E29.2070204@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=linux-scsi@vger.kernel.org \
    --cc=pw@osc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox