diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-01-05 10:18:52 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-01-05 11:27:20 +0000 |
commit | f930896967fa3f9ab16a6f87267b92798308d48f (patch) | |
tree | 053df1f97b3a6f2195716ab30e5ffc747a80d234 /CREDITS | |
parent | b24a557527f97ad88619d5bd4c8017c635056d69 (diff) | |
download | linux-stable-f930896967fa3f9ab16a6f87267b92798308d48f.tar.gz linux-stable-f930896967fa3f9ab16a6f87267b92798308d48f.tar.bz2 linux-stable-f930896967fa3f9ab16a6f87267b92798308d48f.zip |
arm64: module: avoid undefined shift behavior in reloc_data()
Compilers may engage the improbability drive when encountering shifts
by a distance that is a multiple of the size of the operand type. Since
the required bounds check is very simple here, we can get rid of all the
fuzzy masking, shifting and comparing, and use the documented bounds
directly.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions