diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2021-03-08 17:11:43 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-03-10 09:16:47 -0300 |
commit | b410ed2a8572d41c68bd9208555610e4b07d0703 (patch) | |
tree | b4d125f57b82e103937bc9f90f240a71d0137c5a /security/lsm_audit.c | |
parent | 05a59d79793d482f628a31753c671f2e92178a21 (diff) | |
download | linux-stable-b410ed2a8572d41c68bd9208555610e4b07d0703.tar.gz linux-stable-b410ed2a8572d41c68bd9208555610e4b07d0703.tar.bz2 linux-stable-b410ed2a8572d41c68bd9208555610e4b07d0703.zip |
perf auxtrace: Fix auxtrace queue conflict
The only requirement of an auxtrace queue is that the buffers are in
time order. That is achieved by making separate queues for separate
perf buffer or AUX area buffer mmaps.
That generally means a separate queue per cpu for per-cpu contexts, and
a separate queue per thread for per-task contexts.
When buffers are added to a queue, perf checks that the buffer cpu and
thread id (tid) match the queue cpu and thread id.
However, generally, that need not be true, and perf will queue buffers
correctly anyway, so the check is not needed.
In addition, the check gets erroneously hit when using sample mode to
trace multiple threads.
Consequently, fix that case by removing the check.
Fixes: e502789302a6 ("perf auxtrace: Add helpers for queuing AUX area tracing data")
Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20210308151143.18338-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'security/lsm_audit.c')
0 files changed, 0 insertions, 0 deletions