1
0
Fork 0
remarkable-linux/tools/hv
Paul Meyer 3aa6d7f854 hv: kvp: Avoid reading past allocated blocks from KVP file
commit 297d6b6e56 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-14 09:28:11 +01:00
..
Makefile tools/hv: Use include/uapi with __EXPORTED_HEADERS__ 2016-02-07 21:34:12 -08:00
bondvf.sh tools: hv: Add a script to help bonding synthetic and VF NICs 2016-07-12 10:41:53 -07:00
hv_fcopy_daemon.c tools: hv: remove repeated HV_FCOPY string 2015-12-14 19:12:21 -08:00
hv_get_dhcp_info.sh Tools: hv: Add an example script to retrieve dhcp state 2012-09-10 16:42:32 -07:00
hv_get_dns_info.sh Tools: hv: Add an example script to retrieve DNS entries 2012-09-04 15:59:27 -07:00
hv_kvp_daemon.c hv: kvp: Avoid reading past allocated blocks from KVP file 2017-12-14 09:28:11 +01:00
hv_set_ifconfig.sh tools: hv: Fix how ifcfg-* file is created 2013-01-17 11:47:21 -08:00
hv_vss_daemon.c Drivers: hv: utils: Check VSS daemon is listening before a hot backup 2016-09-02 17:22:51 +02:00
lsvmbus tools: hv: lsvmbus: add pci pass-through UUID 2016-05-01 09:23:14 -07:00