lkml.org 
[lkml]   [2018]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [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

\
 
 \ /
  Last update: 2018-01-14 23:17    [W:0.133 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site