Skip to content

Commit fec3036

Browse files
committed
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
2 parents f5e29a2 + b89a05b commit fec3036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/events/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10193,7 +10193,7 @@ static void perf_event_addr_filters_apply(struct perf_event *event)
1019310193
return;
1019410194

1019510195
if (ifh->nr_file_filters) {
10196-
mm = get_task_mm(event->ctx->task);
10196+
mm = get_task_mm(task);
1019710197
if (!mm)
1019810198
goto restart;
1019910199

0 commit comments

Comments
 (0)