Luca Dariz, le mar. 28 juin 2022 12:10:53 +0200, a ecrit: > * vm/memory_object_proxy.c: truncate vm array types as if they were > the rpc_ version because MIG can't handle that. This rpc can't > handle more than one element anyway. > > Note that the same issue with vm arrays is present at least with > syscall emulation, but that functionality seems unused for now. > > A better fix could be to add a vm descriptor type in include/mach/message.h, > but then probably we don't need to use the rpc_ types in MIG anymore, > they would be needed only for the syscall definitions. > > Signed-off-by: Luca Dariz <l...@orpolo.org>
Applied, thanks! > --- > vm/memory_object_proxy.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/vm/memory_object_proxy.c b/vm/memory_object_proxy.c > index 4d50bab4..f397351e 100644 > --- a/vm/memory_object_proxy.c > +++ b/vm/memory_object_proxy.c > @@ -155,6 +155,11 @@ memory_object_create_proxy (ipc_space_t space, vm_prot_t > max_protection, > if (!IP_VALID(object[0])) > return KERN_INVALID_NAME; > > + /* FIXME: fix mig or add a new VM data type in message.h */ > + *offset &= 0xFFFFFFFF; > + *start &= 0xFFFFFFFF; > + *len &= 0xFFFFFFFF; > + > /* FIXME: Support a different offset from 0. */ > if (offset[0] != 0) > return KERN_INVALID_ARGUMENT; > -- > 2.30.2 > > -- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.