lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210715140535.eypw5ekwd53kcbab@wittgenstein>
Date:   Thu, 15 Jul 2021 16:05:35 +0200
From:   Christian Brauner <christian.brauner@...ntu.com>
To:     Pavel Tikhomirov <ptikhomirov@...tuozzo.com>
Cc:     linux-fsdevel@...r.kernel.org,
        "Eric W . Biederman" <ebiederm@...ssion.com>,
        Alexander Viro <viro@...iv.linux.org.uk>,
        Mattias Nissler <mnissler@...omium.org>,
        Aleksa Sarai <cyphar@...har.com>,
        Andrei Vagin <avagin@...il.com>, linux-api@...r.kernel.org,
        lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v5 1/2] move_mount: allow to add a mount into an existing
 group

On Thu, Jul 15, 2021 at 01:07:13PM +0300, Pavel Tikhomirov wrote:
> Previously a sharing group (shared and master ids pair) can be only
> inherited when mount is created via bindmount. This patch adds an
> ability to add an existing private mount into an existing sharing group.
> 
> With this functionality one can first create the desired mount tree from
> only private mounts (without the need to care about undesired mount
> propagation or mount creation order implied by sharing group
> dependencies), and next then setup any desired mount sharing between
> those mounts in tree as needed.
> 
> This allows CRIU to restore any set of mount namespaces, mount trees and
> sharing group trees for a container.
> 
> We have many issues with restoring mounts in CRIU related to sharing
> groups and propagation:
> - reverse sharing groups vs mount tree order requires complex mounts
>   reordering which mostly implies also using some temporary mounts
> (please see https://lkml.org/lkml/2021/3/23/569 for more info)
> 
> - mount() syscall creates tons of mounts due to propagation
> - mount re-parenting due to propagation
> - "Mount Trap" due to propagation
> - "Non Uniform" propagation, meaning that with different tricks with
>   mount order and temporary children-"lock" mounts one can create mount
>   trees which can't be restored without those tricks
> (see https://www.linuxplumbersconf.org/event/7/contributions/640/)
> 
> With this new functionality we can resolve all the problems with
> propagation at once.
> 
> Link: https://lore.kernel.org/r/20210715100714.120228-1-ptikhomirov@virtuozzo.com
> Cc: Eric W. Biederman <ebiederm@...ssion.com>
> Cc: Alexander Viro <viro@...iv.linux.org.uk>
> Cc: Christian Brauner <christian.brauner@...ntu.com>
> Cc: Mattias Nissler <mnissler@...omium.org>
> Cc: Aleksa Sarai <cyphar@...har.com>
> Cc: Andrei Vagin <avagin@...il.com>
> Cc: linux-fsdevel@...r.kernel.org
> Cc: linux-api@...r.kernel.org
> Cc: lkml <linux-kernel@...r.kernel.org>
> Signed-off-by: Pavel Tikhomirov <ptikhomirov@...tuozzo.com>
> ---

Looks good,
Acked-by: Christian Brauner <christian.brauner@...ntu.com>

I also took a look at mount-v2 for CRIU you linked below. Looks like
clean approach.
I'll compile and run the selftests now.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