Ilya Dryomov bb25c5c0e4 rbd: harden get_lock_owner_info() a bit
commit 8ff2c64c9765446c3cef804fb99da04916603e27 upstream.

- 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 <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-03 10:22:46 +02:00
..
2023-06-09 10:32:26 +02:00
2023-07-27 08:46:55 +02:00
2023-03-22 13:31:28 +01:00
2023-05-17 11:50:17 +02:00
2023-07-23 13:47:29 +02:00
2023-06-21 15:59:15 +02:00
2023-06-21 15:59:15 +02:00