login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
17
Re: [bug] ata subsystem related crash with latest -git
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
FUJITA Tomonori <fujita.tomonori@...>
To: <torvalds@...>
Cc: <jens.axboe@...>, <mingo@...>, <linux-kernel@...>, <jgarzik@...>, <alan@...>, <tomof@...>
Subject:
Re: [bug] ata subsystem related crash with latest -git
Date: Wednesday, October 17, 2007 - 7:00 pm
On Wed, 17 Oct 2007 14:11:34 -0700 (PDT) Linus Torvalds <torvalds@linux-foundation.org> wrote:
quoted text
> > > On Wed, 17 Oct 2007, Jens Axboe wrote: > > > > That would hurt... Care to commit your for_each_sg() uglification fixup > > for now then? Or disable the allocation debug config entry, so that the > > sg+1 deref wont crash? > > Well, in practice, it will only crash with DEBUG_PAGEALLOC, so few enough > are going to be hit by it. In that sense I don't think we're in any deep > trouble yet. > > That said, maybe this is an acceptable, if hacky, replacement for the > current "for_each_sg()" loop. > > It does: > - starts at one *before* the sglist > - does the sg_next() at the *top* of the loop rather than the bottom of it > - has a "--count" before that sg_next, so that we don't do it for the > case when we break out and have used up all segments. > > Totally untested, but it *may* work, and it doesn't look horribly ugly. > > Ingo, does this actually make any difference? > > Linus > > --- > include/linux/scatterlist.h | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > > diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h > index 2dc7464..f5c8e11 100644 > --- a/include/linux/scatterlist.h > +++ b/include/linux/scatterlist.h > @@ -51,11 +51,18 @@ static inline struct scatterlist *sg_next(struct scatterlist *sg) > return sg; > } > > +static inline struct scatterlist *sg_safe_next(struct scatterlist *sg, int left) > +{ > + if (left < 0) > + return NULL; > + return sg_next(sg); > +} > + > /* > * Loop over each sg element, following the pointer to a new list if necessary > */ > #define for_each_sg(sglist, sg, nr, __i) \ > - for (__i = 0, sg = (sglist); __i < (nr); __i++, sg = sg_next(sg)) > + for (__i = (nr), sg = (sglist)-1; (sg = sg_safe_next(sg, --__i)) != NULL ; )
Looks that (sglist) - 1 isn't initialized and we use sg_next for it? -
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[bug] block subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 11:46 am)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 12:50 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 12:59 pm)
Re: [bug] block subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 1:11 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 1:08 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 1:52 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 2:00 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 2:18 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 2:22 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 2:40 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 2:22 pm)
Re: [bug] block subsystem related crash with latest -git
, Benny Halevy
, (Thu Oct 18, 6:52 am)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 6:55 am)
Re: [bug] block subsystem related crash with latest -git
, David Miller
, (Thu Oct 18, 8:03 am)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 8:28 am)
Re: [bug] block subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 1:28 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 1:21 pm)
Re: [bug] block subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 1:30 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 1:31 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 1:29 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 1:56 pm)
Re: [bug] block subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 2:02 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 2:14 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 2:02 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 2:13 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 2:20 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 2:58 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:03 pm)
Re: [bug] block subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 3:15 pm)
Re: [bug] block subsystem related crash with latest -git
, Luca Tettamanti
, (Wed Oct 17, 4:15 pm)
Re: [bug] block subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 1:34 pm)
[bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 1:45 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 2:08 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 2:13 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 1:53 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 2:37 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 3:09 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 3:28 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 3:42 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:55 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:35 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 3:45 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:56 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 4:06 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 4:24 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 4:31 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 5:11 pm)
Re: [bug] ata subsystem related crash with latest -git
, FUJITA Tomonori
, (Wed Oct 17, 7:00 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 9:07 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Wed Oct 17, 9:14 pm)
Re: [bug] ata subsystem related crash with latest -git
, David Miller
, (Wed Oct 17, 9:19 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 9:36 pm)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Wed Oct 17, 11:44 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Thu Oct 18, 12:01 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 1:25 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 1:34 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 1:45 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 3:09 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 3:30 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 12:05 am)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Thu Oct 18, 12:20 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 12:18 am)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Thu Oct 18, 12:45 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 12:54 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 1:09 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 12:31 am)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Thu Oct 18, 12:53 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 12:41 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 3:05 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 9:13 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 9:23 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 9:32 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 9:34 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 9:59 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 10:04 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 12:14 am)
Re: [bug] ata subsystem related crash with latest -git
, David Miller
, (Wed Oct 17, 9:49 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 4:21 am)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Thu Oct 18, 12:55 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 3:20 pm)
Re: [bug] ata subsystem related crash with latest -git
, Arjan van de Ven
, (Thu Oct 18, 1:10 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 1:14 pm)
Re: [bug] ata subsystem related crash with latest -git
, FUJITA Tomonori
, (Fri Oct 19, 4:59 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 1:01 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 1:10 pm)
Re: [bug] ata subsystem related crash with latest -git
, David Miller
, (Thu Oct 18, 7:55 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 7:57 am)
Re: [bug] ata subsystem related crash with latest -git
, David Miller
, (Thu Oct 18, 8:05 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 8:09 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 8:15 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 8:58 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 9:32 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 9:51 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 9:58 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 10:10 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 10:13 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 10:14 am)
Re: [bug] ata subsystem related crash with latest -git
, Mark Lord
, (Thu Oct 18, 10:03 am)
Re: [bug] ata subsystem related crash with latest -git
, Benny Halevy
, (Thu Oct 18, 9:49 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 9:55 am)
Re: [bug] ata subsystem related crash with latest -git
, Benny Halevy
, (Thu Oct 18, 8:58 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 9:56 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 10:05 am)
Re: [bug] ata subsystem related crash with latest -git
, Benny Halevy
, (Thu Oct 18, 10:16 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 10:38 am)
Re: [bug] ata subsystem related crash with latest -git
, Olof Johansson
, (Thu Oct 18, 10:58 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 11:25 am)
Re: [bug] ata subsystem related crash with latest -git
, David Miller
, (Thu Oct 18, 8:36 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 8:39 am)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 4:51 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Thu Oct 18, 3:07 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 4:22 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 4:32 am)
Re: [bug] ata subsystem related crash with latest -git
, Torsten Kaiser
, (Sat Oct 20, 7:55 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 5:01 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 5:17 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 5:32 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 5:41 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 6:04 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 6:10 am)
[PATCH] Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 6:42 am)
Re: [PATCH] Re: [bug] ata subsystem related crash with lates...
, Olof Johansson
, (Thu Oct 18, 10:52 am)
Re: [PATCH] Re: [bug] ata subsystem related crash with lates...
, Ingo Molnar
, (Thu Oct 18, 6:54 am)
Re: [PATCH] Re: [bug] ata subsystem related crash with lates...
, Jeff Garzik
, (Thu Oct 18, 7:02 am)
Re: [PATCH] Re: [bug] ata subsystem related crash with lates...
, Ingo Molnar
, (Thu Oct 18, 7:40 am)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Thu Oct 18, 6:13 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 6:16 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 6:17 am)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Thu Oct 18, 6:49 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 6:50 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 6:56 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 4:38 am)
Re: [bug] ata subsystem related crash with latest -git
, Jeff Garzik
, (Thu Oct 18, 4:51 am)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Thu Oct 18, 7:03 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 7:05 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Thu Oct 18, 3:10 am)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:49 pm)
Re: [bug] ata subsystem related crash with latest -git
, Linus Torvalds
, (Wed Oct 17, 4:10 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 4:05 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 3:04 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:08 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 3:14 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:25 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 3:17 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 3:25 pm)
Re: [bug] ata subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 1:55 pm)
Re: [bug] ata subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 1:58 pm)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 1:36 pm)
Re: [bug] block subsystem related crash with latest -git
, Ingo Molnar
, (Wed Oct 17, 11:50 am)
Re: [bug] block subsystem related crash with latest -git
, Jens Axboe
, (Wed Oct 17, 12:32 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Andy Whitcroft
clam
Ingo Molnar
[patch] paravirt: VDSO page is essential
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Lovich, Vitali
RE: [PATCH] Packet socket: mmapped IO: PACKET_TX_RING
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
657 guests
online.
Syndicate