Marin Ramesa, le Sat 14 Dec 2013 17:58:54 +0100, a écrit : > + if (strlen(data) != sizeof(struct vm_map_copy)) > + return KERN_INVALID_ARGUMENT;
Err, no, this does not make sense: if data is to be casted into vm_map_copy, it's not a string, it's some structure with pointers etc., you can't expect it to look like a string. Read about inband data in the mig manual, to understand what is happening with the vm_map_copy_t copy = (vm_map_copy_t) data; cast. Samuel