From patchwork Fri Jun 14 02:30:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13697734 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 30AF6C27C4F for ; Fri, 14 Jun 2024 02:30:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 990BC6B00C7; Thu, 13 Jun 2024 22:30:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 93EBF6B00C8; Thu, 13 Jun 2024 22:30:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 791B06B00C9; Thu, 13 Jun 2024 22:30:20 -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 588186B00C7 for ; Thu, 13 Jun 2024 22:30:20 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F251240410 for ; Fri, 14 Jun 2024 02:30:19 +0000 (UTC) X-FDA: 82227914958.23.96ABD1B Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2078.outbound.protection.outlook.com [40.107.93.78]) by imf29.hostedemail.com (Postfix) with ESMTP id 286FC120011 for ; Fri, 14 Jun 2024 02:30:16 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=eiQA+WTD; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf29.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.93.78 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1718332215; a=rsa-sha256; cv=pass; b=lt8Q3RNNYTuoRy74i6cGBBo9qRwvDqFAsBslHYQGF9vYrQfg5fD/cjZqz1Hunm25qy8FmY qzzK8rALDujhnyCrT3vyXS3AxA/UqtUuumWer169PvScQyKjjeCjpV63xT4ca+WjWDCxLd DJFryGMcjsd1ei4vSqLqi85WSRL67bk= ARC-Authentication-Results: i=2; imf29.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=eiQA+WTD; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf29.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.93.78 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=1718332215; 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=urqConhiqN66QsXSjxzv45ufVsx/6iAfTidQznrRICk=; b=gT9D0lg7L7fCw+aRSunGE0WjUIQ1G7adEV+JWnHAbU4LKG2+vTEMK5AMPrviT01DwlefwC ywJTZNkuI34Mdoj4UT+xgb7Q9xHD0+CwpI9zumEv5sobD1lTP42dpEUbcll//I+GTdP8ZM Koqy4FVuUJNLbflIviQhOSDsCKCwO7E= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XO7Sapn5JlADwfYMTNDRR5o0Z8J6VUCsgQy8np/ee6aWKrKM5MjD36MHNEUJzg2nxHinVt/ZS2goyaTUXbENtha0VV8TFAebIt/whQgWZd7O2eGHsVmm7A6R4kZv6qUiMe0mmqNnkPrqJaDo3HMtJ+ldILyioUl3ybeey0UXaeOeoXzXC2Mj/+q+oZ9vpRtuDC+lGN/tJQrPEwsy7UDyUjDOwnmwRWj+xUIKewOeImoa+zPPqn7sJLWcxUyymzYcYRyrFOo2jt5f4sJbwPxCozt5Q67ArJBBrFUU/mpR4B6dwXyUxqWpoKQaH7+s2jQ7Q3ih6P6RPCZXL+xPnduj9w== 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=urqConhiqN66QsXSjxzv45ufVsx/6iAfTidQznrRICk=; b=RiyZ8H1jE+0mgglauuBPzXMyeyoYA2knhyC1zdWAYqYxJTrze7txx6QjpDAVToVIl9mvO+ar0tsTj/iL+p69o04fsgnEF4fsLdC9Pzon/SOVQblUuBcoXllUuqFNYaAIMzPB1hjbxmJk0+2Ym5WmFu0FZJ/w5zn2oOeP8o6TpSJfDvMZO6/PRrocOh39hium3jZMZj/PLLlX6bMy5u6u7y20O3jCmuECHD1Don1x/Y+FTRV/OUktaBV7hYubrEzaXM7xi1/8tkukneZzKxqFvNw1uY5KIEXWjUYEEq2NVw/0nxv8ckpxWHDyD54GSKav/ylqwJRjHEVEPdX25PfsFA== 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=urqConhiqN66QsXSjxzv45ufVsx/6iAfTidQznrRICk=; b=eiQA+WTDVP2Z76DeLxJSNOBF6vJE2K+iEOaxWy5HLMUx/kG24bNdCp7VHFgxyEmcs6wcnQoQwPbOMfGtTkwV+BujzHc/EilDyD9xwvBfTdnaCH+0EHS1rI04e5BlNiJ0AoGSgcooal/NgjH8k1XUgHiPJnmZoWM6QibwAIPw+mX7BM8my1bNSU/beioX4OXdhdVI1pZn+fEnQPiii97yhZG9UQekCQ+cKkXGyudbh4CW052kj4AXLmpcEUZzzd/f36fP2z2qz0vDMmjSZ2KbDVXUXpZJJkQYEKrdJfRGPhAPpU2ct3b+YYCDSuZUazXyr4NJokE9cPqk+haAgEP1aQ== Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by PH0PR12MB7932.namprd12.prod.outlook.com (2603:10b6:510:280::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.37; Fri, 14 Jun 2024 02:30:11 +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.7633.037; Fri, 14 Jun 2024 02:30:11 +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 v2 0/6] cleanups, fixes, and progress towards avoiding "make headers" Date: Thu, 13 Jun 2024 19:30:03 -0700 Message-ID: <20240614023009.221547-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.2 X-NVConfidentiality: public X-ClientProxiedBy: BYAPR01CA0069.prod.exchangelabs.com (2603:10b6:a03:94::46) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|PH0PR12MB7932:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ea265e8-1eb5-4676-757b-08dc8c19ea1d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230035|1800799019|366011|7416009|376009; X-Microsoft-Antispam-Message-Info: Mj9OVyJC/FXkfjFPCtue2ufBeHg6LDFnpd8Wf5w8pYIbGNCpojpxLOtvQsP+HcWKG5T7JN3fFfgMX06ZfBAdBdAZnreLnlS+r3iW6KAejUNSbCbRs4VzoDCegqcgbyUT2+2lYbkTewn1Y0nrIsY0RkcGtwgs2ptu6YzwJN+0oZaq+wutEetgPukhE0fP26MeTWkY1eF/9OhitsCvx8wGSVN5UkaW2cPKeJA3vu+c6ksD5zedOXNufcNpNIDNlMc2JnNaAP4NPvvIrPV44mKZs+MX8G88TBO3Bt+Nzs+E4W0vGXgZNsYhxsL8GzeANR2m6uPznWdel9wsFVRuobiBtdRpVVo/xefp/GK9zULf5lvjEZFgCGNdwOHIWDp2/IIZ//HS5iw4qiTkw3pUdTrzXZHGYYsd+guYj7ZXLpi2oyJWoMvx5FAYhzisEm+eBI/7kOhG2CHGMeBqdJbjYrRpTsMieH0YU9v8255tMla4GgCfi+fAVC2n+yYwAvWZMQ8OhAlAbbdCEmCeKQVOsV4jQEBJ6bU1WYkRzuuXUzACNj3SR+LwHdMEv23cMBhoHAykZZ+U3ggk1F3aZiDh5KZKBixsPF/MEpsRnFcKtu9zhBL0+t6wstXy3vcC9ikoVxvORIhNgfOZx/34xU3+GqIe81/LIxdLvWxqdzKak1CtLEAfmkQgd2e2mfAZTSqKbIT6CG9oCsSr8AuIE0Xwf+B2fLyaQGqMNi8tk3kfmCyFef8FgXRTk5c/Gy0r9LWSyW/lv/pNSWnCaUU1Rms5bZ7v/ONfalWZn4XktH50vGRqfeR/bR7z8FxCymCU5PMavvOyQoocAhcCzHkEgX5VZirDDU2CAHRF++ybtTRsVpi8Xomlc8USfGmMsyxJsv+ogQE0I/sw7my8HlI2DhZ+HQhEm7MNEYfcSjkjaK53MvLrAtuLIykZ0yyu8xm1njAPUptJKRDUfjnB7YzTZ1E7x7Mmw8AClLSwXTHdzh8wPdJ8lZjvntNE6JDXDEDKzvMySuyQUQ/mbKmi7t96Has6pnheurTwEIK/w0yj6PTQHmDYN05f3hTLZtJM7PVjRLcyfzje96OK3/rSch17qFAaWN/rQfYh5T4WS5tbJwIu5gPb3ufZG0+aPuY5uIOhbYe8SUnwXuuYLcHAZ21xN3Z0MwhvVeN5dAVDg1aK2G0tgykNQd1bW1Z+Hm6l1/lblC43BD7ZkK/QeQTtYuTIT8pB7mJ8vDMcrPxVaOu9lfsWMPjtiRRe7DF+Z4fMhdNfMdwLdJOhZkW0hfhHEerZvSgxO5qw4JEgaS8KKC3p5BUi7ZdPWwv7z1olx0k+P82sItFvpS5D 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:(13230035)(1800799019)(366011)(7416009)(376009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nht/yZH6sypaTJKcaOv8iaCnYWavGmdZU7Aj4+Jn3Yahv9lpvJqyM/fMkGnGKvps+XQ5rMw3cwoJsdpCCPFtKk3ydxtDLIZrwzHWzbxSLCnSjoL8NWfz/QmvVmpfs5sL+rlTMlQn97FrySA9Ammz4nCebxu+B8uxaUFolpYgBlIUXc+5B9ItHW5QtS86WIHLa4d6skrXmA7P0SmBPG9dHQoWz6YZbyKSfktiQfY8wnRMJqOwk+9RK5IBgZqAqn4DnpILEDmjMOyG5ObOXzmwMwORPEL5oSpk6WGy7UfqQui2Ro6O8YgKsVHnjc176k0PLMgK+XJdVs+os/l6nvswAUdjP1zft7QHGkwsG2JI9+0cTNSwwpuYhB6Dpfhqul8kFMWeXsRLgbncJAbC2JPY+s+Ddh3YcEeb1UYkykuGQE/JKA0LUl9b6TG7wYYsg9EM54GTINhQPh4K7UIGNQhUpOPYuWIEWLR7t5Mm9VMXu1xv04dyofafsuNskqrfQJF3oj/aGa2A5w5wf7CEN/gdIk7PbWNuWeSBoDd6WPCrIO/JoMpRmUjhI9IFRRsCGLX9ujnGNTnFKggEyC9riMCFwyMwDtM/T/PlkSk3d4b9ooQ0KT7+/FWAG3R9w6SB6Agj3ZzvketE6yf9J2VIkqzwyZPdRlMzrjp2xt51R5v/53A00cmVn9aTMQCX1haZZ9AduqNT7UZ0GGIDCI7XHKfC0Me4KqnTZYCKKv0lle8uaRZipI3S8r0zTjNR8uihFL9PJUqGLz7hSuPvAiv0A2DRereAGFLNt2PzG9rFwcLAxXWscJe1h2a7TOsUj5s363BuoZQ0U7dpzGKFTV2nzMR7pK7jrhzdYc+R3c55a+ZWJOGga8MNEWNUh1jQKnunnpxaq07MNfWEZ3cXsVu/PXTsGj6Aq/ryLruJyeIgZ3I8hrkN+lnZQdnmn37Grz5qUMKYNnXOhLtWDgb0aOCY1WCDxL9rLEW3HfM2zE8g/+jkDkFsbm+nOjwpLZnjzm9gn2IANxCs9Dude8W4914P7FGpuIJWEOXgFj6kH2P9nhlnAisR77KVb2LF6YbEXDrGLBkM+R0R3XmzKTIO6AmxF7PnhBbjJj4sXpKRAIY0EnIHl9/HA95RdDz29n/GQ4CQdpD4yRdaPAotEg4pAqUk/gDNYzBt8Ch8ICE4pniEjKLJEUrxTsNubGiaF083Gyyr4Z635sug3evJinYQ8L6+IbXPDIUllupHXkD2z9TwqgP7knZS6HNFsHm+WHSejmb8FHGv4hnQT9EzWHy/rmE2W7hLyMj0KI4p+tnxIhinuJS/LfYSr2kf3pO1JUsBA+sU37Fp2mQxdUZvuBMWd42TBjS9HLx8oWjKW11118vZGGz3vuN2Xk5RAqYfLD2HriQ5m6yrNzOAiLV/wRWDwSsGRqytVIwiGDLvKCf1yKlhlhTqINQE9piG1iuqCoIVBjnyYijsb+Hgo8ztIorVNTP3YfcKWK47ZXSNYUjOVrWgg+qiiw6vfju+k4W4Io1yTNaUnc/esdik4SAu75FC3abg3lJIuwsU2dJkM/6XHVrt4GKhupxoWgP1ZJlhMLNvQVrY3+H2 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ea265e8-1eb5-4676-757b-08dc8c19ea1d X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 02:30:11.0758 (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: J54G0/t2inP7kkLJIfcBZuw+fzacq4pGoB6nij3R5lnLNwqTeQBGg5m00wd9ARBdDCvF28WdfXE9ZpzrUNm9kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7932 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 286FC120011 X-Stat-Signature: b7ar6sqa5fb1pc4wctf5mkekhfgzwkux X-Rspam-User: X-HE-Tag: 1718332216-165799 X-HE-Meta: U2FsdGVkX19opDVe5s/+Mg2VDiHSndACpwvn5dlf3RQ/tYitg8Hyf+mTKcMLa7J8pGZXveEhAF9rfDsQ7vD9IqAMjwK1MTacoBeALrsUh6IVwmS1cQZEvyNLClNSJfAvHLioa/h3Xc92D2nyPU6pbAjgEeqPOfS6q+hT/EsUyUfy2pZ7J9meiF2JkxgPMGa9oJ2paumV7h6VM9/Y/fIGBUAA5bf6zZ+EXpPc566KjYJ1nrorE80wi0BccOmNX9bdxPwlPYnH/0qJOUcNsgjR+CUeX0UKWTo1KWe4bGRnhSPl6udu/pM0HdYbO/l0OYxZ3pjluttImN3JxbbX2C0VKGx1EBlJR9dk7OwQNzZ7ktiA+1tePFlfKicNcCqCqDHKRNk2O7INmhZRiDLTyR5VtLsnC17CNb2+3I7pfkCUO2Iq4olt4GYAX9vPlaqX2JEhqdVz1WTnYdBFTEW3AEHI1hJcbpvK0QWO2W6elabqEQxrSjDFpN7r41oPnQk2YqY1dujz3lpPUKheFWR6jYIbB7mdXw4XAeQW5ybGzqhghC3Kvg6QboaZeynPiFWZninGmfp0ZYqL156UFQUDUihQcHa6hjq9RMmcd0k71bC/QBS2Iu97aGHBPippi0BPpVZVfPV68wZZr17QWkSbEkkAIDd6ansxXhx87+d3K/rrZPWiBecCQsE3g/4wZmf1NgyMJlPXU76Dqs+tMg7ceZBNLwS3A5LFOF/yJrm1hkDdylqFoNGZWXT0BMqfpohqP7uP3RJgFyHPapdnC+RpJFkmNgkzgGFsY9J64AcroyFOJK8ViIaXEKGVh1f15NgmAG0yOa5vwoiJLY1amMD3UzZQs6hjQC+ZVT9cpRQdBPbTAvP4El8ZSEK/tr/d83yCI7rhbGTQnsfYSjhJ8z1hP9gPKpmhDCTJfGMSC8VTTaCYwL8XwJjiByLIcKO97hk4PF2f1I6asympJbXrOVkuFV3 5PECyYLc siVSH9jO0UlalbTvrokUT6jB+TtTBNViT1JyiMfvknOyZ8C2Nzofrh4GPMRVDmd/WhMYfKWkkDIFEzm3D13lbG0BtHJQHbeu8MOTNpGy+/LsGZaGJx10PgCjZH/neYxncJMK4apAyoFV46GX/RYL4AoF6wvZIxO1K9RbiFThItgZ2mFebgkDUWd2fWBqUbb49JHHHsZXirY3qXyA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000005, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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. Changes since v1: 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/asm/unistd_32.h | 458 ++++++++++++++++++ tools/include/uapi/asm/unistd_64.h | 380 +++++++++++++++ tools/include/uapi/asm/unistd_x32.h | 369 ++++++++++++++ tools/include/uapi/linux/fs.h | 392 +++++++++++++++ tools/testing/selftests/mm/hugepage-mremap.c | 2 +- .../selftests/mm/ksm_functional_tests.c | 8 +- tools/testing/selftests/mm/mdwe_test.c | 1 + 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/mrelease_test.c | 2 +- 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 +- tools/testing/selftests/mm/vm_util.h | 15 + 20 files changed, 1717 insertions(+), 192 deletions(-) create mode 100644 tools/include/uapi/asm/unistd_32.h create mode 100644 tools/include/uapi/asm/unistd_64.h create mode 100644 tools/include/uapi/asm/unistd_x32.h create mode 100644 tools/include/uapi/linux/fs.h create mode 100644 tools/testing/selftests/mm/mseal_helpers.h base-commit: 2ccbdf43d5e758f8493a95252073cf9078a5fea5