Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp660749rdh; Wed, 14 Feb 2024 07:54:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXimV9jsWYY0wXRwVnUQTAw9/6k0gCkPC9L2kcPi28zHTuANXRr+G3PRx0H3uSItMemMpVa3k7MLrNC6LYORceJ9oeBhRx5acme9W5Q2Q== X-Google-Smtp-Source: AGHT+IFouHYJ+43qFjp6lWSKlcsMHuGqBsXQpaTg4VnWsGA+mnef9en1RbtkEZF7F9CSDB93URvj X-Received: by 2002:a05:6a00:2d88:b0:6de:209c:3228 with SMTP id fb8-20020a056a002d8800b006de209c3228mr3474126pfb.6.1707926041551; Wed, 14 Feb 2024 07:54:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707926041; cv=pass; d=google.com; s=arc-20160816; b=gh6lvF3tmbEIDgFDQVVBKrIEiPXwdH7fKz+3zYD3Pwv6ggarZx+MZhQXol4RKQwx53 VsnoRo0ZrYswLZ8wlJ3TfAIqp44bJqgoHn2HCzf4FHJQMzQkjEhao2IicfRViZsWnP85 JZTnRWG+kTl0XjetI9GQgtoqRTQCraLxiO6cMRHNc1jOp4kwwPT/SCFWpH3lqCIepxsf Ze5CfeoyPi8ZiyooTasiUjttK9lq6pRg/ZoYo5tuCEwOq1CqWNgIa/l6Q6MgZDDQZo3N +FMXZ1Al3znGAcRRJRY9QNBORvGz3QK1Rhbe+4I7FQiczAx+SWMnCxwJWXuQ1RG54ngX q+pg== 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:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=rk9njXpf6hzFHY17pEhUqSZF9wRgLnS+p3Equ70uV9g=; fh=I/3C/6bV7hZA5fomngScy9nMUQWc4O4gw9U/IXk0JSE=; b=hLwdTBp8ppJlCCiN0fpFA1vCvKVylD7jDZqNV/ukI+DUn2wL4IGYx+BCJ2PHE3gquu 7AXo15V9YN4b7GQQYJqRABG0PsXx7wln/VAx0gGjTL2WtyvDyoMpddOiwORnoiR+PU+R CfGyje5lESNTIr22f90qnNtdxhxUOmUr+RDrNmjfIuJC1IZtyHZy4nsQleTXdL0zyM09 OAam13a+DqNoBTiJ97dwl1JCsY0OrBjJ5VlVAM35axOuv9zHqdNjpZxKAIL5KbUb0jGN Z8sqB7uyMpArtZhbeUQhufI2A2VSlia3Lb18HanqxGC5tpMJBhMoYIVepDuH9oEPOCaR MYfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zytor.com header.s=2024021201 header.b=KsOG9DPa; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-65427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com X-Forwarded-Encrypted: i=2; AJvYcCUm8WeldrEvCfB5rz8a0pbZH3W0vd5RDHxO5gijEAivfwXykO5v0+a/PPk3GN98DZPYdG+qkLxdOz2zZBmWIuCKygcBYyzki6ugPZHOnw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a12-20020a056a000c8c00b006e1171b2d57si368891pfv.351.2024.02.14.07.54.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 07:54:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2024021201 header.b=KsOG9DPa; arc=pass (i=1 spf=pass spfdomain=zytor.com dkim=pass dkdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-65427-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3AFBDB289A1 for ; Wed, 14 Feb 2024 15:32:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F10B5EE78; Wed, 14 Feb 2024 15:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="KsOG9DPa" Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (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 99A5D5A0FB; Wed, 14 Feb 2024 15:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707924619; cv=none; b=YguTHZpgQinPXTp4pg7B07vj5mMGn6ysILPcoFDuyl00+jUL3OasPQmfyUlmHmjUZFdvca7mz9UN68kwig3ZnFzlDTC12AIguzHZ6bmisyPyyhQhfVjv/cXwePfLnpMStYSqY/j0/vmnf5vdTrYEr40F8H1n8uvIgXz1EVYG5T0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707924619; c=relaxed/simple; bh=LNiQsxwpb6KqaUIrwzAIc1YaPde2cuUFEm8Lin9I+4c=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=YlwpW7QEF7ZJn89WRfEN/Ew3IKc86m15qPKkfgJpkf25pA0atcmKD/wjeIMyr7TZUuAdQRxVIlGsrk15PcORNpI8IQHNeOJU/RE3mF7xQnddjOBcaVE8Bmi01aUc+AgOIU8RgYy9qrm5gwdqOzYI5v99rJ2uNWUVGBtaarq8vtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=KsOG9DPa; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from [127.0.0.1] ([76.133.66.138]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 41EFScet1331064 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 14 Feb 2024 07:28:38 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 41EFScet1331064 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2024021201; t=1707924521; bh=rk9njXpf6hzFHY17pEhUqSZF9wRgLnS+p3Equ70uV9g=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=KsOG9DPaw5ir6qEJCooeMQWJQMCKKXsB2ez4BpMq4njCXB/iMypn6kRHAYmoAYIIf bI2i7x7i9vd/OUg3t6q9x1O7qGE96Ypb/3YMNpACt0umzVvoeS2BMGQTXT/SGKUJfi Jb0GaAPO9/6YSB+JBbfT4UZkfZbg5wfA11KuWqoPUgfDi/TBxsUVGzbf3Joa5RmXtW Do14EBY5W+LnmVF10jBXuD09SgEe/1Lr8vOu1xubrGFtdkWjDBrTgWFhJUwnlmKAl+ JeqS9Se6UTcm9/mW0OJ/aCaWPUbnSHpsCQvPZcWRGuggLm/w0mgmieUCXUJk1knukA F2gD2n6NiHfiA== Date: Wed, 14 Feb 2024 07:28:35 -0800 From: "H. Peter Anvin" To: Dave Hansen , Petr Tesarik , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , 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 CC: Roberto Sassu , petr@tesarici.cz, Petr Tesarik Subject: Re: [PATCH v1 0/8] x86_64 SandBox Mode arch hooks User-Agent: K-9 Mail for Android In-Reply-To: References: <20240214113516.2307-1-petrtesarik@huaweicloud.com> Message-ID: <34B19756-91D3-4DA1-BE76-BD3122C16E95@zytor.com> 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-Transfer-Encoding: quoted-printable On February 14, 2024 6:52:53 AM PST, 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=2E > >I think I'm missing a bit of context here=2E What does one _do_ with >SandBox Mode? Why is it useful? Seriously=2E On the surface it looks like a really bad idea =E2=80=93 basi= cally an ad hoc, *more* privileged version of user shave=2E