2 results for "93e802a0d3540d6bc0a4802f54e16e47"
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?
>>76580279
Oh yeah I also found a sick turtle so I spent the rest of the weekend bringing it back to life. It's still in my bath tub but it looks way healthier.

9/10 weekend