ioctl: add uses of copy_from_user and copy_from_user in kernel module

Signed-off-by: Alex Hung <alex.hung@canonical.com>