From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Tikhomirov Date: Fri, 10 Jun 2022 16:38:59 +0000 Subject: Re: [PATCH 0/2] Introduce CABA helper process tree Message-Id: List-Id: References: <20220610163214.49974-1-ptikhomirov@virtuozzo.com> In-Reply-To: <20220610163214.49974-1-ptikhomirov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-kernel@vger.kernel.org Cc: Eric Biederman , Kees Cook , Alexander Viro , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Andrew Morton , linux-ia64@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, kernel@openvz.org CC: kernel@openvz.org On 10.06.2022 19:32, Pavel Tikhomirov wrote: > Please see "Add CABA tree to task_struct" for deeper explanation, and > "tests: Add CABA selftest" for a small test and an actual case for which > we might need CABA. > > Probably the original problem of restoring process tree with complex > sessions can be resolved by allowing sessions copying, like we do for > process group, but I'm not sure if that would be too secure to do it, > and if there would not be another similar resource in future. > > We can use CABA not only for CRIU for restoring processes, in normal > life when processes detach CABA will help to understand from which place > in process tree they were originally started from sshd/crond or > something else. > > Hope my idea is not completely insane =) > > CC: Eric Biederman > CC: Kees Cook > CC: Alexander Viro > CC: Ingo Molnar > CC: Peter Zijlstra > CC: Juri Lelli > CC: Vincent Guittot > CC: Dietmar Eggemann > CC: Steven Rostedt > CC: Ben Segall > CC: Mel Gorman > CC: Daniel Bristot de Oliveira > CC: Valentin Schneider > CC: Andrew Morton > CC: linux-ia64@vger.kernel.org > CC: linux-kernel@vger.kernel.org > CC: linux-mm@kvack.org > CC: linux-fsdevel@vger.kernel.org > > Pavel Tikhomirov (2): > Add CABA tree to task_struct > tests: Add CABA selftest > > arch/ia64/kernel/mca.c | 3 + > fs/exec.c | 1 + > fs/proc/array.c | 18 + > include/linux/sched.h | 7 + > init/init_task.c | 3 + > kernel/exit.c | 50 ++- > kernel/fork.c | 4 + > tools/testing/selftests/Makefile | 1 + > tools/testing/selftests/caba/.gitignore | 1 + > tools/testing/selftests/caba/Makefile | 7 + > tools/testing/selftests/caba/caba_test.c | 501 +++++++++++++++++++++++ > tools/testing/selftests/caba/config | 1 + > 12 files changed, 591 insertions(+), 6 deletions(-) > create mode 100644 tools/testing/selftests/caba/.gitignore > create mode 100644 tools/testing/selftests/caba/Makefile > create mode 100644 tools/testing/selftests/caba/caba_test.c > create mode 100644 tools/testing/selftests/caba/config > -- Best regards, Tikhomirov Pavel Software Developer, Virtuozzo.