summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/google
diff options
context:
space:
mode:
authorPaul Meyer <Paul.Meyer@microsoft.com>2017-11-14 13:06:47 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 16:56:26 +0100
commit297d6b6e56c2977fc504c61bbeeaa21296923f89 (patch)
treef9bb8a9204769647e7341dca0f26d1a6cc77e360 /drivers/firmware/google
parent7fa32e5ec28b1609abc0b797b58267f725fc3964 (diff)
downloadlinux-297d6b6e56c2977fc504c61bbeeaa21296923f89.tar.gz
linux-297d6b6e56c2977fc504c61bbeeaa21296923f89.tar.bz2
linux-297d6b6e56c2977fc504c61bbeeaa21296923f89.zip
hv: kvp: Avoid reading past allocated blocks from KVP file
While reading in more than one block (50) of KVP records, the allocation goes per block, but the reads used the total number of allocated records (without resetting the pointer/stream). This causes the records buffer to overrun when the refresh reads more than one block over the previous capacity (e.g. reading more than 100 KVP records whereas the in-memory database was empty before). Fix this by reading the correct number of KVP records from file each time. Signed-off-by: Paul Meyer <Paul.Meyer@microsoft.com> Signed-off-by: Long Li <longli@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firmware/google')
0 files changed, 0 insertions, 0 deletions