md: convert to kvmalloc