public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Linus Torvalds <torvalds@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>,
	markhe@nextd.demon.co.uk, Andrea Arcangeli <andrea@suse.de>,
	Mike Christie <michaelc@cs.wisc.edu>,
	James Bottomley <James.Bottomley@steeleye.com>
Subject: Re: Slab corruption in 2.6.16-rc5-mm2
Date: Mon, 6 Mar 2006 21:30:37 +0100	[thread overview]
Message-ID: <20060306203036.GQ4595@suse.de> (raw)
In-Reply-To: <200603062124.42223.jesper.juhl@gmail.com>

On Mon, Mar 06 2006, Jesper Juhl wrote:
> On Monday 06 March 2006 21:06, Linus Torvalds wrote:
> > 
> > On Mon, 6 Mar 2006, Linus Torvalds wrote:
> > > 
> > > So it's either an aic7xxx bug, or it's generic SCSI.
> > > 
> > > Considering that we've had other slab corruption issues (the reason I was 
> > > looking closely at yours), generic SCSI isn't out of the question.
> > > 
> > > If you were a git user, doing a bisection run would be useful since you 
> > > seem to be able to recreate it at will. Oh, well. Testign that one patch 
> > > would still help.
> > 
> 
> Since the patch you sent me didn't apply cleanly to the mm kernel I made the
> changes by hand. This is what I ended up with (should be the same end result
> as what you intended as far as I can see) :
> 
> --- linux-2.6.16-rc5-mm2-orig/drivers/scsi/scsi_lib.c	2006-03-05 23:43:56.000000000 +0100
> +++ linux-2.6.16-rc5-mm2/drivers/scsi/scsi_lib.c	2006-03-06 21:13:53.000000000 +0100
> @@ -260,7 +260,6 @@ int scsi_execute(struct scsi_device *sde
>  	memcpy(req->cmd, cmd, req->cmd_len);
>  	req->sense = sense;
>  	req->sense_len = 0;
> -	req->retries = retries;
>  	req->timeout = timeout;
>  	req->flags |= flags | REQ_BLOCK_PC | REQ_SPECIAL | REQ_QUIET;
>  
> @@ -478,7 +477,6 @@ int scsi_execute_async(struct scsi_devic
>  	req->sense = sioc->sense;
>  	req->sense_len = 0;
>  	req->timeout = timeout;
> -	req->retries = retries;
>  	req->end_io_data = sioc;
>  
>  	sioc->data = privdata;
> @@ -1240,7 +1238,7 @@ static void scsi_setup_blk_pc_cmnd(struc
>  		cmd->sc_data_direction = DMA_FROM_DEVICE;
>  	
>  	cmd->transfersize = req->data_len;
> -	cmd->allowed = req->retries;
> +	cmd->allowed = 3;
>  	cmd->timeout_per_command = req->timeout;
>  	cmd->done = scsi_blk_pc_done;
>  }
> --- linux-2.6.16-rc5-mm2-orig/block/scsi_ioctl.c	2006-03-05 23:43:41.000000000 +0100
> +++ linux-2.6.16-rc5-mm2/block/scsi_ioctl.c	2006-03-06 21:16:19.000000000 +0100
> @@ -314,8 +314,6 @@ static int sg_io(struct file *file, requ
>  	if (!rq->timeout)
>  		rq->timeout = BLK_DEFAULT_TIMEOUT;
>  
> -	rq->retries = 0;
> -
>  	start_time = jiffies;
>  
>  	/* ignore return value. All information is passed back to caller
> @@ -433,7 +431,6 @@ static int sg_scsi_ioctl(struct file *fi
>  	rq->data = buffer;
>  	rq->data_len = bytes;
>  	rq->flags |= REQ_BLOCK_PC;
> -	rq->retries = 0;
>  
>  	blk_execute_rq(q, bd_disk, rq, 0);
>  	err = rq->errors & 0xff;	/* only 8 bit SCSI status */
> --- linux-2.6.16-rc5-mm2-orig/include/linux/blkdev.h	2006-03-05 23:44:06.000000000 +0100
> +++ linux-2.6.16-rc5-mm2/include/linux/blkdev.h	2006-03-06 21:13:02.000000000 +0100
> @@ -190,7 +190,6 @@ struct request {
>  	void *sense;
>  
>  	unsigned int timeout;
> -	int retries;
>  
>  	/*
>  	 * For Power Management requests
> 
> 
> Unfortunately that didn't fix it. After booting the patched kernel I found
> this in dmesg :

I don't see how it could be, honestly, we would gladly oops in locally
close places if that was the case. If you disable slab debug/poison, do
you get a nice NULL pointer dereference instead? There have been some
reports on a NULL queue for sr devices as of lately, I wonder if some
SCSI change recently was broken.

Tejun, I seem to recall you looking at this, but I can't seem to locate
the thread. Did anything come of it?

-- 
Jens Axboe


  reply	other threads:[~2006-03-06 20:31 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-06  0:17 Slab corruption in 2.6.16-rc5-mm2 Jesper Juhl
2006-03-06 18:25 ` Linus Torvalds
2006-03-06 18:43   ` Jesper Juhl
2006-03-06 19:32     ` Linus Torvalds
2006-03-06 19:51       ` Jesper Juhl
2006-03-06 19:58         ` Jesper Juhl
2006-03-06 20:06       ` Linus Torvalds
2006-03-06 20:24         ` Jesper Juhl
2006-03-06 20:30           ` Jens Axboe [this message]
2006-03-06 20:33             ` Jens Axboe
2006-03-06 21:14               ` Jesper Juhl
2006-03-06 21:41             ` Jesper Juhl
2006-03-06 21:55               ` Dave Jones
2006-03-06 21:57                 ` Jesper Juhl
2006-03-09 15:50                 ` Martin J. Bligh
2006-03-09 15:54                   ` Martin J. Bligh
2006-03-09 15:54                   ` Benjamin LaHaise
2006-03-09 16:04                     ` Martin J. Bligh
2006-03-09 16:08                   ` Linus Torvalds
2006-03-09 16:41                     ` Dave Jones
2006-03-06 20:36         ` Jesper Juhl
2006-03-06 20:53           ` Jesper Juhl
2006-03-06 20:56             ` Jesper Juhl
2006-03-06 21:07               ` Linus Torvalds
2006-03-06 21:16                 ` Jesper Juhl
2006-03-06 21:54                 ` Jesper Juhl
2006-03-06 22:05                   ` Andrew Morton
2006-03-06 22:08                     ` Jesper Juhl
2006-03-06 22:27                       ` Jesper Juhl
2006-03-06 22:17                   ` Linus Torvalds
2006-03-06 22:34                     ` Linus Torvalds
2006-03-06 22:52                       ` Jesper Juhl
2006-03-06 22:54                       ` Linus Torvalds
2006-03-06 23:01                         ` Jesper Juhl
2006-03-06 23:06                           ` Andrew Morton
2006-03-06 23:24                             ` Jesper Juhl
2006-03-07  0:17                               ` Linus Torvalds
2006-03-07  0:25                                 ` Jesper Juhl
2006-03-07  3:15                               ` Mike Christie
2006-03-07  3:20                                 ` Linus Torvalds
2006-03-07 18:01                                   ` James Bottomley
2006-03-07 19:40                                     ` Jesper Juhl
2006-03-07  8:47                       ` [PATCH] slab: fix offslab_limit in calculate_slab_order (Was: Slab corruption in 2.6.16-rc5-mm2) Pekka J Enberg
2006-03-07 17:12                         ` Linus Torvalds
2006-03-07 19:21                           ` Pekka Enberg
2006-03-07 19:28                       ` Slab corruption in 2.6.16-rc5-mm2 Bill Davidsen
2006-03-06 22:44                     ` Jesper Juhl
2006-03-06 18:48   ` Mike Christie
2006-03-06 18:49     ` Mike Christie
  -- strict thread matches above, loose matches on Subject: below --
2006-03-08  6:25 Chuck Ebbert
2006-03-08  8:32 ` Nick Piggin
2006-03-08  8:46   ` Andrew Morton
2006-03-08  9:02     ` Nick Piggin
2006-03-08  9:12       ` Andrew Morton
2006-03-08  9:23         ` Nick Piggin
2006-03-08 14:35           ` Lee Schermerhorn

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=20060306203036.GQ4595@suse.de \
    --to=axboe@suse.de \
    --cc=James.Bottomley@steeleye.com \
    --cc=akpm@osdl.org \
    --cc=andrea@suse.de \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markhe@nextd.demon.co.uk \
    --cc=michaelc@cs.wisc.edu \
    --cc=torvalds@osdl.org \
    /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