Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1976241lqz; Tue, 2 Apr 2024 03:42:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+gw07Z374qf3g1k7dJuTchMNuHrz4d1a5E+fm1kAITQ5VJtE45ZLKTvtOHmptQEw0L5J22G6e183nAudQsXFbssRfyOctdawhNb3Hag== X-Google-Smtp-Source: AGHT+IH8It4IvwDRBMdcgwnPxgcGPeHLTIpfrrrRIa9xEfWgklnRUgV0BUM8P3ZA9TgE2lLIS128 X-Received: by 2002:a50:a455:0:b0:566:44ca:9f5c with SMTP id v21-20020a50a455000000b0056644ca9f5cmr6641608edb.8.1712054573543; Tue, 02 Apr 2024 03:42:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712054573; cv=pass; d=google.com; s=arc-20160816; b=kjUO76VZu820V+NapBT1eGW159NgoLDtWNWVUeJt6HlO0uKvPbs9gcEOn54iglgKWt jgfcd+FliBfwtvPez12nRbStTJMUuRULKn8iNZSrecoc8bDze3qD7A3HurhNfO/4bWAd j4G9v20xaZIcGUiXKzOnRbDWFD9LfHHCbDDxDFfXnTHOLeWiy8vtd2sTi6mJE29uSuwO oAzkp9QnNwm26Vq4QqSkUimxaoc01hrGxga1AYTk2uj0aJwmTTOMmsvFWbxi+PUJRKYX Ch6OTZirVZyx1IkQqHnstFixNqZqQ8LWBuOyF6wl8FnCT8cWymXZQPSvAe0NFCu+bqkX iGSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=bTjAP1Oa79bQY5vP296y5F3oGcaiNBrkRdnRZD3ar3c=; fh=6pS8AQOexcN2FB5hR1zm6YjIbwTKqe8yB1AH93W2l9E=; b=s4ThD1ogtOgW/ejya8DQibDdKT4AgqBAP8KkXxj1p5PDL4gvy0pIY7MwlKaWEDE8sg 5brwf+TG37Uujei+po5qPcyfpU0fEMkcg32+xJDbf6i0fiRkFbQV2TNmKKGiaT8WL1xK Z/fRhGkEkkxnzbQN1g5k6dbPBapiO4YClQX3BqjYnADI+YB8O+RA9iQlrbVAAEk7l+TQ He8UElcB7zn800msNh/5NhfVXjDsVUFgxt3ViU/SrFjKCx7u2D20PabYWJRC0P20MaJ3 XHtGz9qmCOx8E6u+ynpSkRnX62zd62Mqb6RQJrpQL3SZifIEfzmj+o9nhL4e+n4SxepJ jCOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q6xSpSc1; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h9-20020a056402280900b0056c07c68aabsi5580660ede.380.2024.04.02.03.42.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 03:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q6xSpSc1; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 42D941F25858 for ; Tue, 2 Apr 2024 10:33:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 151B04CDF9; Tue, 2 Apr 2024 10:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="q6xSpSc1" Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9906FDF6C for ; Tue, 2 Apr 2024 10:33:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712053993; cv=none; b=ZlCqwDGsN7wuuS3Maj80h8JHAX7O2vXriQeEEHUr27n2o4kaRYTFzzkiZCPGYY70wtaCqnHad21JeBOZVxw/6qgEy51pngtY4mX5iKq5QZYXGWQGl3rNQNpe3DthTRJcuvE6JPP94CmEPKnYG6+npwwl25suu/ptIIE/nBSOBjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712053993; c=relaxed/simple; bh=bTjAP1Oa79bQY5vP296y5F3oGcaiNBrkRdnRZD3ar3c=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pp1SZLHajY00ae42J5IPLDvDFTVcV2XNRRp4AU7foqHEUc4VQeExd9Gfr/tJYGgFSaKjhlImSn+q64oWi2YeM9paS7mYYglx4dfeSP6zlk/eqI4Ai/EXnM4QjXJunOCb6X6i1Z11n3mUGjUf94WWg8hVM+NWBzYSkfYVNC5yaHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=q6xSpSc1; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dc74e33fe1bso4562624276.0 for ; Tue, 02 Apr 2024 03:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712053990; x=1712658790; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bTjAP1Oa79bQY5vP296y5F3oGcaiNBrkRdnRZD3ar3c=; b=q6xSpSc1Cw5xmO4pUFJFgdUgI77Uu2zsSViYGYXVVys3ODKTZnxf5GabeyacgJzVRE lGcLUeGrDc4YksDAkMV7fMvwkAF092vm7/vdDKNI1V3amGanXVzUz8jGYh8wtaoIqQ9v N2UdQiVgPsWX4nIaRraShUKC6ahIGsG+3JSBN8JwOAfFv/8kqiOgfMQtwvQgMCaJlKVG KWMfCYTpotS+pNAffil4oES3IkqAAgQUioS+XBafeEq8vJU3pKIS2H8tKdvd90xgewll 1p8BqxXNZk5af/3Jr8QYiNZekZ4xLL4cPKiN3S7Ml7vJryPlHWRtARXVCAJig7w09OVr i23g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712053990; x=1712658790; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bTjAP1Oa79bQY5vP296y5F3oGcaiNBrkRdnRZD3ar3c=; b=NQjiqYT4Nk+Bbz5Q2GbO00XhJgUTyyIqLlN3NhIkTKO58HrC6aXf95l1vecVOH9O1C 9kU91+FnXUSh0z6xemt39dic/NxlQWrMJbkwxMoEJIvVWi8DGTK6G0gHLUYeK8eWiqPI wX6ymnAu7f8yq3pLaJTuwust0nDsOZsS0IRhCH3yuLOBB6y/WJ04tnotKRXhBIncNBBA uSWtkG76lrWkAcaJHXUDuMeoT3XCQcBto9+JwwY5RK1V7vreg9vSlEVXxxc8FGn9wg8+ 977hcdlWdOyj1vAswWgzUjbBiMIgNplAs5EUSCILuyVqTpdEagHToE+Y8AZf/pstiG8A 4Rgg== X-Forwarded-Encrypted: i=1; AJvYcCUcraFV+it3GoHqEJ/EyWJwwPnrB8BC0iagknfxcAmCCfh6d4yjOXoa3nE7mZoY7BM5Bq4iiUVBjO89VsE+jil9Q3XXLNWzuPCGkPS2 X-Gm-Message-State: AOJu0YzWazT5A046QS3N6hbbvc0tOmbNRCW/SoqmSHRZgsLq9IMBXvsy +Omq+qsrpUJZzyWcl/q13FKND/e7rqizQ+hx9B/6kjdl4G27xCO72q2yE4GVmxM3CFx3wr0nezf tFN3ESf2Yl1DgLaCsCG5/F3Oy05+z7coEZ/vySw== X-Received: by 2002:a25:2688:0:b0:dcc:3a3:9150 with SMTP id m130-20020a252688000000b00dcc03a39150mr10863236ybm.22.1712053989458; Tue, 02 Apr 2024 03:33:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231222022741.8223-1-boy.wu@mediatek.com> In-Reply-To: <20231222022741.8223-1-boy.wu@mediatek.com> From: Linus Walleij Date: Tue, 2 Apr 2024 12:32:58 +0200 Message-ID: Subject: Re: [PATCH] arm: kasan: clear stale stack poison To: "boy.wu" Cc: Russell King , Matthias Brugger , AngeloGioacchino Del Regno , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 22, 2023 at 3:28=E2=80=AFAM boy.wu wrote: > From: Boy Wu > > We found below OOB crash: (...) > We find the root cause of this OOB is that arm does not clear stale stack > poison in the case of cpuidle. > > This patch refer to arch/arm64/kernel/sleep.S to resolve this issue. > > Signed-off-by: Boy Wu With the commit context pointed out by Mark Rutland: Reviewed-by: Linus Walleij Yours, Linus Walleij