Defined in 1 files as a function:
Referenced in 8 files:
- fs/ceph/caps.c, line 1353
- fs/ceph/mds_client.c
- include/linux/ceph/decode.h, line 389
- net/ceph/auth.c, line 113
- net/ceph/cls_lock_client.c, line 175
- net/ceph/decode.c
- net/ceph/messenger_v2.c, line 1163
- net/ceph/osd_client.c
Smatch caller information:
net/ceph/messenger_v2.c prepare_banner() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 8267118322415697920 |
| PARAM_VALUE | 0 | *p | 16,4096-ptr_max |
| PARAM_VALUE | 1 | s | 6626548246741483520 |
| PARAM_VALUE | 1 | *s | 0-255 |
| PARAM_VALUE | 2 | len | 8 |
| BUF_SIZE | 1 | s | 9 |
| STR_LEN | 0 | p | 8 |
| TERMINATED | 1 | s | 1 |
| NOCHECK_CALL | |||
| LOCK2 | &con->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ceph_connection)->mutex |
fs/ceph/metric.c ceph_encode_subvolume_metrics() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 4477104750950436864 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| PARAM_VALUE | 0 | *(*p) | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | **p | 0-4294967295 |
| PARAM_VALUE | 1 | s | 8048621396266754048 |
| PARAM_VALUE | 2 | len | 56 |
| BUF_SIZE | 1 | s | 56 |
| CAPPED_DATA | 0 | *p | 1 |
| DATA_SOURCE | 0 | p | $0 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/ceph/mds_client.c encode_mclientrequest_tail() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 3578834723724455936,8498512715453845504 |
| PARAM_VALUE | 1 | s | 201611433370271744 |
| PARAM_VALUE | 2 | len | 8 |
| BUF_SIZE | 1 | s | 8 |
| DATA_SOURCE | 0 | p | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | &mdsc->mutex | ||
| HALF_LOCKED2 | &session->s_mutex | ||
| TYPE_LOCK | (struct ceph_mds_client)->mutex |
fs/ceph/mds_client.c encode_mclientrequest_tail() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 3578834723724455936,8498512715453845504 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| PARAM_VALUE | 0 | **p | 0-4294967295 |
| BUF_SIZE | 1 | s | (-1),149-255 |
| DATA_SOURCE | 0 | p | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | &mdsc->mutex | ||
| HALF_LOCKED2 | &session->s_mutex | ||
| TYPE_LOCK | (struct ceph_mds_client)->mutex |
fs/ceph/mds_client.c encode_mclientrequest_tail() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 3578834723724455936,8498512715453845504 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| PARAM_VALUE | 0 | **p | 0-4294967295 |
| PARAM_VALUE | 1 | s | 4096-ptr_max |
| DATA_SOURCE | 0 | p | $0 |
| DATA_SOURCE | 2 | len | r ceph_fscrypt_auth_len |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &mdsc->mutex | ||
| HALF_LOCKED2 | &session->s_mutex | ||
| TYPE_LOCK | (struct ceph_mds_client)->mutex |
net/ceph/decode.c ceph_encode_entity_addr() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 6931842857772679168,7393033143524454400,9154287247538429952 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| PARAM_VALUE | 0 | *(*p) | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | **p | 28,40 |
| PARAM_VALUE | 1 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 1 | s | 4 |
| DATA_SOURCE | 0 | p | $0 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | &con->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ceph_connection)->mutex |
net/ceph/decode.c ceph_encode_entity_addr() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 6931842857772679168,7393033143524454400,9154287247538429952 |
| PARAM_VALUE | 0 | *(*p) | 28,40 |
| PARAM_VALUE | 0 | **p | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 1 | s | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 1 | s | 4 |
| DATA_SOURCE | 0 | p | $0 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | &con->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ceph_connection)->mutex |
net/ceph/decode.c ceph_encode_entity_addr() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 6931842857772679168,7393033143524454400,9154287247538429952 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| PARAM_VALUE | 0 | *(*p) | 28,40 |
| PARAM_VALUE | 0 | **p | 0-u16max |
| PARAM_VALUE | 2 | len | 14,26 |
| BUF_SIZE | 1 | s | 126 |
| DATA_SOURCE | 0 | p | $0 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | &con->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ceph_connection)->mutex |
fs/ceph/caps.c encode_cap_msg() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 3146231434811260928 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| BUF_SIZE | 1 | s | 48 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
net/ceph/auth.c ceph_auth_entity_name_encode() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 2162116397532811264,2480660660971331584,2820588157446475776 |
| PARAM_VALUE | 0 | **p | 0-4294967295 |
| PARAM_VALUE | 2 | len | 0-5 |
| BUF_SIZE | 1 | s | 6 |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 0 | p | $1 |
| DATA_SOURCE | 1 | s | $0 |
| DATA_SOURCE | 2 | len | r __fortify_strlen |
| STR_LEN | 0 | p | 0-5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &ac->mutex | ||
| HALF_LOCKED2 | &monc->mutex | ||
| TYPE_LOCK | (struct ceph_auth_client)->mutex |
net/ceph/auth_x.c ceph_x_build_request() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 7413956378024378368 |
| PARAM_VALUE | 0 | *p | 0-ptr_max |
| PARAM_VALUE | 1 | s | 4096-ptr_max |
| BUF_SIZE | 1 | s | s32min-(-2),1-s32max |
| CAPPED_DATA | 2 | len | 1 |
| NOCHECK_CALL | |||
| UNITS | 1 | s | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &ac->mutex | ||
| LOCK2 | &monc->mutex | ||
| TYPE_LOCK | (struct ceph_auth_client)->mutex | ||
| TYPE_LOCK | (struct ceph_mon_client)->mutex |
net/ceph/auth_x.c ceph_x_encode_ticket() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 7413956378024378368 |
| PARAM_VALUE | 0 | *p | 0-ptr_max |
| PARAM_VALUE | 0 | *(*p) | 1 |
| PARAM_VALUE | 0 | **p | 0-4294967295 |
| BUF_SIZE | 1 | s | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | *p | 1 |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 0 | p | $1 |
| NOCHECK_CALL | |||
| UNITS | 1 | s | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &ac->mutex | ||
| LOCK2 | &monc->mutex | ||
| TYPE_LOCK | (struct ceph_auth_client)->mutex | ||
| TYPE_LOCK | (struct ceph_mon_client)->mutex |
net/ceph/cls_lock_client.c ceph_cls_break_lock() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 5201515702624673792 |
| PARAM_VALUE | 2 | len | 9 |
| DATA_SOURCE | 1 | s | $5 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
| LOCK2 | &rbd_dev->lock_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct rbd_device)->lock_rwsem |
net/ceph/osd_client.c encode_request_finish() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 6878903640324304896 |
| PARAM_VALUE | 1 | s | 1702158845105422424 |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 1 | s | 4 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
net/ceph/osd_client.c encode_request_finish() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 6878903640324304896 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| PARAM_VALUE | 1 | s | 1702158845105422364 |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 1 | s | 4 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
net/ceph/osd_client.c encode_request_finish() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 6878903640324304896 |
| PARAM_VALUE | 1 | s | 1702158845105422368 |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 1 | s | 4 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
net/ceph/osd_client.c encode_request_finish() -> ceph_encode_copy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | p | 6878903640324304896 |
| PARAM_VALUE | 0 | *p | 4096-ptr_max |
| PARAM_VALUE | 1 | s | 1702158845105422428 |
| PARAM_VALUE | 2 | len | 8 |
| BUF_SIZE | 1 | s | 8 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |