Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3993892pxb; Tue, 25 Jan 2022 00:56:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJybMtrpz+xffgIcwvS2Ki68EqiJS+fFXVEk+dqu2MrBWR7IwwlICEWSK9dGAYdAlTwzp554 X-Received: by 2002:a63:2aca:: with SMTP id q193mr7064299pgq.387.1643100994622; Tue, 25 Jan 2022 00:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643100994; cv=none; d=google.com; s=arc-20160816; b=d/ui4dgZUA2dxb5AdQXb6a7fBl6wxy5rYX2RUGzT5jElCNOfjDLtgYqp3C2qm1AP9h I4b+J6Hl+S4KdkE8klQi2vk3/UujoQbqgigppcvxfuX22CixyIMwqoc7QmzZmVzipPeM VsOrxLmlP0kX2tNt24jkq/s0IjC51+iF9S3VQ8Pbp9Ifej5ENo/P75srFUrG9EJD+2c8 EIUq5HSo+DOfjV0iP8AjiCtMXgBli78ZsPG/C/4ahF8P+qtxyTZ2G4VSWM6f5YN+xXQF 9sYtjKWjOOQhe9nnlijrae4+v8dfSJaZI8+NFXjOuoTFErna5X2K08ymXfNyO+5cCoVv 4bzw== 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=FIP6niwFiCcE5eTqnTDWmb/wrXropuAeXBH8bjmRfkM=; b=NgKJOa1XAGGbb5hJrMKYjjmPY34WECZ12XfsxMyhkBWtcN4SfVdo0QoCocMoDXODoi CKma/B3Crl5PzoGTjEZqsjK0vob32QHWsyQ4jT3aVa+LEOMhAAncY5aggVtGAGcad0dh c2Xbst8RgWR9Ytt7kTWkteHks7H5mqRrnJ4O4Fyzz/dqYu1iyAITol/0HgpQ5fsV1NN5 IGrjy+iwcp7j34Sth9gEHVPFa/OuNTPHOQCzF8Myg4ZY8eLv63lg/bbu/qlwAfr/ecjd eIm2WbgUWml8KEz0jAocsWnhcIMq9/w422i6KotcWX76oXCa6EzhohT9mihLTzRjPpCN tAlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VrwRqbW7; 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 ik8si14443524plb.390.2022.01.25.00.56.22; Tue, 25 Jan 2022 00:56:34 -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=VrwRqbW7; 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 S254830AbiAYEqv (ORCPT + 99 others); Mon, 24 Jan 2022 23:46:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S246215AbiAYDqK (ORCPT ); Mon, 24 Jan 2022 22:46:10 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57395C075945 for ; Mon, 24 Jan 2022 15:38:53 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id j14so12569970lja.3 for ; Mon, 24 Jan 2022 15:38:53 -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=FIP6niwFiCcE5eTqnTDWmb/wrXropuAeXBH8bjmRfkM=; b=VrwRqbW7mgBywTPgKBmLBf5J1mchIOr7JqxAATJJaO2MOs9YuCVpjjVNXEzsBml+wp ado8O/B5hhh9+WaOXej80757SD6Mzhj0G7C9BhHFXNvvFWjgiuy15dPxWN9LkKSG3U+6 gpE+me8Rw51avTJbIfG4JbHAU8GoEKfJyjejlkHSYuh6vLn6mpXNjFiANAPJrwEoxGwG 4pZ3FS3eS7llLKrv/WOiSSLxAyUYewvLJ1UbGnehniTPMJrS/per8DLCYHyAVFn10Dcp 0zR68towoUo99m4ogkP8Pl1ssg2Dnq6HhdFZ0vu0iKYz6Qr7WmpUyHrojf5yKD7d03V8 fGqw== 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=FIP6niwFiCcE5eTqnTDWmb/wrXropuAeXBH8bjmRfkM=; b=UH6cWyVQ3txWibNvGsPoz4zlNJio3O45X8gQ/Ko6KqOVwjDxMQEdYfLxRmzQpUdYdR rLmWm0b0+D5VjqMeOKo0iJOJZf2pBtZJUFB+At9FSww4+6Cu65QyH/Ygu/WaNvLh5qVH eU1RdiEtTvaC66HMDesFxo3hZyOSFHK2qAu796HTn959vHMHkb8JCe0gig52SNP3cTdB eo/AU4r5vlg7Xyz+hZ6S+rMvGtbj/llbCsOMaAlIWpmUM11H36EE62OX6H/d/cSjtLuk qfuad1rfNc7sELZS/Hr/t8zGHJaL9NriEJAREz22OqrKyCDfQipaXeH4iNLHVB5tjf+B dbgQ== X-Gm-Message-State: AOAM533EmMA2lfG24mWkBAgQYP0snkcqUJlAZETxQO7oLAfVtyB/vClB E1ozJvVN8w397XH4edFYAAzEbHcJAhICcPPEXo3BWVauRPV8jw== X-Received: by 2002:a2e:9654:: with SMTP id z20mr12950862ljh.526.1643067531477; Mon, 24 Jan 2022 15:38:51 -0800 (PST) MIME-Version: 1.0 References: <20220114010526.1776605-1-ndesaulniers@google.com> <20220118192256.jzk5dnceeusq7x7u@treble> <20220118230120.pivvson7qekfiqic@treble> In-Reply-To: From: Nick Desaulniers Date: Mon, 24 Jan 2022 15:38:38 -0800 Message-ID: Subject: Re: [PATCH] objtool: prefer memory clobber & %= to volatile & __COUNTER__ To: Josh Poimboeuf , Borislav Petkov Cc: 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 Mon, Jan 24, 2022 at 3:26 PM Nick Desaulniers wrote: > > On Tue, Jan 18, 2022 at 3:01 PM Josh Poimboeuf wrote: > > > > Apparently this patch isn't going to work after all :-( > > > > https://lkml.kernel.org/r/202201190632.lhlaiCBk-lkp@intel.com > > I noticed in that report and > https://lore.kernel.org/lkml/202201190702.XNSXrMTK-lkp@intel.com/ > that gcc-9 was used. I wonder if %= has been fixed in gcc-10+? Have > there been other reports with gcc-10+ for my patch? > > Boris' case of xfrm_output_resume is yet a third case; Boris, what > version of gcc did you spot that with? > > If this is fixed in gcc-10, then we can probably add a comment with a > FIXME link to the issue or commit to replace __COUNTER__ with %= one > day. If not, then we can probably come up with a reduced test case > for the GCC devs to take a look at, then add the FIXME comment to > kernel sources. $ wget https://download.01.org/0day-ci/archive/20220119/202201190702.XNSXrMTK-lkp@intel.com/config -O .config $ make -j72 -s olddefconfig drivers/net/wireless/mac80211_hwsim.o drivers/net/wireless/mac80211_hwsim.o: warning: objtool: mac80211_hwsim_tx()+0x9aa: unreachable instruction $ gcc --version gcc (Debian 11.2.0-12) 11.2.0 :( Let me see if I can come up with a reduced test case that I will report upstream to https://gcc.gnu.org/bugzilla/. -- Thanks, ~Nick Desaulniers