Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp708457pxa; Fri, 14 Aug 2020 16:07:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwicppqcY5D9Tj8Vv6rdID9QKlzR+sCEVd2kSfjf0s9YVrggXybbPjaACenf5vDra1o+oVn X-Received: by 2002:a17:906:af51:: with SMTP id ly17mr4482776ejb.81.1597446439848; Fri, 14 Aug 2020 16:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597446439; cv=none; d=google.com; s=arc-20160816; b=Zc0bxLoNPgzrvQpXt6t5Q2ipcqQ39rJSRYC3JAaf4/Gs9gvmRHMEIc9FpeLGgJ3UBc tAswzIQ/RJ3WtjoBNfza/7MU0slj6+ZO16aNwo21O3js2HZ96MKR+XOF8MGN2ooDtsiJ KGjLwO5aqi5YqUBe3ANN1xHnxNPhdFQIj5lZZmfQ+cKqvi7gQdR5Bx2Yiosc4TLLG/UP L0n1SPo+gOYuymgRcQVrUjfcig9AeJ0UYVV3eajvrAvkqQmoKI37Tv/zKXFSygoxLDtA 6oi+J4HGm5igjTnLwrMwyxwMQ7o9lA9FWvMdAbYy8MkJUFMFT+eX9fk0s+jp84I3rWe7 /aXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2WvgDPVRwH/G8nEvnfho4t/Ss9/BmgYz8A1j9g02WnU=; b=FRq3JGwS7VmPPQGCPFwK7/z9In/Pj+P3rCzzKox1cWBm3zWKScmjSSC6CHU3yqSCs2 hlJ1gwmVfzOLbHd/7420D6VFdmSr3vh0aIYU7ToQaFkmlIT8aJhgWIUqRTLcDJIIcXn9 WYuP4Xs/tC6jx42MQag7xuAqwg1VIUd1xxz2hIjq/USia26YWN176L5bWqQymMutmLYa NEQWL7qx+YwddhRS/Q0vDcV3kF3G2/FLNKNts6MQJPnYVs9xkr8ch+dSMNuebPOWSIef zXKsRqTUhpTWzd2+NWmQc44XHNJ156wMB3GihKOE17vEtjKs4x05u/XiZGPjFiNBCLG4 kw6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OQpryg9I; 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 y24si5949935eds.240.2020.08.14.16.06.57; Fri, 14 Aug 2020 16:07:19 -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=OQpryg9I; 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 S1728212AbgHNW5p (ORCPT + 99 others); Fri, 14 Aug 2020 18:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbgHNW5o (ORCPT ); Fri, 14 Aug 2020 18:57:44 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BFE7C061385 for ; Fri, 14 Aug 2020 15:57:44 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id l60so5083450pjb.3 for ; Fri, 14 Aug 2020 15:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2WvgDPVRwH/G8nEvnfho4t/Ss9/BmgYz8A1j9g02WnU=; b=OQpryg9I4cG/dSW/SrgZxBRXXyp/Qj/GulMsUn3Q+9vXeng/xz7Lc7t16CW/uAg3Iv rFYDgSt+ze848j3oqtMs70gzuxOPhtP/KpCogeVWD5PqKlval6qRv/LBE10EZal9gket SaHnJ037Boip19JM1nN8pR3WsfakUIxhOOGH/INxraGPJoHeMR1o7BHORHVQ1hwNlzyc wVDWVNveOtQW1vFdT0E/WOMR5bx9gsmOyImAXbhT7UFyRNmqXD2x1uz3hnMY8GsgzS95 DxGpXG9PJ0BnVX4EQWgNUexBboinfatQII+LuPljY502D05CCwTUq1DVYRho3bKi0LvV v8cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2WvgDPVRwH/G8nEvnfho4t/Ss9/BmgYz8A1j9g02WnU=; b=HtX1VhcPbbRHBb0tGEf15XdCs9msrWKECyEGH3Qmjku/Vf3RYMLVqlMUYSY7pzQvC9 U4Ip/uBc1XuvIThzXpreHTs6u53+I0/R6ByealZUouHULB5nI/aWgcaaEcVu/qGaT45u znBx2HXIapaOtic6iTEu6/ojlv01OsBbl18Qbk9YbthOvEGxX++mIFbT6nho7ruUomxK tnMEd2h88BeI97yuHT5xi2yNT/J2I9WVS6+7VZgi8lWqePGFlcNAQvUkwqqv85Gqlr7R ktNyHdF32cjxfIpBgTyl7QxMeLUG3VlgdBCn/4r/vzIOkPj2PdUuYaxqy/NS6yS86nqn ozkg== X-Gm-Message-State: AOAM533PW4lbr4ycnFm/kn6XBtimswaoDxnK12hchuODY+c31D1x1PpG maQZqHtG5N5IloZ0VJldPsXxqxLc5kUVdKopVgYUMg== X-Received: by 2002:a17:90a:fc98:: with SMTP id ci24mr4046673pjb.101.1597445863888; Fri, 14 Aug 2020 15:57:43 -0700 (PDT) MIME-Version: 1.0 References: <20200527135329.1172644-1-arnd@arndb.de> In-Reply-To: From: Nick Desaulniers Date: Fri, 14 Aug 2020 15:57:31 -0700 Message-ID: Subject: Re: [PATCH] x86: work around clang IAS bug referencing __force_order To: Sedat Dilek Cc: Arnd Bergmann , Peter Collingbourne , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , "Kirill A. Shutemov" , Zhenzhong Duan , Kees Cook , Peter Zijlstra , Juergen Gross , Andy Lutomirski , Andrew Cooper , LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 14, 2020 at 2:19 PM Sedat Dilek wrote: > > On Fri, Aug 14, 2020 at 7:29 PM Sedat Dilek wrote: > > > > Thanks for the proposal. > > > > I have adapted it to fit my patchset against Linux v5.8. > > > > Both Debian's GCC-10 and a snapshot version of LLVM toolchain > > v11.0.0-rc1+ seems to be OK. > > > > Yupp, OK. > > I was able to boot FreeDOS 1.2 VM in VirtualBox GUI. Hi Sedat, Apologies, but it's not clear to me precisely which patch you tested. Can you please confirm whether you tested: 1. Arnd's patch that started this thread. 2. My proposed diff adding -fno-addrsig to CFLAGS_powernow-k6.o. 3. My proposed diff removing __force_order from the kernel. I'm hoping you were referring to testing 3., but it's not clear to me. I've been comparing the full disassemblies of vmlinux images when built with Clang with 3 applied (they're no different, which is a pleasant surprise, I didn't think kernel builds woulds would be fully deterministic given the sheer amount of source). I still need to check the compressed vmlinux image, and various .ko's (XEN) that use these read/write_cr[0,1,2,4]() functions, and then check them again when built with GCC. I'm falling behind a little trying to get our MC organized for plumbers, as well as the end of intern season and beginning of bi-annual "performance review" ("not stack ranking" I'm told) at work. If I don't find any differences, or if I do but don't find them to be meaningful, I hope to push a more formal patch (rather than just a diff) maybe next week. I'll include my findings either way; if it was 3 that you tested, I'll include your tested by tag when sending. Otherwise maybe you can help us test the more formal patch next week? -- Thanks, ~Nick Desaulniers