Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp188666iob; Mon, 2 May 2022 16:41:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkpuNfURg0XOt6X2zIEF9pn5stG8KpddCsq16FW2GDINXcHB5IB+9CUCWeH9Yl/4YjWh7v X-Received: by 2002:a17:902:9a42:b0:158:bf91:ecec with SMTP id x2-20020a1709029a4200b00158bf91ececmr14212624plv.115.1651534869074; Mon, 02 May 2022 16:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651534869; cv=none; d=google.com; s=arc-20160816; b=cgoQ92EYdrHmLZJZqNeDQrDibrt+XuM7CFDNRWgY/rXzel90wvhSe+xHB+b36N1uic O0Zv99oAal9dpoQvtoIFenXlrZ6dAmVK1yYLIo7us6MAJ2cL3rHxY9pggXAnpBUO6kpO wSreKPew3Spl8gSOYDApiurbjkuU5JmhCKyUmo73rHmstpu66vqTFCUBYwDLlro7za7X jA1pHR9to6D0Sm/gdiubOOquOs8WHYbJw+yvFkx950FAf04IlQqqeFe5awdW4vpYDwKr /1mtLXnVBfKxFbz+PRpFt5NZX5Rrwi98r+r7ME5aeM0STGx/qMWeFYN5haO3e7kYGE4W blZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o31KDKAjASCg4O6xIHCxaz/umy+aWKrPUxdDjD2fwoI=; b=dUMQzoQU5mlcvamjstJmRIEIUUXMsjApvLPZbnBqQgXLfomWhxdogjIqUWKpT4dUFE eG3WMQV6u5xDpRn+I38d82zfu5HiqhWxM0UCMtcMJeVVcotcpCUb/9jgybSray2f7cuE ZzDZZffbU4MG+rmsXqIi6B2l7/5W+drWTdjFZvRUO4j/VJT27tgVcIjXpj8pDodezvAQ gpQ8zWOQPKV/sJb9zMH+R4JJIDPQeGXv8jnuK36J0cxUQnjKIH84ad/+YjvA9rV8pN4I enD5tDEDdY/Wp6qrC1YgKG3Ztn2ELLyPI3+vCPIpxIRtJvd1bvJy5f62bciWSNFBIGfR zaUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OoSAHJ+U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n15-20020a170903110f00b00153b2d16616si10649492plh.542.2022.05.02.16.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:41:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OoSAHJ+U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E7C283335E; Mon, 2 May 2022 16:40:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386956AbiEBSv2 (ORCPT + 99 others); Mon, 2 May 2022 14:51:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349799AbiEBSvZ (ORCPT ); Mon, 2 May 2022 14:51:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07FA2BE05 for ; Mon, 2 May 2022 11:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651517275; 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=o31KDKAjASCg4O6xIHCxaz/umy+aWKrPUxdDjD2fwoI=; b=OoSAHJ+UstuAtQFpGzBZjzbwZpFAC62V1x9nwTXZ9lIJiZOfUBJWzrAyp0nWnzV5Myi0t8 wUk1elo4GPkcvGHHz1w9qllBjzDPtnBReVY9bAy/K43KfSCNItFn/hXcCt/+KXP4l8fQN8 LdJJ2UsU9mRye5CFOqyXiTptlpPPwMY= Received: from mail-oa1-f69.google.com (mail-oa1-f69.google.com [209.85.160.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-110-2nisNgt9MziPI563ZzJVNQ-1; Mon, 02 May 2022 14:47:51 -0400 X-MC-Unique: 2nisNgt9MziPI563ZzJVNQ-1 Received: by mail-oa1-f69.google.com with SMTP id 586e51a60fabf-e1fa5c533eso5054590fac.19 for ; Mon, 02 May 2022 11:47:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=o31KDKAjASCg4O6xIHCxaz/umy+aWKrPUxdDjD2fwoI=; b=la1+RIuAd1AaFROAK3UJCKfdoaRAinsOdABOpg8m9tfti5H4Ez3ZRJLeN2Rye8p4dJ stCczsV16dU8ONCe4OrkGt/Nyd741fllpMdtaMbIKMIMTU37pGf1V3nlyQvjYjna6N35 tH+Q5GHJ1RgmdPmG35xcrDFRlJkSd3nBduGCqkJr9y7D9kgKe/9DJ24sE2h0nwK3rqAk YPrp9xGKCBXY5jZtIxNu3Pq/7zrAznL/K1ozwpqbOSULbOjTLhxS4y3gdhmFrpwgHgGS tuMpRXya59aZKlI7rteqW/D5m71HRqwzpXrKa1f7OI7QNtItdEdzQtZR3zpAJWH0z0M8 9Qqg== X-Gm-Message-State: AOAM5331M1yRXo86jhCx2erScP28b7L8uIYWq7kQYmT4f9sOBh5URBUj BgoIChMV7qmVjajNm9pZxkUCir2OcAjwCaBqTr3MOSKy5s4pPX3l4HFBo+fPtesBdl0hhD93yBr 9flB6nn03rM8Tg47gKqMEQXSG X-Received: by 2002:a05:6870:819e:b0:e9:8de4:5ff9 with SMTP id k30-20020a056870819e00b000e98de45ff9mr266061oae.70.1651517271069; Mon, 02 May 2022 11:47:51 -0700 (PDT) X-Received: by 2002:a05:6870:819e:b0:e9:8de4:5ff9 with SMTP id k30-20020a056870819e00b000e98de45ff9mr266055oae.70.1651517270805; Mon, 02 May 2022 11:47:50 -0700 (PDT) Received: from treble ([2600:1700:6e32:6c00::a]) by smtp.gmail.com with ESMTPSA id z21-20020a056870e15500b000e686d1389dsm6135246oaa.55.2022.05.02.11.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 11:47:50 -0700 (PDT) Date: Mon, 2 May 2022 11:47:47 -0700 From: Josh Poimboeuf To: Peter Zijlstra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, elver@google.com, jbaron@akamai.com, rostedt@goodmis.org, ardb@kernel.org, kernel test robot Subject: Re: [PATCH 2/3] x86/cpu: Elide KCSAN for cpu_has() and friends Message-ID: <20220502184747.cr5ssem3g4mel4qq@treble> References: <20220502110741.951055904@infradead.org> <20220502111216.290518605@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220502111216.290518605@infradead.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 02, 2022 at 01:07:43PM +0200, Peter Zijlstra wrote: > vmlinux.o: warning: objtool: enter_from_user_mode+0x24: call to __kcsan_check_access() leaves .noinstr.text section > vmlinux.o: warning: objtool: syscall_enter_from_user_mode+0x28: call to __kcsan_check_access() leaves .noinstr.text section > vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare+0x24: call to __kcsan_check_access() leaves .noinstr.text section > vmlinux.o: warning: objtool: irqentry_enter_from_user_mode+0x24: call to __kcsan_check_access() leaves .noinstr.text section > > Reported-by: kernel test robot > Signed-off-by: Peter Zijlstra (Intel) An explanation about *why* this fixes it would help, as I have no idea from looking at the patch. > --- > arch/x86/include/asm/cpufeature.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/arch/x86/include/asm/cpufeature.h > +++ b/arch/x86/include/asm/cpufeature.h > @@ -51,7 +51,7 @@ extern const char * const x86_power_flag > extern const char * const x86_bug_flags[NBUGINTS*32]; > > #define test_cpu_cap(c, bit) \ > - test_bit(bit, (unsigned long *)((c)->x86_capability)) > + arch_test_bit(bit, (unsigned long *)((c)->x86_capability)) > > /* > * There are 32 bits/features in each mask word. The high bits > > -- Josh