Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

fs/nfsd/nfs4callback.c nfs4_xdr_enc_cb_notify() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 2037987434704080896
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->rqst 4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_base 0
PARAM_VALUE 0 xdr->scratch.iov_len 0
PARAM_VALUE 1 len 0,4-4294967292
DATA_SOURCE 0 xdr $1
DATA_SOURCE 1 len r xdr_stream_pos
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

net/sunrpc/auth_gss/svcauth_gss.c svcauth_gss_accept() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->rqst 0
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 len 8
NOCHECK_CALL

fs/nfsd/nfs4xdr.c nfsd4_encode_device_addr4() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->page_ptr 4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 xdr (-1),80
BUF_SIZE 0 xdr (-1),80
DATA_SOURCE 0 xdr $0
NOCHECK_CALL
UNITS 1 len unit_byte
HALF_LOCKED2 &nn->client_lock

fs/nfsd/nfs4xdr.c nfsd4_encode_entry4() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->page_ptr 4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 len 0-s32max,18446744071562067968-u64max
NOCHECK_CALL
UNITS 1 len unit_byte

fs/nfsd/nfs4xdr.c nfsd4_encode_entry4() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 len 0-s32max,18446744071562067968-u64max
NOCHECK_CALL
UNITS 1 len unit_byte

fs/nfsd/nfs4xdr.c nfsd4_encode_operation() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0
PARAM_VALUE 1 len 4-4294967299
PREEMPT_ADD
NOCHECK_CALL
UNITS 1 len unit_byte
LOCK2 &nn->client_lock
TYPE_LOCK (struct nfsd_net)->client_lock

fs/nfsd/nfs4xdr.c nfsd4_encode_read() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0
BUF_SIZE 0 xdr (-1),80
BUF_SIZE 0 xdr (-1),80
NOCHECK_CALL
UNITS 1 len unit_byte
HALF_LOCKED2 &nn->client_lock

fs/nfsd/nfs4xdr.c nfsd4_encode_read_plus() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0
BUF_SIZE 0 xdr (-1),80
BUF_SIZE 0 xdr (-1),80
NOCHECK_CALL
UNITS 1 len unit_byte
HALF_LOCKED2 &nn->client_lock

fs/nfsd/nfs4xdr.c nfsd4_encode_readdir() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->page_ptr 4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 len 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 xdr (-1),80
BUF_SIZE 0 xdr (-1),80
NOCHECK_CALL
UNITS 1 len unit_byte
HALF_LOCKED2 &nn->client_lock

fs/nfsd/nfs4xdr.c nfsd4_encode_readlink() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 xdr (-1),80
BUF_SIZE 0 xdr (-1),80
CAPPED_DATA 0 xdr->buf->page_len 1
NOCHECK_CALL
UNITS 1 len unit_byte
HALF_LOCKED2 &nn->client_lock

fs/nfsd/nfs4xdr.c nfsd4_encode_readlink() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->iov 0,4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
BUF_SIZE 0 xdr (-1),80
BUF_SIZE 0 xdr (-1),80
NOCHECK_CALL
UNITS 1 len unit_byte
HALF_LOCKED2 &nn->client_lock

net/sunrpc/svc.c svc_process_common() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->buf 4096-ptr_max
PARAM_VALUE 0 xdr->page_kaddr 0
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 len 0,4-4294967292
BUF_SIZE 0 xdr 80
DATA_SOURCE 1 len r xdr_stream_pos
NOCHECK_CALL

net/sunrpc/svc.c svc_process_common() -> xdr_truncate_encode()

Type Parameter Key Value
PARAM_VALUE 0 xdr 4096-ptr_max
PARAM_VALUE 0 xdr->scratch.iov_len 0-s32max,18446744071562067968-u64max
PARAM_VALUE 1 len 8
BUF_SIZE 0 xdr 80
NOCHECK_CALL