Bug 11732
Summary: | Oops while mounting a DVD-ROM | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Vedran Furač (vedranf) |
Component: | IDE | Assignee: | Bartlomiej Zolnierkiewicz (bzolnier) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | akpm, axboe, bp, bzolnier |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.27-rc7 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: | blkparse output |
Description
Vedran Furač
2008-10-10 12:02:22 UTC
I recategorised this to IDE. I assume it is a regression also. It might be that we just added more debug stuff and the problme has been there for some time. Not idea - trace is a completely gaga mmu mapping failure. I'd say its a bust box or someone has loaded corrupting modules If you need more information please tell me. Kernel is from: http://kernel-archive.buildserver.net/debian-kernel (In reply to comment #2) > Not idea - trace is a completely gaga mmu mapping failure. I'd say its a bust > box or someone has loaded corrupting modules Hmm, I'd say it's a warn_on which triggers due to ide code calling dma_map_sg() from ide_build_sglist() with totally bogus parameters. WARN_ON(nents == 0 || sg[0].length == 0); Giving the handle back to ide :) IDE gets arguments for dma_map_sg() from blk_rq_map_sg() so everything should be sweet... Vedran: - is the problem reproducible with vanilla 2.6.27? - is it a regression? > IDE gets arguments for dma_map_sg() from blk_rq_map_sg() so everything should
> be sweet...
Adding Jens to the mix :)
Initially it looks like IDE calling dma mapping for a request with no data attached. blk_rq_map_sg() returns 0 if no data is attached, it has no error case. So saying that IDE just passes that on to dma mapping doesn't say a whole lot. To be sure, it would be interesting to catch a blktrace of this happening so we can see more closely. So, IOW, do: 1) In one termimal, run blktrace /dev/hdX (eg /dev/hda, or whatever is your cdrom). 2) In another terminal, mount the drive or whatever reproduces the error. 3) In that first terminal, ctrl-c blktrace. Then run blkparse hdX -o output and attach output to this bug. Created attachment 18337 [details]
blkparse output
New info:
- Still happens with -rc9 (will try with vanilla 27 within next few days)
- Doesn't happen with 2.6.26
- Happens only with one drive (out of two tested, so it could be hw problem)
- Doesn't happen always, seem random but usually 2-3 times out of ten mounts
- It seems that it happens only when hal is running
blkparse output attached (more then one (u)mount)
Regards!
Could you try 2.6.28-rc3? We've fixed some bugs related to ide-cd recently so this problem may get fixed as well. Should have been fixed by: commit 9e772d0135a5b5f8355320be429efa339700d52d Author: Borislav Petkov <petkovbb@googlemail.com> Date: Mon Feb 2 20:12:21 2009 +0100 ide-cd: fix DMA for non bio-backed requests This one fixes http://bugzilla.kernel.org/show_bug.cgi?id=12320. Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> |