This function take a struct uio previously created by copyinuio and and
updates the lengths of the user-space iovec to match those in the uio.
To reduce the risks of pointer leakage and cross-ABI pointer confusion,
lengths are updated individually.
Effort: CHERI upstreaming
Sponsored by: DARPA, AFRL, Innovate UK