memdup_user() and friends
Quoted 1 line
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.