Skip to content

coresight: Don't use contextID with PID namespaces

Eric W. Biederman linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchEric W. Biederman
SeriesA-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] coresight: Don't use contextID with PID namespaces
Quoted 8 lines · Mathieu Poirier

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.