From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16534C433EF for ; Wed, 11 May 2022 20:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345513AbiEKUJZ (ORCPT ); Wed, 11 May 2022 16:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235778AbiEKUJV (ORCPT ); Wed, 11 May 2022 16:09:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5935B73544 for ; Wed, 11 May 2022 13:09:20 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652299758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a7NawlKYu3QodR35FTRzKw5nCCPq3TD4KSebWdKcyUQ=; b=UCJy6hzaYRsCePyxYTKoqSPy/eU76DBtKjgBlQViGRhYk+RyKQMHzirUQTZJReKrek4Zv1 AuxcBooAjPvk3IQFtipJXU2yJe63ZsRDH6K0kP/216+1TUnkFP+95k/Pt8ypv0kaPnj0Mg WnkoRSxE5N/51xY3YCA8PW2HHwD6kXqxeTlkPOAdiLFo3cEaRPZAsDTWRFwcGQB7Nne/lR 362MJRSGvpMapeU/75NYRYJdMbD5V6gy3cKLmeuTomlD910O6PWbtD8LhnQ2ZUxAIwpSQl l1c3DEpC8iY3VdPr2pysLdHsoTQ4I1FhLl8X7AONGYvvlrG5bN9YvcOmELC4Fg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652299758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a7NawlKYu3QodR35FTRzKw5nCCPq3TD4KSebWdKcyUQ=; b=uf5NxaIs4bnOj4TuXkHxTZTpVVAeXu4vdNYYIg8ulJy7MYbrFRtaoo4kFuqWOR6BxZ0sqy IJi4kfKPCG2jcZBg== To: Nick Desaulniers , Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Borislav Petkov , Peter Zijlstra , Josh Poimboeuf , Andy Lutomirski , x86@kernel.org, Lai Jiangshan , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Kuppuswamy Sathyanarayanan , Joerg Roedel , "Kirill A. Shutemov" , Miguel Ojeda , Kees Cook , Nathan Chancellor , Andrew Morton , Alexei Starovoitov , Marco Elver , Hao Luo , Rasmus Villemoes Subject: Re: [PATCH 1/7] x86/entry: Introduce __entry_text for entry code written in C In-Reply-To: References: <20220511072747.3960-1-jiangshanlai@gmail.com> <20220511072747.3960-2-jiangshanlai@gmail.com> Date: Wed, 11 May 2022 22:09:18 +0200 Message-ID: <87bkw3hlw1.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 11 2022 at 11:01, Nick Desaulniers wrote: > On Wed, May 11, 2022 at 12:27 AM Lai Jiangshan wrote: >> /* Section for code which can't be instrumented at all */ >> -#define noinstr \ >> - noinline notrace __attribute((__section__(".noinstr.text"))) \ >> - __no_kcsan __no_sanitize_address __no_profile __no_sanitize_coverage >> +#define __noinstr_section(section) \ >> + noinline notrace __section(section) __no_profile \ >> + __no_kcsan __no_sanitize_address __no_sanitize_coverage >> + >> +#define noinstr __noinstr_section(".noinstr.text") > > I haven't looked at the rest of the series, but isn't `noinstr` used > in a bunch of places? Wont this commit break all those uses or at > least make it break bisection? Why so? This is still applying all the 'no' annotations and puts the code in the very same section as before, no? Thanks, tglx