Messages in this thread | | | Date | Thu, 15 Dec 2022 18:05:43 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto: ccp - Limit memory allocation in SEV_GET_ID2 ioctl |
| |
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 <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |