[PATCH 0/3] coresight: Don't use contextID with PID namespaces

Eric W. Biederman ebiederm at xmission.com
Wed May 16 18:12:26 PDT 2018


Mathieu Poirier <mathieu.poirier at linaro.org> writes:

> Since the in-kernel value of a PID differs from what is seen from 
> PID namespaces, using contextID tracing with PID namespaces makes the
> feature confusing to use and potentially subject to leaking out internal
> kernel information.
>
> This set returns an error if contextID and PID namespaces are used in
> conjunction and gets rid of the vpid-to-pid translation function as it
> is no longer needed.

I looked the file can only be written by root.  So limiting things to
the initial pid namespace seems like the right solutions.  Especially as
the trace stream will include the global pid and be available to the
tracer.

This sounds like a simple code with a minimal chance of breaking
userspace.

Acked-by: "Eric W. Biederman" <ebiederm at xmission.com>




More information about the linux-arm-kernel mailing list