Messages in this thread | | | From | Andy Shevchenko <> | Date | Mon, 8 Jan 2018 19:26:11 +0200 | Subject | Re: [RFC] memdup_user() and friends |
| |
On Sun, Jan 7, 2018 at 4:16 AM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> What I propose is > * switch memdup_user() to GFP_USER > * add vmemdup_user(), using kvmalloc() instead of kmalloc() (also with > GFP_USER)
Perhaps kvmemdup_user() for sake of consistency?
> * switch open-coded instances of the latter to calling it > * switch some of the memdup_user() callers to vmemdup_user() - the ones that > don't need physically contiguous copy and might be larger than a couple of pages. > * add apriori bounds on size in the call sites that do not have those yet - > that'll require comments from maintainers of the code in question in some cases. > > Objections?
Not at all!
-- With Best Regards, Andy Shevchenko
| |