kernel niggas:
do you know what the proper procedure is to copy a string from userspace?
right now I'm doing
#define MAX_SIZE (1 << 10)
kmalloc(MAX_SIZE);
strncpy_from_user(dst, src, MAX_SIZE);
but I'm wondering if it's worth it to have a fast path, where I copy into a buffer[64(?)] in the stack and if it is full then then I allocate MAX_SIZE. Or if doing two access_oks is worse than one kmalloc?