]> git.proxmox.com Git - pve-cluster.git/commit
fix #1559: pmxcfs: add missing lock when dumping .rrd
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Nov 2017 12:24:05 +0000 (13:24 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 10 Nov 2017 11:12:08 +0000 (12:12 +0100)
commitdc7aa13c5b7dbfd26c463015133e93fa704c50b4
treeb7ce43f9074b26b0722267a70cbaf260d28b0228
parentf31419e02def94956a2f2a7f71462c7dee2552b3
fix #1559: pmxcfs: add missing lock when dumping .rrd

Adding our standard mutex for protecting cfs_status from multiple
conflicting changes solves two things. First, it now protects
cfs_status as it was changed here and secondly, it protects the
global rrd_dump_buf and rrd_dump_last helper variables from
incosistent access and a double free chance.

Fixes: #1559
Reported-by: Tobias Böhm <tb@robhost.de>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/src/status.c