kernel - Fix numerous procfs/ptrace issues (3)