Skip to contentSkip to conversation

memdup_user() and friends

RFC Alexey Dobriyan 1 participant 1 message Jan 7, 2018

lore
Share & tools
lore
#0 lore raw
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.