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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5F77AC433EF for ; Wed, 4 May 2022 16:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To: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-Owner; bh=hT0POFTjbB7fT8BJ60jabbMDmGXLUz67T8W2F7NLfNU=; b=JicXuzDR36ejLU 1bRvasQg1Lsyw/NlGmE7MXPXR/oKC5/t0lXJSgIjUyZ5f9t7dDU7xKWkdXo0Ve5NNzgVwX5DhXROB L7WmNtHyGdu0Z14YTlqHQ8evEc2aymqLIxcM8uKqK7hdBL52ccUy4dkb+F+UpBM/mziFA/MsD3Nt6 C3qzIT9APYFWO+5rooYjdO3GHL30ASCRLZfluFwKSA1YPU6gPXy2OmbjHNWr7Uvhxt4y3/yEhNCvX TsOnYIgpLg8TvC5p5OOcUZv4eXFwvED0o/LNiBLzfysm7jXfnsaT0C1e3k/gf9/eZGWnTRFy2+4na oSQj/QkmuF26NWyuVj1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmI4o-00BhuN-RY; Wed, 04 May 2022 16:42:10 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmI4k-00BhtC-VX for linux-arm-kernel@lists.infradead.org; Wed, 04 May 2022 16:42:08 +0000 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 6998C616F8; Wed, 4 May 2022 16:42:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43F5CC385A4; Wed, 4 May 2022 16:42:04 +0000 (UTC) Date: Wed, 4 May 2022 17:42:00 +0100 From: Catalin Marinas To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, alex.popov@linux.com, keescook@chromium.org, linux-kernel@vger.kernel.org, luto@kernel.org, will@kernel.org Subject: Re: [PATCH v2 13/13] arm64: entry: use stackleak_erase_on_task_stack() Message-ID: References: <20220427173128.2603085-1-mark.rutland@arm.com> <20220427173128.2603085-14-mark.rutland@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220427173128.2603085-14-mark.rutland@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220504_094207_088214_55034773 X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Apr 27, 2022 at 06:31:28PM +0100, Mark Rutland wrote: > On arm64 we always call stackleak_erase() on a task stack, and never > call it on another stack. We can avoid some redundant work by using > stackleak_erase_on_task_stack(), telling the stackleak code that it's > being called on a task stack. > > Signed-off-by: Mark Rutland > Cc: Alexander Popov > Cc: Andrew Morton > Cc: Andy Lutomirski > Cc: Catalin Marinas > Cc: Kees Cook > Cc: Will Deacon Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel