aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-09-08 05:33:57 +0000
committerJarkko Sakkinen <[email protected]>2021-10-26 02:03:33 +0000
commita0bcce2b2a169e10eb265c8f0ebdd5ae4c875670 (patch)
treec569785c1419f682322e7633bbf929054d90f3f4 /fs/btrfs/dev-replace.c
parenttpm: tis: Kconfig: Add helper dependency on COMPILE_TEST (diff)
downloadkernel-a0bcce2b2a169e10eb265c8f0ebdd5ae4c875670.tar.gz
kernel-a0bcce2b2a169e10eb265c8f0ebdd5ae4c875670.zip
tpm: Check for integer overflow in tpm2_map_response_body()
The "4 * be32_to_cpu(data->count)" multiplication can potentially overflow which would lead to memory corruption. Add a check for that. Cc: [email protected] Fixes: 745b361e989a ("tpm: infrastructure for TPM spaces") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions