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 6EDC0C54EBD for ; Thu, 12 Jan 2023 05:40:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjALFkv (ORCPT ); Thu, 12 Jan 2023 00:40:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236387AbjALFks (ORCPT ); Thu, 12 Jan 2023 00:40:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F6204D709 for ; Wed, 11 Jan 2023 21:40:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C1F1961F6B for ; Thu, 12 Jan 2023 05:40:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE481C433EF; Thu, 12 Jan 2023 05:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673502047; bh=myBiU/3Fer12uUSduojm5vdjd3qpc1yR2KR1rOH5oCQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cfa6IT8A5au3jCqZjqcBjCcTvOOoprV5qNIFBmlF0PKBSSBi099drsUZJJ6t96E+c M/vRjdSveACDNXq+dQK8LxoyOO53jr5QEJ80xGprAh9PrQVdF4zTytLzIiTyg4Furv 237V515uXiVLZuvilikaI5rJ+QuDQRDzdaCv5o2DRlCQKtRz9P/YGgtkETYOJeSM1k vha8WKGEjhhbte+ICpUho3nvy2kIzsyR83tt3y4k5HevkP7UFoodIoYTnLesGdJfxh EliBYmIO3Auc/zToXyFzsP06IzDZPCvAqjc3jNcDsqAfAGN9HwByV3kjZvgSn+59hQ qBJpBXU9eJzzA== Date: Wed, 11 Jan 2023 21:40:45 -0800 From: Eric Biggers To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org Cc: Alexander Potapenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: suppress KMSAN reports in arch_within_stack_frames() Message-ID: References: <20221118172305.3321253-1-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 29, 2022 at 09:40:45PM -0800, Eric Biggers wrote: > On Fri, Nov 18, 2022 at 06:23:05PM +0100, Alexander Potapenko wrote: > > arch_within_stack_frames() performs stack walking and may confuse > > KMSAN by stepping on stale shadow values. To prevent false positive > > reports, disable KMSAN checks in this function. > > > > This fixes KMSAN's interoperability with CONFIG_HARDENED_USERCOPY. > > > > Link: https://github.com/google/kmsan/issues/89 > > Link: https://lore.kernel.org/lkml/Y3b9AAEKp2Vr3e6O@sol.localdomain/ > > Cc: Eric Biggers > > Signed-off-by: Alexander Potapenko > > --- > > arch/x86/include/asm/thread_info.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > Tested-by: Eric Biggers > Can this patch be applied to the x86 tree, please? - Eric