android_kernel_samsung_univ.../tools
Paul Meyer 90e2ea6dc8 hv: kvp: Avoid reading past allocated blocks from KVP file
commit 297d6b6e56c2977fc504c61bbeeaa21296923f89 upstream.

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>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-16 10:33:48 +01:00
..
arch
build
cgroup
firewire
hv hv: kvp: Avoid reading past allocated blocks from KVP file 2017-12-16 10:33:48 +01:00
iio
include tools include: Add a __fallthrough statement 2017-07-15 11:57:47 +02:00
laptop/freefall
lguest
lib tools lib traceevent: Fix prev/next_prio for deadline tasks 2017-08-06 19:19:46 -07:00
net
nfsd
perf perf test attr: Fix ignored test case result 2017-12-09 18:42:41 +01:00
power
scripts
testing selftests/x86/ldt_get: Add a few additional tests for limits 2017-12-09 18:42:39 +01:00
thermal/tmon
time
usb
virtio
vm
Makefile