Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1197613pxa; Sat, 22 Aug 2020 15:21:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRQoYQa1Fc6XcsuqbRVWA2EeAPlw2xZhCvK+9unc/rc7qYSzGsZKAgZMurxhCPE5ba/nSt X-Received: by 2002:a05:6402:35c:: with SMTP id r28mr2324082edw.117.1598134905097; Sat, 22 Aug 2020 15:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598134905; cv=none; d=google.com; s=arc-20160816; b=llYrmvPq2x9nCsfnxAVjs1Yfrgtj5ZTbCcMe5D07mS2/5F0NGvvGpu28cfvfz0xnhK RT8gZGWnlnBbTwmDqNt4MhYp3fKVUJGeFEhYklgatMG/aWaaqUO5ltyNwpbO7EB+Fox0 CY6C8CtYVfFsFqKRObUGX+ZdSTynNNJCYKQXvHnZQ4YFUtlY5aLqt51fE85/ujZ+Qdds 0xFLL9CoaW0GQ/IsaB08lTertC+vHEFJys9s4jv3at6M8WOKjARm02GIsukueDL/VKsQ 12oqW0aBelIQpsylAl+WM6GqIXNJOw/xgkReREAc9xwGy71+JhNcKyrWasykeknNHbaf EPhQ== 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=yQ1VHHFNzEpZ1EMHBpKzmWH6fJ7+QYWkioKmOH/oB6g=; b=Kj7sva855UhuSbuDPm078KKzMUWnNeuOAr3AP8x9yHmEXj2Q1ZG6tLCnHb/CZWmsC8 1m1u+Ryej//wLQh8yiBkepCFvAZIJ12/37OclGxdmENJfaiNJlQCYMvODXyM57Lhvd/i o18GT8a+MMVNDHNFxjwZEcDV8WyWWwT/cOYKU67h4LjxBFfVGtUpS2FeGC8YewVpErMp CIlMFZFLPQ/VdqCqnYTvk6EXF26fUHNWjwaAQNXYrZrTFCWRz4ZaCuwPt8FlOVVoBCsU GZmZuVxRykQe8J/v8XwYei9vThMOyvtryzCk4vnHC4WEOASY4VVOCi83eIKPEXVIxcUR LAcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NZZaHKQm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k29si1463922edj.389.2020.08.22.15.21.07; Sat, 22 Aug 2020 15:21:45 -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=@linux-foundation.org header.s=google header.b=NZZaHKQm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728597AbgHVVPo (ORCPT + 99 others); Sat, 22 Aug 2020 17:15:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbgHVVPn (ORCPT ); Sat, 22 Aug 2020 17:15:43 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31266C061573 for ; Sat, 22 Aug 2020 14:15:43 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id bo3so7130726ejb.11 for ; Sat, 22 Aug 2020 14:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yQ1VHHFNzEpZ1EMHBpKzmWH6fJ7+QYWkioKmOH/oB6g=; b=NZZaHKQm1zDcEZ5S+gxOSlhIaTKUyw4L+YXdNay32LhUOjThUGzLN0SSv1vts24S2t W5zB2naqupRAsX+iFjttrJtQx/j9MAkNJ59zdQ7yW4ZZ/g5OxL0tHvgnyVkE7WAp7AEc g8hcrhmoT1r5styIwvbi7w4MPL+5KwfdUzl0w= 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=yQ1VHHFNzEpZ1EMHBpKzmWH6fJ7+QYWkioKmOH/oB6g=; b=FTgCfcrgYxP2qCtAE0h7WJra7DWbbgKQFUC4KboLUUmkQFrJELB50me9gFlDKrQ1VA d5q/2VVSGaqA08wiDcjpvQO/hVSOEDOV+y5acnG6+IXdZA58hZ3KsWqVNdYVRQND5+JH Y16GI5YEefCEG0VbTDhI+p5DCt1AUh3VvhCYSUzaf7avLjGYjVctaH9fQkHFqbTFoVRp iWOw8LeRSyn2o3oSXj2Ibmb4Ma6oTV+xf3Dumf8zBC0f0+nZQA+Hw3pdV3ZITI7GqWPK Dy5WzBFoKIFUAmjwssM1eUr2CZxyLDsyUAO7QbNNQNiv3jd7b7wrLwJy1bBcqFfrvslL H/JQ== X-Gm-Message-State: AOAM533cJdFjaNtRHTbvl31bemaKek7s9QA8T6jStkhkgK3hmgEzXn0T cXFwpX0EZZXkmM9EnhFjKluwgHDu2Ul7/Q== X-Received: by 2002:a17:906:4c97:: with SMTP id q23mr9027942eju.11.1598130941156; Sat, 22 Aug 2020 14:15:41 -0700 (PDT) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com. [209.85.218.45]) by smtp.gmail.com with ESMTPSA id dr21sm4239607ejc.112.2020.08.22.14.15.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Aug 2020 14:15:40 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id bo3so7130693ejb.11 for ; Sat, 22 Aug 2020 14:15:40 -0700 (PDT) X-Received: by 2002:a19:c206:: with SMTP id l6mr4047721lfc.152.1598130525569; Sat, 22 Aug 2020 14:08:45 -0700 (PDT) MIME-Version: 1.0 References: <87h7t6tpye.fsf@nanos.tec.linutronix.de> <20200813173701.GC4295@paulmck-ThinkPad-P72> <20200813180933.GA532283@rani.riverdale.lan> <875z9dioll.fsf@nanos.tec.linutronix.de> <20200820130641.GA536306@rani.riverdale.lan> <87zh6ohm03.fsf@nanos.tec.linutronix.de> <20200821230435.GA56974@rani.riverdale.lan> <87eenzqzmr.fsf@nanos.tec.linutronix.de> <20200822035552.GA104886@rani.riverdale.lan> <20200822084133.GL28786@gate.crashing.org> In-Reply-To: From: Linus Torvalds Date: Sat, 22 Aug 2020 14:08:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86: work around clang IAS bug referencing __force_order To: Miguel Ojeda Cc: Sedat Dilek , Segher Boessenkool , Arvind Sankar , Thomas Gleixner , Nick Desaulniers , "Paul E. McKenney" , Ingo Molnar , Arnd Bergmann , 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 , Will Deacon 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 Sat, Aug 22, 2020 at 11:17 AM Miguel Ojeda wrote: > > However, the important question is whether those users/companies care > about running the latest kernels. Many of those definitely do not want > to touch their kernel either. For those that do, there are several > longterms to pick from that still support 4.9, as well as other > workarounds. > > Thus I am usually in favor of raising the minimum whenever new hacks > are required to be added. On the other hand, we already raised the > version twice this year and it is not clear to me what is the minimum > version we would need to go for to ensure this does not bite us. Yeah. The good news is that I haven't seen a lot of pushback on the gcc version updates so far. I was expecting some complaints. I haven't seen a single one. That may be because people did end up finding it very onerous and complained internally on channels I haven't seen, but it might also be indicative of us having perhaps been a bit too timid about compiler version updates. However, in this case, can we just leave that old "__force_order" hack alone, and to work around the clang thing, just make a dummy definition of it anyway. Alternatively, just use the memory clobber. We use memory clobbers elsewhere in inline asms to make sure they are serialized, it's not normally a huge problem. Both clang and gcc should be smart enough to know that a memory clobber doesn't matter for things like local variables etc that might be on stack but have never had their address taken. Or are there other cases than that particular __force_order thing that people now worry about? Linus