From patchwork Tue Jun 18 02:24:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13701697 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 3B65EC2BA18 for ; Tue, 18 Jun 2024 02:24:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 935996B02B9; Mon, 17 Jun 2024 22:24:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8BD8C6B02BC; Mon, 17 Jun 2024 22:24:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 712086B02BD; Mon, 17 Jun 2024 22:24:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 52AB36B02B9 for ; Mon, 17 Jun 2024 22:24:36 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id DD9AEA02F0 for ; Tue, 18 Jun 2024 02:24:35 +0000 (UTC) X-FDA: 82242415710.15.2D97C39 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2067.outbound.protection.outlook.com [40.107.243.67]) by imf01.hostedemail.com (Postfix) with ESMTP id 11B4C40004 for ; Tue, 18 Jun 2024 02:24:32 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=a9xKDle2; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf01.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.243.67 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1718677467; a=rsa-sha256; cv=pass; b=nlo2/tR1ibBdZh494d7JIv38bgh/bh4zWubELpPDU1esuuiMnEw+uyNCPpZqRWxF5EQ30M 7isX+5LnFH5t8JBwSEQ4JcH2yKzJuoI1dZP9pGb7cvWEBJ3oD1AwMDP7ktTbdSTxvAwzOr J1VWHscwZLY1fn6baeB9Hao9dg1bvE4= ARC-Authentication-Results: i=2; imf01.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=a9xKDle2; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf01.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.243.67 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718677467; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=H4j1D6rq2Xt95UVQa6PobPnR+SkOGU7xEeKCeFMfgkE=; b=5cTqQV/wcN0zZLNtvMeYbo8f9zk13T95ByMAmXoqAuR+ba9Nw6POstUp8/zRGMUUcojYA0 iMoE3FWfW7yWgnQ85t+8OZbxjSsr9snrX6G0grnEYEE1YNU3LtMDOpj/vLw87ZMPVBRm7q NtsIfR4YysMfn7WLyGIhVYBTG79D268= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bcVxMwklDpxt0szYaFz7aH2UKNp53LI7Nlt/p0oEqjT4zeoZwXfeAb+KueZiYygDNLHzjy0yfC46oEwP0TuXLMprV9pY3t672atqDtI2C6mIgRQ+3VheVAbEs51YDA1ucpNCdVFj6/nF/C+zXdiX1l+Kqsb8cnoK8pqwxFC7UiXPo0HoN64MWITPuwxMrTifx/ddsTyLlnE0tx2CopPMgwMqcutEB0/6ho72LkEEjIFCa/hianjB+L54mXU8T7i0KO0nNCWKgPjiE+rOTMT/usF+6qv0/Cw2/11AAPRVz4jU90HI/VWeu/q9+jMyrNu83vGY7FDIM0L3XO2F0Q408g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H4j1D6rq2Xt95UVQa6PobPnR+SkOGU7xEeKCeFMfgkE=; b=fdZTWkRPDyK+SQniKULGwr9OadJcMARyjzmj45pzm0s7Gw/WrSsjWuOWcskiHFh+/VO3gAGBOPggxyo8EOQDEpgXX7Gc9DaGkp7LrWRDiHdaQpjQ5PB5xHej+lJ0W1s3MmXxLnPrvGL9w9ViXLmvBPI7IaV0LFyOs8GVRv/d/y/g5wWuP58xvft/gBlHCTtR4QUleWKeONgV1djDTDmDS0MBhtlhrvbXFf0H2yZczopnOZgu7usVPyHHVDGFGaT0d2A8nScQ/S8LdZBRAAEwZPSCi72A0QAnM+2i3hZoWMj/OwayRYPC1BN0UkcM3nkz/lfmEhhcJNjmjvGD89FxeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H4j1D6rq2Xt95UVQa6PobPnR+SkOGU7xEeKCeFMfgkE=; b=a9xKDle2xY7ccCbIAYS6SCdYwOzG+DIIoGeplR90Dy/mdWfN2hBzK/czCPZJzunQjFUTgDIJtEQwUbMJui08pviojtn18D7Z4YluroWmSIej1XK68OiR7iZcfcjoG3KVmp0/xp4KGogLHoE42bySamysy41qylWPvFHKmE8L+h1IAP2PV8ULCYG5aByvidcnLbTNxR8C4UElqumXM+UqgIeBUpX6v1H8JzHQa/1Y6oL5u/yEqhzi3Mc4DF3Xp9+0lwc7izxeY5wQe0/12xda8Z5JzIG5hq0ZJc3IyQ9k0ynzTPnznScevGWFo2xJt8q3nD9BSR2M4nMN+Ox559xUyg== Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by SA3PR12MB8047.namprd12.prod.outlook.com (2603:10b6:806:31b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Tue, 18 Jun 2024 02:24:24 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07%4]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 02:24:24 +0000 From: John Hubbard To: Andrew Morton , Jeff Xu , Shuah Khan Cc: Andrei Vagin , Axel Rasmussen , Christian Brauner , David Hildenbrand , Kees Cook , Kent Overstreet , "Liam R . Howlett" , Muhammad Usama Anjum , Peter Xu , Rich Felker , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, LKML , John Hubbard Subject: [PATCH v3 0/6] cleanups, fixes, and progress towards avoiding "make headers" Date: Mon, 17 Jun 2024 19:24:16 -0700 Message-ID: <20240618022422.804305-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.2 X-NVConfidentiality: public X-ClientProxiedBy: SJ0PR13CA0216.namprd13.prod.outlook.com (2603:10b6:a03:2c1::11) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|SA3PR12MB8047:EE_ X-MS-Office365-Filtering-Correlation-Id: 964ab3fa-bdca-41d7-8baf-08dc8f3dc517 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|7416011|376011|366013|1800799021; X-Microsoft-Antispam-Message-Info: qvGcXlz9chvgfhAWrUYabWOhY/8lwl5wmlE8aGq9tqyOBTiwT0m8MVyRoraB3plmNZpjMV2nmDA7k3SjvBK9yWkDwTPS3y3mvdMNH+E0ALnoyh9mIM4zIcqJx0ZJHVJWJEv2slRVFfwKVSRPPEjtDGNIyNLQTeI+IeYiIrDoiVjp8JUNJQBulrGpO5c8YniFn/zuRiJKGZDZLfNgPltXiOL6NxEZM3UOHx95f292Sq2NaM7Lmy5LoGN4jXFD1NC2pvuYDbT4nVTe/Zn7O4xe1SYyCOQindHpUuF8URAYG2cYRMOdnyRIGD+x52ungcfvSZqwEChP7wTuORRuLpJvE9DYO1jGiE0/ImTQ7gtIFSHCQVwyjBam4mC6tg+olWwi6MgYvzDtuZ/NdWGQ6j1X/Px8bVMrUVBXTBEp2tGz43Aa2a0/JVv5ZFpvXD8qqjauF/wjepTj0HvDi4KOt+UExQygKYxG7xGSmEcV13dzWKedMvxQ8sHxSr22HX6eTJdaKBB5KJDpnFlmdbXoN3p4ijh8Ml12r3UC+/pUKhjksqO51oXkpX6MNswXMB5ZqUjl+5bI/Fa1+4GPubX3DDG6icO/17/IcXN1IMQ/k37F/mmrJDDf/O6CyAH3+BwJdvdDa0K+fBlmPJFkydl53Wiv25bqhoYUPdofs7ZiQMGa89b9Qcc96FDtW7jn/x+ODKOcDWWyzh2ffPVo0nTc3vRnDm3aGf0+WcHxFrZqJRtYX5GaqOwuDn2GJrSl5pYBfd5viJKSoO82bQLoXPw36HD0UYqSRjFKVVYDz/oOnF9Ig0OOycaEnYLsGy4dsyHS/OK/x3AaWkdcbsb8MzamuVOl72HykeUV5jHcU+IPE5s/UwlqdABgdK+SvFFIblqVMrzOQ4sPpzKPcHNEXesnTmLIkmaAf960l+HZPmQaDt2+n9K0e5lNPg/yVKurYBUzYy7hvMksfBvJtk+lFoiIiIkRYtINDTSVVQVe6oWpPe40Y+rOuwV1XCb89ZX1HGTODiYyYF5rh5FDsmq90Rj7/NkgDlMK6aWUC3/xhefCsLAEk+l8a/sChWWgK9z92ceCXKTp8A2+BNoNDEX3x5GeGo0q6R6ApXCNHE0ceIlz/uPFVNO6yImImNXp7BLflrxq9eIC4iD4LaBilKlSuMeJM84NitpFjuw+t6GJt2uItqDBqwU5RgfuKbsyYGFDcX5QgqCvIiOzJjt/IWDC61fQLjP5FDds9GgPWApnZkr0+85ENoi089x/7G+XlXDx9iPaCtOOXxm4Z6yvIEKoRVEGbT081hiSZZWX2lK063xwTvOTa3jIwsIQ+AtvRq52oT+5ISuP X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(7416011)(376011)(366013)(1800799021);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /12DT/UPqHaY1CjPitA7UXDyDRisVvUs+DTu/t6FXfxs02MsEB8QuTGTwAeyXlUhsk6jlwHr1eY2HUC5DsdI7hP74DFpqMUDfCnddZ9MQYl9ejlmRDjUD8/QDkcXHcmI7P5g6vWCM8m8uWkGScpsStArm+H2QX1+ZbL9PDaxCOosD5nltUhe/cry4uVf6ayIMkHC9WCIFpJ2EzmLAt/AWFjxIt1LAGxN4923E5Wa9iwvq72bE2vbjEgTRUdpT0OSIVKzgFyWoHjryjpgXbd+SBKpGeZgXghygBh4A14tvx6ZpYzYSfY5PbAYPnh90TwxDjs1KVpGDsmSjm2HJvx4ZfnQz4LewTAT3YsMeyKDBlJw2Rt7P6CDCcNLXe2FScDa3/tOxbHu2mXhfJ77LiBXCiJvOQ+qFyb9ld3gYRuHh61DYT6Yw2elSFgWg0GOZ0K/ruNhK8ii6xLUJWwOL1b5kZwNKy8FMcOPkSjryn97vBm8JG3C8yOponQPwiiYPBDNValOUZDjq5AAeU50x9gTKg+6Bz8PdUXpUuqetwkwkO1Ui9SjJi/WThEaHJIxNri3PkdgRjEvmaBQlYOPLrMiXrlOqLKAoArfCo0mH95FUYU8eaU6Dg+gcHQCCAmwo97me90GIXW9adT81vz1MThMwED1QcoUYIb25+aAWrmEdG2izPwoQMFjQVrZwwOq7ZGoCa/a08kXn76UKxg0zCqwlziCekbdmJvFTyY8grhUq+PNnhC7sKhy/nlH4ztIIL4SjAso9oobI9S82Bf2CsEZXjRMzQYFlP1fHZK6KTBLMGqv7H7iY/2YVlx0D50AfkKVgTw/lMdZVzWbmbVS861nFFtl77bA/4lzT4lRZxymWgQmDakzqIaCHl++5WIpBo/XQvhDN2/dnHKKeN44LCDrzur8b6LHyeZ/BadmnnF4LqYit6PaweGJU8H8DKHCPYYnMnvxzOzN1kzRF7x9R9+LMgcdT1X63xNK446QVYFdhqy34avARfDbcoR9IOkX1SXqcLhz2kpwVApJtC5ttwUw1/sJzl7fWJEZp6GorEb/U7fg2zAwl+wthdPakAXIosdH/47C7ZjY2TJEypa4yfqtdcflgVfN3NW/iOaYHpPnS4hR5tp5XZrqO41q65L2bff5gFQF+GHQBZA++iAKa+t0d24wYIY96OdjqK7hB5IFlnJS6iE4dTlHASEPMPlveP1XlfsyL1RUB2Pw5OeikrkSzzTfFSucj2md1Ole6e/iUDn1z6zQcTK1ZJCuN+asnp8ITUuhW3Y+eYHQOIbZGB1xb8luZNeLNXL3Yx9csmfVJz77IiojBf+qIdQ4FIoeSbsDYNvRKJmxS1GNL4uzeumNXFI4ZBqrj+O+rCfUFuoUuZLpGgS+BMTJPRHdWobONyJjRftPjrBv1IL40nh2L3ODatK7gJWvvXABr2ToZt3azovX8wJAcvjI3gFkk5h2ahvWjQG+I4lN4uIK+x4r4+thQD1lOsu+muuo+djccLYukcpNjOsg2nnhKOqXYLNH1cF6/ZZkn0lthAomQYqv9JK5nigDsDT5WsdiolFLYRWiOa9qvnorpKlUJ5ZDNM3f7cE/ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 964ab3fa-bdca-41d7-8baf-08dc8f3dc517 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 02:24:24.3042 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pTaYY8rehLUcwoxqdCyb0FVSfwxPYpeka01NrltItnIkUCfB5k0jsNRQQQqy+gBlgwIBrgOuiRaKULsCjo7Ncw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8047 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 11B4C40004 X-Stat-Signature: 5bkjn8q1ajoiab7x3tagc3q9ob1x6u78 X-Rspam-User: X-HE-Tag: 1718677472-466378 X-HE-Meta: U2FsdGVkX18zPFgSUZVSBDoLzvPO0zsMFjgNuT34LZFRz+YAh9B6tvjK8HJcs97nmarRYJ0KPWZ09JG+FaoXS1FpNJq/aC7RTUZg9oLgIfVn97pwM5t7QFp199tCZ28n19XWH2iWZwjT24lLrydFQ+yHZKM4Ghl75ii+KrBffipLX57nXGZr/QCzbwKQyir/mKuyNGz69XjoK2ehMA/nS6lXn5sSQPXiWEUw/6pg7Z/a3Y3XYPaEQjuC23Hwo0kOzblvmV82+tlqTEurIwaXxjzCPnePGJCc4DY1+Dj8Oy6R+yS9AJrr7CzAst9XebnLhnAqPIh8Ax+FJZckZWOeIqmwnuYV5C60tOgQm9gBUmPgRVwJg0IRR+qy2hms0JFs/JBw8QiqnuliiuJcVC3hMgTQCYoi8H5QqLkHwdXeFNOynBi2+wLlUU6OolAA/ZzVwIHWFn14zHvIWGf/YAKys3s4YlIa2MnQoTQJdQal6AyVXqiFLR7tmgEx/0MgxDGuwZHIMvAMcRMxTSQRrYXeV7gIQhpKaxP1zNyDdzO9m+A7Z9gdnKdNIFJYod8wHiMWnFFt8bz6RSkgEIUKS1V6eFc2iue8n4kwYjSrXRYIDbIcPsIGhF8XPaqsbQDHHpRQcSvf/DcoOoIsf3fySBaVKo5ff56JJPZUCQrOMVKUEGSKipFXiCLtL1uzKYZiRwTjwwn6rZTihaq0oyxumFI1485Egr/5gIUP5rmDU1ow+7RA8UCp5PrAUJ0xEL7651g+9wgYG+mMytGRkmEwIllD1/jzDUO7oukbohD7gE5zLsSRwcPCf6LBbi4XMYixXA1CtbS7/vgpWH8Vb2slTQqYXMnqso6qsuWRiC4i8fG1uMhZGyMyYV4hwbClA7PpMLKvzOG+Z2Jdlq4zjo1iw4ndW8/9sP9Fsajk/4kUbGdX8/7Wy/0fT2Ih6hnLCTV4u4q1kgxMQwIyBGrsI/BdgF6 bzOudn4w BRp3vwX3h8fT21ZZTjZQB+59asdHf9BZciGipAKhV5J+rx0zq6qpaar5/rCG3URBgEIsEBK25T/09n5LSbsCvmFsANNtG04b2P+NjnzuDWQ+ivEf5JVeSkAO76NxFcVB6p+I8WJsKPv53mPYpeWCj8IQNTBDZmIfTC8UeVLu2FMljwW4suvTtvOWDwwdNU3DjCfJpR4kytHOS9SI= 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: Changes since v2: a) After some disussion with David Hildenbrand, simplified the "fix missing __NR_mseal" patch down to just two lines of diff, after all. b) Improved the "kvm, mdwe fixes to avoid requiring "make headers"" patch by taking a snapshot of the prctl.h, instead of manually creating defines. Thanks also to David Hildenbrand for that. c) Fixed up the final patch to use asm-generic/unistd.h. d) Added acks. e) Rebased onto 6.10-rc4+ (today's top of tree). Changes since v1: Jeff Xu, I apologize for this churn: I was forced to drop your Reviewed-by and Tested-by tags from 2 of the 3 mseal patches, because the __NR_mseal fix is completely different now. a) Reworked the mseal fix to use the kernel's in-tree unistd*.h files, instead of hacking in a __NR_mseal definition directly. (Thanks to David Hildenbrand for pointing out that this needed to be done.) b) Fixed the subject line of the kvm and mdwe patch. c) Reordered the patches so as to group the mseal changes together. d) ADDED an additional patch, 6/6, to remove various __NR_xx items and checks from the mm selftests. Cover letter, updated for v2: Eventually, once the build succeeds on a sufficiently old distro, the idea is to delete $(KHDR_INCLUDES) from the selftests/mm build, and then after that, from selftests/lib.mk and all of the other selftest builds. For now, this series merely achieves a clean build of selftests/mm on a not-so-old distro: Ubuntu 23.04. In other words, after this series is applied, it is possible to delete $(KHDR_INCLUDES) from selftests/mm/Makefile and the build will still succeed. 1. Add tools/uapi/asm/unistd_[32|x32|64].h files, which include definitions of __NR_mseal, and include them (indirectly) from the files that use __NR_mseal. The new files are copied from ./usr/include/asm, which is how we have agreed to do this sort of thing, see [1]. 2. Add fs.h, similarly created: it was copied directly from a snapshot of ./usr/include/linux/fs.h after running "make headers". 3. Add a few selected prctl.h values that the ksm and mdwe tests require. 4. Factor out some common code from mseal_test.c and seal_elf.c, into a new mseal_helpers.h file. 5. Remove local __NR_* definitions and checks. [1] commit e076eaca5906 ("selftests: break the dependency upon local header files") John Hubbard (6): selftests/mm: mseal, self_elf: fix missing __NR_mseal selftests/mm: mseal, self_elf: factor out test macros and other duplicated items selftests/mm: mseal, self_elf: rename TEST_END_CHECK to REPORT_TEST_PASS selftests/mm: fix vm_util.c build failures: add snapshot of fs.h selftests/mm: kvm, mdwe fixes to avoid requiring "make headers" selftests/mm: remove local __NR_* definitions tools/include/uapi/linux/fs.h | 392 ++++++++++++++++++ tools/include/uapi/linux/prctl.h | 331 +++++++++++++++ tools/testing/selftests/mm/hugepage-mremap.c | 2 +- .../selftests/mm/ksm_functional_tests.c | 8 +- tools/testing/selftests/mm/memfd_secret.c | 14 +- tools/testing/selftests/mm/mkdirty.c | 8 +- tools/testing/selftests/mm/mlock2.h | 1 + tools/testing/selftests/mm/mseal_helpers.h | 41 ++ tools/testing/selftests/mm/mseal_test.c | 143 +++---- tools/testing/selftests/mm/pagemap_ioctl.c | 2 +- tools/testing/selftests/mm/protection_keys.c | 2 +- tools/testing/selftests/mm/seal_elf.c | 37 +- tools/testing/selftests/mm/uffd-common.c | 4 - tools/testing/selftests/mm/uffd-stress.c | 16 +- tools/testing/selftests/mm/uffd-unit-tests.c | 14 +- 15 files changed, 824 insertions(+), 191 deletions(-) create mode 100644 tools/include/uapi/linux/fs.h create mode 100644 tools/include/uapi/linux/prctl.h create mode 100644 tools/testing/selftests/mm/mseal_helpers.h base-commit: 14d7c92f8df9c0964ae6f8b813c1b3ac38120825