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 06B1CC433F5 for ; Fri, 18 Feb 2022 22:58:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240169AbiBRW6u (ORCPT ); Fri, 18 Feb 2022 17:58:50 -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> 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