Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp761439rdh; Wed, 14 Feb 2024 10:29:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWESHEqqymuPOqfEuXKq3QERzew+ToPbDgpo4WG02XnTNc3u+G1yve9mk/OnspjiDys9ixK+1gc/rTR0lW6RTIHbU51xzgG3AW3VX9I8A== X-Google-Smtp-Source: AGHT+IFoPaVYziA7w0ABFoW7C8rnk8PTTmpC9tu9UQ4EFmzh3RKAYULgYn+MBUSsZORbXlEgzRlI X-Received: by 2002:a05:6a20:9f45:b0:19e:a1b5:e765 with SMTP id ml5-20020a056a209f4500b0019ea1b5e765mr4283513pzb.9.1707935342313; Wed, 14 Feb 2024 10:29:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707935342; cv=pass; d=google.com; s=arc-20160816; b=DynDc01NSG2VKok/8hFGm61+s74zu4KOBtp6Z4qqDW1fOWogvaB8lFG4dW/+42wK+g S9xdLuuuKYcZ424WBempobEVzbiXCKWzjsmkWovHLRJxs6EyEfFlz4uVhOnUCio4d9j1 v+7iybS+ufkIQllh3WZp+dBtcxXQrrzwOdbyZ3CKspJbO0IWtLE29s3tQxTr1KjGilh5 hkfuA6dwX9/qhzweZsmSzfC7BVjY5b5DrFEcj0a6DS/QuoN86z1NE83DDHth68tMKn4m 9u8oytqRzEZsidecZCxBHVSYqS8FkVBVfQPJnOtECUwiQcH+i8p3V5F77Y8A79v/vIcl 1rLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=tJbAk1tSLxXQwFrYiEG2aQGZJ0OdusHW11rdVdqo1Ws=; fh=vxdg2fMMImK04GqHYgzDGwAyVopv7H4yuDSMIfntMJU=; b=zhDivZGHc5g1gHw5R0lplO9YpLfcbZaaAu2exubwvRP1zhG+VNO4HUNPTc3jG7qRZT D+Quo3qlCdI7T7zVUQSHe9vEoZbKJ4RJckJKKg4/CptTM0mnzTgw53RqlaP5C4NSR3wD 9HlBE4Y5n+HrS90OubHPuyV3IqvkzGHRDhkxYQymWjDQ38QukpxMrhdTu+Qm8soA+0Iw v5cDWZvaxg8RYoNPnQIIkm7bhVlNZbRMOju466bsORkP1BJo0xtyTVbyTYq/M54++3vs uTWVyewIBJ5dvXSMjszKQ1OBUEeiqGmDBenBDwx+QA0RB2ppX7RVuu2ugoQDTaaoVsz1 hFRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b="geaqp6/G"; arc=pass (i=1 spf=pass spfdomain=tesarici.cz dkim=pass dkdomain=tesarici.cz dmarc=pass fromdomain=tesarici.cz); spf=pass (google.com: domain of linux-kernel+bounces-65799-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tesarici.cz X-Forwarded-Encrypted: i=2; AJvYcCV5wb8qQ8jmdq8WlD3wSBYUNHFS+Z04CFqJmAnWri8Ceae+rirzj5VUU3k7t+D6Y+zv3T9/RdV+RUR9Cjtxupnaa86ofc1UxNvqzmPpvA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f7-20020a056a00238700b006ddc21cb473si8966972pfc.379.2024.02.14.10.29.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 10:29:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65799-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tesarici.cz header.s=mail header.b="geaqp6/G"; arc=pass (i=1 spf=pass spfdomain=tesarici.cz dkim=pass dkdomain=tesarici.cz dmarc=pass fromdomain=tesarici.cz); spf=pass (google.com: domain of linux-kernel+bounces-65799-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tesarici.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A979A28BDB4 for ; Wed, 14 Feb 2024 18:22:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AEA812837E; Wed, 14 Feb 2024 18:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tesarici.cz header.i=@tesarici.cz header.b="geaqp6/G" Received: from bee.tesarici.cz (bee.tesarici.cz [77.93.223.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6436C127B74; Wed, 14 Feb 2024 18:22:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.93.223.253 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707934943; cv=none; b=ssmjPiXj8eVw/w+dLT12sbZwUgAicatgYgb/ePU8301LjGJKaEkK9RVljFgITEWCLQL8BWViWh/3u/aBByyVVBQ4s7MuGsAZM/VCkDHAOwmz83Ph1Y60FH8vV52y68/ro+FZY6ulftk3Z5wslIT3VDRWYG7GOcm70XyI4Z9krFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707934943; c=relaxed/simple; bh=cxi0K/MaHmKgVzvoFzOwJIVgRtJ/p17H3LH1t03e15I=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lSRQlEbR5NTUi3vvaWhEyTRsWNpR2IWkRJogUjjONquSl1+vGijyb36PNQvbwFBY+Qz5eit6Xt0/4JsEQdoVxtXoffd/d9ZjbvzUjuThqhkkMtjy+5pTmwxcHJB8AyKfHbSpkwQ4D2dHJEBU/ap8niGjrhsyU6irubVoFQnkAjE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tesarici.cz; spf=pass smtp.mailfrom=tesarici.cz; dkim=pass (2048-bit key) header.d=tesarici.cz header.i=@tesarici.cz header.b=geaqp6/G; arc=none smtp.client-ip=77.93.223.253 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tesarici.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tesarici.cz Received: from meshulam.tesarici.cz (dynamic-2a00-1028-83b8-1e7a-4427-cc85-6706-c595.ipv6.o2.cz [IPv6:2a00:1028:83b8:1e7a:4427:cc85:6706:c595]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bee.tesarici.cz (Postfix) with ESMTPSA id 8E7BB1A18DE; Wed, 14 Feb 2024 19:22:15 +0100 (CET) Authentication-Results: mail.tesarici.cz; dmarc=fail (p=quarantine dis=none) header.from=tesarici.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tesarici.cz; s=mail; t=1707934936; bh=tJbAk1tSLxXQwFrYiEG2aQGZJ0OdusHW11rdVdqo1Ws=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=geaqp6/G7md2TmsavAUsI4+sweFqr6tph+mLkunwt57KrfLl0l568VIoLZ9J+8WXV Sc2MZPHxcQtHU4LJ59amKoBviPzCyL0uooAgStwFy4O1YVaPHHLFlOiiLKWDEhpEcb 6U5bYPKSmDK+DNlwiOhlj2LU3wtqYTGKBCtC/2Nqq792MwBFNTAxgHTr96AOFJn8nf 7pvC5kRnqVKzePShzkggY4ysSROZofcgpLj+RZY2dy+x/kD2XILZ41ruwGyuh8Y4bt aexbTONqgfDbUQ869P8q3MFkHDwjs5zZYZxWUurYEX+T0tdrfV+jM8fU8fh+xtS4ha YDQ5Oy4dwvbHg== Date: Wed, 14 Feb 2024 19:22:14 +0100 From: Petr =?UTF-8?B?VGVzYcWZw61r?= To: Dave Hansen Cc: Petr Tesarik , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Andy Lutomirski , Oleg Nesterov , Peter Zijlstra , Xin Li , Arnd Bergmann , Andrew Morton , Rick Edgecombe , Kees Cook , "Masami Hiramatsu (Google)" , Pengfei Xu , Josh Poimboeuf , Ze Gao , "Kirill A. Shutemov" , Kai Huang , David Woodhouse , Brian Gerst , Jason Gunthorpe , Joerg Roedel , "Mike Rapoport (IBM)" , Tina Zhang , Jacob Pan , "open list:DOCUMENTATION" , open list , Roberto Sassu , Petr Tesarik Subject: Re: [PATCH v1 0/8] x86_64 SandBox Mode arch hooks Message-ID: <20240214192214.78734652@meshulam.tesarici.cz> In-Reply-To: References: <20240214113516.2307-1-petrtesarik@huaweicloud.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-suse-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 14 Feb 2024 06:52:53 -0800 Dave Hansen wrote: > On 2/14/24 03:35, Petr Tesarik wrote: > > This patch series implements x86_64 arch hooks for the generic SandBox > > Mode infrastructure. > > I think I'm missing a bit of context here. What does one _do_ with > SandBox Mode? Why is it useful? I see, I split the patch series into the base infrastructure and the x86_64 implementation, but I forgot to merge the two recipient lists. :-( Anyway, in the long term I would like to work on gradual decomposition of the kernel into a core part and many self-contained components. Sandbox mode is a useful tool to enforce isolation. In its current form, sandbox mode is too limited for that, but I'm trying to find some balance between "publish early" and reaching a feature level where some concrete examples can be shown. I'd rather fail fast than maintain hundreds of patches in an out-of-tree branch before submitting (and failing anyway). Petr T