login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
17
Re: [bug] block 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:
Jens Axboe <jens.axboe@...>
To: Linus Torvalds <torvalds@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: [bug] block subsystem related crash with latest -git
Date: Wednesday, October 17, 2007 - 1:21 pm
On Wed, Oct 17 2007, Jens Axboe wrote:
quoted text
> On Wed, Oct 17 2007, Jens Axboe wrote: > > On Wed, Oct 17 2007, Linus Torvalds wrote: > > > > > > > > > On Wed, 17 Oct 2007, Ingo Molnar wrote: > > > > > > > > Jens, just got this crash on a testbox: > > > > > > The code in question is: > > > > > > mov %edx,0xc(%esp) > > > mov (%ebx),%edi > > > mov %edi,%edx > > > sub %eax,%edx > > > mov %edx,%eax > > > sar __PLACEHOLDER__0_x5,%eax > > > shl __PLACEHOLDER__0_xc,%eax > > > add 0x8(%ebx),%eax > > > cmp %eax,0xc(%esp) > > > je +126 > > > mov 0x10(%esi),%eax <----- Oops > > > lea 0x10(%esi),%edx > > > test __PLACEHOLDER__0_x1,%al > > > jne +76 > > > mov %edi,(%esi) > > > mov %ebp,0xc(%esi) > > > mov 0x8(%ebx),%eax > > > mov %eax,0x4(%esi) > > > > > > > > > and it looks like %esi is overflowing from one page to the next one, ie: > > > > > > BUG: unable to handle kernel paging request at virtual address 7ca76000 > > > ESI: 7ca75ff0 > > > > > > and you caught this thanks to page-alloc debugging again. > > > > > > I think I can match that up with the source code: that's "sg_next()". It's > > > doing: > > > > > > sg++; > > > > > > if (unlikely(sg_is_chain(sg))) > > > sg = sg_chain_ptr(sg); > > > > > > return sg; > > > > > > and the oopsing instruction is that load of "sg->page" in the assembly > > > code: > > > > > > mov 0x10(%esi),%eax # %eax = sg->page > > > lea 0x10(%esi),%edx # %edx = sg+1; > > > test __PLACEHOLDER__0_x1,%al # if (unlikely(sg_is_chain())) > > > jne +76 > > > > > > Jens? > > > > Yep, that's what I came up with as well - I asked Ingo for a dump in > > private, but ended up just using ksymoops to decode the line. > > > > The way blk_rq_map_sg() operates is that it ends up doing a > > > > next_sg = sg_next(sg); > > > > even though sg may be the last entry. Perhaps this is crapping out, > > although if sg is a valid address, then sg + 1 should be as well. > > next_sg may end up being crap, in fact it will, but we'll never use that > > unless there are more entries to fill. And if there is, then both sg and > > next_sg were valid. > > > > So nothing in for-linus should fix it, I'll try and come up with an > > alternate way to assign next_sg so it's always valid. > > OK, the below should actually be safe, I don't know why I talked myself > into the next_sg stuff in the beginning. It's always safe to zero sg, > since it's a valid entry - nothing to save in ->page. Ingo, does this > work for you? > > diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c > index 9e3f3cc..3935469 100644 > --- a/block/ll_rw_blk.c > +++ b/block/ll_rw_blk.c > @@ -1322,8 +1322,8 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq, > struct scatterlist *sglist) > { > struct bio_vec *bvec, *bvprv; > - struct scatterlist *next_sg, *sg; > struct req_iterator iter; > + struct scatterlist *sg; > int nsegs, cluster; > > nsegs = 0; > @@ -1333,7 +1333,7 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq, > * for each bio in rq > */ > bvprv = NULL; > - sg = next_sg = &sglist[0]; > + sg = NULL; > rq_for_each_segment(bvec, rq, iter) { > int nbytes = bvec->bv_len; > > @@ -1349,8 +1349,10 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq, > sg->length += nbytes; > } else { > new_segment: > - sg = next_sg; > - next_sg = sg_next(sg); > + if (!sg) > + sg = sglist; > + else > + sg = sg_next(sg); > > memset(sg, 0, sizeof(*sg)); > sg->page = bvec->bv_page; >
Scratch that, it cannot work... I'll think up a different approach. -- Jens Axboe -
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 Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
David Newall
Re: Slow DOWN, please!!!
Andrew Morton
Re: Linux 2.6.21-rc4
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Dale Farnsworth
Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
847 guests
online.
Syndicate