Searched hist:"18 f661bcf898742212182d75f22f05b048cc04bb" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/proc/ |
H A D | base.c | diff 18f661bcf898742212182d75f22f05b048cc04bb Sun Mar 13 14:49:22 CDT 2011 Stephen Wilson <wilsons@start.ca> proc: hold cred_guard_mutex in check_mem_permission()
Avoid a potential race when task exec's and we get a new ->mm but check against the old credentials in ptrace_may_access().
Holding of the mutex is implemented by factoring out the body of the code into a helper function __check_mem_permission(). Performing this factorization now simplifies upcoming changes and minimizes churn in the diff's.
Signed-off-by: Stephen Wilson <wilsons@start.ca> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|