From patchwork Wed Mar 8 19:04:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13166322 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 2BC20C678D5 for ; Wed, 8 Mar 2023 19:05:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BD0946B0078; Wed, 8 Mar 2023 14:05:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B7F8A6B007B; Wed, 8 Mar 2023 14:05:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9F9256B007D; Wed, 8 Mar 2023 14:05:30 -0500 (EST) 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 8BC836B0078 for ; Wed, 8 Mar 2023 14:05:30 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4EAB180FB2 for ; Wed, 8 Mar 2023 19:05:30 +0000 (UTC) X-FDA: 80546659620.29.221172F Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2041.outbound.protection.outlook.com [40.107.21.41]) by imf22.hostedemail.com (Postfix) with ESMTP id 22509C0016 for ; Wed, 8 Mar 2023 19:05:25 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=x3XpgZ9n; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=x3XpgZ9n; spf=pass (imf22.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.21.41 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678302326; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=m+JRz8Ag/13J/UuStpDABzWeR510tjFXJg4/TNsab/I=; b=UfJKS1aTmBM9Xhm76/xv/JzsPk9ECQdYLq1Ipm20Xs4fwYLG7c9Cpr4IgDvcIEkoHnpjxP 5vFRXn3WwmqBxv/cmJkv6dsBkpCEld2UnUvNnQFpu8+IaxGEB0kBHWxhG4zYjH3BImuE/+ 0mv2uoUbvUD6vVOaqFbtcJjo4+9+Bjo= ARC-Authentication-Results: i=2; imf22.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=x3XpgZ9n; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=x3XpgZ9n; spf=pass (imf22.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.21.41 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1678302326; a=rsa-sha256; cv=pass; b=m/zzYb/ghqRXBtZ6QJpETMJSh5N9WdaD7NSdioM3Y5TJ2g1wZL1rtYR7P1QXhbeHq23d0g MKlcFT1w1O9ycE0ukNTTHA7Iin5h4jsMvQ+iI1KELkH7tpfMMVKa4EsmSV1tFkpLhgrz+q BcojW8lCPEb2OVAQPJHYKWGu0ckPKeU= 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=m+JRz8Ag/13J/UuStpDABzWeR510tjFXJg4/TNsab/I=; b=x3XpgZ9nsZsG8H/wFqCaaGsncNnmtH5cuo8Ef8ES7IEyvCK10OH6b44Z2lYFritsEb93zaSzJmyhbS6+KhJqpXiJgyqqh/npLQWEa5PKdw9ZaBp7EaZqAiY+ZU37D4pcIJriDSlCiflV58QFZMxNLYl1JHriRPxAwhB6G+IM3vg= Received: from DB6P195CA0015.EURP195.PROD.OUTLOOK.COM (2603:10a6:4:cb::25) by AS8PR08MB9526.eurprd08.prod.outlook.com (2603:10a6:20b:61e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.17; Wed, 8 Mar 2023 19:05:22 +0000 Received: from DBAEUR03FT009.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:cb:cafe::93) by DB6P195CA0015.outlook.office365.com (2603:10a6:4:cb::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28 via Frontend Transport; Wed, 8 Mar 2023 19:05:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT009.mail.protection.outlook.com (100.127.143.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.18 via Frontend Transport; Wed, 8 Mar 2023 19:05:21 +0000 Received: ("Tessian outbound f2a8d6d66d12:v135"); Wed, 08 Mar 2023 19:05:21 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5cc5605e47040adf X-CR-MTA-TID: 64aa7808 Received: from f53d93e3bc23.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5D2AE1C7-F145-40BE-A939-2AADDDA4E76F.1; Wed, 08 Mar 2023 19:04:31 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f53d93e3bc23.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Mar 2023 19:04:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BMinw5k6ZlKVwXW213bW1OkD1Jhp2Bg5pK3LDVObxRqJV56JKJtgo9Sx4aDqJjjQpg442/TNIl2ZMTDy81r/OYhmrUq4+kkJCkEr0OpFLuYy/FmBSXAHHDDebrEPlzGvMxCxsy0mUU7xR5wb+m5jxUWka2CuEsFEaBj3b4dNy2/tfeaQdkXwrfJq2W/xTq4blpkwFQJJfE6LN/JWTDSraUf20Al3vPqayDtAC+OpfMMx8Cg88l2dlJrE1rBwemQRL0bcuC8T3ew+5nrflPKNp6pGyB0/pxe7pGceyExdZa8L2m6rbDbAtAe4YnFRBSfboo/64ErTPl2LDcjUwOXNfA== 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=m+JRz8Ag/13J/UuStpDABzWeR510tjFXJg4/TNsab/I=; b=YBgM5jYDEzaLQQY8AYBQjEEemMkLYjpWzk6Uh351ZGEqIJiY/iOG+3vzqxGU9rOD94yNcsMSE7UNKXah4RcyDeHEkeHREHHMm8LZt5qJRCArUBNi0TShRdmORAOmpiuNOgPqgcPcsqakt+ZfUjETaVJLzeoEYKerj64Ivg6nWS+yxO0tCY4gxWE9PZ1j0cqGq54NukxgGVCIlnWRRp5HhxULv/OZhfHwyk6qHF027EwInk2DIFKN3ftslU1TkfyX4M7Ed4wm6e9yAirq/ZgfApuyG6BvYAR+GFUZyRgw6luIBVswKdR/LchpzcpmaHMH+uVe7TSKQNucX3QPFuUDAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=linux-foundation.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); 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=m+JRz8Ag/13J/UuStpDABzWeR510tjFXJg4/TNsab/I=; b=x3XpgZ9nsZsG8H/wFqCaaGsncNnmtH5cuo8Ef8ES7IEyvCK10OH6b44Z2lYFritsEb93zaSzJmyhbS6+KhJqpXiJgyqqh/npLQWEa5PKdw9ZaBp7EaZqAiY+ZU37D4pcIJriDSlCiflV58QFZMxNLYl1JHriRPxAwhB6G+IM3vg= Received: from ZR0P278CA0032.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::19) by AS2PR08MB9737.eurprd08.prod.outlook.com (2603:10a6:20b:607::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Wed, 8 Mar 2023 19:04:28 +0000 Received: from VI1EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:910:1c:cafe::71) by ZR0P278CA0032.outlook.office365.com (2603:10a6:910:1c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.29 via Frontend Transport; Wed, 8 Mar 2023 19:04:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by VI1EUR03FT055.mail.protection.outlook.com (100.127.144.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.18 via Frontend Transport; Wed, 8 Mar 2023 19:04:28 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 8 Mar 2023 19:04:27 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 8 Mar 2023 19:04:26 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Wed, 8 Mar 2023 19:04:26 +0000 From: Joey Gouly To: Andrew Morton CC: , , , , , , , , Shuah Khan , Kees Cook Subject: [PATCH v1 3/4] kselftest: vm: fix unused variable warning Date: Wed, 8 Mar 2023 19:04:22 +0000 Message-ID: <20230308190423.46491-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230308190423.46491-1-joey.gouly@arm.com> References: <20230308190423.46491-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: VI1EUR03FT055:EE_|AS2PR08MB9737:EE_|DBAEUR03FT009:EE_|AS8PR08MB9526:EE_ X-MS-Office365-Filtering-Correlation-Id: f9bee51b-602e-4136-4efb-08db200810ba x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 6Qc3K7ytWeHE7nxUwxoTxg38VQ/Vp2OvxkXDveMmmT6OXoLTakyA49PHe3galFJOtZ8l5wV1zhTZntclwHYq/DtKkmqfgJS+VFCoL15s/PSDZRNjMPKO7NMot3PavDfFKSP3HWRe8aU+Hnig4ei7gSbqwrS9Sh+x+jbM8DM2khmsQzUygENRhBJTGkkoXPzmdbGTubObQ0MxIEANDWGTb6lg1duspOtqGkGdVbKb27kkjd40TAygLTiZytOuq7UqXPbxHjvO8Iof/VyJEVj2QOMPxakBFoAlFYeMhjYGDP6EbC3HlEFXsrTDe0qkjUCUyPwE0Wo8yxHJDsuPloj979rLI5JIwSEgiiRz0oQI9zp3NdK1SDT2Fx1yJDdsyPuAiH23qrO3K27k1EisyM2oos/Mmx5RMf27V9sy6sOE4QIy9RM/WrKU6pulU5mEJsOZysFlRe9HtZhYLxA9to36d91nxKO7OlFOHQW5sTaSKhBOz2Hn31vV9Wyweyz1s/qbqDGTR2+73YFzPFA9oj0P5lBEm5N9aHPutXs/BGjjWMgA5SpnFFHtHfkOSRes3yw20pDOTZgM0RLoPtr7BGMFhP7mHOA3BLnKxcJcZTQr5bgIjnsxmEnadPfbF4HuAF5v8AXGn1N0gqai4OUe2SNPruOy7Vmsw7W2HXoIBXoV7OfyPaVS2Bgg7vfFjJUixUqBleFEirJ/+pixA+FJ9A5T3GmiJPE/PUYWjZTt4r5xtnE= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(376002)(136003)(346002)(396003)(451199018)(40470700004)(36840700001)(46966006)(4744005)(8936002)(54906003)(44832011)(5660300002)(70586007)(6916009)(70206006)(8676002)(4326008)(2906002)(316002)(478600001)(7696005)(36860700001)(47076005)(36756003)(426003)(6666004)(1076003)(83380400001)(41300700001)(86362001)(26005)(2616005)(82740400003)(81166007)(40460700003)(82310400005)(356005)(336012)(186003)(40480700001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9737 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT009.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 70e9fa00-cea9-4d13-668d-08db2007f101 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6eiD9FLiJysYlzVvDg2Z0ugc0zgJa8iO/OANd/68LTWbTUC5N465FAt5Uuz0uwOFyQ1SoVuYPoUCCajV9HERxMqGtJZPSCf/Qs879BoI/17ZZQDuPTk8oT+vRRsbiVyVrVxpqTC3WTw/WMm/kngsOpEgCmMJoU5D3cfI8X5UnB6VEqYKX+lzTLAvkNk8xkrVxFBIJ0flDNYM77iVGt/tL3jfOKFFP3CF4PKYOdBX+iP70oFxPsB7dXmXl3U7g4/514JafP4y8QeyD+Ksrn/+0K/3Qchkiibet4eU2nMMQATRLeMkck40wBN4XR0P8/lIG2eHsmWDioqI9w1scEADKetqrR7ypILs0msRXj65wl4CgGIGLCeAlMHJ2wvqCGLUnUJAVPvzYTDr6+Ab3bvYdH2c5ANE8SLgl8LLUhROEokT+on+6NoWJW8+pHVc+HZS1fnC86iTyZxIcYouQgYqjc04QiVWAJnL3U8ETQ+mStvf/jTfh5vTOXuuc//YOVzYOw3Z1ogSnZvRAfpMLieUF31zQYXrVfJThxBNo7bJ/NvmVe4tqLUup0GQuZ2w4SHj7PMiFd9MGxKyvIJIbPX4khvkP7WOiWRgy+idYJXDG4giCY2h+10gjXyN6yBCoDgTeB9alUlEprHgP4uLk+yMr5GWYyRvERgabR42K2InLr5jJbxoBdf9dHrFcW0/J4SXmch08c5udg71j90rADgYRQ== 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:(13230025)(4636009)(346002)(396003)(376002)(136003)(39860400002)(451199018)(36840700001)(46966006)(40470700004)(5660300002)(4744005)(6666004)(107886003)(336012)(40460700003)(41300700001)(8936002)(86362001)(6862004)(36860700001)(316002)(47076005)(81166007)(54906003)(426003)(82740400003)(478600001)(83380400001)(36756003)(44832011)(2616005)(1076003)(26005)(70586007)(70206006)(2906002)(186003)(7696005)(40480700001)(82310400005)(4326008)(8676002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2023 19:05:21.5373 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f9bee51b-602e-4136-4efb-08db200810ba 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: DBAEUR03FT009.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9526 X-Rspamd-Queue-Id: 22509C0016 X-Stat-Signature: z4bf8accb8rsjj331ybyb7m86h8uhp1k X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1678302325-290744 X-HE-Meta: U2FsdGVkX1/+LFXX2CoGKLnyijWEkyzl5GBxMhK0gSaXX8ywO5Ol/5HRoLj8VG9DHj6nMLDvAuHKaS1DBtYmlr4zGL4Cp40eP+MLyBK5zO5fGbRsQKITHY27Wo5IRw7ZEzj7c7sODBpVHdso9pd0q83s17+XU2isdV4FDggOPeIe9QMR6Gbif5EHSTK0vChZBpjRHMI/BQy+obVwDZbi7tJErN4CqHrNDmWztk18IldjtXHQrWJu9QEJKabzQtdpN3tHFvQJLK85CfhRzNAJdlfHwt4/EedPSGgcyea+NXI62x7uQNZC7vdCp8eqGTEz4q5MB1YS+o7LZQfQ9sSRy7+0GFfX16q2s/LRGM4XW5oV5DQ/8Skd0n75rgte97XvXT0K6gq0ztzh/WGDrCr/aCm89dku8QHevhweisupZPb8QOg5F2lGBayB2m3XraQ1HcBrW2qzQnFp4/SHWaG9aocMkgQS7f8AMfE7al8RHt8cBduS4xa+l/yy7iitmzKy/E0fy7tEeEEPc+d9l7mCXKGXT8OcPmWLV3H4VThcxLCvAc41jYfxy8mCvVHyb/LNaB9nfvslRCV60mQuBDfzsLNSC7Wz86ZRGTE8nIE2IjrbiDhtelHL2O4LTcS5nh7PaECumqzJIV1T3adVSxJ+2cowIVcO6d0K6MSQ7csQWnclZQPs8IuqKwxDnZ2Te5nNci+0H8wpfj/nD2uEutqJML2OZoXj8fJmumg265abfSsdgz8nopI8XAuTQjbyXBbzO5YrmNcfgmHWURv5lRiPHfuXynXA0nR1yzh+Jmr3dbXwDYY8u+Ps7NaUcQ5DJRprxl7PtzWnp8H2d7WL3cj7ZHbiG0OS4Kb9KWTsXwYHrEyweV5xYQeWWh/gvKSk0v+mctfVEGLGzOUt9Y/wdZmzlCMq5Hdyx4upjyiAEnroSgWSnM77572+pL5me3M/EDeVw3Qv0qBN8rkrY2HcrO1 cTrEOGy0 BKtYWUUoMeX6E47h1mioOlaBqXT83kLMtpfBU74ktPJTrXf83FZtp/Utj3ebDKFpVSZjvzWC0TTAjmp40YCfXD1PrvHM9DD8kym3OMiDtmEdP3UzPLidajgZFc6WIz3Xzbbi5Zst7ythCXnLvM0zBpPcEWtfinL0OkaMr4sJfTDHcoe1sZJOI43opFbaO4vae4dnTHIBCsSfv3oBqyAYJWJ26ZAsCsAGOUWaDBIjgYXtD6vw2QFw04SChf/pcmcE3WnrMGpcy2huqTXiUIQc7p54AOjh0JDY2xXtjhTCG9hfyyQgViNo9bCzYTKqscf+Qkw66QyHglY26wvDXNbqpj/MReeRG5wjBPpBK+UmSP7jIXtO1NzS+hs/dRvHoJuK7z1aRKkhaQbjy4PPFFHcdH86lnfTPfdy/+tV1c1u+6SMUM+fxFCBDt3CHCPnd/hoKS8e1kgAl8ugnVXJIwX2HP9iFud8Ibs+wazcdQqNiz4+eqSd03dqh/i5zqiwrT/zoXkIva1tvyNGQ1fAUWqRTP4KdCL8iKblZ44L73Cjf9cbC+Wa2gmQEXYZVGW/PskoADBv5uWzIxawHOgLyNfpA4xz05YWPPxlMo5FzVHsoR1nK42k2YECV2LOE2A== 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: From: Peter Xu Remove unused variable from the MDWE test. Fixes: 4cf1fe34fd18 ("kselftest: vm: add tests for memory-deny-write-execute") Signed-off-by: Peter Xu [joey: added commit message] Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Andrew Morton Acked-by: Catalin Marinas --- tools/testing/selftests/mm/mdwe_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/mdwe_test.c b/tools/testing/selftests/mm/mdwe_test.c index f466a099f1bf..bc91bef5d254 100644 --- a/tools/testing/selftests/mm/mdwe_test.c +++ b/tools/testing/selftests/mm/mdwe_test.c @@ -163,9 +163,8 @@ TEST_F(mdwe, mprotect_WRITE_EXEC) TEST_F(mdwe, mmap_FIXED) { - void *p, *p2; + void *p; - p2 = mmap(NULL, self->size, PROT_READ | PROT_EXEC, self->flags, 0, 0); self->p = mmap(NULL, self->size, PROT_READ, self->flags, 0, 0); ASSERT_NE(self->p, MAP_FAILED); From patchwork Wed Mar 8 19:04:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 13166320 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 B8EFFC64EC4 for ; Wed, 8 Mar 2023 19:05:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 567EF6B0071; Wed, 8 Mar 2023 14:05:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 516BC6B0074; Wed, 8 Mar 2023 14:05:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 369816B0075; Wed, 8 Mar 2023 14:05:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 1E4876B0071 for ; Wed, 8 Mar 2023 14:05:02 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D7A2E121072 for ; Wed, 8 Mar 2023 19:05:01 +0000 (UTC) X-FDA: 80546658402.23.6429972 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2082.outbound.protection.outlook.com [40.107.104.82]) by imf05.hostedemail.com (Postfix) with ESMTP id B66AA10000C for ; Wed, 8 Mar 2023 19:04:56 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=mviJigO4; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=mviJigO4; spf=pass (imf05.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.104.82 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1678302297; a=rsa-sha256; cv=pass; b=IkRQ3MbttFzLjacSqOE9c20cbrsZ2eYypHPOQA0+wIzQyuN/uWeG/N40pxQ7A3Wq5QpRo3 MSA63E6mLsBgGVax0oO89GzqXtlzRK9/0pjCZgf8l36lE48hXPnGvE/3ciMznjdkZc4MZ6 dW6XfH8Z/0HoK0x7gWolpZCPq7kkNwQ= ARC-Authentication-Results: i=2; imf05.hostedemail.com; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=mviJigO4; dkim=pass header.d=armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=mviJigO4; spf=pass (imf05.hostedemail.com: domain of Joey.Gouly@arm.com designates 40.107.104.82 as permitted sender) smtp.mailfrom=Joey.Gouly@arm.com; dmarc=pass (policy=none) header.from=arm.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678302297; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=YO0vrueUqqzXO5TizfTrul5Wnl59cF7BkXYVZh4ttUU=; b=gaM2B3bhDnSRLnNtUKMr3cny+cSTk1im+BRNfDx48XGil57K7NJSnJHhbAPZ6LlIMi2xtp Aslu4Zc2Z0dSdIDgalGQp1WLQRakYq/VY8m7VhxQeTG8oNvYem0E35IBIpf9gW31tuGwVm lT890xulZm5x6LnttjKR6iQelKAaT5Y= 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=YO0vrueUqqzXO5TizfTrul5Wnl59cF7BkXYVZh4ttUU=; b=mviJigO4/TuZyIxxYk72hy1mh+TD7Rc/HpLPegLcHvYZJ3tY4oZ7GkVejPFVpMPuTfraHZ0fI82XcwEk8Xp2mvEgELBEpcNwaMsYgZUWpub5bBoYCIQfT79iePhnRhENEzbvJeJ9KKGNTFvXGqNax2PJWxWKF8C0kwFzgWlcFZI= Received: from FR3P281CA0145.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:95::8) by DB9PR08MB8337.eurprd08.prod.outlook.com (2603:10a6:10:3de::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.28; Wed, 8 Mar 2023 19:04:52 +0000 Received: from VI1EUR03FT049.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:95:cafe::7d) by FR3P281CA0145.outlook.office365.com (2603:10a6:d10:95::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.17 via Frontend Transport; Wed, 8 Mar 2023 19:04:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VI1EUR03FT049.mail.protection.outlook.com (100.127.144.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.29 via Frontend Transport; Wed, 8 Mar 2023 19:04:51 +0000 Received: ("Tessian outbound fcd8b5fba459:v135"); Wed, 08 Mar 2023 19:04:51 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e1273d90c2df332e X-CR-MTA-TID: 64aa7808 Received: from cf525201d89c.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 12CC331A-A4AF-40F1-ACCB-2DB6AD3AE8BC.1; Wed, 08 Mar 2023 19:04:44 +0000 Received: from EUR03-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cf525201d89c.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 08 Mar 2023 19:04:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DE6g3r2aCNSl6lMSzBdeoRCXRNxOWkfKN0V0DjRs7cezAiVrqDsgAW5KEXhDd0T2ZVZFUM5eIIOnSlG65QykJTR0b1IB6H6YNHZIJcg0pwtRyrnLrWqhN9H0YVRJ2dVjqKHi1WMmuP6Le81sRjaquXaKhEk0DLx9TDitnwlbSBtpMXSaBajbeYZa2GAohX8U11iaPkEFsKOWto8z9jJj8nzQ/mtPrqj0c9dM8LDkSd5RGo5V/oHarsYS5leIFzCiNgNhLHTs0y05j8SN1m9DYZTTAuV0H/I2C26uEoBL49G8MIoSKyjhM2MbEO4HZH87VGmCXBKZ2rct2/fwSLCG+A== 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=YO0vrueUqqzXO5TizfTrul5Wnl59cF7BkXYVZh4ttUU=; b=YLAxYPFGiByt5iGEnCi0+x7lUJ88rcemn5Wnu8QF+k8e/4ZELG6vmr79vT+9nmWQ+LMnjFQH7CRbXPT9gB1LIRPBNWffXzE2cErRtCytTVmWeAcsNBF6ohKx3op+uXnAFbYaED7YyokyLpqXd8h/iXqvcBYofOPgx4j815D+5B5fAaM0hQUZu7tAxEJo7afyUWHCSucFWTMijljn84lnzYZFb7Z7EfRxNVXuosSEpxtL8+2V1rs9j2rUQbj9uC0vWx5mOGUahncVZpytLZUExAWNT355lbCzsXHBR5Ie0A8MEXjjkW7Iy/uqafBTD+5ZmbhdV37Xbo7Mb/ujIW4sPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=linux-foundation.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); 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=YO0vrueUqqzXO5TizfTrul5Wnl59cF7BkXYVZh4ttUU=; b=mviJigO4/TuZyIxxYk72hy1mh+TD7Rc/HpLPegLcHvYZJ3tY4oZ7GkVejPFVpMPuTfraHZ0fI82XcwEk8Xp2mvEgELBEpcNwaMsYgZUWpub5bBoYCIQfT79iePhnRhENEzbvJeJ9KKGNTFvXGqNax2PJWxWKF8C0kwFzgWlcFZI= Received: from FR3P281CA0048.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4a::20) by AM0PR08MB5395.eurprd08.prod.outlook.com (2603:10a6:208:188::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.17; Wed, 8 Mar 2023 19:04:41 +0000 Received: from VI1EUR03FT019.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:4a:cafe::b0) by FR3P281CA0048.outlook.office365.com (2603:10a6:d10:4a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.16 via Frontend Transport; Wed, 8 Mar 2023 19:04:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by VI1EUR03FT019.mail.protection.outlook.com (100.127.144.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6178.17 via Frontend Transport; Wed, 8 Mar 2023 19:04:33 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 8 Mar 2023 19:04:27 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Wed, 8 Mar 2023 19:04:27 +0000 From: Joey Gouly To: Andrew Morton CC: , , , , , , , , Shuah Khan , Kees Cook Subject: [PATCH v1 4/4] tools headers UAPI: Sync linux/prctl.h with the kernel sources Date: Wed, 8 Mar 2023 19:04:23 +0000 Message-ID: <20230308190423.46491-5-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230308190423.46491-1-joey.gouly@arm.com> References: <20230308190423.46491-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: VI1EUR03FT019:EE_|AM0PR08MB5395:EE_|VI1EUR03FT049:EE_|DB9PR08MB8337:EE_ X-MS-Office365-Filtering-Correlation-Id: a75ec020-5d68-46a6-dbc8-08db2007fed8 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: qgzQoIFkQd6NohS+8iDtn9lF+wfcdzWtgFFZNtLtCLFF86D3Zl1TBa9EQ6MlzRg3KjZN7VXMg67WxxrcDsinHs8v1WpIJjAC75yV9dcUy+TmUqY32wkUEJVBlQO+Us3AlcdS00MSQGfVpBgWJk+P+7UaH9Z66AXgW0+60i2D+TNlT3QffVfGYuCFuA3XBLL2QDeSYgcSd9ZXuwMvGhT+S5g0vmSJjdVXjTLT4+mzkM+tawfLI0KjWJOomVlAnQ3h3rFg6y/kzfGQaMUfdf9sh9ULWZzPGUR71hUqU8SfShyN0+t9otPPc8Eln7zcB2pHCijrXSb1G5bU/LFLElOxcp54CXAkvlm1CJmG+cbxDaUnEMi3gfl5FvvZgGP3g5ZKoKxsxmgoYinz4hvGgmtkcrXdWb6AAcPZ0YepNAAkGPLw5UzTsKElJW0iDxJjaozExOT0i5S/H727EDJIRPmgScYgei/rYiUh+QkGlv2s5enEBGU6VDbuhg8kIYqOMPkOD95fEhSWEwZysMMCE/UcOmFqeDwAPxb/Q70adIYbkH0K1TzvmawaPKNmur05fUycSL+0vWUeM604raMO+s19tZ9uxsU9eHoD8XkHR0a67biNLqCgVkwWK9/u0EDXcei0k8rRkr2bJjT8CXeQlq8qqbVH+dMiUbESlJBhOYSNTsGeP+yd088Um78DUgOO65FHiMLFgc3nQL5zjXi4uRGgRmyGUBQ07a1+9R7c052w1dQ= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(136003)(376002)(39860400002)(396003)(346002)(451199018)(46966006)(40470700004)(36840700001)(83380400001)(478600001)(36756003)(186003)(81166007)(54906003)(82740400003)(426003)(44832011)(7696005)(356005)(82310400005)(40480700001)(70206006)(70586007)(8676002)(4326008)(6916009)(26005)(2906002)(1076003)(2616005)(6666004)(336012)(5660300002)(36860700001)(47076005)(316002)(41300700001)(40460700003)(8936002)(86362001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5395 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: fe11594b-c6a5-49c0-f655-08db2007f3eb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6t5S8KskORQAY2WsMzwhdG3MW7tRcEAdeVZVZfLITPn+cMQezEewy8J6sXCe+6RdUmD1r0xbMOzU/WFSgjOs1p82hAKvut5L91yO2bBAEP5RS5zIdZdILyMi0dE6BvHWCA6lr67ze3Vh4fgERC1z6e2SRXG10s9OeGHjaqTegP7ivS+akY9MClfPssdjdTTwwxSR9WPHUlw3wO7N+kXriSAKeqq9UqSIbRmM6DD58Vouv8TgHpVPD8afAIdjcplNsENouW1SiOZ1hMx6RyWw4RpQG1Ux46EAUCgAkQHCV3ngkDLfXwO74yfyP8uzLGYLfFtyhpavsEAem/cmK1Bo+4ZtQkb7yexexyDFzz0EZslEJ18HYUNYbR0L+ETJbtWrKc6t7IaQh/gR2Fok537bVW5ToX36uKvLzCeC6vAV+N7mnxRscIWiDsPhBZWVCmzqqGXJW05yAYR+hG2RzLDySdE2dUm+Ifcu75Vc+pRvRyQg5hLn1MbPHUZpTvu4z0SfXLayerpJTFIF7tG02hqFsFAhN45akqmgpywUnuOWpUHdbBui6q8wYHEkeAGYIRTHhpgh+CzQtulT6l5wOiYckcvDSQp6FvIMgl5j7TPtmoJuGGAyEl09NR/cgY1v67RDu3hdCcOGPclGoktJS0Bgxxz8RMp5X1eGOG9M6QNV4NltDZHa0qESH4itDzoxSZZsgwKwiBAMp0lLL7wTlPDH0A== 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:(13230025)(4636009)(376002)(136003)(39860400002)(396003)(346002)(451199018)(46966006)(36840700001)(40470700004)(6862004)(5660300002)(8936002)(41300700001)(70586007)(70206006)(44832011)(8676002)(4326008)(2906002)(54906003)(316002)(478600001)(7696005)(36860700001)(426003)(107886003)(47076005)(36756003)(6666004)(26005)(1076003)(2616005)(86362001)(336012)(186003)(82740400003)(81166007)(40460700003)(83380400001)(82310400005)(40480700001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2023 19:04:51.4604 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a75ec020-5d68-46a6-dbc8-08db2007fed8 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: VI1EUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8337 X-Rspam-User: X-Rspamd-Queue-Id: B66AA10000C X-Rspamd-Server: rspam01 X-Stat-Signature: z9ugfcr6ncjqnhkj584o476gaxzzsdir X-HE-Tag: 1678302296-855577 X-HE-Meta: U2FsdGVkX1+U96uF4nuUzwtuvBQMPuAHcsJ/x/x6BNETkzj+Th5VG3oRQ0WSHr/3Oxv8qNeLeLjjEUCCmIyv++/l+CvWhF164Dfp7mw5XC7PAv9h8H5SySsRgAmDqwuxrlyUTMCfvaBZjLwOxwumP0IYw0hkUHYxlOOQbw73S1jvZsmn5OGSIdOWHW3WqAaXYoyIOvk6Gqg9aViVovZwNmoKXybTUs1UpiLthH8Xx+a+LIFVmRHfltaEacy4z+uPeWcAHi/06oXJWtvsk+SGbvabXTIsS6NdbOVmlbxUqhLnbcl/HAqGhJSkIj/z7QpMg4bbtA1pSXh7VL7mzjLIXTRcNU390MHu3vnW1VuSNBZdPaDSV0ED6zHIHQFZBK9Z0NGmR/+ZsSk/seoIqgderreDP6RPV+CicQTd8XknYiHKt2nU/qiDunqrz7uI9TyEScp/5pO0soORnhizU9Ox5Iq4C+rQ4w66MRcM+X2SmMQ3tSOjA38iclkbn9gKFglVVIH4zwFWKFQGLMJxlZzFWk4pbPRK77uv5DWMie/o8Oew05C3HXi6scTOdquB3uV9fI67n1Onub6xZTUHoUU1ZQU3ExdW2b28YZ57FQAoC6OqLaLsdZdq7t0D/RWKevARgiWvNJ11FYRGkm/jHiPSWbg+cVkdGydA1F1QWPoMkYZJbLrL2+bx6r/pzPstzwfRM00ADqq5qfQGVGEcrcoPRO3oCRf/l6RLGpxSUzjz5XBKOzgwhJtvkP56VjmwzaePYc0zj9BmsPeslC8DUBgUKK8eNfNF57vI8kkFfSKRX+gBQwOps5WGAFQKgrFIB4+ZL2YqRuoxqTe0/+UIJKgTyYYnb2hvOWjY9EyZpu8n1R6Qx6S9MHL9Ke6Bjsi16hJ6fuDfmPYCw7xit99LHy27yWBXSfNWIYyg0VYZCcV4+rwt8/90S37CUR3HO0zDLUa36Cu9uCwMofISgh0O6UZ M1c8NDMx 1UKbFcCybsWa1DYVk5SrafU+cKePI1wSqkeCsSpqAv7RHlxTjnMtY20+JQQR9/V+2FIjFcahlUF1WXs11FIw+A+201pxndB+0QqWCPwSc2DP2VsEtxlVo+fN9qFBQ8ZSwMFspnl2lwP9EZ6JGSkxPRpjkg0sAm2yJE/gm/FMnNzs1iIMw69DvzY45ShRib55+pbCH8M1/oK25sMVRFIwiE2q5l/F3rpEb7cV7VdgS72opEJw70p7cAZM1AYl45fnB4Rui3fFzqszGuQaEXgH15EKemlVodmFI8XNDeSUAnTIBO+46e6DmUiyvZ0c2uwtUYXtkT6wjC9hJCAsp1ITOHbgzwCIIDJRkgGVIzm7h8BsYYivpo6gsciE73AOmcnJJak8/FXQ+9RSKPl8eoB7X6WJoHy5AESIc1gFC7/8/7HZWtjC5MuqORfX03TFqs1QT10v7xtvolPKbU88x72YVvk9HqEiytvVyogqL2LtOmB3s46Ebafs9w/gTJ1YAy0TinoYp2wJH6j8xiHZa1umXPSIZUndp1Jk/pnh8KVNirDUAiOhWPswr2jwnbQb2zNVFu3DsXfy8KQdEtqG+WceUExicGHwZ+YGevumubmcQZiOQPaO5aSqMs5fBng== 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: From: Peter Xu Sync prctl.h after the changes in b507808ebce ("mm: implement memory-deny-write-execute as a prctl") Fixes: 4cf1fe34fd18 ("kselftest: vm: add tests for memory-deny-write-execute") Signed-off-by: Peter Xu [joey: added commit message] Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Andrew Morton Cc: Arnaldo Carvalho de Melo Acked-by: Catalin Marinas --- tools/include/uapi/linux/prctl.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/include/uapi/linux/prctl.h b/tools/include/uapi/linux/prctl.h index a5e06dcbba13..1312a137f7fb 100644 --- a/tools/include/uapi/linux/prctl.h +++ b/tools/include/uapi/linux/prctl.h @@ -281,6 +281,12 @@ struct prctl_mm_map { # define PR_SME_VL_LEN_MASK 0xffff # define PR_SME_VL_INHERIT (1 << 17) /* inherit across exec */ +/* Memory deny write / execute */ +#define PR_SET_MDWE 65 +# define PR_MDWE_REFUSE_EXEC_GAIN 1 + +#define PR_GET_MDWE 66 + #define PR_SET_VMA 0x53564d41 # define PR_SET_VMA_ANON_NAME 0