From patchwork Fri Nov 6 10:19:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 11886757 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC2D0C2D0A3 for ; Fri, 6 Nov 2020 10:21:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1EED6206CB for ; Fri, 6 Nov 2020 10:21:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qxIBRu3F"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="5uW2zMZP"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="5uW2zMZP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1EED6206CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=b9hy5gPUZjNzshenq3X+UnWFAFLr7kR1RS+J2qKFlfc=; b=qxIBRu3F/P8dgUXe8rSMFwuqmq qN94g7eHWJri9DCnb7oSCOBg7oCRwAVU2f4LlanCTRPM0N1bXHmNSFejR1xzsFCer5W/GQhcA53TE 4fwLvrwEejn+7OB2JyblC4TN9M270Bs940ar1MtA0sE93tKHcY31VXEF31x6S1sFAsm/qH9DfPjGv +lHEjwuYX7ND1Bx3r0jqZpAZdodJ4FATlRDyRBzPg6zorjK2pfVwl/pUcq662dVEE622WZL6C63yO ikIs5KmYAWz+5OXlGgkAg7lNcusN1GfAOpw174F0VFpxQlvmctopFEkv9Sst3Yk3Mn7jA/hkOsR47 6JlUW5BA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kayrE-00085J-Bq; Fri, 06 Nov 2020 10:20:36 +0000 Received: from mail-eopbgr70080.outbound.protection.outlook.com ([40.107.7.80] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kayrB-00084O-8I for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2020 10:20:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o57nPdKc69cmoVpXBQyh0cMtvu6jNCquHgsAG3oTL54=; b=5uW2zMZPoJkFI/buD/T0ypZnBS7fOL+Se0CvYR5Y3YL3gQpvRCel4TETZ0MeSQSYeQx28KKMAfSAb03wiF52dVVBFQmncPvkY5ItjMYb5pxhTYfgJo2NUveIHBehvdE4u4bMuG2Cf1uEhrWg4xu7zq+klH6BdM+c3KyQBPG+LX4= Received: from DB6P193CA0022.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::32) by AM6PR08MB3240.eurprd08.prod.outlook.com (2603:10a6:209:49::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Fri, 6 Nov 2020 10:20:26 +0000 Received: from DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:29:cafe::e5) by DB6P193CA0022.outlook.office365.com (2603:10a6:6:29::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.22 via Frontend Transport; Fri, 6 Nov 2020 10:20:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.infradead.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.infradead.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT008.mail.protection.outlook.com (10.152.20.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.17 via Frontend Transport; Fri, 6 Nov 2020 10:20:26 +0000 Received: ("Tessian outbound 9cb9038eacad:v64"); Fri, 06 Nov 2020 10:20:26 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 387ced14a052e387 X-CR-MTA-TID: 64aa7808 Received: from 3ee90cc3995f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id BF174E08-2806-45FB-9825-9D7353D216A4.1; Fri, 06 Nov 2020 10:19:48 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3ee90cc3995f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 06 Nov 2020 10:19:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I5qzj2nmCD202biY2/UXhZPXBWmhtZeQvsyPgFpe+/1Kt9+AdWLoru6nfZN1U02/oUzNoroD3xW7Yg2Y3/BLnCBX//CN7WSuMV40Hkt7/wXmVsefr5tLZH35O2KtI2jikVSvElMs+WZn+c4sEXyw2XHPC1TClYxDR/RQrI8VQjLaXSfTjbWovnVK4GeZgbsgpQXlKU0zLXYJdJSkGOvnewfWO/9lK8yHChIOQKjWoCg3i3XaY4htsTAC+Q84n2T8Spr/21yvsPXRBPItN+2XDi2BMuERd64oTAB2muim+94icfdK+txavnulEoWV0BagAEaV/+udNgAI0KsiuHH6Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o57nPdKc69cmoVpXBQyh0cMtvu6jNCquHgsAG3oTL54=; b=MZb7aEvrnSGn3g7mwECwKQyehkCkaUkRZLoyeQbK/n91JMGqsbZsponvn7dUiohoTKue/mU5aomf9/6VlYQZ39bxFn3tRhgNe36bMD5zflBJnO1AXTl6yYai0hlrl6kn+UZmLlr921pWmQF3QvbQvht0R5aURDiBTb+StDq/0Rp3+pnBtQvci9fRf4GIfWjXU+u2RoStWZyHfQ6QvwYX2HxJ6whzSvZuTDmNY+oeGC3pndP1/ngTOqdCGy6iMlcIPch0+HI7OL2c8t1GEkA2+cnQBdPWLxV+CKzxaDjOPVP9OdvKYlJ4STFjd13v6byvFCkIYzU+Ugt4Bz3Abxzr9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o57nPdKc69cmoVpXBQyh0cMtvu6jNCquHgsAG3oTL54=; b=5uW2zMZPoJkFI/buD/T0ypZnBS7fOL+Se0CvYR5Y3YL3gQpvRCel4TETZ0MeSQSYeQx28KKMAfSAb03wiF52dVVBFQmncPvkY5ItjMYb5pxhTYfgJo2NUveIHBehvdE4u4bMuG2Cf1uEhrWg4xu7zq+klH6BdM+c3KyQBPG+LX4= Authentication-Results-Original: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=arm.com; Received: from VE1PR08MB5566.eurprd08.prod.outlook.com (2603:10a6:800:1a9::7) by VE1PR08MB5678.eurprd08.prod.outlook.com (2603:10a6:800:1a0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Fri, 6 Nov 2020 10:19:46 +0000 Received: from VE1PR08MB5566.eurprd08.prod.outlook.com ([fe80::479:8cf9:caa1:5477]) by VE1PR08MB5566.eurprd08.prod.outlook.com ([fe80::479:8cf9:caa1:5477%6]) with mapi id 15.20.3499.032; Fri, 6 Nov 2020 10:19:46 +0000 From: Szabolcs Nagy To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] Documentation: document /proc api for arm64 MTE vm flags Date: Fri, 6 Nov 2020 10:19:40 +0000 Message-Id: <20201106101940.5777-1-szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [217.140.106.54] X-ClientProxiedBy: LO3P265CA0008.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::13) To VE1PR08MB5566.eurprd08.prod.outlook.com (2603:10a6:800:1a9::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (217.140.106.54) by LO3P265CA0008.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Fri, 6 Nov 2020 10:19:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2dc268c4-698a-4a90-e613-08d8823d947d X-MS-TrafficTypeDiagnostic: VE1PR08MB5678:|AM6PR08MB3240: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:398;OLM:398; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: KezDko9hlefpJxzpi8mPSPvyfqSzUl4Tw8N99cSfcSqBorSbCYrE456zvougSPBbaDFgknD0GwGwSmgecmVu5bp0Y+vm3uQo6qVecZoNA5N0Pnipr3H49TB3fYQPUioQalv4ndEjvNqybiUACVjBDt937ZMFiu2p0coBOARX6aKEDQ0/zA3bkeTg9mqQp4laPZJaH2/5FW8JXaOHHim5l9XddQ2TrPa0s+3VA0IpE7c5SpY0Q9bC+6KjglW51j/v4Z3CVdXW626jT5BFqkXpM3IOvy2sRzmmne8ESzI4OACWKpKL+lvNVimf2argYMj1Rb26aJEelIY5tRCQt+Mg+eWabjx39wxTefxj2XRMqAXoZyVgBA3LPY+SR1NZOV/k X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB5566.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(39860400002)(376002)(346002)(6512007)(26005)(2616005)(956004)(69590400008)(6486002)(8676002)(478600001)(186003)(4326008)(6916009)(44832011)(5660300002)(66946007)(52116002)(66556008)(6506007)(86362001)(36756003)(1076003)(66476007)(6666004)(2906002)(4744005)(8936002)(316002)(16526019); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: qUtP3NTIDbtW2Hzwo7a7ctxqGPcSICywlh7KhZQwVQDkNow3tINcFeDcMXj6vd944X/6NKqHxS56psTlaLbwWszRVYJ0oSBxU2VdgxwSrB8xKY8mZfJwIR0udWXnma/YEHrly/xmv5zjn9tENWf/ZhW6WVFheoTe0rBrl83bGNbbEhH60DzgZSxb4dwFQvKXFCBUzYzzBDsTQStkF8c8PXBOAga0UWWvEVKbdedLekyYaxODiTwCTpv33lu/HW+jDx0BHHP3HlapQHbgoQ7GXv/8JMdwFP3SkVZ3aj69nFLgMtmcEiMn3MwxHiglhEqy5Y/yE69pMcw1bSEzBqI3bsBqVfgmsmevwQsyLYpRREXRNun5MmV3jlGMnlGu/rd1SlELa2wWwSXb3VJqcB3WW9ArnmTU7795cKhvZ63OKdngPanf6OTkT3iTjTjfznR9Mf4Q6LpLuU3RBkbVLyUBm8/jgLLtN53fAM8ZqWelOfVqrmMlhPKwYSlm3Dkg1SEBAksXVNCTqRfupiSPtGjg/2q/xcouV/b2E2pCL6dn9WN2Zf6AVp6E6FcOscuCV/HAiplizZYc4mg3xeiZAEJLsxmWYhiaxynJ/zDIYkpKtqf0GYkp3I6K0ZWLReBX7yKNcFeVnLT22UWAr+fbWOqhog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5678 Original-Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 6033da04-dd10-4a3e-8695-08d8823d7c40 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cWLKDHJZgnE4q5gVQE7D0/2toZnEijzbGjD0amCN2/M0QFticmOksqY2lK4fzrcPv6VZ0sXRl/1IGfflKFbc4ru2DuKvpNXMzLEQJTDoJoXym1OrkdXC1fWFX33RjUlpzSZ19yavgFWYz9O8LYWXNZ3lgrq3kZJRSprzHBNTB6ObK4DQqQZjBAyBE0A4FjegCHA7bJiy5zsSCphm72QpGuqhxOLG2GAPeWH57T3jMrXV7xCxVp/rBeR+bmCa58SA/w2phtFdGJ0D+rCbiD7K6X2hUme/3qhruZH6WSLY4cJD/R6GFxhuPXdC/OZ2kliGET1+dOnmvPdVkKQCTkvZZL/kEY5yPXK2TCyljmsIdbwLmxNe5pP2QFhDxj3nWqHUzt/gpWoqc1Lf5gIm4h7PpWXlfRS9142nNrXIVeGXS7tSnENeCd9dAjAD57JDoQLI X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(396003)(39860400002)(376002)(346002)(136003)(46966005)(8936002)(316002)(336012)(478600001)(86362001)(186003)(44832011)(6486002)(16526019)(956004)(70586007)(107886003)(6512007)(6916009)(356005)(8676002)(6666004)(26005)(81166007)(36756003)(82310400003)(69590400008)(1076003)(5660300002)(2616005)(4326008)(4744005)(6506007)(2906002)(82740400003)(47076004)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2020 10:20:26.8760 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2dc268c4-698a-4a90-e613-08d8823d947d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3240 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_052033_354557_54BE629F X-CRM114-Status: GOOD ( 12.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-doc@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Document that /proc/PID/smaps shows PROT_MTE settings in VmFlags. Support for this was introduced in commit 9f3419315f3cdc41a7318e4d50ba18a592b30c8c arm64: mte: Add PROT_MTE support to mmap() and mprotect() Signed-off-by: Szabolcs Nagy Reviewed-by: Catalin Marinas Cc: linux-doc@vger.kernel.org --- Documentation/filesystems/proc.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 533c79e8d2cd..e5fa972d4c76 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -546,6 +546,7 @@ encoded manner. The codes are the following: nh no huge page advise flag mg mergable advise flag bt arm64 BTI guarded page + mt arm64 MTE allocation tags are enabled == ======================================= Note that there is no guarantee that every flag and associated mnemonic will