From: Ulrich Drepper Date: Sat, 23 Jul 2011 03:19:30 +0000 (-0400) Subject: Add read barrier protecting DES initialization X-Git-Tag: upstream/2.30~12202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90f139ddd0cfbb1f0b0ebd1fb73d4e2a2765f83b;p=external%2Fglibc.git Add read barrier protecting DES initialization --- diff --git a/ChangeLog b/ChangeLog index a9208f6..ca3d4c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-07-22 Ulrich Drepper + + * crypt/crypt_util.c (__init_des_r): Add read barrier as well. + 2011-07-21 Andreas Schwab * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c index 7999a30..2576ccb 100644 --- a/crypt/crypt_util.c +++ b/crypt/crypt_util.c @@ -1,7 +1,8 @@ /* * UFC-crypt: ultra fast crypt(3) implementation * - * Copyright (C) 1991-1993,1996-1998,2000,2010 Free Software Foundation, Inc. + * Copyright (C) 1991-1993,1996-1998,2000,2010,2011 + * Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -475,7 +476,8 @@ __init_des_r(__data) small_tables_done: __libc_lock_unlock(_ufc_tables_lock); #endif - } + } else + atomic_read_barrier (); /* * Create the sb tables: