]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: eliminate vulnerabilities from hvm_inject_msi()
authorJan Beulich <jbeulich@suse.com>
Tue, 3 Jun 2014 13:17:14 +0000 (15:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Jun 2014 13:17:14 +0000 (15:17 +0200)
commit6f4cc0ac41625a054861b417ea1fc3ab88e2e40a
tree75387802c74cbc1bc3d2e67b1237efc2811768c3
parentbc421a32559da877253f1bfa2d0776bf5b737c70
x86/HVM: eliminate vulnerabilities from hvm_inject_msi()

- pirq_info() returns NULL for a non-allocated pIRQ, and hence we
  mustn't unconditionally de-reference it, and we need to invoke it
  another time after having called map_domain_emuirq_pirq()
- don't use printk(), namely without XENLOG_GUEST, for error reporting

This is XSA-96.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/irq.c