We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a551844 commit 0a041ebCopy full SHA for 0a041eb
kernel/events/core.c
@@ -12321,12 +12321,12 @@ SYSCALL_DEFINE5(perf_event_open,
12321
if (flags & ~PERF_FLAG_ALL)
12322
return -EINVAL;
12323
12324
- /* Do we allow access to perf_event_open(2) ? */
12325
- err = security_perf_event_open(&attr, PERF_SECURITY_OPEN);
+ err = perf_copy_attr(attr_uptr, &attr);
12326
if (err)
12327
return err;
12328
12329
- err = perf_copy_attr(attr_uptr, &attr);
+ /* Do we allow access to perf_event_open(2) ? */
+ err = security_perf_event_open(&attr, PERF_SECURITY_OPEN);
12330
12331
12332
0 commit comments