On Wed, Mar 31, 2021 at 04:48:46PM +0000, Christophe Leroy wrote: > From: Dmitry Safonov <d...@arista.com> > > Since commit 511157ab641e ("powerpc/vdso: Move vdso datapage up front") > VVAR page is in front of the VDSO area. In result it breaks CRIU > (Checkpoint Restore In Userspace) [1], where CRIU expects that "[vdso]" > from /proc/../maps points at ELF/vdso image, rather than at VVAR data page. > Laurent made a patch to keep CRIU working (by reading aux vector). > But I think it still makes sence to separate two mappings into different > VMAs. It will also make ppc64 less "special" for userspace and as > a side-bonus will make VVAR page un-writable by debugger (which previously > would COW page and can be unexpected). > > I opportunistically Cc stable on it: I understand that usually such > stuff isn't a stable material, but that will allow us in CRIU have > one workaround less that is needed just for one release (v5.11) on > one platform (ppc64), which we otherwise have to maintain. > I wouldn't go as far as to say that the commit 511157ab641e is ABI > regression as no other userspace got broken, but I'd really appreciate > if it gets backported to v5.11 after v5.12 is released, so as not > to complicate already non-simple CRIU-vdso code. Thanks! > > Cc: Andrei Vagin <ava...@gmail.com>
Acked-by: Andrei Vagin <ava...@gmail.com> > Cc: Andy Lutomirski <l...@kernel.org> > Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> > Cc: Christophe Leroy <christophe.le...@csgroup.eu> > Cc: Laurent Dufour <lduf...@linux.ibm.com> > Cc: Michael Ellerman <m...@ellerman.id.au> > Cc: Paul Mackerras <pau...@samba.org> > Cc: linuxppc-...@lists.ozlabs.org > Cc: sta...@vger.kernel.org # v5.11 > [1]: https://github.com/checkpoint-restore/criu/issues/1417 > Signed-off-by: Dmitry Safonov <d...@arista.com> > Tested-by: Christophe Leroy <christophe.le...@csgroup.eu> > Signed-off-by: Christophe Leroy <christophe.le...@csgroup.eu>