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

Changed files
+1 -1
kernel
events
+1 -1
kernel/events/core.c
··· 10193 10193 return; 10194 10194 10195 10195 if (ifh->nr_file_filters) { 10196 - mm = get_task_mm(event->ctx->task); 10196 + mm = get_task_mm(task); 10197 10197 if (!mm) 10198 10198 goto restart; 10199 10199