Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6536557rdb; Fri, 15 Dec 2023 01:02:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhaEo+QKGBKn8NoDV945IiDwcxu/9InncJlDOK9t4VB9IeKo554+QnciCUa8UW1OPOEdds X-Received: by 2002:ac8:4e83:0:b0:425:4043:50d0 with SMTP id 3-20020ac84e83000000b00425404350d0mr16474865qtp.95.1702630936082; Fri, 15 Dec 2023 01:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702630936; cv=none; d=google.com; s=arc-20160816; b=nYuIv6rACXXgSCwjyqoOg5WqgIS9WENyrAFxbF6uv1hETFU9hbWNby+WoBYTukc8vQ jQJcwNQbhj1GNUS8hkCPVh3C0Hq5JFIgqIOFj2/WLKp2StEnWuHSVcIuJYDkYKjt8Vm4 WsnA90z9PZ/JBc89LuR8XIZTwQk7dwCpgdBdD9zrcKMrEYByd5aFByvVu5Ka8lD9Qt9O YYNEYI1UMes/z/1nAXL+CFE3nb/rumViOc4MM/gSIjKGrtmbN7OHCiosNCyjFQT3jMGQ scIUtvALEl/J1FF6ngv0/x7EbgyJ2YhCR0YbFQPy7BlVNCH9Uh20D8HrYjOaWI6kQUL+ nOWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=GxjorUvjVfFdNsGcr47vxy9wVmeBkGFklppC39F4NSE=; fh=S6fFz52YCbsdznBjLtCSQN33hfexsgsFtw/Q3a/cb80=; b=QzwqhEt9ovmkp/18N/l/Sm/nHbqNpH4zDp/e3xV+O4bZgeO73KX4cvikxul/0UNYys oVFGEpHZQLJSWplEEOViV34nv9Iy33bztYVId5sO3/IJpAShtpYKkMdg5jksy2gDhacG vU5h1ZPYjgy5olx8J8XU9SxkqLRLjO5hqttDylRfnXgIX2vHVVLX9uUKS2QqhJTTkTs9 CMt04lX+NnEtbrciSrBCzd/7LXUog/2ijrPiDuVol7CExH+g/A4RwGu5c+njM7pglw9k HjkLIAyjLzti7hQoqeJY2mM/YGfqQspicQ3Li+Lyde0L40sVSiruDzoscL++AVsNQ934 Hahw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WvhpFINa; spf=pass (google.com: domain of linux-kernel+bounces-653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fy21-20020a05622a5a1500b0042393f0e127si17920144qtb.536.2023.12.15.01.02.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 01:02:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WvhpFINa; spf=pass (google.com: domain of linux-kernel+bounces-653-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C0E5C1C22848 for ; Fri, 15 Dec 2023 09:02:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B34118AE8; Fri, 15 Dec 2023 09:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WvhpFINa" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E35518AF0 for ; Fri, 15 Dec 2023 09:02:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1B06C433C8; Fri, 15 Dec 2023 09:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702630929; bh=GxjorUvjVfFdNsGcr47vxy9wVmeBkGFklppC39F4NSE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WvhpFINabgM+XrOxUOlTLD7JyTXZTYt5+i6n4Cj4VpJYYN1VMPzELtKouqYtG7ZNh +Cj+Jem2vI8v7Iaiz5xwtT3mAjL1oEg2fpbF41FukjzyKR5p6x77tVYShNS7LMFXMH kxKAuf5YQPcpHKjYstLIfOhe7pGH3EjUxS24/u7wLDwDJxuskG12ugHgYqw1sge2qE LySRkfD51BOthJ5zdAgjLdKEM01qVO/1JMSJuzTM1IJBCgmfZrvUg1Jl949eSTGag+ XLV6e88ig6U6QMzDuBEptw2qGt/JQBu4RylOHM7/GCw4oR+zznkmfbTD/L5liaHXNA e7JVS+Bijp1uQ== X-Mailer: emacs 29.1 (via feedmail 11-beta-1 I) From: Aneesh Kumar K.V To: Nicholas Miehlbradt , glider@google.com, elver@google.com, dvyukov@google.com, akpm@linux-foundation.org, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu Cc: linux-mm@kvack.org, kasan-dev@googlegroups.com, iii@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nicholas Miehlbradt Subject: Re: [PATCH 09/13] powerpc: Disable KMSAN checks on functions which walk the stack In-Reply-To: <20231214055539.9420-10-nicholas@linux.ibm.com> References: <20231214055539.9420-1-nicholas@linux.ibm.com> <20231214055539.9420-10-nicholas@linux.ibm.com> Date: Fri, 15 Dec 2023 14:32:02 +0530 Message-ID: <87wmtfu9dh.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Nicholas Miehlbradt writes: > Functions which walk the stack read parts of the stack which cannot be > instrumented by KMSAN e.g. the backchain. Disable KMSAN sanitization of > these functions to prevent false positives. > Is the annotation needed to avoid uninitialized access check when reading parts of the stack? Can you provide a false positive example for the commit message? -aneesh