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 7EA99C4332F for ; Thu, 15 Dec 2022 10:05:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbiLOKFu (ORCPT ); Thu, 15 Dec 2022 05:05:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbiLOKFt (ORCPT ); Thu, 15 Dec 2022 05:05:49 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FF132619; Thu, 15 Dec 2022 02:05:46 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1p5l7X-007SXO-5I; Thu, 15 Dec 2022 18:05:44 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 15 Dec 2022 18:05:43 +0800 Date: Thu, 15 Dec 2022 18:05:43 +0800 From: Herbert Xu To: Peter Gonda Cc: Andy Nguyen , David Rientjes , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, John Allen , "Thomas . Lendacky" Subject: Re: [PATCH] crypto: ccp - Limit memory allocation in SEV_GET_ID2 ioctl Message-ID: References: <20221214202046.719598-1-pgonda@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214202046.719598-1-pgonda@google.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Dec 14, 2022 at 12:20:46PM -0800, Peter Gonda wrote: > Currently userspace can ask for any uint32 size allocation for the > SEV_GET_ID2. Limit this allocation size to the max physically > contiguously allocation: MAX_ORDER. This is just to silence the alloc_pages warning, right? If so how about adding __GFP_NOWARN instead? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt