Re: [RFC] memdup_user() and friends

From: Alexey Dobriyan
Date: Sun Jan 07 2018 - 03:49:12 EST


> Objections?

No objections in particular except the amount of mirrored allocator
interfaces is getting pretty ridiculous.

Another thing, blindly changing kmalloc+copy_from_user to memdup_user
can be wrong because of GFP_KERNEL_ACCOUNT if the memory is allocated
persistently.