android_kernel_sony_sdm845/security/integrity
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Roberto Sassu ff0ad9d345 ima: Don't ignore errors from crypto_shash_update()
commit 60386b854008adc951c470067f90a2d85b5d520f upstream.

Errors returned by crypto_shash_update() are not checked in
ima_calc_boot_aggregate_tfm() and thus can be overwritten at the next
iteration of the loop. This patch adds a check after calling
crypto_shash_update() and returns immediately if the result is not zero.

Cc: stable@vger.kernel.org
Fixes: 3323eec921 ("integrity: IMA as an integrity service provider")
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-29 09:05:32 +01:00
..
evm evm: Fix possible memory leak in evm_calc_hmac_or_hash() 2020-06-20 10:24:19 +02:00
ima ima: Don't ignore errors from crypto_shash_update() 2020-10-29 09:05:32 +01:00
digsig.c integrity/security: fix digsig.c build error with header file 2018-05-30 07:50:30 +02:00
digsig_asymmetric.c X.509: Make algo identifiers text instead of enum 2016-03-03 21:49:27 +00:00
iint.c ima: re-initialize iint->atomic_flags 2018-12-01 09:44:26 +01:00
integrity.h ima: re-introduce own integrity cache lock 2018-12-01 09:44:26 +01:00
integrity_audit.c Merge git://git.infradead.org/users/eparis/audit 2014-04-12 12:38:53 -07:00
Kconfig security: integrity: Remove select to deleted option PUBLIC_KEY_ALGO_RSA 2016-04-12 19:54:58 +01:00
Makefile integrity: make integrity files as 'integrity' module 2014-09-09 10:28:58 -04:00