Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1373889lqa; Mon, 29 Apr 2024 06:59:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVphUR1WDNMwkyfIcYl4tVQVYYpf9Q9HVRjNCy7sx5g8eTewRVo1+4v8yzjJ8vk0oYusXaW4KRZxhcpItr6VBjOa4EgwjMpOl1VC5l9HA== X-Google-Smtp-Source: AGHT+IEZ+BnJ/Y5drXDnORyf3xroZaEsHNquLw2K8h6UXuXG+Nzmt8sYkURN9utOhVoePhHhkmIT X-Received: by 2002:a17:90a:c292:b0:2a5:16c2:8551 with SMTP id f18-20020a17090ac29200b002a516c28551mr9689478pjt.19.1714399143684; Mon, 29 Apr 2024 06:59:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714399143; cv=pass; d=google.com; s=arc-20160816; b=UAO+0HQ75XHvzqufC5ioET+b+IM3IIm3Ay1ikhxO8yVakDC+q3ySXIqA5fUI6AdFWA CWmYtxz1GutiSPGj8jms/d4Kzy+w8F3emhEUuc9TrDBTM7UqPbMhbJjAfJTo3na3wVVc AML4nF+/xxi9StbwJIsM+USc+bMlcKdqlw1Usr2z/XpL5QVw8gkPoInTAvGtj5wu85LT GM9TCszLuSJkgtevxf1MmF6gPoJLYJU5ujDBXCK/nlyRA+OCU4eZc/qoVMrTHZXFjuRJ mSAynqj6NK83O55IgQMO7WbLcJp9qr2uOmpBtAsi/WboIT26SSZpwyVutOjD3dW790+s 2gug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ox5aOTl2u3/O1HZ+ZjOWh89n2x4TqGAsSONUIygHFgI=; fh=W3ZwuKdaXDHBN1A1L92YXmAn06zYpSYeNTXmHwGe11U=; b=iciN36XK9EVfxyw1HTSsQFglucpg6ZJ1u+6meuX/YOBLwsIRd7DTNEhafmgK7z7n9R KCMPrtExom5ZYm6O+WXM7WhRQHa+F5j+A4NkLVwuKnyCEDbTkfXlUQxDA47vpXm5Al/n LDw9CA5BaWDpoAoKfxzAohPyiprwZLY7HHKD6XF4wsQw9Z3jzIB8WaRfMQJbRXXIUl50 FrtsQgt47so7ftVXrriztOsuzAFf9VovtSdhQwEH2EBAHZPFROrTaxGDowI8n91qu4Al UTw1XJqBYklkYSUh+KuvpzWU41Uw5lfP/60PYpmwgd8oAddHomMAfBIYH7nNl0KUxHpF TgHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=I0IvXxBC; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-162341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l2-20020a17090ab70200b002b059bbbb06si6201492pjr.89.2024.04.29.06.59.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 06:59:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=I0IvXxBC; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-162341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 96B6BB25626 for ; Mon, 29 Apr 2024 13:13:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 732DF6F53D; Mon, 29 Apr 2024 13:12:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="I0IvXxBC" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 934C16A8DC for ; Mon, 29 Apr 2024 13:12:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714396329; cv=none; b=mYKezqvqz9YQCxeXxDiEPhfeTRIVmz41gzw06AaiUdMqNawzvzAq8f2rlKe20idJuJq3IdPKCQoIuki65cvQygex8LloMKOFLgAxo8i0UOn7v9pxLFmRikMFBEN3xMccuC4m5XD3FugWX8Cy7W1DPIMKjEwE8AB9B1QVx+8DKR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714396329; c=relaxed/simple; bh=z19VIn1sG6igy5dUMxCt2WQyOdvkz0w8IHOvqAg2Rhc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SmYncc1BxUyaH/G+7Yq9rgZXNn0v5gcr9Lri8gNGk/cwbHD3/huX13AMsWFK+X+pXh69kcQVS5anPZtsObNne0IXJYGY15LqDJ8SZ6fvPYw6oV+Ml8ixUaGwr50q7mTZH+H0Y+VAEgHDoctN6JziV+ftslSFHgDBjTnUxWoNqnU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=I0IvXxBC; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ox5aOTl2u3/O1HZ+ZjOWh89n2x4TqGAsSONUIygHFgI=; b=I0IvXxBCdTEiV8oJVfpfFuUtvt BExqcDkxn6HFrDIcmv5MVWJCgHmFydJw/wApnTjQU4ivtR6zuMuhbVHvgZIjhGQYoZUEobCybpZOR C8A07Z86xgAnGpUfyf2T/+/4rJWjGe7TstwmFZ8WgicG+kd+djDweRq1MV2AnJWfSFn2ODYc3uQ7L fwWFvVUY8MX+3C5038L54rPnenLAg92iwBdN/IjL+NYigOE2qmIqBRsNfBNsoaPpzx+VPX2HbK69N yIzu1aRRvWoaGRpIwuY6fdBm6KqzerhU5zevmY78awFLkLR9oUVyHi8qOIPWkdhdKCEx8A5imh8VY MDz52Dmg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60030) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s1QnV-0003Cq-2G; Mon, 29 Apr 2024 14:11:57 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1s1QnV-0000sD-57; Mon, 29 Apr 2024 14:11:57 +0100 Date: Mon, 29 Apr 2024 14:11:57 +0100 From: "Russell King (Oracle)" To: Andrey Ryabinin Cc: Boy Wu =?utf-8?B?KOWQs+WLg+iqvCk=?= , "linus.walleij@linaro.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "andreyknvl@gmail.com" , "dvyukov@google.com" , "kasan-dev@googlegroups.com" , Iverlin Wang =?utf-8?B?KOeOi+iLs+mclik=?= , "mark.rutland@arm.com" , Light Chen =?utf-8?B?KOmZs+aYseWFiSk=?= , "linux-arm-kernel@lists.infradead.org" , "glider@google.com" , "matthias.bgg@gmail.com" , "vincenzo.frascino@arm.com" , "angelogioacchino.delregno@collabora.com" Subject: Re: [PATCH v2] arm: kasan: clear stale stack poison Message-ID: References: <20240410073044.23294-1-boy.wu@mediatek.com> <292f9fe4bab26028aa80f63bf160e0f2b874a17c.camel@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Russell King (Oracle) On Mon, Apr 29, 2024 at 02:57:35PM +0200, Andrey Ryabinin wrote: > On 4/29/24 14:42, Russell King (Oracle) wrote: > > On Mon, Apr 29, 2024 at 07:51:49AM +0000, Boy Wu (吳勃誼) wrote: > >> On Sun, 2024-04-28 at 15:45 +0100, Russell King (Oracle) wrote: > >>> On Fri, Apr 12, 2024 at 10:37:06AM +0200, Linus Walleij wrote: > >>>> On Wed, Apr 10, 2024 at 9:31 AM boy.wu wrote: > >>>> > >>>>> From: Boy Wu > >>>>> > >>>>> We found below OOB crash: > >>>> > >>>> Thanks for digging in! > >>>> > >>>> Pleas put this patch into Russell's patch tracker so he can apply > >>> it: > >>>> https://www.armlinux.org.uk/developer/patches/ > >>> > >>> Is this a bug fix? If so, having a Fixes: tag would be nice... > >>> > >> > >> This is a patch for cpuidle flow when KASAN enable, that is in ARM64 > >> but not in ARM, so add to ARM. > >> > >> The reference commits did not mention fix any commits. > >> [1] commit 0d97e6d8024c ("arm64: kasan: clear stale stack poison") > >> [2] commit d56a9ef84bd0 ("kasan, arm64: unpoison stack only with > >> CONFIG_KASAN_STACK") > > > > These are not suitable for use as a Fixes: tag because these commits > > refer to code in another part of the tree that has nothing to do with > > the BUG() dump that is contained within your commit message. > > > > I ask again... Is this a bug fix? > > > > Is it a regression? > > > > Is it something that used to work that no longer works? > > > > When did it break? > > > > Has it always been broken? > > > > Has it been broken since KASAN was introduced on 32-bit ARM? > > > > Yes, this is a bug fix and it has been broken since KASAN was introduced on 32-bit ARM. > So, I think this should be > Fixes: 5615f69bc209 ("ARM: 9016/2: Initialize the mapping of KASan shadow memory") Brilliant, thanks! Now merged. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!