Defined in 1 files as a member:

Defined in 2 files as a function:

Referenced in 27 files:

Smatch caller information:

crypto/rsa-pkcs1pad.c pkcs1pad_sg_set_buf() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 1-u64max
BUF_SIZE 0 prv 64
BUF_SIZE 0 prv 64
DATA_SOURCE 0 prv $0
DATA_SOURCE 2 sgl $3
MEM_ZERO 0 prv
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 sgl->length

drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_fw_dbg_alloc_sgtable() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 128
PARAM_VALUE 2 sgl 4096-ptr_max
BUF_SIZE 0 prv 32-4096
BUF_SIZE 0 prv 32-4096
BUF_SIZE 2 sgl 32-4096
BUF_SIZE 2 sgl 32-4096
DATA_SOURCE 2 sgl r _kzalloc_noprof
PARAM_COMPARE 0 prv == $2
MEM_ZERO 2 sgl
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 prv_nents
UNITS 1 prv_nents unit_array_size
ELEM_COUNT 0 ==prv1 8051
HALF_LOCKED2 &fwrt->ops_ctx->mutex
HALF_LOCKED2 &fwrt->ops_ctx->wiphy->mtx

crypto/gcm.c crypto_gcm_init_common() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

crypto/gcm.c crypto_gcm_init_common() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

crypto/gcm.c crypto_rfc4106_crypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

crypto/gcm.c crypto_rfc4106_crypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

net/tls/tls_device_fallback.c scatterwalk_crypto_chain() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 4-u64max
BUF_SIZE 0 prv 64
BUF_SIZE 0 prv 64
DATA_SOURCE 0 prv $0
DATA_SOURCE 1 prv_nents $2
DATA_SOURCE 2 sgl $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/crypto/cavium/nitrox/nitrox_aead.c nitrox_rfc4106_set_aead_rctx_sglist() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]
NO_OVERFLOW_SIMPLE 0 prv->length

drivers/crypto/cavium/nitrox/nitrox_aead.c nitrox_rfc4106_set_aead_rctx_sglist() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]
NO_OVERFLOW_SIMPLE 0 prv->length

crypto/essiv.c essiv_aead_crypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 3
BUF_SIZE 0 prv 128
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 0 prv->offset 0-2147551739[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

drivers/crypto/qce/sha.c qce_ahash_update() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 64
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 sgl unit_byte

net/sunrpc/auth_gss/gss_krb5_crypto.c gss_krb5_mic_build_sg() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 1852313690669457408,3402767278576865280
PARAM_VALUE 1 prv_nents 8
PARAM_VALUE 2 sgl 16,4096-ptr_max
BUF_SIZE 0 prv 256
BUF_SIZE 0 prv 256
DATA_SOURCE 0 prv $4
DATA_SOURCE 2 sgl r _kmalloc_array_noprof
MEM_ZERO 0 prv
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/target/target_core_rd.c rd_allocate_sgl_table() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 1 prv_nents 2049
PARAM_VALUE 2 sgl 4096-ptr_max
BUF_SIZE 2 sgl 32-65568
BUF_SIZE 2 sgl 32-65568
DATA_SOURCE 2 sgl r _kmalloc_noprof
MEM_ZERO 2 sgl
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem

net/tls/tls_sw.c tls_push_record() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 1 prv_nents 19
BUF_SIZE 0 prv 608
BUF_SIZE 2 sgl 608
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 prv_nents unit_array_size
LOCK2 sk
HALF_LOCKED2 &tls_ctx->tx_lock

net/tls/tls_sw.c tls_push_record() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 2 sgl 4096-ptr_max
BUF_SIZE 0 prv 608
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 sk
HALF_LOCKED2 &tls_ctx->tx_lock

net/tls/tls_sw.c tls_push_record() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 4096-ptr_max
BUF_SIZE 0 prv 64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 sk
HALF_LOCKED2 &tls_ctx->tx_lock

net/tls/tls_sw.c tls_push_record() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 4096-ptr_max
BUF_SIZE 0 prv 64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 sk
HALF_LOCKED2 &tls_ctx->tx_lock

lib/scatterlist.c __sg_alloc_table() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 1-u64max
PARAM_VALUE 1 prv_nents 2-u32max
PARAM_VALUE 2 sgl 1-u64max
BUF_SIZE 0 prv (-1)-4064,4096,4128-s32max
BUF_SIZE 0 prv (-1)-4064,4096,4128-s32max
BUF_SIZE 2 sgl (-1)-4064,4128-s32max
BUF_SIZE 2 sgl (-1)-4064,4128-s32max
CAPPED_DATA 1 prv_nents 1
DATA_SOURCE 2 sgl r alloc_fn
MEM_ZERO 2 sgl
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 prv unit_byte
UNITS 1 prv_nents unit_array_size
UNITS 2 sgl unit_byte

crypto/krb5/rfc8009_aes2.c rfc8009_decrypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 9137460963549790208
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 2275401801785073664,4703020413151715328,5146663525939888128,5805476440592236544,6213564466865422336,7558071477613424640,9188881253106405376
BUF_SIZE 0 prv 64
BUF_SIZE 2 sgl (-1),256
BUF_SIZE 2 sgl (-1),256
DATA_SOURCE 2 sgl $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &ac->mutex

crypto/krb5/rfc8009_aes2.c rfc8009_encrypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 3538506481204174848
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 11244472960000000,1895645142076108800,2564027771357270016,4703020413151715328,5805476440592236544,7558071477613424640,8934857238906052608,9188881253106405376
BUF_SIZE 0 prv 64
BUF_SIZE 2 sgl (-1),256,512
BUF_SIZE 2 sgl (-1),256,512
DATA_SOURCE 2 sgl $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &server->cm_token_lock

crypto/af_alg.c af_alg_alloc_tsgl() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 1-u64max
PARAM_VALUE 1 prv_nents 127
BUF_SIZE 2 sgl 4064
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 sk
HALF_LOCKED2 &vq->mutex
HALF_LOCKED2 sk

crypto/af_alg.c af_alg_link_sg() -> sg_chain()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 prv unit_byte
UNITS 2 sgl unit_byte
LOCK2 sk
HALF_LOCKED2 &vq->mutex

crypto/scatterwalk.c scatterwalk_crypto_chain() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 4-u64max
BUF_SIZE 0 prv 64
BUF_SIZE 0 prv 64
DATA_SOURCE 0 prv $0
DATA_SOURCE 1 prv_nents $2
DATA_SOURCE 2 sgl $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 prv->length 1-2147483645[c]
HOST_DATA 2 sgl->length 2-2147483646[c]
USER_DATA 0 prv->length 1-2147483646[c]
USER_DATA 2 sgl->length 2-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]
HALF_LOCKED2 _T->lock

