Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3840933pxf; Mon, 29 Mar 2021 13:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPBSHzRMppBxgxx08hNm8Q9sEfvE4SGiZtfUt68Pp+JAvVpgsaPKbGYygqkT+axJSf4vQe X-Received: by 2002:a05:6402:b48:: with SMTP id bx8mr31221749edb.162.1617048218339; Mon, 29 Mar 2021 13:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617048218; cv=none; d=google.com; s=arc-20160816; b=yDilkklflfCZ9+8VpdsnKM3CWRlGTLGpMtbPLcqvEkrb4GzkD6j1M6a5gsbyU9QNoH LdBcJGsBthQ0FjZzyaOicAtQqvz4mOaVRoNbtDb+iGuZ9ZsrTdKDc+SWyByqbUSlOdyH ujiC2XVHRb20v+yXzaeRaiENdgtbfDZL7L+J0qlEKP3Z1eFaGeJhMK50zrA9NFzCFztI A8N2rKQivGZovGElQS0tjhfYTQsxMeQ0RnX92+BqZ9NHZPD3+fCmUaEG3WSTqrYu0/Xx TJeLHdMKrqBUgc5lTeF0hEBhDZqs9s74vcLbE8Z5gowrwHMRqO7D/rLluCyQn+O89vyA fxZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=DKVpcQ+QpAoXvlyjRMhAGyT+Qqak2JfgZMLiBaSa29E=; b=PdQbXDUetSe6evqGqgppWTax4tEwLok4qS1CkdGA546+swXixjfD0kqVJLXg8BVQUY PVfAeSYsCklIDpVkWshQlhOnEhp3MxUjx+ROjx9TitMvjMs2Vkrf85oaXYFp98qlZn3D pHLENBC7JUfXscwiM+Imu+/MmYn767n6PxJwnsP1ncmjAU7YAk+cGzzzJi6R0C7/DTy0 3NBorDHzZNJFHo/ZCUB0MXhuupfuOuSg2zabELSlrn18ddmapxhG+OOLK335dZikqiDz wpbxJ2x2vZdek26LROLhhWAqoX9HQAM0j0VYDQXYmdggBLPVl+qTAXGp2i1T0r9BSk+F KIcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=YJPerRzl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k24si13361228ejo.241.2021.03.29.13.03.15; Mon, 29 Mar 2021 13:03:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=YJPerRzl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231371AbhC2UAI (ORCPT + 99 others); Mon, 29 Mar 2021 16:00:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbhC2T7i (ORCPT ); Mon, 29 Mar 2021 15:59:38 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 976F4C061756 for ; Mon, 29 Mar 2021 12:59:38 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id g25so7236353wmh.0 for ; Mon, 29 Mar 2021 12:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DKVpcQ+QpAoXvlyjRMhAGyT+Qqak2JfgZMLiBaSa29E=; b=YJPerRzl5+2JaKjv1Eb55P40KGWj7y6pfAam3YE3y8qhoEgUMMSGIdVfB6lepj10yJ D9JgvhbtBcvf8hfGDmq8z3Zv50QkNtIZMKlL7qEOsF0W8nlkcRq2Gz4nkYLLJ4Opvwcy GeQxTIHi0wGIiu/1stxEX8XdpEX32jglLEn2f5JXz86HT81AdRitSFe+KAw4HGbMqphK DL1N4R+sQxYSbcUqJpXZk6egdDmBADKsmQ/uJ+kUO2jfcDoV/VEjpB4e2hoPxcjqs62B jlYp0Woty23AO0P9Hdodnyz6GSb0jC1JbWGj8zhE4+rI4qkYA+zhreLGydVxQMXtRKcv NAiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DKVpcQ+QpAoXvlyjRMhAGyT+Qqak2JfgZMLiBaSa29E=; b=gEpcr8y4fkcs5g6iNxKmeZrGijAcpm5NyG6vdPJfBKNlGcmXIJHjtrUzNQnOA+Lm19 smxQx6n0aZMWc6C9PqlLz2DIl+O5del41YGye+Pgh2HkQO77wipOPAIcKJCR/H7tYN9Y z2MGTDDZwp4W/t33peu09e4iO9KJypsfwKn5oSLJ6iQSzCtUWfdWRBj6TJCZaHeTXnlK 8bIMG/GtsJ0LcajZNuuW7aIUECS8sXF/Fi8xF4Qf6ZkaMnyKSeI+ePPf5WVmKoFRgyN0 NsLd4RHRttB7YM9EqQsQFqBxPbvO58cczdL4Xrhyr9Sx10x2LJwmcG7EsZwwIFakyGSH pp7A== X-Gm-Message-State: AOAM531TDRABy9oNGe2tdiUBWLbfI9PoKvEZRMa3ZghRRmcLV2MtSM6n GswKI9fGPVbzSguf0vgMzEKvxA== X-Received: by 2002:a7b:cbcd:: with SMTP id n13mr624923wmi.112.1617047977314; Mon, 29 Mar 2021 12:59:37 -0700 (PDT) Received: from ?IPv6:2a02:8084:e84:2480:228:f8ff:fe6f:83a8? ([2a02:8084:e84:2480:228:f8ff:fe6f:83a8]) by smtp.gmail.com with ESMTPSA id l6sm32426474wrn.3.2021.03.29.12.59.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Mar 2021 12:59:36 -0700 (PDT) Subject: Re: [PATCH] powerpc/vdso: Separate vvar vma from vdso To: Laurent Dufour , linux-kernel@vger.kernel.org Cc: Dmitry Safonov <0x7f454c46@gmail.com>, Christophe Leroy , Andrei Vagin , Andy Lutomirski , Benjamin Herrenschmidt , Michael Ellerman , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, stable@vger.kernel.org References: <20210326191720.138155-1-dima@arista.com> From: Dmitry Safonov Message-ID: <50b7a78a-76e6-7d28-5324-a3ada9c43019@arista.com> Date: Mon, 29 Mar 2021 20:59:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/29/21 4:14 PM, Laurent Dufour wrote: > Le 26/03/2021 à 20:17, Dmitry Safonov a écrit : >> 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 >> Cc: Andy Lutomirski >> Cc: Benjamin Herrenschmidt >> Cc: Christophe Leroy >> Cc: Laurent Dufour >> Cc: Michael Ellerman >> Cc: Paul Mackerras >> Cc: linuxppc-dev@lists.ozlabs.org >> Cc: stable@vger.kernel.org # v5.11 >> [1]: https://github.com/checkpoint-restore/criu/issues/1417 >> Signed-off-by: Dmitry Safonov >> Tested-by: Christophe Leroy > > I run the CRIU's test suite and except the usual suspects, all the tests > passed. > > Tested-by: Laurent Dufour Thank you, Laurent! -- Dmitry