Switched to compat_alloc_user_space(), killed kmalloc and set_fs(), annotated, somewhat cleaned up.
Attach a file by drag & drop or click to upload