From patchwork Tue Jun 18 02:24:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13701696 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 61343C27C79 for ; Tue, 18 Jun 2024 02:24:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E164C6B00BA; Mon, 17 Jun 2024 22:24:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DC5C16B02B3; Mon, 17 Jun 2024 22:24:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C3F6E6B02B4; Mon, 17 Jun 2024 22:24:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id A56FD6B00BA for ; Mon, 17 Jun 2024 22:24:34 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4466880225 for ; Tue, 18 Jun 2024 02:24:34 +0000 (UTC) X-FDA: 82242415668.14.98F8C6B Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2041.outbound.protection.outlook.com [40.107.243.41]) by imf02.hostedemail.com (Postfix) with ESMTP id 4AAA48000A for ; Tue, 18 Jun 2024 02:24:31 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=E43is4V6; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf02.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.243.41 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718677465; 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:in-reply-to:references:references:dkim-signature; bh=R8HvqjHRkzHLq+KJUf8MEmS7IpTqRMglnhAc5buWyAE=; b=f5nnAcW+cemlMQOYY8pRe749TtGdcE5Ls7CrklS84JuXLzrnml+SnNo6KMkCQR5ws36xl7 r39yVXsCvMoksZje4sb91tov5QfwdnyL7O5UIKU41ydxVYlbye4XfYR0q7cqaHQ7jeIzhq 7Ai9K2zPvONEm3/Roma9gXlj1tvlUMc= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1718677465; a=rsa-sha256; cv=pass; b=hoLuQZ1tuu49xC8VU7bIOmpHvsfdgeGHOnYVprHOInvFYUoY9oZ1OYTeSRlrDpyhmIlE0U u7svcXIZY+nUlYNK0RImr1y4cAbZX/8JoSIzFbJ9xQa1Rl+LS+jgSNxGNANpNAy6gPCyEq CYIC/ZZzjVTFFy1X+ZGWg3V9xCAyTAA= ARC-Authentication-Results: i=2; imf02.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=E43is4V6; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf02.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.243.41 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jTaN8WEoWmx/e73Udx40q88mLJrC2XbtkY3drhV5281X3bam2JWlHOHA7oeExtB0kQBKhP0wLbqETLtCsJSCLWvAFyyRNPA3PPPkA7CpxkLgt/AWWwWCxNKeWYmEKgkN2jK22h5kGkTUYRZR0vYzyBMICImpACe0JDcEQwNMDFcnss0NkCFgU06PmPj9rQ09U7zMs7crYctq1ozSfF674Wi7nK/3BRfLjOxOTAxHkrYVrDKDBL1W8steQy2HstiNWf4pWW0zGXqXUQH0LdjUxLZnjL2RMtlyrQmkTpPEcWzn2BRWVG27eAPk/Vzx1h8JpZz6vjMJTdGDVJAK0LlrbA== 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=R8HvqjHRkzHLq+KJUf8MEmS7IpTqRMglnhAc5buWyAE=; b=SP0XQWUiOQ0bF3QxDtwycZ1aKXTA9RTYWetwElW5opJ4nDk92tNU8X8WVk563HppjOZL2R5CNniCXWZtPNQiTqUOxLreDP3qn0dhlZubETKURuonAGalm0Xa9WZkgVv3cuAHrnrmJpamNDPjZRU1o6dW2DOPNLI69Y1ZHgBECjzvpxU8rGiQToJtljIgwCziZiAqVBEhjD+Y5sqgLycwkKLC2NmNN9fCcyV68p66d+eL9EmCb8m+XeWkioswnResOTvhzIK7E17dLkJcPNqGIpA7CG/k4T5TEI6BoBNtAoIVES2tvHdLFUq+FSMbGJ9y2+s1ZXuThSe6RJefdB+fOg== 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=R8HvqjHRkzHLq+KJUf8MEmS7IpTqRMglnhAc5buWyAE=; b=E43is4V6/fxnwUDD172fzM6HD2rfXP0UyPYecifbxslEa9QhKa9pJQrOTUzTjGeR+C/lSin8tDLblGOcz9/3YqjUB9lB8rYLZSTtHnMJLAySxLrzIWV35xwpkl2+za3i+uBh4WloAMSq2eEPi8YouRJMXsPAFcFxx10aP717XHTgALQ5y8eKGfGWt9lUVZzgLuljgOhl9rudM8Gwqcx+IkdCZI5L31vAR5SOLS0ue3WozYOLUO/6LSGvj/HUIys2NZ203UClrxQYh4QC4Cqa5UdfMECjaD8lFXSg3CL7t24/1gHRQaSwBMTD2w6XJ5nPEfPZviYvx1TTnocunEzFDw== 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:25 +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:25 +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 1/6] selftests/mm: mseal, self_elf: fix missing __NR_mseal Date: Mon, 17 Jun 2024 19:24:17 -0700 Message-ID: <20240618022422.804305-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240618022422.804305-1-jhubbard@nvidia.com> References: <20240618022422.804305-1-jhubbard@nvidia.com> X-NVConfidentiality: public X-ClientProxiedBy: BY5PR17CA0019.namprd17.prod.outlook.com (2603:10b6:a03:1b8::32) 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: 2a0e7556-e47c-4d52-283e-08dc8f3dc579 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: GAkBOa5I7P5d+Lb6nzdje4PjhN4b+ZnA8ohQzn7dUQUiTY16XPeZH3vjI9qUfk7H5+nG5l588bKMXiqBbi/B7CaDShB3Td9D5SMLcOvvUF0bbGOQPzqn+Zmz1Hx9CfP+NO/fM+o50IMTtQA7IBf9rvNzSQja0Bf2ntNeTAMMFtxr8477WQl72W5nEqoUnNQAfJUxyUHf5uC+Eu2pcXnLc2urF1ORsVQ+iBFfTc4p0058N09RXMzIEZdBqznrIAjYSU8+ziPyTU4NQJfITonP8fWPreasJeYiHei7di4L6noVJaQC/RP/V8EXfxneptycHAi5DalXAuNwGyA6u/PMq05ZAzZu+MIP0yfQXUMnvJH0ZwDgzGmf9POONJj1FVBQaMk06KC9xOtcVWIXDTCenz5tFaLxoqq6wUjWLxdPqeeo3H9ZoN4UJPkMZu0iGIHBfa+0QM63fX/xEXSRqsvXCb0UX/HvlQoed18Gk6IzFGHJCNoOIBKD3GmshoW4QwdZBRaVN1+HwBNZX6id/5JtRcNv5w1ufm6auh32biGytHgRtPfZ/ME2mSStINIm21/P/gUG9MXxR+SebEnVQToOr2n0WfrDGkxmq0YqkIW3u0/L2r6tkzblS1S9N4MnsdtIQF7TtosHEMMBY6p8V/AgKq4QDs/QQYCd97ZVWdHHr8sE+L1J+25MdTZnOnF6Px4PNUTn4fSaP1DWmOCWWqlB6ctKJyF9UP5i7RiPtmqk7OkyRa6K17whYmrFfNBk08ohHZ3duJ7x6mcf7dszuAyJuyjju8YtdOM5li9nTAC6G/HbdU5O8hGXJyARIcBs7mhjHxKxzDQ9D/wY2GW7AwbKcF3tIoA1Ncuw0aQKB3yL5JahfojKxCpqE/fl04BegqmIy8NniLVD6ZIHxB43SIok1yBps9Lb1D9vTRMh1VDvAtVSPae3upBBVVF77KbuoJRVVIPFEaEEIF7JFpHU/dq/eLWfu85DZd9Scu9rzwg4i0D+XxjF6TKDYcVfZig5gXkOGPV5xT6vU58vjbiHvjqSDvoPFemngKxtw7tepenHcRA6lqXPy7TuXAQ09n0zulXC2pNYawKGdndC0yI7TjlTflyV/bPrZ3NdEYB2bM7uI+GWmpmCTYYHXdEA6DScIEP8Uwyf6Rz0GViA0LJmebZOtBgPYYMPsZ1GNXtiWe+cgyTqbXvk6Hw7Vrv1GqA4AX9QeFruyzCW1HPAdVwhWD7NMpPzTHh4fk9NTQNzOhnkd6Dof/Oeu0mFc/UwNzu2CJFlYa3fEQPDU5BXZlovuGBlHiNlbsRTvQ/E4Ev5HxXXP6PXM2fmhpyXJsIkoX/+rY7j 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: w5IkvCOckEC9NzwXJudFZwCYK0MovhTN7Z86fUGJL25SGv9BRNbs9EoepPC14Z3F4qvRAqLej/FOs/Q5ElmqZgMGX9jg7hHhJ9Jl7gCUhW6JfzRUXfO/9t+OEsI3IWMtfRWyO/5oyfdheUiAycbfTjGkRhLOQ27/vBOorloVV/uJ8Cs4mDT5DyAd55jyxKco71OvCd++vTUirCXMjI3G8gkVWwoE/dETIvje1XGRZBOviZmBrmeJqgCP//eZlFX5eXHwZLfpnWwFR8KpYyrCuiSTT1gtl/pYZrmq+VU+OXOsfaG1SUFJ79dOosuWbwlc2aJ6dybn/LN2dphN6nG9hfu5PASicFyXmahfhJXA8RYvbozNdXuNS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yEuVI2vVCq1NToLtp8S4QAatK8//NJRYXs/wnwafdJ+kfZNY34W66NehEjgGpeMc9iza7mgpS6guZ8ixZgiF/jyokyzQctbHDcP33A8c4G5baG71yJWIKtLWhiLdaC0gxZpomOKfZpolit3/RVWPl X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a0e7556-e47c-4d52-283e-08dc8f3dc579 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.9774 (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: UFWfrOO+sRi4bMjpfbLz6mt5M+lj4d44gCdhBZ5T8ZjZvsjoAHdKCvjx/+glUc8evydDY/FExAsaZN29+YPL7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB8047 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 4AAA48000A X-Stat-Signature: 1qbycz6i7465p4aus8367ionkt78iha4 X-HE-Tag: 1718677471-869531 X-HE-Meta: U2FsdGVkX19cL4RugH7KYKfXQT/GZfZS/o6/OMuTeRMtuCLqj/MEERNVWgF51Ek87crTyRVc24vyOptx+ZpFQN5jNzOkC3TUegOlhd1akx7M+g2zcTRPUec2tTt+sw86uCpqnLNN2X58BjlkUEZS9iec20bel1ecpV9HvdLsxdlywxno/jaWmoSH+EdvrElnQfCx3ZKX1oJqbInsRcZa6WjOIIl/fJgyWINnF27o/GiMzOkmz/sx7/wzOSA5/mOGCdnJ1atYwyoxdXeUvZ8YqISuMBf80bMY0pyqP1N3SrSNhqMx7TDFk2Zj+w/P9R3ZIM9vtY3aXklbTAlx+Jpl8zmD5BbT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loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The selftests/mm build isn't exactly "broken", according to the current documentation, which still claims that one must run "make headers", before building the kselftests. However, according to the new plan to get rid of that requirement [1], they are future-broken: attempting to build selftests/mm *without* first running "make headers" will fail due to not finding __NR_mseal. Therefore, include asm-generic/unistd.h, which has all of the system call numbers that are needed, abstracted across the various CPU arches. [1] commit e076eaca5906 ("selftests: break the dependency upon local header files") Fixes: 4926c7a52de7 ("selftest mm/mseal memory sealing") Cc: Jeff Xu Cc: David Hildenbrand Signed-off-by: John Hubbard Signed-off-by: John Hubbard Acked-by: David Hildenbrand --- tools/testing/selftests/mm/mseal_test.c | 2 +- tools/testing/selftests/mm/seal_elf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/mseal_test.c b/tools/testing/selftests/mm/mseal_test.c index 41998cf1dcf5..58c888529f42 100644 --- a/tools/testing/selftests/mm/mseal_test.c +++ b/tools/testing/selftests/mm/mseal_test.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/tools/testing/selftests/mm/seal_elf.c b/tools/testing/selftests/mm/seal_elf.c index f2babec79bb6..27bf2f84231d 100644 --- a/tools/testing/selftests/mm/seal_elf.c +++ b/tools/testing/selftests/mm/seal_elf.c @@ -2,7 +2,7 @@ #define _GNU_SOURCE #include #include -#include +#include #include #include #include