From: Andrew Cooper Subject: [PATCH 0/4] Coverity fixes relating to xmalloc()/xfree() Date: Fri, 27 Dec 2013 14:57:29 +0000 Message-ID: <1388156253-14509-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: George Dunlap , Andrew Cooper , Ian Campbell List-Id: xen-devel@lists.xenproject.org In the latest Coverity scan, I modelled _xmalloc() and xfree() which Coverity was previously unaware of. These four patches are as a result of this improved modelling. Signed-off-by: Andrew Cooper CC: George Dunlap CC: Ian Campbell George/Ian: (I cant recall offhand when release-maintainership switches) I request these patches for a freeze exemption, on the basis that they are quite obviouly bugs with serious consequences, the fixes for which are contained and very unlikely to have accidential impact on Xen as a whole. Andrew Cooper (4): common/sysctl: Don't leak status in SYSCTL_page_offline_op AMD/iommu_detect: Don't leak iommu structure on error paths AMD/microcode: Avoid use-after-free for the microcode buffer VTD/DMAR: free() correct pointer on error from acpi_parse_one_atsr() xen/arch/x86/microcode_amd.c | 17 +++++++++-------- xen/common/sysctl.c | 10 ++++------ xen/drivers/passthrough/amd/iommu_detect.c | 11 ++++++++--- xen/drivers/passthrough/vtd/dmar.c | 18 +++++++++++++----- 4 files changed, 34 insertions(+), 22 deletions(-) -- 1.7.10.4