Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1716194ybt; Mon, 15 Jun 2020 07:40:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2TgHW9y9K5LoH3iSW+686+3m54/EXfj6PmaxMg3bu+oruYpHFm0088kXmj3r95Xx6NbdS X-Received: by 2002:a50:d9cd:: with SMTP id x13mr16064574edj.221.1592232003561; Mon, 15 Jun 2020 07:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592232003; cv=none; d=google.com; s=arc-20160816; b=MWDNnpI9SclknEqkyvwMEiqC6j+NTBKzjDyzxKWDniTBSJvRM/6C3iTaqfJikX6LPt tinxksPPqDbr50kR/jQeJRWwGPDkTESvRGdAmAsaOjv+SBTtdDC+d1Y+jRu7Zr4WodYt ELDDcQbBJY7RpfHdTta9868gtzBBimdfj5xxThXJ3/YGaICDNXE4ZWBUF6PPG75IcDPa hb22V2OObd6TTi3x5jUv2SRAhyQAKuUwTqmrE9ScP9Jxv278NH4ZR0VJqQSy4LRnjVZO eKYla33MhaTDtO3S2OoNWFCDCBxVnNtmGqWWMs+o4rZQmTJ2rpZPHKhRyv7FC/gG1UXT KUsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CNJqcR8O2MGARUu3ztkILAgDD+9fnJBIlgO1t0ryM7s=; b=PL/F5Gs7ORy46iF5rYkrW+LqEGvYS3e3TwkJaA8PuSArply8NJcDr82xhJPkhE546q mpNCY3swrLoXNqxJKeDXdfaBM1UWUtIjy6drinb7Z7SkyufFYObBu+FWqGtMoLxszs46 hFBtMxm8SIxDZ37wYESYa5ljqSlviPW3SvtVCXFdJMlH2l7lWMJBZghEmmQ6UNYOT9UC WgA0tXtdBoplqkW/W8g0oE1AloTk7vFRUNz/7RO7kHwXiJl2TC6qNv9DU4piBIgmIxOp grH84+T+oiuu7sFNfgtS5uI88e3onttVTN9pUUpTDhNrk7Y/iEcP6g239PfgSMMnsMvH L3Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=dt0mlxnY; 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 o5si1023576ejm.227.2020.06.15.07.39.41; Mon, 15 Jun 2020 07:40:03 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=dt0mlxnY; 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 S1730529AbgFOOf5 (ORCPT + 99 others); Mon, 15 Jun 2020 10:35:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728326AbgFOOf4 (ORCPT ); Mon, 15 Jun 2020 10:35:56 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34DABC061A0E for ; Mon, 15 Jun 2020 07:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CNJqcR8O2MGARUu3ztkILAgDD+9fnJBIlgO1t0ryM7s=; b=dt0mlxnY4n62j+Mv9nWzG0NHIt GW7jHe0cvEGK/PGx78zFjelxRFOSgYF5DPbekiklRes1pvymE1cukvtIujxjGquOjJYgNBVZfafIx SZwLnDJJErabrmLdwmjEuwUKtM9N1snlkOJIoybprJuBLmDW282HTQ0e1xh2F5d4yLIyc12v+kzNO Br3OxdwBD6qUwEuewPhVY8U/3pKyTbpE8t4G48RnSjrv0xoGAaqGOQR0cKJivsY2+8Xg7F9GwvShn dYNt0KeTJSYaUyVgm/1pHhcYzxlFljQwsvsszM9L+1ysfiiL2QUtMYErSYTJAzzXVdn1D0a5GyBON 6olVAOfQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jkqCr-0006Q2-GC; Mon, 15 Jun 2020 14:35:25 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E119C301A32; Mon, 15 Jun 2020 16:35:23 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C7117203B8172; Mon, 15 Jun 2020 16:35:23 +0200 (CEST) Date: Mon, 15 Jun 2020 16:35:23 +0200 From: Peter Zijlstra To: Marco Elver Cc: Dmitry Vyukov , Andrey Konovalov , Mark Rutland , Borislav Petkov , Thomas Gleixner , Ingo Molnar , clang-built-linux , "Paul E. McKenney" , Alexander Potapenko , kasan-dev , LKML , the arch/x86 maintainers , Andrew Morton , Josh Poimboeuf Subject: Re: [PATCH -tip v3 1/2] kcov: Make runtime functions noinstr-compatible Message-ID: <20200615143523.GE2554@hirez.programming.kicks-ass.net> References: <20200608110108.GB2497@hirez.programming.kicks-ass.net> <20200611215538.GE4496@worktop.programming.kicks-ass.net> <20200612114900.GA187027@google.com> <20200615142949.GT2531@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200615142949.GT2531@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 04:29:50PM +0200, Peter Zijlstra wrote: > Let me go look at your KCSAN thing now... vmlinux.o: warning: objtool: idtentry_enter_cond_rcu()+0x16: call to is_idle_task() leaves .noinstr.text section --- diff --git a/include/linux/sched.h b/include/linux/sched.h index b62e6aaf28f03..a7abc18a7d0ad 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1663,7 +1663,7 @@ extern struct task_struct *idle_task(int cpu); * * Return: 1 if @p is an idle task. 0 otherwise. */ -static inline bool is_idle_task(const struct task_struct *p) +static __always_inline bool is_idle_task(const struct task_struct *p) { return !!(p->flags & PF_IDLE); }