Commit fec30362 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'perf-urgent-2021-09-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf event fix from Thomas Gleixner:
 "A single fix for the perf core where a value read with READ_ONCE() was
  checked and then reread which makes all the checks invalid. Reuse the
  already read value instead"

* tag 'perf-urgent-2021-09-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  events: Reuse value read using READ_ONCE instead of re-reading it
parents f5e29a26 b89a05b2
...@@ -10193,7 +10193,7 @@ static void perf_event_addr_filters_apply(struct perf_event *event) ...@@ -10193,7 +10193,7 @@ static void perf_event_addr_filters_apply(struct perf_event *event)
return; return;
if (ifh->nr_file_filters) { if (ifh->nr_file_filters) {
mm = get_task_mm(event->ctx->task); mm = get_task_mm(task);
if (!mm) if (!mm)
goto restart; goto restart;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment