Re: [PATCH v3 06/11] rlimits: do security check under task_lock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jiri Slaby
Date: Wednesday, June 23, 2010 - 8:20 am

On 06/07/2010 08:08 PM, Oleg Nesterov wrote:

Hi, never mind, my RTT of 2 weeks doesn't look like very short too :).


BTW this capable() has the exactly same problem with being called with
task_lock held. Is it OK to move it completely out of critical section?
I'm asking because it sets a current->flags SU bit used for accounting.
If I move it out of the section, it will set the bit always.


But does so only if current limits are different to the new ones. My
opinion is that we can ignore it anyway.


Makes sense to me.


Sorry I can't see it. Could you point out in which function this is done?

thanks,
-- 
js
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 04/11] rlimits: split sys_setrlimit, Jiri Slaby, (Mon May 10, 11:00 am)
[PATCH v3 10/11] rlimits: implement prlimit64 syscall, Jiri Slaby, (Mon May 10, 11:00 am)
Re: [PATCH v3 10/11] rlimits: implement prlimit64 syscall, Andrew Morton, (Thu May 13, 3:56 pm)
Re: [PATCH v3 10/11] rlimits: implement prlimit64 syscall, Andrew Morton, (Wed May 26, 7:30 am)
Re: [PATCH v3 06/11] rlimits: do security check under task ..., Jiri Slaby, (Wed Jun 23, 8:20 am)