kernel_optimize_test/fs/crypto
Eric Biggers 55e32c54bb fscrypt: don't load ->i_crypt_info before it's known to be valid
In fscrypt_set_bio_crypt_ctx(), ->i_crypt_info isn't known to be
non-NULL until we check fscrypt_inode_uses_inline_crypto().  So, load
->i_crypt_info after the check rather than before.  This makes no
difference currently, but it prevents people from introducing bugs where
the pointer is dereferenced when it may be NULL.

Suggested-by: Dave Chinner <david@fromorbit.com>
Cc: Satya Tangirala <satyat@google.com>
Link: https://lore.kernel.org/r/20200727174158.121456-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-07-30 14:21:50 -07:00
..
bio.c
crypto.c fscrypt: rename FS_KEY_DERIVATION_NONCE_SIZE 2020-07-20 17:26:33 -07:00
fname.c fscrypt: switch fscrypt_do_sha256() to use the SHA-256 library 2020-07-21 16:02:13 -07:00
fscrypt_private.h fscrypt: use smp_load_acquire() for fscrypt_prepared_key 2020-07-21 16:02:13 -07:00
hkdf.c
hooks.c
inline_crypt.c fscrypt: don't load ->i_crypt_info before it's known to be valid 2020-07-30 14:21:50 -07:00
Kconfig fscrypt: switch fscrypt_do_sha256() to use the SHA-256 library 2020-07-21 16:02:13 -07:00
keyring.c fscrypt: use smp_load_acquire() for ->s_master_keys 2020-07-21 16:02:13 -07:00
keysetup_v1.c fscrypt: rename FS_KEY_DERIVATION_NONCE_SIZE 2020-07-20 17:26:33 -07:00
keysetup.c fscrypt: use smp_load_acquire() for ->i_crypt_info 2020-07-21 16:02:13 -07:00
Makefile
policy.c fscrypt: use smp_load_acquire() for ->i_crypt_info 2020-07-21 16:02:13 -07:00