Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 15 files:

Smatch caller information:

lib/crypto/sha256.c sha256() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 2950755358157934592
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &mkey->sem
HALF_LOCKED2 &nn->reclaim_str_hashtbl_lock
HALF_LOCKED2 &tp->control

drivers/char/tpm/tpm2-sessions.c tpm2_KDFe() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 6244333588992618496
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

drivers/char/tpm/tpm2-sessions.c tpm_buf_check_hmac_response() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 517836497310273536
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

drivers/char/tpm/tpm2-sessions.c tpm_buf_fill_hmac_session() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 7469655451117191168
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &chip->ops_sem
LOCK2 &chip->tpm_mutex
TYPE_LOCK (struct tpm_chip)->ops_sem
TYPE_LOCK (struct tpm_chip)->tpm_mutex

fs/btrfs/fs.c btrfs_csum_init() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 1228545911430721544,1575514942901559304,9140346693608513544
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/md/dm-ima.c dm_ima_measure_on_table_load() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 7656110191522615296
NOCHECK_CALL
LOCK2 &md->io_barrier
TYPE_LOCK (struct mapped_device)->io_barrier

lib/crypto/tests/sha256_kunit.c benchmark_sha256_finup_2x() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 5987791251646668800
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c hash_irq_test2_func() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_hash_all_lens_up_to_4096() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 5589018392665600000
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_hash_buffer_overruns() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 8391474769716404224
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_hash_buffer_overruns() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 8391474769716404224
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_hash_buffer_overruns() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
NOCHECK_CALL
UNITS 0 ctx unit_byte

lib/crypto/tests/sha256_kunit.c test_hash_ctx_zeroization() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 7957314592901341184
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_hash_incremental_updates() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 3133813931179048960
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_hash_overlaps() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 6570685237347315712
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_hash_overlaps() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 6570685237347315712
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_sha256_finup_2x() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
DATA_SOURCE 0 ctx r alloc_guarded_buf
MEM_ZERO 0 ctx
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_sha256_finup_2x_defaultctx() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4944195160967458816
NOCHECK_CALL

lib/crypto/tests/sha256_kunit.c test_sha256_finup_2x_hugelen() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 6311609310385336320
NOCHECK_CALL

arch/x86/purgatory/purgatory.c verify_sha256_digest() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 1716030294196928512
NOCHECK_CALL

security/apparmor/crypto.c aa_calc_profile_hash() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 3720863680531206144
NOCHECK_CALL

fs/verity/hash_algs.c fsverity_prepare_hash_state() -> sha256_init()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

crypto/sha256.c crypto_sha256_init() -> sha256_init()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/kexec_file.c kexec_calculate_store_digests() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 2573257218184720384
NOCHECK_CALL

samples/tsm-mr/tsm_mr_sample.c sample_report_extend_mr() -> sha256_init()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctx->rwsem
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct tm_context)->rwsem

drivers/md/dm-verity-target.c verity_setup_salt_and_hashstate() -> sha256_init()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
BUF_SIZE 0 ctx 104
DATA_SOURCE 0 ctx r _kmalloc_noprof
NOCHECK_CALL
HALF_LOCKED2 &md->type_lock