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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, May 19, 2008 - 9:36 am

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, 7:55 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Fri May 16, 6:03 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Maciej Rutecki, (Fri May 16, 11:59 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Sat May 17, 6:49 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Sun May 18, 9:27 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Mon May 19, 8:18 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 9:08 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Linus Torvalds, (Mon May 19, 9:36 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 10:03 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Linus Torvalds, (Mon May 19, 10:27 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Boaz Harrosh, (Mon May 19, 10:45 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Matthew Wilcox, (Mon May 19, 11:16 am)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, Alan Stern, (Mon May 19, 12:17 pm)
Re: [Re: Linux 2.6.26-rc2] Write protect on on, James Bottomley, (Thu May 22, 1:23 am)