x86/hvm: Annotate hvm_physdev_op() with cf_check
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.
Reported-by Juergen Gross <[email protected]>
Signed-off-by Andrew Cooper <[email protected]>
---
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
@@ -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
Quoted 5 lines · Andrew Cooper
This was missed previously, and would yield a fatal #CP for any HVM domain which issues a physdevop hypercall.
Reported-by Juergen Gross <[email protected]>Signed-off-by Andrew Cooper <[email protected]>
Reviewed-by Jan Beulich <[email protected]>