diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-19 22:22:40 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-19 22:22:40 +0200 |
commit | fec3036200b7d9df32c94eb2616447eb2f6e09ac (patch) | |
tree | a2a5221b4a303bc0dbdf574d34c4b84fca82f08b | |
parent | Merge tag 'locking-urgent-2021-09-19' of git://git.kernel.org/pub/scm/linux/k... (diff) | |
parent | events: Reuse value read using READ_ONCE instead of re-reading it (diff) | |
download | linux-fec3036200b7d9df32c94eb2616447eb2f6e09ac.tar.xz linux-fec3036200b7d9df32c94eb2616447eb2f6e09ac.zip |
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
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 744e8726c5b2..0c000cb01eeb 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -10193,7 +10193,7 @@ static void perf_event_addr_filters_apply(struct perf_event *event) return; if (ifh->nr_file_filters) { - mm = get_task_mm(event->ctx->task); + mm = get_task_mm(task); if (!mm) goto restart; |