[PATCH 0/1] powerpc/vdso: remove redundant locking in update_vsyscall_tz()

Shan Hai shan.hai at windriver.com
Fri Nov 9 12:57:49 EST 2012

The locking in update_vsyscall_tz() is not only unnecessary because the vdso
code copies the data unproteced in __kernel_gettimeofday() but also
introduces a hard to reproduce race condition between update_vsyscall()
and update_vsyscall_tz(), which causes user space process to loop
forever in vdso code.

The following patch removes the locking from update_vsyscall_tz().

 arch/powerpc/kernel/time.c |    5 -----
 1 file changed, 5 deletions(-)

Shan Hai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-powerpc-vdso-remove-redundant-locking-in-update_vsys.patch
Type: text/x-diff
Size: 1810 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20121109/96c883b4/attachment.patch>

More information about the Linuxppc-dev mailing list