Check arguments in the write system call from userspace to kernel space
I am trying to write a procfs entry from the user space side.
From the kernel side iam using struct file_operations
in that .write
member which will point to a write funtion in kernel space. The buffer is passed using copy_from_user
with a len that is passed wrongly in the write call.
From the userspace I am using base64
command to write into a proc entry since the buffer iam trying to write is a base64 encoded string.