xen/xsm: Fix x86 XSM build after commit 6ea9f04
PATCH 1/1 xen/xsm: Fix x86 XSM build after commit 6ea9f04
Signed-off-by Julien Grall <[email protected]>
--- xen/xsm/flask/flask_op.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
xen/xsm/flask/flask_op.c +4 -4
@@ -829,10 +829,10 @@ CHECK_flask_setenforce; CHECK_flask_transition;#define COMPAT -#define flask_copyin_string (ch, pb, sz, mx) ({ \ - XEN_GUEST_HANDLE_PARAM(char) gh; \ - guest_from_compat_handle(gh, ch); \ - flask_copyin_string(gh, pb, sz, mx); \ +#define safe_copy_string_from_guest (ch, sz, mx) ({ \ + XEN_GUEST_HANDLE_PARAM(char) gh; \ + guest_from_compat_handle(gh, ch); \ + safe_copy_string_from_guest(gh, sz, mx); \ })#define xen_flask_load compat_flask_load
Signature · 1 line
2.1.4
Ian Campbell
AppliedQuoted 1 line · Julien Grall
Signed-off-by Julien Grall <[email protected]>
Applied, thanks.
(NB: I prefer commit logs which explain how they fix the build)
Quoted 23 lines
--- xen/xsm/flask/flask_op.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)xen/xsm/flask/flask_op.c +4
-4@@ -829,10 +829,10 @@ CHECK_flask_setenforce; CHECK_flask_transition;#define COMPAT -#define flask_copyin_string (ch, pb, sz, mx) ({ \ - XEN_GUEST_HANDLE_PARAM(char) gh; \ - guest_from_compat_handle(gh, ch); \ - flask_copyin_string(gh, pb, sz, mx); \ +#define safe_copy_string_from_guest (ch, sz, mx) ({ \ + XEN_GUEST_HANDLE_PARAM(char) gh; \ + guest_from_compat_handle(gh, ch); \ + safe_copy_string_from_guest(gh, sz, mx); \ })#define xen_flask_load compat_flask_load