Message ID | 8f409e14df19bc722ad77e15ce03a95be9f829af.1734017293.git.lorenzo.stoakes@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 62723E7717F for <linux-mm@archiver.kernel.org>; Thu, 12 Dec 2024 16:22:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B18206B0085; Thu, 12 Dec 2024 11:22:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A9F976B0088; Thu, 12 Dec 2024 11:22:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8A3756B0089; Thu, 12 Dec 2024 11:22:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 63D176B0085 for <linux-mm@kvack.org>; Thu, 12 Dec 2024 11:22:07 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 67DE7C03C5 for <linux-mm@kvack.org>; Thu, 12 Dec 2024 16:21:47 +0000 (UTC) X-FDA: 82886822760.02.652DCEF Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf20.hostedemail.com (Postfix) with ESMTP id 1FEC51C000A for <linux-mm@kvack.org>; Thu, 12 Dec 2024 16:21:17 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=B9ZGeBYQ; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="O5nl/G4h"; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf20.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734020487; 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=RPMwFte6ft3Ci0McZVbfCvwGByLKCsXDAFOmeVJDhmU=; b=CkuA2NUXMd0KEi+YRBVdggd4nS3JFpgDGKiLusU5maxGObR+JRDOWECSBhtD2GmmYdfMgL mJntL7+Cn95zfFCbsxophIdoqP73BGuPDtfhXW8FEoP4S4rcSoNZCUWToDmRFOuhDWmBvr 8lViYjhaiNpksckO+ytCp1Hr0EaGMew= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1734020487; a=rsa-sha256; cv=pass; b=6Oi+5z+HR+c8q4+pVzCbsC6lU97QQImEvP68QscIU7P3cnKj+aAhDodu/gwLm2m19eHCe8 lAxTrrN9V2GJwga3qU92I34xOBjypUMCp44dtgrihsu8sXr7+SAFrE0u5NVa4zbr8oY4MO 3/sIUkqG42oY0+f9gjN+MJaxSClH5MU= ARC-Authentication-Results: i=2; imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=B9ZGeBYQ; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="O5nl/G4h"; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf20.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BCCWuUB021240; Thu, 12 Dec 2024 15:37:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=RPMwFte6ft3Ci0McZVbfCvwGByLKCsXDAFOmeVJDhmU=; b= B9ZGeBYQ52FMV6+8w3ZboVm9zTmi4ewniviXP1xWwEp2vKhSmFyNq/ghUAS5Fw2i Rc1RfUiv6aQNMe3J79vnpV3olSm+7en/QaB5aPRBGs44BepqpwysWcbaEOUSG+sO scagjPX2byCPvRuonn8vQELp84mt3b91s+DaECSUzRn78fPMCyuSD1fIlYhBMF0C /fqmmnkf8dafaDAFNfeF2hMCeeBHqfw4ra6KIc8H+Hr3LUrkpoNVhioUI682B0w/ Sk2mWTyiMoWiaeGsWa5Cahba4Bma3yxiI5tNOzXSBDe8uMgJfaVBM/brcIv4ixVb aij6xu7UgDgy90T1ZJf57g== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 43ce89b7n5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Dec 2024 15:37:34 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4BCEwPSw020564; Thu, 12 Dec 2024 15:37:32 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2172.outbound.protection.outlook.com [104.47.73.172]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 43cctbap6a-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Dec 2024 15:37:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WWhF8gmf+rWIxDflVQXbUFBeZpoxMhpmZ7JY5FjPjVwWpjEygJrLSeUs5dAhYPlrYMQsLf1/lAmo7xN68kfczXRzrsrx+IgpEPTepv38QSRF/5BncivNJOm9/n8LPKlJ42dw1ALeF8hSae98hCFS+LBKx3atMad5bv7sic1TgsX6OjCPSQWKOLRfUVz1wch0/6r+7/pOcJ+ohMBoZErOpItFi+PLXtSkn9hHbZ5d79pXjEFXSLOr/wZHNqLOYR4i3cgK8ZYOhCrRb1YLFVvJ2tFtY1qmCxL9EO7Z/VOtF5CiBH5sDp0iMQbp5cq+Dmt2cpzmnQvUnjMV6ASn8xx14Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=RPMwFte6ft3Ci0McZVbfCvwGByLKCsXDAFOmeVJDhmU=; b=sUdbOhnGnrDHoPFtiqjVgma277XGv5rPVZdEvI3Coc0a5fPG2HFggsSHD1qVfjFGd32ZEFMrdJjlwoTYdud3ZvaZ10dTBpWnyl2puW2UzTJtVCkTC7YcFL/FL1wyow5de00jjaFPIns+b9Nf2+zwj8HPO7WdfJmQYCL+KiHeoyWFvvrko8IdkRwhuMpf/I1Bjoh/B0xXitzBxEa0iSJcTMHlWgYdV1gy+t+PQuwZ1wf9CnAyM5BVWxuCfJLBmyQKLSlXtvS/VssMxorURA7kEfExzsOuCNjxLY74ACmkI1AlrUDSPYan49HZGCBHTQeF3GZLyE3JOSRN/KDELC8nPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RPMwFte6ft3Ci0McZVbfCvwGByLKCsXDAFOmeVJDhmU=; b=O5nl/G4hZFlWV4SlrmEBEOiQq3EKF+EZZZO/2vFM3O9jB8MqqouK5y8/VY6TiVCZ9UWkadtGd6XOdZtZzUsygbS/t62k3SZw7TotMhydZvb1PE3afFrwydigxjmIe65u+pUNifLleGqpFwW+QUWr/+sWGPHQ7tftAu3ZZxswiO0= Received: from BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) by SJ0PR10MB5804.namprd10.prod.outlook.com (2603:10b6:a03:428::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Thu, 12 Dec 2024 15:37:25 +0000 Received: from BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9]) by BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9%7]) with mapi id 15.20.8251.008; Thu, 12 Dec 2024 15:37:25 +0000 From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> To: Andrew Morton <akpm@linux-foundation.org>, "Liam R . Howlett" <Liam.Howlett@oracle.com> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Vlastimil Babka <vbabka@suse.cz>, Jann Horn <jannh@google.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [RFC PATCH 1/2] mips: vdso: prefer do_mmap() to mmap_region() Date: Thu, 12 Dec 2024 15:36:46 +0000 Message-ID: <8f409e14df19bc722ad77e15ce03a95be9f829af.1734017293.git.lorenzo.stoakes@oracle.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <cover.1734017293.git.lorenzo.stoakes@oracle.com> References: <cover.1734017293.git.lorenzo.stoakes@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LNXP265CA0045.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::33) To BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB3366:EE_|SJ0PR10MB5804:EE_ X-MS-Office365-Filtering-Correlation-Id: f099a0a0-3463-4a5f-50e0-08dd1ac2e0b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: bGTvdEdIDNqQYi41FUL4ImN96m4IQgoS9QMYXjAOgQc6h3CaKejL6nDInxwvonTagyckJ/BW1QQDMLHpGtSheEFVCitfUh3mli3TBlflF7dyJ0gkpJPcvb4dNNI/dWeRQqSLEhGqH4L7iaKhWL9pVRtAVwPV8eGQD5L7q6y4eWIQa9tqKpvt8fig6UxDgO5qoATK3c8R+qCXAI1+qcTlD1OFrnJGdZFH4n92StUUlD+KTUlKFYO9jSQItbaCziPapRPzdmk1uwzPBr9TnJIbdmGnA0uoM9ywz+IwEJJVYrzuDUX5uPUXFvh02tkTTsa9/4ss+TW8UxYyTXj0ywPrHPZeNK8TnK1fuN3cbOdTuj4j08rXiOZZCG1/21j8e2Ki7pnJdEtxutypxIMwFuLELxFsMMmC6xkWI4YddzDw6+zZv44j4VVY6dj/y+g/z/CpO0s8RSv4O6bWPzwo0PRzRxBkZw5DbE1IHdIt/GDBbldBDpVavvQDWc1J4puTo0ZiC76TONIzRQQxACX0ymvvhODjfQ1E20wbWprayb5JDlwahR2Tyn1EryZmffP8TpFsBXbXQWDoWmqg6Dbid4chAidTGwEBuPL97y/ZRulntz6uqTGWm+vOesEDUbHOYy7GkkZhiK1+RUO+ng/M5J+bZeodO2QlrOM+RlRMPm662YPAaZS5jTvl7oRwxURG/fVgVLPO66mn/+dzmqbUnrEJS4FNeXgU3mdmtlcmqB3cfJGH3LhIG8/mtHELHjIyLjdU3KX5twG7bVyLRHe0js8liLYeN4p8DPM+NDQ0Ffs+olRwWm6Iz2eSD6ffmVCnCYeQGBUDSx/saXvpRJZZY0tWeL/Y239hHETbCT4UDM6pSphYtQoKcmAN3DtnbpIS418fh9A+JOww1qPy7i1eP0lFFiN1m/x9QDHBX+Fmt/cYDrIdczA5HRZQSX3ac5hEpxNivLrng8+uaylSFyX6i+OKX53n0EnyNW/9jqO36iOIIfek+uwHuBJHEKCfANK+ZIDzecGg5bWJLAT0amOhTsRueXyeFAYxv7kJv6xQxQZSPFg8XRmSOCymwKnKHLiq8z32UnP6TCQUYbwLE809rPB0ZP9QDigQyiW1SIkAnu/V7kBmJ21qQlG2EezTZA/APC4oDYqiYiqcNOQ6pO6x8EPjx+/X5q4EOKuFB8FTNgDNqVXXeZc14cQeEHOupuOoLaTiGrbuHVsKx6H9I2pUDgXFQfzdqu0o7Ykzdm6iZk4FnzbfK5giOJMgia00mt35MjUYwuKvMG58IJloxb3B69cjTbf/dqbJw2btLL/0ShKazfvdc+TQu8GLa6qkGuOnCsiQpY5UyJr3FkPEjwCpRkzlDg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB3366.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RLRQDns1jM5NOMCDnwN9vbIAa4uQeIzJe9au28S+1iogKa+MKUCtZQzLvuG2xPFE2An+YhgDimKredx5yyO10yx+XSDhMx4qYBqeGmQSwSfWZ48A5sWxuVpmJwymeT/qrkH3bST6bzuHZFD9dmPRJoIg9xt/kfRjMnVyx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ehuOp4GbldM0SAcmnR85LIww350AFUqpS1hBYln3TnZ1ysSxBQyQ7Mr4WaLaNSA+62RFQunBZ0qm/Um6g/TCv64G73CLyk6NkHuj2LDcpEYxnBp8FjVNb6/ZcCwDbmJ1weie5mZCpRP/QanzTdV6GXhCK32yvAh4c/9vtcgY2Sc4ZRMTHTrELGdB5vRjyzDtBSM4whko3LJg5DQhNjfFtREuc9re6Uj+RDP8v1RxAzaJkkGFGwiEAfmA5HeP2cjSUAAoKWu8Z2O1H2iX/1/aEVThAQDZsfw/ZNYAlb4HDGy2ctSxN1osbAFEuD4rai//rtwTS5zfb9evuXT815uza+w5ndMq+48QzNiQgD4fJujkd8y7zrg== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: efU9GH6eYvvN37shz0XffqawmYO6LJ1us2ZGGifxUOetXkLLVgCJeCTy24w4QJpGr6Xor46ibLH0DUHh7zhmcAEwcaES8xQqf4Q8KrUOSbW5koOFS7tQVe1M1fjCpsk/gXWBKwmAUT0c1BL8H/HlxpZpj0BMRvhEA9dLHVWpJTG96jAeMpmQHipQfP54jAoQqQLtYWZ9bWWCr18UuC4rCAIzJcs6NKq7gpmQxQVjsb8/mbpvJj4tviVSMn4H1RMkK4s3Q2MkmEjTAkVEo62cUCNJ0qiP1vSV6XFbw2+M2Z6pisow0pUxbrqIlPJf2OqYlUqM2M/pMsE4qWyLDo96+ds86QtBlqAt17MZ/lBO9o8inxZ27mfpYUzvG9O6T0k4CNEahdhEZBUL0SepUtMBocy+oPypTF36tGpgEsFLQPKwAnzHwcV9j3tRfOzeIIC3daWNLvmHPnSAzuE+yEppEvrZEWFi6po5YWyLemQx2dxr8UT1PPXapUBWvUZ1K7tgPSV74a5vJqVln4rM46U6BvhpkFWw8NBCTjIKrh677CsfwoAYaHn0y3ImVp+uNUwZAmbkbv9FPFze9x+TzGEAo4d0PqKNlLGJYyaB760H8TE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f099a0a0-3463-4a5f-50e0-08dd1ac2e0b2 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3366.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2024 15:37:25.3343 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eOdtv286Klh0Hrje8tn9fionBJvrnpTrKkiZ/XqcKDsBqeWEC9lF8tVuyvXioTxIYkTIeDJ4JfOZh1gspcnSbdDg+VxuXBjWi6qHINmzRpI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5804 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-12_09,2024-12-12_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=951 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2412120113 X-Proofpoint-GUID: UAEX7khZerWH3AYubgYG5VDGzfDvM-L9 X-Proofpoint-ORIG-GUID: UAEX7khZerWH3AYubgYG5VDGzfDvM-L9 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1FEC51C000A X-Stat-Signature: 6u9xhyemzyenuatuf41rubjnkh8joif9 X-Rspam-User: X-HE-Tag: 1734020477-838254 X-HE-Meta: U2FsdGVkX192vg72TwK16z+la4LwNiF46PlT9oVqhEKj/8urH0CbJ1NJh7THOqgxOQAp67Ew34Xn1WbFrvqjThI0qNo7eaZKF665HU/dzKE18ETwYz1ogvBG6G16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NibssBI/JhynzQxw7sjwk9jlhjIQvTZ8DFxyo4WlGlhCRqTUeyootDlMxFki9gS+EdwZHLJ6SNt0PH7swVzFl/pcqj3WWY4txWz/vV8Ypv91Bc+95xP05RdKwofdvtv8yuQSnRvwZYzIlpHsRkEhRsaD7ZrpYPdoTATBaBlU4gBwDFx/Q2UgW/b/sZoAhY+lqk7uFkQJ/EXHILUWtr7aAm6cZrrovQOc9AhNMVl/wZRbleOWdT0PUuog28MVYBhv05mN0YgnxD0S72b0r7Ab8wvkO0dgtibIJN3iKORA1swhfsAcF5C1c7OeZ/AMryZrRRGA6EYX9im7t4c//4cuB9ALxsf11DVTzQg7Jm0Vpct+4c75wXL2tmBitL8z/wbMyZjoFbijRfvEtoGQGtlUztiqN5Vl2p37cL4iAPMGJRfOKWu1cFxxAvdqy383ThD1eyOkkIiNQ== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: update mips to use do_mmap(), make mmap_region() internal
|
expand
|
diff --git a/arch/mips/kernel/vdso.c b/arch/mips/kernel/vdso.c index 4c8e3c0aa210..75c9d3618f58 100644 --- a/arch/mips/kernel/vdso.c +++ b/arch/mips/kernel/vdso.c @@ -11,6 +11,7 @@ #include <linux/ioport.h> #include <linux/kernel.h> #include <linux/mm.h> +#include <linux/mman.h> #include <linux/random.h> #include <linux/sched.h> #include <linux/slab.h> @@ -97,11 +98,12 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) return -EINTR; if (IS_ENABLED(CONFIG_MIPS_FP_SUPPORT)) { + unsigned long unused; + /* Map delay slot emulation page */ - base = mmap_region(NULL, STACK_TOP, PAGE_SIZE, - VM_READ | VM_EXEC | - VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC, - 0, NULL); + base = do_mmap(NULL, STACK_TOP, PAGE_SIZE, PROT_READ | PROT_EXEC, + MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, 0, 0, &unused, + NULL); if (IS_ERR_VALUE(base)) { ret = base; goto out;
mmap_region() is an internal memory management implementation detail that is not intended to be used outside of the memory management subsystem. Map the delay slot emulation page using do_mmap() which makes use of the already-held mmap write lock and bypasses unneeded populate and userfaultfd logic. This should have the precise same behaviour as the existing logic. Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> --- arch/mips/kernel/vdso.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)