aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorJohn Thomson <git@johnthomson.fastmail.com.au>2024-09-02 15:25:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-03 12:20:38 +0200
commit8679e8b4a1ebdb40c4429e49368d29353e07b601 (patch)
tree0f2a909dfe910be115e372ff64c1744af5ca53ab /lib/crypto/mpi/mpi-internal.h
parente8c276d4dc0e19ee48385f74426aebc855b49aaf (diff)
nvmem: u-boot-env: error if NVMEM device is too small
Verify data size before trying to parse it to avoid reading out of buffer. This could happen in case of problems at MTD level or invalid DT bindings. Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au> Cc: stable <stable@kernel.org> Fixes: d5542923f200 ("nvmem: add driver handling U-Boot environment variables") [rmilecki: simplify commit description & rebase] Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20240902142510.71096-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/crypto/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions