Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1029446lqs; Fri, 14 Jun 2024 12:29:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzKtXVU38IghjI30jRWE7Ns5t+7EfSmIj/4/NYNnjO1M+SdR7idZn6ytvSdX1KUNJdh37nP70CTEt9Gp8Fi+964BVh0GOU2nwpwI3AGw== X-Google-Smtp-Source: AGHT+IHmMbUTZBKE+fdfVyhNku7NgAo9C8qTUL4/qw+PBc0ZG+VeZLNvqkCD5vhiLFj7GziLUymZ X-Received: by 2002:a17:903:18a:b0:1f7:38a2:f1e6 with SMTP id d9443c01a7336-1f8629f8a63mr37469515ad.43.1718393373535; Fri, 14 Jun 2024 12:29:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718393373; cv=pass; d=google.com; s=arc-20160816; b=RY8SAf+y7F4NPSFNRsFjrxoVtD8eDfbYbq6yOHA4xcqP7s6TvR6FCv3d1ODBZD4Rr0 ZKfQrSJ9x4oNZlep85WIAkknps9ltXRWJgbd/tNvbTKoH5nplVFxyGJZ80yv0qenZRJa 6ZULlY7f9zwMf1X7/TWy39GWDERtuh0cX9ym3uyyUnl6BWfJu8QQwz+KZSqVmAsVLWoG ukQtAbqE3M8rXca5Lxiz93/GqAocWN4yJIYDRKyVvkZ3g2nHX5RLkmrSdZEn7Or1Lt0Q YiCXHWNfyvsBBL44D2+rsYQ6eGuOCzOuerAo9Op3JhcLRmqcRcoQ0BvRYMZaPs6CESL0 SN5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=n0TJEOcNJd1xwR22jFo2JVoKZiKDMvsOPZwNxtWEx8s=; fh=1ynuSm9Uuii3GSQ+zeWFNZobBAdrGLnQTnALn7QwzZg=; b=IR86cwQsNznbG5S2TmcMwa/T1H9TVp2f3fceg6Wbe+58RRf9hyvugkJqGL+jSanAdT vT8wpVaLwM5lLDwv5rZgHp1J2as/1o64lob0730+eZZwrATG/ofLcPj3NJjl5WJkZd0C a/Q0Ciu1jnohmSPJSC2+UZO/qqk6O2e3ADD1dcPMUnI7jWfEFBC7l5ttzu9uUTIY2Z7l tXfdMPbzFTZIQZDC9IWe7H9PnWRtwqghav9VSlWU9YZkp0gsTIBmCcin91aO+OPMKnW2 SA1pCS/uKa+FtiE5KyZHJkslTKayqjJjSgRrcdnhsm9JA19ohoao/L7YOxVysb1U1hFY RHhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=USXno9Zr; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-215438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855f2b358si38686005ad.621.2024.06.14.12.29.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 12:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=USXno9Zr; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-215438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215438-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 224E5B27963 for ; Fri, 14 Jun 2024 19:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C34F81A0B06; Fri, 14 Jun 2024 19:06:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="USXno9Zr" Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8AD1C49638 for ; Fri, 14 Jun 2024 19:06:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718391984; cv=none; b=Eup4GrqsydwNjLqvqKQ4+yrrLDIDdbpJFyz3LNCUFumFua/Df7ZGost6DYiZAOVeSzHYZjYlBFjMWgIJrKGC7dG1kOZAp3lI+JzwwL0VYevBwRWy2pdlg6L3uXbSQPYZE8VHwd0EmGTvwaVqNvBKudKox5Zt17735mDbvBB5LBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718391984; c=relaxed/simple; bh=c9Ux3bqzl9GHyPBD1TY4m76hVvQG7ocXz2ANNIGVf0Y=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=i6RDT+pTHz6VZkVHk9BADah1EusmpL9tqzYz/mJD8jtOGfvnx4ysj5AouZ3c+Kqo4M0uY9VdrRIR2jaFfxrV0ld+Nse0/spcjUTWTvraCMix/3OsbvE21fcBFveTIFVME3oWIkfIIR6v7ORSIZfDsHSAzEDYF/WAgbF9HmZtGdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=USXno9Zr; arc=none smtp.client-ip=209.85.160.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-24c9f91242dso1048386fac.2 for ; Fri, 14 Jun 2024 12:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718391982; x=1718996782; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=n0TJEOcNJd1xwR22jFo2JVoKZiKDMvsOPZwNxtWEx8s=; b=USXno9Zre4AasGZYhM01wrmwdn9uyNhgY/3Nb6+Pg/U1mmRcJkb+WKK4j2CwH6+B1U 9v4Tsd6nnBhhceWt2T14yWvIeEB9HWhMrd4W5gice0+/NaFkK85DGMkGI4lJS0++hGAs z26qhhm/LuYZSliTFT1mCDj+djBYCXoNx96rs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718391982; x=1718996782; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n0TJEOcNJd1xwR22jFo2JVoKZiKDMvsOPZwNxtWEx8s=; b=Y9QhnqYmasiE4vDI87VOv3SBC564rm5JcazruYoDwQ1QmiaEbjdtP8si2oEyGso5s6 CqmmfaFjc2cxY7u5lAy31HakADLwcLu99qFgfrpzF74L0B6yQ+2CZejT4nsOtbOVLkuH x/h9TsgTCbCzZrRXjyFhK7bixOICOclbrTfRQkG7BHUdEyBRmWqDrme2niqYGEu9N9Kx ARkq1FxTqzmN3GrHEsYU6i+Ab9WQghQyXxG+eSk83ItaHOg7dncEYzt2KSqT2+mzyQhV DLMtNKHY0tcMlQHpL1A8lPEPA2jGYc2pqIY08kEs+o+Xb6d2kwPtyJlS1d61x6ayFzMU oyIA== X-Forwarded-Encrypted: i=1; AJvYcCVDmRWoV22CIJ5OO/RVLfrKg7W0uKzO0BmR1Pl5OC+6XGEtPwHiVjktENRsy5ws9XYaRwZJt5dHXmkHVCQzP7IEpHUPCOOv9bA+hBDT X-Gm-Message-State: AOJu0YzfA1QbuisqIeK5XVtVutsGCSkC86DGqRgqWiml3Sxb30Mxojj3 Aahi/KjsuSMKNrn0PtFUdnBWuiGWxvT5MNIYS+VxDn2/lbNV5ZX5ACFZvFPLAlrblv6uRPONqBx GqIhI2x4L7+PGBX10QMoEh1OfM4+/1S6fJ+8G X-Received: by 2002:a05:6871:3412:b0:24c:5bd5:1934 with SMTP id 586e51a60fabf-25842b79581mr4126132fac.39.1718391982489; Fri, 14 Jun 2024 12:06:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240614182327.752156-1-jeffxu@google.com> <20240614182327.752156-2-jeffxu@google.com> In-Reply-To: From: Jeff Xu Date: Fri, 14 Jun 2024 12:06:10 -0700 Message-ID: Subject: Re: [PATCH v1 1/1] /proc/pid/smaps: add mseal info for vma To: Jann Horn Cc: akpm@linux-foundation.org, sroettger@google.com, rdunlap@infradead.org, david@redhat.com, adhemerval.zanella@linaro.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, jorgelo@chromium.org, keescook@chromium.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jun 14, 2024 at 11:43=E2=80=AFAM Jann Horn wrote= : > > Hi! > > On Fri, Jun 14, 2024 at 8:24=E2=80=AFPM wrote: > > Add sp in /proc/pid/smaps to indicate vma is sealed > > > > Signed-off-by: Jeff Xu > > --- > > Documentation/filesystems/proc.rst | 1 + > > fs/proc/task_mmu.c | 3 +++ > > include/linux/mm.h | 5 +++++ > > mm/internal.h | 5 ----- > > 4 files changed, 9 insertions(+), 5 deletions(-) > > > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesys= tems/proc.rst > > index 7c3a565ffbef..400217a1589c 100644 > > --- a/Documentation/filesystems/proc.rst > > +++ b/Documentation/filesystems/proc.rst > > @@ -571,6 +571,7 @@ encoded manner. The codes are the following: > > um userfaultfd missing tracking > > uw userfaultfd wr-protect tracking > > ss shadow stack page > > + sp sealed page > > Nit: Why "page"? The sealing is a property of the VMA, not of the > pages mapped into it. Maybe "sealed area" and an abbreviation like > "sl" would make sense? > ok. Maybe just sealed for short: sl "sealed" Thanks -Jeff