Note! I am _not_ suggesting to apply these patches. I only want to discuss the problems, these "patches" are questions, not fixes.
The problem is, any utrace module can't blindly do utrace_attach_task(). It is not exactly clear how we can use ptrace_may_access() check, but this is minor. We have the nasty problems with LSM, and afaics we need the changes outside of utrace.c to solve them. Oleg.