Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1787974pxb; Fri, 18 Feb 2022 15:46:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJw97zAJvDbgdkX7kRRYNeGHhSBwvLeQPMb5z/EepE+RxxexXdjzyGkyonqSxh9+PXlVJy6J X-Received: by 2002:a05:6402:278b:b0:408:e865:45af with SMTP id b11-20020a056402278b00b00408e86545afmr10136109ede.44.1645227966765; Fri, 18 Feb 2022 15:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645227966; cv=none; d=google.com; s=arc-20160816; b=JzLCNlM2SiCv421Mxs8v7uTb0JpsafhUZ+LvhBgE9jNYNMsDu+c73zSwY5yRBIar39 O90Qk+ooO9kFrW/2A+grXXDjvlGpzIylLMK+tnIUbiorSwj4+dbZ8J/Zcy6/qvmteydb HTx9ZrglsGe4pn1to2oU8yBQ1S8jtuMsEFcTCfIahZDXAHQ8d+7IkDGdN4vBzIXKJI2R SP3NMYrrqPwiNJZYO15eQuWraoKL8IIAIUw0P7AVHADqTgdPi1D/WL0JMAnAfoOH4iA+ K+QW27DZPRvkmx7WGcw/TzdWLmzi8T5xCNhyX5ZRVjPmsXbRz+cTu2NTzQWLDhJ6vXsy HkwQ== 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=3rAXJLMdbuBpc2KGmn5elYqUz5VKpJdFjvZiaEUj+xM=; b=PK6sIfjnnLg1upsdy90kaTAgoZFljtMkbvJOnaLcFAa0b/607N//2eNOd1FE3BiYA2 bVVYRMtEtVyelK2XP/yaZ4ZcRoeENcgvbyY5iZSz3Q+kqNNYPGr7f3yGo/WylWQZjIKO 6yx1U5BPHNBZOVlqY8Bao+s97JajuUePHS81QF5TCBM0prM+ikRs8Dm48uOuj5UpoUCG EVlYV4WGTa0KAM0Zj98vhQk8BMryzUZ58EXRzlBVQzXXOFIs314ocUKs7kONe6YGtzvX 7oC0WVOXwTrzwGY2W16/TVGa3ricmzE+XTrcCYp2HntB0I8fltimxGBMQstaVtjZLVMX C9Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UKljPwa5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9si7455935edc.195.2022.02.18.15.45.44; Fri, 18 Feb 2022 15:46:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UKljPwa5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240144AbiBRW6t (ORCPT + 99 others); Fri, 18 Feb 2022 17:58:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234945AbiBRW6s (ORCPT ); Fri, 18 Feb 2022 17:58:48 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8504B5468C for ; Fri, 18 Feb 2022 14:58:30 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C15431EC0354; Fri, 18 Feb 2022 23:58:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645225104; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=3rAXJLMdbuBpc2KGmn5elYqUz5VKpJdFjvZiaEUj+xM=; b=UKljPwa5vrNHvBvsx1bOPm4c9m5FItnZY3KUlPHG7Am43LIDQYG+O5ThKcnLNHbm+a/ZLp oTNlWb3x9VRylsFSb1+ECe54P3Qm8h5+hdaROvqZa8CTTStEVqspplyCj71Eb2OluKe4xj deh5+/35aYi4WkePaKrFDhNSMKu0+vw= Date: Fri, 18 Feb 2022 23:58:27 +0100 From: Borislav Petkov To: "Luck, Tony" Cc: Jue Wang , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: Re: [PATCH v2] x86/mce: work around an erratum on fast string copy instructions. Message-ID: References: <20220218013209.2436006-1-juew@google.com> <0de9b9b5800e4e4a879fddc74b67bfec@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0de9b9b5800e4e4a879fddc74b67bfec@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Feb 18, 2022 at 10:38:10PM +0000, Luck, Tony wrote: > > If so, we can sandwich around it with nstrumentation_begin() and _end()... > > I guess so ... this stuff is all Greek to me. roughly speaking... noinstr simply puts code in a special section .noinstr.text and objtool checks whether that code calls code outside of it. And noinstr is off-limits for tracing code. The begin/end things are for ranges of code and work in a similar way, see include/linux/instrumentation.h -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette