I've read through your article "Who needs task_for_pid() anyway..." (http://newosxbook.com/articles/PST2.html) and planned to update my memory editor (https://github.com/iosre/HippocampHairSalon) on iOS 9.
With the born of rootless on iOS 9, we can't call task_for_pid() anymore so I used your alternative task_for_pid_workaround instead

However, by calling task_for_pid_workaround(), I got errors like this:
host_processor_set_priv failed with error 4
host_processor_set_priv (os/kern) invalid argument
According to https://developer.apple.com/library/mac ... rrors.html, error 4 seems to be mach-ipc errors.
Since I'm pretty new to kernel and all these low level functions, I'm not quite sure what was happening.
Can you take a look and help figure out what was wrong?
Thanks,
snakeninny