drivers/crypto/s5p-sss.c s5p_hash_prepare_sgs() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 4096-ptr_max
BUF_SIZE 0 prv 64
DATA_SOURCE 2 sgl $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 1-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]
UNITS 2 sgl unit_byte

drivers/infiniband/ulp/srpt/ib_srpt.c srpt_alloc_rw_ctxs() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 2 sgl 16,4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

net/sunrpc/xdr.c xdr_buf_to_sg_alloc() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 2564027771357270016,5146663525939888128
PARAM_VALUE 1 prv_nents 8
PARAM_VALUE 2 sgl 16,4096-ptr_max
BUF_SIZE 0 prv 256
BUF_SIZE 0 prv 256
BUF_SIZE 2 sgl 32
DATA_SOURCE 0 prv $3
DATA_SOURCE 1 prv_nents $4
DATA_SOURCE 2 sgl r _kmalloc_array_noprof
MEM_ZERO 0 prv
MEM_ZERO 2 sgl
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 prv_nents unit_array_size

crypto/ahash.c crypto_ahash_finup() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 1-u64max
BUF_SIZE 0 prv 64
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]
UNITS 2 sgl unit_byte
HALF_LOCKED2 sk

crypto/ahash.c crypto_ahash_update() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 64
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]
UNITS 2 sgl unit_byte
HALF_LOCKED2 sk

crypto/ccm.c crypto_ccm_auth() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4627370477295329280
PARAM_VALUE 1 prv_nents 3
BUF_SIZE 0 prv 96
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 sgl->length
UNITS 2 sgl unit_byte

crypto/ccm.c crypto_ccm_auth() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4627370477295329280
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 sgl->length
UNITS 2 sgl unit_byte

crypto/ccm.c crypto_ccm_auth() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4627370477295329280
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 4-u64max
BUF_SIZE 0 prv 96
DATA_SOURCE 2 sgl $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/ccm.c crypto_ccm_init_crypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

crypto/ccm.c crypto_ccm_init_crypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

crypto/ccm.c crypto_rfc4309_crypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

crypto/ccm.c crypto_rfc4309_crypt() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
BUF_SIZE 0 prv 96
BUF_SIZE 2 sgl (-1),64
BUF_SIZE 2 sgl (-1),64
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 sgl->length 0-2147483646[c]
USER_DATA 2 sgl->length 1-u32max[c]
USER_DATA 2 sgl->offset 0-2147551739[c]

drivers/scsi/qla2xxx/qla_target.c qlt_set_data_offset() -> sg_chain()

Type Parameter Key Value
PARAM_VALUE 0 prv 4096-ptr_max
PARAM_VALUE 1 prv_nents 2
PARAM_VALUE 2 sgl 0,4-u64max
BUF_SIZE 0 prv 32-64
BUF_SIZE 0 prv 32-64
DATA_SOURCE 0 prv r _kmalloc_noprof
DATA_SOURCE 2 sgl r sg_next
MEM_ZERO 0 prv
PREEMPT_ADD
NOCHECK_CALL
UNITS 2 sgl unit_byte
LOCK2 irq
LOCK2 qpair->qp_lock_ptr
HALF_LOCKED2 &pool->lock