summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/kmemcheck/selftest.c
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2017-12-08 17:15:20 +0100
committerMark Brown <broonie@kernel.org>2017-12-08 18:17:35 +0100
commit50dd2ea8ef67a1617e0c0658bcbec4b9fb03b936 (patch)
tree9d15f6975338271b7b43f8ce32d60daaf3aed018 /arch/x86/mm/kmemcheck/selftest.c
parentLinux 4.15-rc1 (diff)
downloadlinux-50dd2ea8ef67a1617e0c0658bcbec4b9fb03b936.tar.xz
linux-50dd2ea8ef67a1617e0c0658bcbec4b9fb03b936.zip
ASoC: wm_adsp: Fix validation of firmware and coeff lengths
The checks for whether another region/block header could be present are subtracting the size from the current offset. Obviously we should instead subtract the offset from the size. The checks for whether the region/block data fit in the file are adding the data size to the current offset and header size, without checking for integer overflow. Rearrange these so that overflow is impossible. Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Tested-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'arch/x86/mm/kmemcheck/selftest.c')
0 files changed, 0 insertions, 0 deletions