Re: [Re: Linux 2.6.26-rc2] Write protect on on

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Boaz Harrosh <bharrosh@...>
Cc: Alan Stern <stern@...>, Maciej Rutecki <maciej.rutecki@...>, Linux Kernel Mailing List <linux-kernel@...>, USB list <linux-usb@...>, USB Storage list <usb-storage@...>, SCSI development list <linux-scsi@...>
Date: Monday, May 19, 2008 - 12:36 pm

On Mon, 19 May 2008, Boaz Harrosh wrote:


Umm. Maybe it SHOULD NOT HAVE BEEN!

The thing is, if we can get partial results back, we really *should* 
either error out, or we should have at least cleared the buffer (either 
beforehand or when seeing the partial result). Returning a buffer with the 
old random contents is a bug.

And if clearing the buffer not only avoids any security holes and possible 
undefined behavior, but _also_ ends up fixing the write protect sense 
issue, all the better!

		Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Re: Linux 2.6.26-rc2] Write protect on on, Maciej Rutecki, (Fri May 16, 10:55 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Fri May 16, 9:03 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Maciej Rutecki, (Sat May 17, 2:59 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Sat May 17, 9:49 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Sun May 18, 12:27 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Mon May 19, 11:18 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 12:08 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Linus Torvalds, (Mon May 19, 12:36 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 1:03 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Mon May 19, 3:17 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Linus Torvalds, (Mon May 19, 1:27 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, James Bottomley, (Thu May 22, 4:23 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Matthew Wilcox, (Mon May 19, 2:16 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 1:45 pm)