summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@intel.com>2024-11-14 11:52:23 +0300
committerAmir Goldstein <amir73il@gmail.com>2024-11-15 10:55:39 +0300
commitc5b28fc161c5402da2e10cc11637c2dff727ac23 (patch)
tree06fc8b4a355cc63db9705792e814dc5892e2d626 /tools/perf/scripts/python/mem-phys-addr.py
parent711747e204ead127235aa41b350e518e92a87fcc (diff)
downloadlinux-c5b28fc161c5402da2e10cc11637c2dff727ac23.tar.xz
ovl: Optimize override/revert creds
Use override_creds_light() in ovl_override_creds() and revert_creds_light() in ovl_revert_creds(). The _light() functions do not change the 'usage' of the credentials in question, as they refer to the credentials associated with the mounter, which have a longer lifetime. In ovl_setup_cred_for_create(), do not need to modify the mounter credentials (returned by override_creds_light()) 'usage' counter. Add a warning to verify that we are indeed working with the mounter credentials (stored in the superblock). Failure in this assumption means that creds may leak. Suggested-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions