[CRIU] [PATCH v5 4/5] aio: Restore aio ring content

Pavel Emelyanov xemul at virtuozzo.com
Wed Mar 23 06:28:03 PDT 2016


> +populate:
> +	count = raio->len - offsetof(struct aio_ring, io_events);
> +	builtin_memcpy((void *)ctx, ring, count);

Ring header is at the beginning of the ring, and we don't want to
overwrite it with memcpy, so shouldn't this be rather

memcpy(ctx + offsetof(), rin + offsetof, count)

?



More information about the CRIU mailing list