Commits
Vitaliy Gusev authored and Konstantin Khlebnikov committed 571b94274a3
CPT: Fix memory corruption if cpt_family is wrong. During restore, if parent socket is AF_INET but cpt_family is wrong (non initialized, see bug ##95113), then consider request as related to AF_INET6 is not right and leads to memory corruption. As there are a lot of buggy images, so we can't check only on values AF_INET and AF_INET6. Desicion: - Check request on AF_INET6 first, and consider request as AF_INET by default. - Additionally checkup for AF_INET6 request (protect from random value cpt_family == AF_INET6) Bug #118912 Signed-off-by: Vitaliy Gusev <vgusev@openvz.org> Acked-by: Denis V. Lunev <den@openvz.org>