Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp903172pxb; Tue, 1 Feb 2022 12:49:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIypr+TT158S7inQQHsL5G1vGAxQjmywBKy0elxMTwnSEWAg/mZwVAu4uiTUW+FJrC1XlR X-Received: by 2002:a17:90a:b013:: with SMTP id x19mr4380847pjq.32.1643748582454; Tue, 01 Feb 2022 12:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748582; cv=none; d=google.com; s=arc-20160816; b=dsmlE/sWEcbXE44LpbjZQtjhbPGFHKBI9Rv3Rjz7V2rX7h/f0i7fHhCrgUlBfnJxbz 6eJCzJmSyA8+9Qq9jLAIAq3vO2Sp5tAwRzBsE1e3ymMzw/ZmUtz9hS+O96/Ud9VozwYi eTCFwNZ34ffyYwQHFoBl/CRYNlN8esbo5j9MlemjcVGyQF/ZAIsK8qLv8uqjX4Ht+o9x pJP8abhpJXFEJ+2YfaLUrHSLEmcwk2eQ05GJjoh8xOr/Sv1KvaqMLM/qjKialZoawPCd dWj/gNNXRICQ0UBFzVObS0yTK0q+BJzp165drC97FqHQS/+TpWCec+qZtziVVHSjitKG q0yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OP8lq+CNNstsD6MdqxQkt/+Qf2pjO5hiMrphojuZwoU=; b=ZH0Nt9uDghj5NMs7u9SbsPm8Ctf1r543qHIigm/ffvO2lAybo9GwaFNxGX28GiSHTq BiZuhIYLI21UWn7WNHRM5thS/8eHfwJkVVRUXmh3KLwAoq2j/oI+nWwZRRktSgytVEHx YiPYOsZovvGAJX83JwIvacpvCMSC0aqmPw8hEkgV6fc94cQznAGZrDljlkAAAiut89mY tUucU3gBMBvy+xqWiMp5hYoZqX5NBi4SlPpodMSB7c0+AUaW14bK9efaoq/cgY+RXBgy fqr3pll9d4rIR+jAHVijBTcOe3W/TraQpTWern8c0JpohqPyRrNwR5475UQihPA+Db20 IFmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=N1MCHAoW; 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 j32si17334878pgb.452.2022.02.01.12.49.30; Tue, 01 Feb 2022 12:49:42 -0800 (PST) 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=20210112 header.b=N1MCHAoW; 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 S1379234AbiAaUpv (ORCPT + 99 others); Mon, 31 Jan 2022 15:45:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350866AbiAaUpe (ORCPT ); Mon, 31 Jan 2022 15:45:34 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6579DC061741 for ; Mon, 31 Jan 2022 12:45:34 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id t7so21111310ljc.10 for ; Mon, 31 Jan 2022 12:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OP8lq+CNNstsD6MdqxQkt/+Qf2pjO5hiMrphojuZwoU=; b=N1MCHAoWUOlYLJDlA8wsBKE17FbxUlNpj1KofdDJGYesdQY9l1rVYYgINrRkUaFZBf KZNoHtazLOFrvgO9HPbhkQGgMOkNa9WzmFHFsFTH/M9qA1u3o9csud+Tm3UjgZ2VXRRD MBJdqlKmhqMj9/7feMzK7v3gFyZRAULTAPFyDEKazMIngNZsWxfMaLlpzKLS16prACCB asGdmQF+SIIfQ7UskfAH9aJ7LdR7aWz737U8q97afIlghe20cwOmwee5S9cmVI84d7ND wNXe1uIhJrSlDO6Uso3Aw5t0JLY2/d0ne0JionMT8Xtu2qOll51EJMY/rmU8W8unvURw tMsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OP8lq+CNNstsD6MdqxQkt/+Qf2pjO5hiMrphojuZwoU=; b=zSmzH3nYSa4O7CD5AKsZ4hMUexbaVYRsIoBCGR0jkCzrq38k08Q6SFClDZ1Vv03Syj 46f/fFK1ujJw2GrQs3DVS42NA7jgbBvV9YUt9ZNdUlUE8az4bSXPfvYC5iKqy66jfET7 3hFQUXh6+2xHkR3g8auwbPowOTnndGK0btGAK16c4LEUNBLE9mtOhDArOhMzbM4YF0we cIBUrCw+UDLaLo1gE48BS7+8hfopA+kJO+4zJOku+ZEHXQw+TeDes/HCqmcLyxOgwtVZ 8zBfFSc8lJm6nBNZhenM0rWsi+ge9nvY659bPC82NY8zhoWv4l/MKWAnkAT8g77kNm8Q t5jQ== X-Gm-Message-State: AOAM530x/MWQ00QEAe5eBwk4eFqfaCe28CcB+upFJHo4MSzy351tVBbJ bxsV3jE99pVMZesHudAi3j4XmDzhkcK1IRtGyuv3+w== X-Received: by 2002:a2e:954:: with SMTP id 81mr5661437ljj.198.1643661932405; Mon, 31 Jan 2022 12:45:32 -0800 (PST) MIME-Version: 1.0 References: <20220114010526.1776605-1-ndesaulniers@google.com> <20220118192256.jzk5dnceeusq7x7u@treble> <20220118230120.pivvson7qekfiqic@treble> <20220125233128.GT614@gate.crashing.org> In-Reply-To: <20220125233128.GT614@gate.crashing.org> From: Nick Desaulniers Date: Mon, 31 Jan 2022 12:45:20 -0800 Message-ID: Subject: Re: [PATCH] objtool: prefer memory clobber & %= to volatile & __COUNTER__ To: Segher Boessenkool , apinski@marvell.com Cc: Josh Poimboeuf , Borislav Petkov , Vasily Gorbik , Linus Torvalds , Ingo Molnar , Dave Hansen , Thomas Gleixner , Peter Zijlstra , Luc Van Oostenryck , x86@kernel.org, llvm@lists.linux.dev, linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot , Nathan Chancellor , linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 3:34 PM Segher Boessenkool wrote: > > Hi! > > On Mon, Jan 24, 2022 at 03:26:36PM -0800, Nick Desaulniers wrote: > > I'm more confident that we can remove the `volatile` keyword (I was > > thinking about adding a new diagnostic to clang to warn that volatile > > is redundate+implied for asm goto or inline asm that doesn't have > > outputs) though that's not the problem here and will probably generate > > some kernel wide cleanup before we could enable such a flag. > > Its main value is that it would discourage users from thinking volatile > is magic. Seriously worth some pain! https://reviews.llvm.org/D118297 PTAL -- Thanks, ~Nick Desaulniers