summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2026-03-02 03:10:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-13 19:26:04 +0300
commit2a732ed26fbd048e7925d227af8cf9ea43fb5cc9 (patch)
treeb6d3e2a9cf5412e0b6704cbd6fd5e0bec3a707aa /tools/perf/scripts/python/stackcollapse.py
parent763e838adc3c7ec5a7df2990ce84cad951e42721 (diff)
downloadlinux-2a732ed26fbd048e7925d227af8cf9ea43fb5cc9.tar.xz
apparmor: fix race between freeing data and fs accessing it
commit 8e135b8aee5a06c52a4347a5a6d51223c6f36ba3 upstream. AppArmor was putting the reference to i_private data on its end after removing the original entry from the file system. However the inode can aand does live beyond that point and it is possible that some of the fs call back functions will be invoked after the reference has been put, which results in a race between freeing the data and accessing it through the fs. While the rawdata/loaddata is the most likely candidate to fail the race, as it has the fewest references. If properly crafted it might be possible to trigger a race for the other types stored in i_private. Fix this by moving the put of i_private referenced data to the correct place which is during inode eviction. Fixes: c961ee5f21b20 ("apparmor: convert from securityfs to apparmorfs for policy ns files") Reported-by: Qualys Security Advisory <qsa@qualys.com> Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com> Reviewed-by: Maxime Bélair <maxime.belair@canonical.com> Reviewed-by: Cengiz Can <cengiz.can@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions