Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp861398ybg; Mon, 1 Jun 2020 16:52:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuj8Duk8gS3rIyi0vY6/RflXEZBQ6ZtieJXmS8JHpfHOtV5V84xGjNuJe22lU3hGJnMATf X-Received: by 2002:a17:906:14d3:: with SMTP id y19mr21244606ejc.466.1591055561316; Mon, 01 Jun 2020 16:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591055561; cv=none; d=google.com; s=arc-20160816; b=nA/CHgh2aP16i93ABMC+okrtu+qX541U4L5QHhaYKzntbuVVWpCVMG35dqAh885vvZ ZNmYOJrehu1WV/Eo9+EyhZmHE4tL7D+DR+/8N4SfEHfgb+WScpKNf65Xs1Ax1lKgsx+3 NZP+RIrFf7FsgVKdAfh1rWjnmpef7fmMlSIfaeYdfnvupIM27HzmrgyoSB7ND+/bnr+v 95MiI1eHbadHxNilnHGcKiL8Zh3YPYjtkgRyJXHbEkNyEYlug0H0oGkmPRemRVRrKuUB fhuauaK3l5rDZDEpLR220OjhDvt29CNpO0MTwmJ9QtGZpHoaSXcfu5jqK7mNaKo9cJ6L mAgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:references :message-id:subject:cc:to:from:date:dkim-signature; bh=oUI9bjSmxsFXcy3c3YFEpqm/JcIVr6x8hBb+2iwCu18=; b=kHM5o9J8GZwwd5IBDssondTkid9c8D7iQdb0YqK3i+hoJFSs+JYt49knH61IsNDI8v Hr1XfHIJlg6cUp27fc0aeMzfsm9PErXCfIVf/914yOJetOaq+NMhtulRCDoaEmeyn9tE 0rD72YxbfFcdUI5Ygc5d0Vjrrzw3GKdcZo2l0+gEvGjVc71VuQiE/w0D10eCuKW9FCHc AKKzMvby4+uYdyB5SHEAIK+D8HazbDkSbomkfuPQciUk2fI8NdwbscIfrvSUDTgsntl3 VFL7/mcHiPnkCrUn/8XLtIZXQntAtziDdb/CZtVBqxff3O1QR+q81H0HZ1oEmUP8d0w9 kAbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=q9Njr4Jy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si569694edj.229.2020.06.01.16.52.16; Mon, 01 Jun 2020 16:52:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=q9Njr4Jy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728600AbgFAXsI (ORCPT + 99 others); Mon, 1 Jun 2020 19:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728372AbgFAXsH (ORCPT ); Mon, 1 Jun 2020 19:48:07 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BE8EC03E96B for ; Mon, 1 Jun 2020 16:48:07 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id r10so4203098pgv.8 for ; Mon, 01 Jun 2020 16:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :in-reply-to; bh=oUI9bjSmxsFXcy3c3YFEpqm/JcIVr6x8hBb+2iwCu18=; b=q9Njr4JyTAdWqbg68EOlGjKBwqFITb6/Bd6k91ddMhfQYRX5fMOwg377xGU9QHnMFX UleutAhhhLwjWMtXLfbdCTbj4RY3lonHYYsBxOC3G/uJ1Xh5BqRW5O/pKtk6NspLluWY iDGOyNdC50im7ICKo+fraGUot7kLaezYSNpmrUHtMMDMEU1RPbCAF/2QiYrpEQvO+Sdp 5PBCkOzY5DMROXmTlPuNpW/nkAllGyrRz2b/N7qhqpMFUOtvnTMBFQ/TRg9pmTsy5cFm GoOeRobgu86UV1ALNjLir8H3tqC5XL9U/jUxEcV/LhLVgq+iVfgQitF6JuBULqzGHFuq Id8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:in-reply-to; bh=oUI9bjSmxsFXcy3c3YFEpqm/JcIVr6x8hBb+2iwCu18=; b=pDz8BejnWSTxHYlgW6TJtRIq7lTK6QHpqBUoYWcZLWEjrOtA/mGHnUoAXLmj5TssHF +HMCPSU2Ws1PCMQa6+6mP8jP5cUF/qsUX6mVF10hVtelnm/C+iJ22OyvscPoqAY1utPI AxMlUEMB3KaXbsj4hSdlQxYIUnDYcDCnBp9RsxVbWktOELtG+XzM1R/BfdENhrqxh/yY R49xBDrnicoLI0Wfys0o5uEtW/YOcSMROutWnqmDZX6+nB3whPnSPZh6KfGA15FGJpmV zCu86DLUrTS6AocY1uJK9yu1JdVRK3lFR9js2z3/bG02PNFmg6CZhBJ9Zeuhj+tTZFlG 0XtQ== X-Gm-Message-State: AOAM530Pb2zkHHJLyEvTtRdUXV9IvL/ANn+lFbSwqCeFbYyCMPOZW6ev I5t1UEP4PzQw2GRE/rHewAwPFA== X-Received: by 2002:a62:4e91:: with SMTP id c139mr3893637pfb.18.1591055286443; Mon, 01 Jun 2020 16:48:06 -0700 (PDT) Received: from google.com ([2620:15c:2ce:200:db56:ecca:5ade:2f85]) by smtp.gmail.com with ESMTPSA id q25sm448943pff.69.2020.06.01.16.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 16:48:05 -0700 (PDT) Date: Mon, 1 Jun 2020 16:47:56 -0700 From: Bob Haarman To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Andrew Morton Cc: Andi Kleen , Fangrui Song , Sami Tolvanen , stable@vger.kernel.org, Nathan Chancellor , Alistair Delva , Nick Desaulniers , x86@kernel.org, "H. Peter Anvin" , Masami Hiramatsu , Josh Poimboeuf , Vincenzo Frascino , Kyung Min Park , afzal mohammed , Peter Zijlstra , Kees Cook , Heiko Carstens , Dave Hansen , Baoquan He , Thomas Lendacky , Ross Zwisler , Arvind Sankar , Dmitry Safonov <0x7f454c46@gmail.com>, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] x86_64: fix jiffies ODR violation Message-ID: <20200601234756.GA10511@google.com> References: <20200515180544.59824-1-inglorion@google.com> <20200519031742.GB499505@tassilo.jf.intel.com> MIME-Version: 1.0 In-Reply-To: <20200519031742.GB499505@tassilo.jf.intel.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000352f7805a70e6dfe" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000352f7805a70e6dfe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 18, 2020 at 08:17:42PM -0700, Andi Kleen wrote: > > Instead, we can avoid the ODR violation by matching other arch's by > > defining jiffies only by linker script. For -fno-semantic-interposition > > + Full LTO, there is no longer a global definition of jiffies for the > > compiler to produce a local symbol which the linker script won't ensure > > aliases to jiffies_64. > > I guess it was an historical accident. > > Reviewed-by: Andi Kleen Thank you, Andi. Do any other reviewers have comments? --000000000000352f7805a70e6dfe Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPDAYJKoZIhvcNAQcCoIIO/TCCDvkCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggxvMIIEkjCCA3qgAwIBAgINAewckktV4F6Q7sAtGDANBgkqhkiG9w0BAQsFADBMMSAwHgYDVQQL ExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMK R2xvYmFsU2lnbjAeFw0xODA2MjAwMDAwMDBaFw0yODA2MjAwMDAwMDBaMEsxCzAJBgNVBAYTAkJF MRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSEwHwYDVQQDExhHbG9iYWxTaWduIFNNSU1FIENB IDIwMTgwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCUeobu8FdB5oJg6Fz6SFf8YsPI dNcq4rBSiSDAwqMNYbeTpRrINMBdWuPqVWaBX7WHYMsKQwCOvAF1b7rkD+ROo+CCTJo76EAY25Pp jt7TYP/PxoLesLQ+Ld088+BeyZg9pQaf0VK4tn23fOCWbFWoM8hdnF86Mqn6xB6nLsxJcz4CUGJG qAhC3iedFiCfZfsIp2RNyiUhzPAqalkrtD0bZQvCgi5aSNJseNyCysS1yA58OuxEyn2e9itZJE+O sUeD8VFgz+nAYI5r/dmFEXu5d9npLvTTrSJjrEmw2/ynKn6r6ONueZnCfo6uLmP1SSglhI/SN7dy L1rKUCU7R1MjAgMBAAGjggFyMIIBbjAOBgNVHQ8BAf8EBAMCAYYwJwYDVR0lBCAwHgYIKwYBBQUH AwIGCCsGAQUFBwMEBggrBgEFBQcDCTASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBRMtwWJ 1lPNI0Ci6A94GuRtXEzs0jAfBgNVHSMEGDAWgBSP8Et/qC5FJK5NUPpjmove4t0bvDA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