From patchwork Fri Jun 14 18:23:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Xu X-Patchwork-Id: 13699039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23F75C27C77 for ; Fri, 14 Jun 2024 18:27:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1103B6B00DB; Fri, 14 Jun 2024 14:27:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2518B6B0162; Fri, 14 Jun 2024 14:27:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E7D446B010A; Fri, 14 Jun 2024 14:27:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id B2D806B0149 for ; Fri, 14 Jun 2024 14:24:01 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 1CB1780882 for ; Fri, 14 Jun 2024 18:24:01 +0000 (UTC) X-FDA: 82230318282.01.8175032 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by imf07.hostedemail.com (Postfix) with ESMTP id 4953940006 for ; Fri, 14 Jun 2024 18:23:59 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=BBa9JOFM; spf=pass (imf07.hostedemail.com: domain of jeffxu@chromium.org designates 209.85.214.174 as permitted sender) smtp.mailfrom=jeffxu@chromium.org; dmarc=pass (policy=none) header.from=chromium.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718389436; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=RZn50d8R/xT+6kVKruGSleyZqMbn5U8/mQpLLULuLpU=; b=MdmPgp4NMTDSYPgY66HV8THFUgkeFZ/1GQSi+/gjT11sdFG7D8THWmMsQti9waYjLYJ7ij 28TnQgqkvj7O23mqIhuq/UQGT+J3QjSKOWP23tLjTUDS4wiFY80X0KRNl4q5h7sOaY7QSk RYycgcFLurDrm+ct6SD4LzacD+/3CNE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718389436; a=rsa-sha256; cv=none; b=JsSoMkPXUoXtWc/4T0ioCdOS+ePaZh4OZxOhEPC+cOfive92c2/x4n2VdSGHPhOaVDwBcW yHcUGfznqL14U5W0u18VTB4FkWV2iZRuEsUHkD8VYLU7K/io9qq661s15O+CB6dV9zKPCc Y4duoNwZbPTWVoGJuVy+/c4mknaw5yo= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=chromium.org header.s=google header.b=BBa9JOFM; spf=pass (imf07.hostedemail.com: domain of jeffxu@chromium.org designates 209.85.214.174 as permitted sender) smtp.mailfrom=jeffxu@chromium.org; dmarc=pass (policy=none) header.from=chromium.org Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1f70c457823so20977445ad.3 for ; Fri, 14 Jun 2024 11:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718389438; x=1718994238; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RZn50d8R/xT+6kVKruGSleyZqMbn5U8/mQpLLULuLpU=; b=BBa9JOFMLEpU6wmNQ07fKMS6PPNuQX4hEUEGZ8u/qNB6KdvCABgOfTwQ3hSMx8auUq MdArpMCtCnLfrBb+VXr1ly/j2H9DnRZctV7dzpQ7g6E7Ch2mLeB/7Xeq3Cbk6Sgz+4Lt eAzPz0Y3RqFI2jW5eQQpL8Mxl5csxLHJkJ0bk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718389438; x=1718994238; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RZn50d8R/xT+6kVKruGSleyZqMbn5U8/mQpLLULuLpU=; b=j8yJs3ocQg7GfeXNqsozcZgOEAEBXPRtDJMtkuwGfhV33+uPqhvRgqS+fHXa41a7oE TlBQhUgT6rlUFjsC9dFAwy7G7GhXwz5jeUopVRWFr8qvfQJvouEDcFpIRbANCULJ2rJ9 ALRW8+iRugHo7ZFIkqS5a7ParSe8tDDj0AlPCuI5rPouF/aKsY1V8cBV5cl59eha8eGf NAMW0qDsUURk+o+2HUed94c5WTbX6s19C8v55DxpmtAwJIMnSVil62LWf64IOO6NluGi Hyh4QSNQFhsDKTiTin1Hqf17hHSDpb7S6JNRiiM8GET1g9TGQJjoJJjYhcoIeP0uiQPk cFGQ== X-Forwarded-Encrypted: i=1; AJvYcCXcofI9LzphC8XAGUCKm7Glp/MFykWp4MMYJhFyj69sN3tVVix2ToAeKbq1H69lKYIm5+HnuG5bRCPxXWPIgVHYdMA= X-Gm-Message-State: AOJu0YzXlyDb+3wKJ5WArvbnqBOrVNKGIShdeCHv4dj28KjrXhOHtCxZ 74/UrsaI4v2dMVIatpkiayIlCwZL9G7okvgl9VrPfd3tvoD6a7xYJZwRhaKHrCuQaQRYTNEMmkg = X-Google-Smtp-Source: AGHT+IHEEim3bmh4/sD50G3DI5iFGIOyghrjMg4i8a0ncmlm0TwXaT/62REOeJ0qTU8r05Cp5Xrgyg== X-Received: by 2002:a17:902:e546:b0:1f8:3b7c:dff6 with SMTP id d9443c01a7336-1f862a0ab3bmr36880735ad.65.1718389437750; Fri, 14 Jun 2024 11:23:57 -0700 (PDT) Received: from localhost (213.126.145.34.bc.googleusercontent.com. [34.145.126.213]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-1f855f394desm35130775ad.266.2024.06.14.11.23.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jun 2024 11:23:57 -0700 (PDT) From: jeffxu@chromium.org To: akpm@linux-foundation.org, jannh@google.com, sroettger@google.com, rdunlap@infradead.org, david@redhat.com, adhemerval.zanella@linaro.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, jorgelo@chromium.org, keescook@chromium.org, Jeff Xu Subject: [PATCH v1 0/1] add mseal to /proc/pid/smaps Date: Fri, 14 Jun 2024 18:23:26 +0000 Message-ID: <20240614182327.752156-1-jeffxu@google.com> X-Mailer: git-send-email 2.45.2.627.g7a2c4fd464-goog MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 4953940006 X-Stat-Signature: b78qo69ejqensubew1asnk7mnnc64ps9 X-HE-Tag: 1718389439-365725 X-HE-Meta: U2FsdGVkX1+CgFwp/IFKtC0Cha9wxQR8ZjFtelpKqZxTsgdXXy02Tje9jALBEM/OoQ30K/Pzb0F4Ipi0MPRVZE3h6kholgu7bBY5zUO6skHHaHcuC1Ybfuvmy7EedBFlQyg9MWhNJshmzJ54GrTLYHsM2yw+F6QZJ4rQkAe2Hfq3gj7Wsjka8vaZEsVYpj7+9aNShwQZ38qYzB/VZ6bPbxjN9HguxvVx0W7pr6jNfpm2cpG8NXoEz9okFLbKiWfORvmpEoRYlnfae6WHZ0G40e/En9sZejua2xz0UbbVigA1BMKDjLzLCQlQM+b/lulo26eo54qMJrR+Fd4u2BpHgGlNbUjussKg4cIJoywbszhAgYloRNJ0FaYmAjvwhdkcMw0NsvVS2A0d58+Rk57ThfrKhDecgqsnCbpDUg6jRFItZ5mBkta/seKDTwUVk85uW7WhWaw/H6iVNH97izzi8AFF35763nDsx0/OGbDH4CVuN1wWjivmcdz/pesU370COx3Y0RW06K/OO7u3S0LhpTpQ0cRIO/JEDZo3uEHSdRz1r+lweRSxgLhavTWhRt/qHg2uQQOZ1+cgQ7giATJCYGW2QYHmn8AOF+shIrxdHASugzkksorNP9CJoNxMbgULzYiijHTtOP/vRO0fJlYu7kQz+JP0wfGu2dRzzZMSFEWkol0qKmYOGJAxaqvPQGNGhH4EqtpDmLsZOXk1QFL/+AJ6GSMifT4AmYjNDPn8r1hrqZPu74JMJ+DqoJCngC6r0MOuBEPP31u1m95lHPEdggPqAFVzi5OP8vVTeZXLbmix++1mfN/1JFOGCrevb9O1hDscmjXzV8EehcaEQ0VoBWtKjOFOq+Th0R9KR9LBCd59dQjIZ6vjlbOHeOJkrowpboWHwK99y8o/7lEz3PRCtK6K7to3jtT5yDxXm37bpbGCcZXiY+Jrkd4xhoK1MfBnO1ZWCE8td5NgiSiBboO IJYJuyA2 ldCj9er43AmfTWdSFbm4V3yMTnZ5OnUds5lbR/ZRxgiL/PbYqxkjrhtZ1F275WJZs56SN0NWBuKGNmjT1757hwZ070IpaqwR0vQQvH25sZMFLIdlYn/eCczzhdXpQhliWFDBLR4KrZjIiKwrRqkwLD79ykcqZzBP0sLuFBLDmCGGlEDHfvKmDrA8ruoQjEyXS1gzUfJQKYYd2uBjPFYI/ghfc72PPSdfDC7vUtFrHjecwTz9sHbAhX5Rts7dEUrVEuVS22Q0b9QId8nzpaNhRhMGa4sEtZqGIyIuzYP/+myPR/BLNKRdBhcGIu94r+os7Qxjhflz3bsbCIQnn/ht5zuXy5Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Jeff Xu Add mseal information in /proc/pid/smaps to indicate the VMA is sealed. I appreicate Adhemerval Zanella Netto to bring this to my attention. [1] [1] https://public-inbox.org/libc-alpha/743ac2ce-817b-42ef-a0a1-7edf9a85d8e5@linaro.org/#t Jeff Xu (1): /proc/pid/smaps: add mseal info for vma 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(-)