aboutsummaryrefslogtreecommitdiff
path: root/include/linux/compiler_attributes.h
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2022-12-19 15:40:04 +0100
committerPeter Zijlstra <[email protected]>2022-12-27 12:44:01 +0100
commita551844e345ba2a1c533dee4b55cb0efddb1bcda (patch)
treeb9e9745bfecbd4c4739d4511fc76802bbae2bb4c /include/linux/compiler_attributes.h
parent08245672cdc6505550d1a5020603b0a8d4a6dcc7 (diff)
perf: Fix use-after-free in error path
The syscall error path has a use-after-free; put_pmu_ctx() will reference ctx, therefore we must ensure ctx is destroyed after pmu_ctx is. Fixes: bd2756811766 ("perf: Rewrite core context handling") Reported-by: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Chengming Zhou <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions