Message ID | 5537B943.2060001@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDBI5ZNYUUHBBW7S32UQKGQEXBOE6DQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7469420553 for <linaro@patches.linaro.org>; Wed, 22 Apr 2015 15:08:12 +0000 (UTC) Received: by lbcne10 with SMTP id ne10sf52792471lbc.1 for <linaro@patches.linaro.org>; Wed, 22 Apr 2015 08:08:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-subscribe:list-archive:list-post:list-help :sender:delivered-to:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding:x-original-sender :x-original-authentication-results; bh=ANrr7XVp3lIkPqvbOxbVzUtOSczlHPqLpyF8HWckdJM=; b=WM8rF6E3sS/yVoLL+3Pk3gtcBL+CD4nEPOgHZsICGGpP9YLQSKysk5pE+4iG1tTAu2 F7g9FfHSiAJ5+fZ814zqr3ICyfXHunxc+2v6RHYr5ed0wHBX7fCo2wzDUR8n6nfFxh9i eO7tFv1WPjk61XQ42BLLb8UpZRYGUci2HRfQMvEShrKOw/dzr2k827kXM8Ub1dRzO+hO 35/uQqzPXxzCwOC7s2Uu5IZrLQqj6D460EHdz1lpCngsfmKSUv5L0MIikXzBn6qtTo7B KeQLkwmXaLK8J/eyiukxCZHFdplXiatBR/joOyP26X1grQhKp0+8188V2LyE4fjUx80Z xkNA== X-Gm-Message-State: ALoCoQnyUFp0ccVwPSs65vI7UJ7myn0F+CQxvsEUTykhemJsjKyCPe+Zi+D3zn3e4BbxixkV89IV X-Received: by 10.112.171.41 with SMTP id ar9mr11744543lbc.24.1429715291405; Wed, 22 Apr 2015 08:08:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.34 with SMTP id n2ls198994laj.15.gmail; Wed, 22 Apr 2015 08:08:11 -0700 (PDT) X-Received: by 10.152.88.80 with SMTP id be16mr24790677lab.39.1429715291249; Wed, 22 Apr 2015 08:08:11 -0700 (PDT) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com. [2a00:1450:4010:c04::229]) by mx.google.com with ESMTPS id es16si3913378lbc.122.2015.04.22.08.08.11 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 08:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::229 as permitted sender) client-ip=2a00:1450:4010:c04::229; Received: by lbbqq2 with SMTP id qq2so182463286lbb.3 for <patchwork-forward@linaro.org>; Wed, 22 Apr 2015 08:08:11 -0700 (PDT) X-Received: by 10.112.163.168 with SMTP id yj8mr25011611lbb.36.1429715291093; Wed, 22 Apr 2015 08:08:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1327045lbt; Wed, 22 Apr 2015 08:08:09 -0700 (PDT) X-Received: by 10.66.157.106 with SMTP id wl10mr46839022pab.57.1429715286666; Wed, 22 Apr 2015 08:08:06 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id hn9si8170445pdb.133.2015.04.22.08.08.05 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 08:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-58523-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 125055 invoked by alias); 22 Apr 2015 15:07:55 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Subscribe: <mailto:libc-alpha-subscribe@sourceware.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 125043 invoked by uid 89); 22 Apr 2015 15:07:55 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f44.google.com X-Received: by 10.55.53.72 with SMTP id c69mr49807331qka.67.1429715271230; Wed, 22 Apr 2015 08:07:51 -0700 (PDT) Message-ID: <5537B943.2060001@linaro.org> Date: Wed, 22 Apr 2015 12:07:47 -0300 From: Adhemerval Zanella <adhemerval.zanella@linaro.org> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: libc-alpha@sourceware.org Subject: Re: [PATCH] [BZ 18034] [AArch64] Lazy TLSDESC relocation data race fix References: <553793A3.7030206@arm.com> In-Reply-To: <553793A3.7030206@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Original-Sender: adhemerval.zanella@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::229 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 |
diff --git a/sysdeps/aarch64/tlsdesc.c b/sysdeps/aarch64/tlsdesc.c index 4821f8c..f738cc6 100644 --- a/sysdeps/aarch64/tlsdesc.c +++ b/sysdeps/aarch64/tlsdesc.c @@ -87,6 +87,8 @@ _dl_tlsdesc_resolve_rela_fixup (struct tlsdesc volatile *td, if (!sym) { td->arg = (void*) reloc->r_addend; + /* Barrier so readers see the write above before the one below. */ + __sync_synchronize (); To 'atomic_store_relase (td->arg, (void*) reloc->r_addend))'