Jens Axboe wrote:
Right, that's of course problematic... There has to be a way to recover that situation though, or you can't export any user command issue facility.
You cannot hope to handle all possible effects arising from an app providing an invalid sg header / cdb.
Once you start talking "recovery" you are already screwed: we are talking about low-level hardware commands that are passed straight to the hardware. It is trivial to lock up hardware, brick hardware, and corrupt data at that level.
If this is NOT a privileged app, we must update the command validation to ensure that invalid commands are not transported to the hardware.
If this is a privileged app, our work is done. Fix the app. We gave root rope, and he took it.
I even venture to say that "accept anything, clean up afterwards" is /impossible/ to implement, in addition to being dangerous.
Jeff - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Jens Axboe <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Daniel Drake <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Alan Cox <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- References:
- "Fix ATAPI transfer lengths" causes CD writing regression
- From: Daniel Drake <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Alan Cox <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Daniel Drake <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Alan Cox <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Daniel Drake <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Alan Cox <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Jens Axboe <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Jeff Garzik <[email protected]>
- Re: "Fix ATAPI transfer lengths" causes CD writing regression
- From: Jens Axboe <[email protected]>
- "Fix ATAPI transfer lengths" causes CD writing regression
- Prev by Date: Re: kernel processes - are they really needed?
- Next by Date: Re: Other Problems with Marvell Driver - 7042 (2.6.23)...
- Previous by thread: Re: "Fix ATAPI transfer lengths" causes CD writing regression
- Next by thread: Re: "Fix ATAPI transfer lengths" causes CD writing regression
- Index(es):