aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorIlya Dryomov <[email protected]>2023-07-08 14:16:59 +0000
committerIlya Dryomov <[email protected]>2023-07-26 13:08:09 +0000
commit8ff2c64c9765446c3cef804fb99da04916603e27 (patch)
tree87805bd178c9f42cf311fc50e406ce6f9e7ef947 /tools/perf/scripts/python/mem-phys-addr.py
parentrbd: make get_lock_owner_info() return a single locker or NULL (diff)
downloadkernel-8ff2c64c9765446c3cef804fb99da04916603e27.tar.gz
kernel-8ff2c64c9765446c3cef804fb99da04916603e27.zip
rbd: harden get_lock_owner_info() a bit
- we want the exclusive lock type, so test for it directly - use sscanf() to actually parse the lock cookie and avoid admitting invalid handles - bail if locker has a blank address Signed-off-by: Ilya Dryomov <[email protected]> Reviewed-by: Dongsheng Yang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions