sys_procctl(): use table data to do copyin/copyout
(cherry picked from commit 56d5323b4d7d9ccbe1ca3e620400afd165519a12)