aoe: replace kmalloc and then memcpy with kmemdup