linux/net/ceph
Ilya Dryomov 0c0b6412c9 rbd: harden get_lock_owner_info() a bit
commit 8ff2c64c97 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:24:17 +02:00
..
crush libceph: use swap() macro instead of taking tmp variable 2022-05-25 20:45:13 +02:00
armor.c
auth_none.c
auth_none.h
auth_x_protocol.h
auth_x.c
auth_x.h
auth.c
buffer.c
ceph_common.c libceph: optionally use bounce buffer on recv path in crc mode 2022-02-02 18:50:36 +01:00
ceph_hash.c
ceph_strings.c
cls_lock_client.c
crypto.c
crypto.h
debugfs.c
decode.c
Kconfig
Makefile
messenger_v1.c use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
messenger_v2.c libceph: harden msgr2.1 frame segment length checks 2023-07-23 13:49:41 +02:00
messenger.c rbd: harden get_lock_owner_info() a bit 2023-08-03 10:24:17 +02:00
mon_client.c treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
msgpool.c
osd_client.c treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
osdmap.c libceph: print fsid and epoch with osd id 2022-08-03 00:54:12 +02:00
pagelist.c libceph: fix ceph_pagelist_reserve() comment typo 2022-08-03 00:54:13 +02:00
pagevec.c
snapshot.c
string_table.c
striper.c