Searched hist:fc6b177dee33365ccb29fe6d2092223cf8d679f9 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/ |
H A D | fork.c | diff fc6b177dee33365ccb29fe6d2092223cf8d679f9 Mon Oct 05 11:17:32 CDT 2009 Peter Zijlstra <peterz@infradead.org> futex: Nullify robust lists after cleanup
The robust list pointers of user space held futexes are kept intact over an exec() call. When the exec'ed task exits exit_robust_list() is called with the stale pointer. The risk of corruption is minimal, but still it is incorrect to keep the pointers valid. Actually glibc should uninstall the robust list before calling exec() but we have to deal with it anyway.
Nullify the pointers after [compat_]exit_robust_list() has been called.
Reported-by: Anirban Sinha <ani@anirban.org> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> LKML-Reference: <new-submission> Cc: stable@kernel.org
|