Re: 2.6.13: loop ioctl crashes
From: Ian Collier (Ian.Collier_at_comlab.ox.ac.uk)
Date: 09/09/05
- Previous message: Paul Jackson: "Re: [PATCH 0/5] SUBCPUSETS: a resource control functionality using CPUSETS"
- In reply to: linux-os (*** Johnson): "Re: 2.6.13: loop ioctl crashes"
- Next in thread: linux-os (*** Johnson): "Re: 2.6.13: loop ioctl crashes"
- Reply: linux-os (*** Johnson): "Re: 2.6.13: loop ioctl crashes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 9 Sep 2005 14:38:04 +0100 To: linux-kernel@vger.kernel.org
On Fri, Sep 09, 2005 at 08:32:10AM -0400, linux-os (*** Johnson) wrote:
> I guess you are trying to do a copy_from_user() with a spin-lock
> being held or the interrupts otherwise disabled. You can hold
> a semaphore, to prevent somebody else from interfering with
> you, but you cannot hold a spin-lock during copy/to/from/user().
Well, I didn't write the code (it's right there in drivers/block/loop.c
in 2.6.13) and I can't see where there's a spin-lock. In fact it does
use a semaphore.
imc
-
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: Paul Jackson: "Re: [PATCH 0/5] SUBCPUSETS: a resource control functionality using CPUSETS"
- In reply to: linux-os (*** Johnson): "Re: 2.6.13: loop ioctl crashes"
- Next in thread: linux-os (*** Johnson): "Re: 2.6.13: loop ioctl crashes"
- Reply: linux-os (*** Johnson): "Re: 2.6.13: loop ioctl crashes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]