diff options
| author | Milan Broz <[email protected]> | 2018-01-03 21:48:59 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2018-01-17 14:08:41 +0000 |
| commit | 27c7003697fc2c78f965984aa224ef26cd6b2949 (patch) | |
| tree | ae436f726a28d0e83265bcf34ec9e500658df575 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | dm btree: fix serious bug in btree_split_beneath() (diff) | |
| download | kernel-27c7003697fc2c78f965984aa224ef26cd6b2949.tar.gz kernel-27c7003697fc2c78f965984aa224ef26cd6b2949.zip | |
dm crypt: fix crash by adding missing check for auth key size
If dm-crypt uses authenticated mode with separate MAC, there are two
concatenated part of the key structure - key(s) for encryption and
authentication key.
Add a missing check for authenticated key length. If this key length is
smaller than actually provided key, dm-crypt now properly fails instead
of crashing.
Fixes: ef43aa3806 ("dm crypt: add cryptographic data integrity protection (authenticated encryption)")
Cc: [email protected] # 4.12+
Reported-by: Salah Coronya <[email protected]>
Signed-off-by: Milan Broz <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
