From mboxrd@z Thu Jan 1 00:00:00 1970 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 2F1C41CCB2A; Fri, 1 Nov 2024 17:40:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730482817; cv=none; b=d238Abe5GFJ+Zy4SGhG84LIQDKaDyw8ACU+x6q4L645ybUfy0KE3Pxvd6y6CLAHF3wGCExpO9bAy10IiKUlHsqqQ8YVecHEKK3Y5+VQR9k150RnrVV75oR2JYzEzH9f8932z3dvC2vtBN+ym7c/hvbFwxHXY2LOF0Lgynybpvn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730482817; c=relaxed/simple; bh=4cy3tc6b8lHBnAtp2nDIXchHjz5zfubHvkayv8p1D/k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CZw4sOvXCBvlQry7MIeLVVWisn3tYfH2woze8cvfcXlhUuwijmhQDTUC3Pho/g+NmCJyNxdFyGd0+gVpFWQsT6pthsmUhLqknqisGZ1+n80HI/dPBAygHR91OwWGZXBZsknKplfEPBhNIUOnmM3RH7phF6IMPcRVa0OcIfi5Dgc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A92EC4CECD; Fri, 1 Nov 2024 17:40:12 +0000 (UTC) Date: Fri, 1 Nov 2024 17:40:10 +0000 From: Catalin Marinas To: Mark Brown Cc: "Rick P. Edgecombe" , Deepak Gupta , Szabolcs Nagy , "H.J. Lu" , Florian Weimer , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Christian Brauner , Shuah Khan , linux-kernel@vger.kernel.org, Will Deacon , jannh@google.com, Yury Khrustalev , Wilco Dijkstra , linux-kselftest@vger.kernel.org, linux-api@vger.kernel.org, Kees Cook Subject: Re: [PATCH RFT v12 1/8] arm64/gcs: Return a success value from gcs_alloc_thread_stack() Message-ID: References: <20241031-clone3-shadow-stack-v12-0-7183eb8bee17@kernel.org> <20241031-clone3-shadow-stack-v12-1-7183eb8bee17@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; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241031-clone3-shadow-stack-v12-1-7183eb8bee17@kernel.org> On Thu, Oct 31, 2024 at 07:25:02PM +0000, Mark Brown wrote: > Currently as a result of templating from x86 code gcs_alloc_thread_stack() > returns a pointer as an unsigned int however on arm64 we don't actually use > this pointer value as anything other than a pass/fail flag. Simplify the > interface to just return an int with 0 on success and a negative error code > on failure. > > Acked-by: Deepak Gupta > Signed-off-by: Mark Brown Reviewed-by: Catalin Marinas