Skip to contentSkip to conversation

x86/hvm: Annotate hvm_physdev_op() with cf_check

PATCH In review Andrew Cooper 2 participants 2 messages Mar 9, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/hvm: Annotate hvm_physdev_op() with cf_check

This was missed previously, and would yield a fatal #CP for any HVM domain which issues a physdevop hypercall.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Juergen Gross <[email protected]>

---
 xen/arch/x86/hvm/hypercall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/hvm/hypercall.c +1 -1
index 030243810e48..62b5349e7d6e 100644
@@ -78,7 +78,7 @@ static long cf_check hvm_grant_table_op(
 }
 #endif
 
-static long hvm_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
+static long cf_check hvm_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
 {
     const struct vcpu *curr = current;
     const struct domain *currd = curr->domain;
Signature · 1 line
2.11.0