From: Peter Zijlstra Date: Mon, 5 Oct 2009 16:17:32 +0000 (+0200) Subject: futex: Nullify robust lists after cleanup X-Git-Tag: v2.6.32-rc4~24^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc6b177dee33365ccb29fe6d2092223cf8d679f9;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra Signed-off-by: Thomas Gleixner LKML-Reference: Cc: stable@kernel.org --- Reading git-diff-tree failed