aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2020-08-28 12:37:20 +0000
committerPeter Zijlstra <[email protected]>2020-12-09 16:08:57 +0000
commit78af4dc949daaa37b3fcd5f348f373085b4e858f (patch)
treefc680c63d7cb4156603b7896d963ac2b272012f1 /scripts/gcc-plugins/structleak_plugin.c
parentsparc64/mm: Implement pXX_leaf_size() support (diff)
downloadkernel-78af4dc949daaa37b3fcd5f348f373085b4e858f.tar.gz
kernel-78af4dc949daaa37b3fcd5f348f373085b4e858f.zip
perf: Break deadlock involving exec_update_mutex
Syzbot reported a lock inversion involving perf. The sore point being perf holding exec_update_mutex() for a very long time, specifically across a whole bunch of filesystem ops in pmu::event_init() (uprobes) and anon_inode_getfile(). This then inverts against procfs code trying to take exec_update_mutex. Move the permission checks later, such that we need to hold the mutex over less code. Reported-by: [email protected] Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions