Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp5943rdb; Wed, 14 Feb 2024 10:56:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVp3I3AibDb3UfS56mbeDu+pSMuBsVoqUTorZf7Ft3VU2bZ7WbAnXLcSkIHZAyqGI610PBrVDOFTyOu607aSDvr/RHrSxwi/9SeU+ZqyQ== X-Google-Smtp-Source: AGHT+IH1TsDsoULU2AO5tQJCUixQ/wY/XZwhqDbgbYBbv8W93vo7CZsxDIdL9LV+6Cj3+0pVosja X-Received: by 2002:a50:fb02:0:b0:561:f645:aa88 with SMTP id d2-20020a50fb02000000b00561f645aa88mr2993049edq.39.1707936962927; Wed, 14 Feb 2024 10:56:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707936962; cv=pass; d=google.com; s=arc-20160816; b=Bw9yGrIgJmnq3W0wYsLwkxCxwgjVjy/K9dY4s2GA5ob8LQDJ5GMY28/zClvSR3wpEw Ae+rjMToduxq+ADPOFmfTiPhLxB5bGw5QByQxpGeVitnvo9nZHTEYO4sxtz0gMKO5yUt cQhHFUg6GrXqWBuilH0a+vqyuV574i0uXEyG5n46X6ZcqbSLlgiCWoVJCKXa+xDERyEO isOLIlLrSd+P4BPwiWgMwZDCKBhRwEL5VicFwbjzRaQwP7+0aTkoiiiY2CQajp9BZIYg IzjU4wrpJutix4RDkb4iphiQG5R9Kb3Gel1pMAcdogYaLdsTVix47SU4juV55Rl/AzHZ /WXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature:date; bh=Acyz3pxZ6tCdv6t4q4690mcuB0394xgkvrjHbXOFy0k=; fh=kF7QbZAiBdJXz4n9ffHevt0QM9U8sOAGZJOPk1DWjNM=; b=EfVz8GSAbJz4bB3F+9/oYYsr1jT23mbe95RzDNbMc2IbcFzy6R5eEUj/BliYbFFI9s wRH00pEga3Y27C+OhNhmsIcYhkIXRUbYZlBU3ysF4wCzpU2GK/XEPvSR9MzZWWbLQRT0 /Lai+PbaK9oOryrlSlL9Z0AfnOi3OAl3oETqkOYME6iQM1+DjAxtUtPZb32kmXC2/l99 eIi1tLVXS41z1Ej/4IdJ7wrZsTMuuX8ih3ITys7cwX4P4FAOpDAwsCkOL6unVCC17ZPa Pg6f/FX92eqCAGN6x5CQyse9K4+XHvwIpLy2PoO2iZW0vGIwtH4tCu1v6VcThIcQFV1O +ZJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=S121XmqB; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-65845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCX5lzJFHLBJBMcD+PqSDCsFsk+RhjQXiSEiqO2LJhtn4G9oyDKlCrn7SG0ATJ5yHYshwoThsTVZ3+L5+5DKUH42JwTiqPKEom1UvZ+DaQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s20-20020a508d14000000b0056211b0df33si1301795eds.411.2024.02.14.10.56.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 10:56:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=S121XmqB; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-65845-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 417C81F2B0DC for ; Wed, 14 Feb 2024 18:55:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D28D913A26B; Wed, 14 Feb 2024 18:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="S121XmqB" Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (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 85D98133438 for ; Wed, 14 Feb 2024 18:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707936908; cv=none; b=qO5CApT442E9wdoUtUjaiK+PXpKCG5N7a2P2dReBXkNc6y8MppBEhM4lFPG22DesBQI4xvy6sxJIrZJsMsqWLZkiFUUj1xHSRl8LYiB4pit7oQ95zQN7CFewtSSjTiGDe2AiNysKYg9+A0TUoLGJ23xgUBgzjaYGAIxWhSg/u/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707936908; c=relaxed/simple; bh=lT/X1AIRbNk2Neq323mkmWwsYEJAMoQ7QdshwawIU6U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iOM06nfZF3eo5It4dZ3gSwaVRw6Nx/BQr3BTu1UIH/wGswRpVODRAse5XvzU+yphcqX/BJlrnts/hvEV4ISGlUs5gPQZ5kXDtoHwUCU2TgU1uSH3/ZMSdCkPMqJ+zXXPPEBNpQIR+ONIkBclQCdMjQTwJHtCQ1k/zEgMmyqo2S0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=S121XmqB; arc=none smtp.client-ip=95.215.58.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Wed, 14 Feb 2024 13:54:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707936903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Acyz3pxZ6tCdv6t4q4690mcuB0394xgkvrjHbXOFy0k=; b=S121XmqB4Qi5DZat/IhkTFGklxKssSiWwrtQpzwhO8jfsjtgtAFewhQxjbqx0whAdBMbe9 Fyk3P7FsgOcXD5aA/gL0sr9TgmV4fl9YPHU0SixTl80DWi5kAxxP9NJvhUvLBbzRqgzA3C Ox/w7ZMwvC+NKXnyI/FT0xmc3dQ/+U4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Petr =?utf-8?B?VGVzYcWZw61r?= Cc: Greg Kroah-Hartman , Andrew Morton , Petr Tesarik , Jonathan Corbet , David Kaplan , Larry Dewey , Elena Reshetova , Carlos Bilbao , "Masami Hiramatsu (Google)" , Randy Dunlap , Petr Mladek , "Paul E. McKenney" , Eric DeVolder , Marc =?utf-8?Q?Aur=C3=A8le?= La France , "Gustavo A. R. Silva" , Nhat Pham , "Christian Brauner (Microsoft)" , Douglas Anderson , Luis Chamberlain , Guenter Roeck , Mike Christie , Maninder Singh , "open list:DOCUMENTATION" , open list , Roberto Sassu , Petr Tesarik Subject: Re: [PATCH v1 5/5] sbm: SandBox Mode documentation Message-ID: References: <20240214113035.2117-1-petrtesarik@huaweicloud.com> <20240214113035.2117-6-petrtesarik@huaweicloud.com> <20240214053053.982b48d993ae99dad1d59020@linux-foundation.org> <2024021425-audition-expand-2901@gregkh> <20240214155524.719ffb15@meshulam.tesarici.cz> <2024021415-jokester-cackle-2923@gregkh> <20240214173112.138e0e29@meshulam.tesarici.cz> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240214173112.138e0e29@meshulam.tesarici.cz> X-Migadu-Flow: FLOW_OUT On Wed, Feb 14, 2024 at 05:31:12PM +0100, Petr Tesařík wrote: > On Wed, 14 Feb 2024 16:11:05 +0100 > Greg Kroah-Hartman wrote: > > > On Wed, Feb 14, 2024 at 03:55:24PM +0100, Petr Tesařík wrote: > > > OK, so why didn't I send the whole thing? > > > > > > Decomposition of the kernel requires many more changes, e.g. in linker > > > scripts. Some of them depend on this patch series. Before I go and > > > clean up my code into something that can be submitted, I want to get > > > feedback from guys like you, to know if the whole idea would be even > > > considered, aka "Fail Fast". > > > > We can't honestly consider this portion without seeing how it would > > work, as we don't even see a working implementation that uses it to > > verify it at all. > > > > The joy of adding new frameworks is that you need a user before anyone > > can spend the time to review it, sorry. > > Thank your for a quick assessment. Will it be sufficient if I send some > code for illustration (with some quick&dirty hacks to bridge the gaps), > or do you need clean and nice kernel code? Given that code is going to need a rewrite to make use of this anyways - why not just do the rewrite in Rust? Then you get memory safety, which seems to be what you're trying to achieve here. Or, you say this is for when performance isn't critical - why not a user mode helper?