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 D1D25C433F5 for ; Wed, 4 May 2022 16:42:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353558AbiEDQpp (ORCPT ); Wed, 4 May 2022 12:45:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352390AbiEDQpn (ORCPT ); Wed, 4 May 2022 12:45:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAA332E9E3 for ; Wed, 4 May 2022 09:42:06 -0700 (PDT) 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 6D09C6173B for ; 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220427173128.2603085-14-mark.rutland@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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