Re: [PATCH 1/3] sys_personality: validate personality before set_personality()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Thursday, May 27, 2010 - 10:51 am

On Thu, 27 May 2010, Oleg Nesterov wrote:

Yes. And I'm willing to take that "risk" in the name of not having to 
carry crazy stuff around in the kernel.

I don't think anybody does anything like that. At worst, they may have 
done sign-extension (due to lack of prototypes, whatever), and _wanted_ to 
do "personality(0xffffffff)" but instead ended up with the high bits set, 
and a non-working system call.

In which case the cleanup just helps such clueless cases. Not that I think 
those exist _either_, but whatever.


Yup. I'll take the blame.


I've already removed the patch from my tree, I wasn't going to commit it 
without somebody testing it. So maybe you could re-do the series with that 
cleanup too?

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

Messages in current thread:
Q: sys_personality() && misc oddities, Oleg Nesterov, (Tue May 25, 7:17 am)
Re: Q: sys_personality() && misc oddities, Roland McGrath, (Tue May 25, 12:33 pm)
Re: Q: sys_personality() && misc oddities, Oleg Nesterov, (Wed May 26, 5:36 am)
Re: Q: sys_personality() && misc oddities, Roland McGrath, (Wed May 26, 1:31 pm)
Re: Q: sys_personality() && misc oddities, H. Peter Anvin, (Wed May 26, 1:35 pm)
Re: [PATCH 1/3] sys_personality: validate personality befo ..., Linus Torvalds, (Thu May 27, 10:51 am)
[PATCH 0/2] sys_personality fixes v2, Oleg Nesterov, (Fri May 28, 12:11 pm)
Re: [PATCH 0/2] sys_personality fixes v2, Linus Torvalds, (Fri May 28, 12:28 pm)
Re: [PATCH 0/2] sys_personality fixes v2, H. Peter Anvin, (Fri May 28, 12:58 pm)
Re: [PATCH 0/2] sys_personality fixes v2, Oleg Nesterov, (Fri May 28, 12:59 pm)