From patchwork Thu Jan 2 12:10:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 13924459 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 5F32EE7718B for ; Thu, 2 Jan 2025 12:12:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CDF876B00B9; Thu, 2 Jan 2025 07:12:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C8F796B00BB; Thu, 2 Jan 2025 07:12:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 982276B00B9; Thu, 2 Jan 2025 07:12:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 6796F6B00BA for ; Thu, 2 Jan 2025 07:12:15 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 88B2F1C645F for ; Thu, 2 Jan 2025 12:12:14 +0000 (UTC) X-FDA: 82962397854.05.EE664E9 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf26.hostedemail.com (Postfix) with ESMTP id DBCD6140013 for ; Thu, 2 Jan 2025 12:11:32 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=ASNsGRkM; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=A9NkmNVo; spf=pass (imf26.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1735819884; a=rsa-sha256; cv=pass; b=AdggbiKpMV9oZh5qOBXjWczkgW5z0mBp0Up8F9L+/++FoBWuc9fBww+uL+Q8J+rOpSZLiK oEr34XOGCA32BNUAiMeDNn1hvUzcnLSTpcoCXKbcSa4gxgZj9Px1L4xZbJjXpnmrhnsHaH YUOG2HIKbWR5tEcgpO2um/I1ZPMbcS4= ARC-Authentication-Results: i=2; imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=ASNsGRkM; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=A9NkmNVo; spf=pass (imf26.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1735819884; 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=KBL/zomdNKZTZVDo/KBQrFmyFSTdcZKqr+w0CCFSjsTm1vmOSAr8KOEVyeORU/rU5E1/gF chZ/i9wj1XzSGepeM9Mpr6HdGvEVsiP1F/2vy1rukwUcvU0f7XFg5Yf/BbncCLvQKssHRS V0AeJ5O8p46mNDG6FLA7Borkf4kNnm4= Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5029fmLs008118; Thu, 2 Jan 2025 12:11:54 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= ASNsGRkMgq7hkV6InQGJ+KY4u6RxVtKs/Q5SUaZgNmCbGmt22aUaFzK9QblyuFLk dtpviT1kDwRGiP+RDy4q9D4t51TGWUoEc9zYsBB+1fZx6xd4VRMPTK0jjaEd2H7d PNkij5sBjYoitlmHEVYl9PivcAkS3jIZUvzNI1n/M6eMawH9NXXP828L450QbWHt P45BAEOX3+Mt3ukGF+8xeHyPxXMsHZEGw8csWnVpbuEuJ5XhfyDcUckEqEyLWtGc 5w+SwbtE70bK8B+wE+Gxjb+3PrWrMOpQB/FGqGMo4DB2JIeaUtKLbxgejFU4nBIF vS1kSQ9+rYjRsieAdapbyA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 43t9chda1u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Jan 2025 12:11:53 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 502A0OjU027772; Thu, 2 Jan 2025 12:11:52 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2046.outbound.protection.outlook.com [104.47.57.46]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 43vry1hjag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 02 Jan 2025 12:11:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Zr9sZzLoxSVMPPwpk6pcjMmKBKZ9ju3rRivFRWUgBotZnPK3xyVP5FiQiM997tRde63F/U3W0jTJQPk92n7Q9j8oH/kAgIc6lkdBhQYvhhNL+55HWfLJ2XPfgLkFkYRGF9b6+7aO3S/v5V/XC3jeD8qyGVrA1gG9iWv+fshsuvpmQYgwo4xoyP6DE99MVZzFi60cYNgFzcRwFY/xvzlSqPhtERuIktQDXWWZ6azZnAn9dzjjFebZrpPdwfu1AVlinWVpbN/PL15JBi0uNcv8RNiW4iV2ThcEdXm0uzTL0ShYGkBXzTEW9qJPE5VK6IEX+OTVvGTPWxiiRA0x8SOS8Q== 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=Redrj1GjPZcHWKtQUbH15qV1cQGMxZ3Vz7jR/Nhcmz9P5G/S9plIc90ElpZSXnCb1xSTu0OCAL4saJXkKQ6p+NtsS+fqegkI7ycWm3w0I3YKYXvpbMN7qpV/ettI43L35JDpu1sAPrs+PpcGCykycmnqoW1gYZvoy/qnarEZQHswSM7KUhYi8xtO+YRHJSSCqxUjanTLzm8EgCujV00RbLBoBVUTYmgY/MAShFo70PWkTl8QtjASDDorNG5U3n6/TpHv1Q+aO4TxnsqBUr0Q4T9AljxV6u1vWYzVivzFbSxy7aBl0zmW8MNeoFQLJ98m9ECrmpmdDqt9hprYLRBBfg== 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=A9NkmNVoD22Y8/tSItisGorjy4u5CUPlMwtggUSj5YEq3FdiL5XxKjE72beoLku2mn5Rd2oORMtZXGI5FcLmJXnIXBrO5sh26f2phmtAa3dhLJnpl+cEk406E2ZZUB/Q3h0uuz6boTSbJCHu+oszg1tcfLzskxSZP9+mErU/LJI= Received: from BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) by CH2PR10MB4197.namprd10.prod.outlook.com (2603:10b6:610:7d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.13; Thu, 2 Jan 2025 12:11:47 +0000 Received: from BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9]) by BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9%4]) with mapi id 15.20.8314.012; Thu, 2 Jan 2025 12:11:46 +0000 From: Lorenzo Stoakes To: Andrew Morton , "Liam R . Howlett" Cc: Thomas Bogendoerfer , Vlastimil Babka , Jann Horn , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH 1/2] mips: vdso: prefer do_mmap() to mmap_region() Date: Thu, 2 Jan 2025 12:10:51 +0000 Message-ID: X-Mailer: git-send-email 2.47.1 In-Reply-To: References: X-ClientProxiedBy: LO4P265CA0249.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:350::14) To BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB3366:EE_|CH2PR10MB4197:EE_ X-MS-Office365-Filtering-Correlation-Id: 0524e643-81b8-4ed0-2c20-08dd2b26a115 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: AgAChrfpVX6vHlofdN86Swu5RpcLr+BoM6Rmo9F5TONJV1UdE1djI5wLXMUvkczlXPP9KyLY1P5gcQbOpOKneDAXXrrzNjGuWBSJ0roikmJT9FY1uiQuRfjxSmQF9GQa9wWRDzcGIF+ZKCtQTlj6Y6Bs4apOxjRSrfTwYYtNFZTC/bjnTThnvqjQ0MDlwfTx/gyvbPz7RBNH6hMPG/jiR47xk1tY08ATZPwnPQCZMSqB+IfRDLC/r8RX8EzmwwCMfECQEqIJnKWyQ+IVeBdxni8G30C+lKQ1yzsiVr+tRAemxKV/Gw+tBl6K3FrcrYkeGbGXJi5/hlPSLBK8V9uKspKmUuKyXpJ5u938QEcyupd69oK8FMKihKrTfRZsFlhdrQHwOPXyKa6w6Oh29hABYwjVQi+3DdBgyTp9yWR/QpjA3R+qZ5SHZDpCEyYjItWxNtJjZ48fxZEv2p/9DTSTC4R0agK/z7/feJSkabWVSdA9nsnlSRRfbCX8vG2M7yYC3PzamDGWT1ujsssEMRFhvuqs3ve/W4W1dkxDqUfDC3SspxNkpIMEYOO/kYtSfDwa7EjYJk9Gk73hx4it1qzEZS2Piwc+Bsi19dSxcwWwHnmOv8FR9s+0ixBKRxEl98ySBohuhfIYPZ6sngO6mdns1Rjnv/9A8bLEZtvAyzsdu94P4lqbkYAPHreGdJ90xcWu3LcEsDoF9OqJEThVadvfoZcVo+T9P1J+/geIS0ZJJkEfui6kLfvMx12dXL79fIxP+7TmZHTlpPUicNs7a0MB5Ee0yDGnwm6gFHTqJdYn0cJf5zQPQoR/YSQn3ctiPBP96KDFmpHr3pc62ja0IoVIreiRvV1GoGXYTYWhGSmWg8rcuGR+PsDEliXx8kM3ni35i4/jz2m0UkUwZBaRRxwsVaP7PZRLl77VIHtOxHlYE45wqGwESktB7UvcsYP/l0mEF8juDcGjyqgmvv+ZEEG80GnzYyO6U48eMdiXwIvrbNd2YRAGyB4nZuCQAzojzFtO0WrtScoc3bZsqESPUrZ7XlZH2vtsJNEOhctJmzdOStLVtxUbkwwf5Ny1xbvdW7/hgyuGfNdf7iCwMiXcrKf8s0iAXY+1dDmgU/BQxadwl22wlvODI1QYDNLKtXWs4UKl7FwjiV9MMe29PktaHSUpWSl+VPB79fQFXgw4OFYx3rCoDMfJ7Uxi8UGpdNQ2Yn0C3f7UlJUUFdRKGX6a1QpUiohvurgGodW7Yq9h4tVg56OPY/JRK1euJZIFwl0pJUUQTkN1kxjXIxhY+mg+Ua619QjjAY/iOwAt1gUi77HZJPhNScC5GiZJ0LF8XywRTAqJ/SW62di+Igtj+0b5p8xKe2GYaqKF6UHqqhsUrYFHD1ZNyd/M+oNpxo7SgYkFOQ0P 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: 0ZGAVV6hA58POmps4OeHAMv98qmTerwyQUOlZiBSgookdiQAi4tWdIgsdqv9cQ9an9iZbCq7coGTLXuvFkZKTKC4rifZo9QsV6hTLM2WBxYKlwWZ9QQGWFlEhKstQp1bV6os0RZWpr8SaOlcsJ7Ld6SmBH1LQJTvtFYYvSBWprF1pnCg9s08Oq4uJZOpoxOr9T9eCbX/9+GIwtI04f5AwRK1jbiWJANxA0JBkDvoIuYDXVdN9ZhUxbcMlnHNlo24CPDeYtX0s55UxokuC+tAytpmSs6teWKcEAPeaiXrtTjVoaKonpFElOK484c2yqAvzgH+ENKQNwfk5XZ2CKKF7/gG/a8Z2K0Wk8k6oTVkwo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jiovvfIE/ioYf9v26ZiW8qs6AwmPdvkG673Y450qKveISEYakis64gRytFsBHsC8roz0gVDn0b39A8AiYnb7Tm2mTohVACSQ9BiJTApHK31dAzpsTCkBc3GbKVvjCAJb7dazM2IK6NK9qVOAqrGTJ2Vqj8B9hRgZcJ1dWmWDNwFS2g994ghX91twA== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: FV7cAkKI36KsQV8+WydszyeNZEUGLI+g6jWbrzWWwKaQlyUWJMAmvPdh1PXbg+GFUVjA2lR2l0Ul0co3pO/g+Qub4fhQw+W3gGHy592mz50hA6aTt+NbBlUE/1CyCmoDbOWoCc2JpyfptDMCsPRIlyIXNQNklrVFfunXArpfkniBD3LTmIqNAV4uAhgAtzmGu3Cw9VnzMdmv/6h9IDRdPg7OHLVLgwRaYoN/j3erJpQVXFIB3Li8lngeGXzSV28Zw8H34rNgSMRY6WyYaRsnAmsgKHzSZROtpEcZgHfVCikykkub6WYE8RjIK8nTeimFkiTL9G+GhrMV0UmPynYo24/TEkY5kaNE2GuNgB4ywXnMlOBwxx6DjvRuC22jT58Sk6eLEmnUy5mG2GE/N3JyCitg+N3Mc9GAjjXRAVmJufDzkoVFTTj7kHWikOXl8+0g7/bleBHyltCcJhFD9C18hPxqO/ynUBbHaS0gdhnPVvY4b/BujuXyLOrQb/eBmLNdNn5tV+6EY95p89OPS66CNiedn2UseGSpkPHHTIIuxBXGINoOhQTIyTQS+fFIfX9Q0P3CwN6MqgCOlU3MPrNeRQG3F6+096PY2YghUaQgltw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0524e643-81b8-4ed0-2c20-08dd2b26a115 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3366.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2025 12:11:46.8951 (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: IJ7Cb590TG1MywmBhzCBTnse+KjRiv2up9XqLJ4g6GQEgv5+wJgd5wxGDXR7mKCh2WgdY6fJ6BMGQBJz+tsEMr/HDdsXcgQ8740cZ6/scfE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4197 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=2025-01-02_03,2025-01-02_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 phishscore=0 spamscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501020106 X-Proofpoint-GUID: pr60IA1CrjlERYXzj9qdcn1jeDcnFAi0 X-Proofpoint-ORIG-GUID: pr60IA1CrjlERYXzj9qdcn1jeDcnFAi0 X-Rspamd-Queue-Id: DBCD6140013 X-Stat-Signature: ws1i3wycgsk4zwcbfb6no81pcar6u1bg X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1735819892-218001 X-HE-Meta: U2FsdGVkX19hy1D1nCHyzII3bGq5473tYmEodr+iOz68pFrFMuHkyhqHy80ZAUNmqKQ+f0zD7uQ04oorsKwpHBCxvLLZOEW3CaulgRlAeADhdnFL3m2znP+W0rmTm00wrR5xdIvHEiXszDcRm6I9jmLyqEjpiVgRIAi6z9pRi4l8IVkEcR8apeo7PWiXG1rxwQztY7LXgCGVMZ9aDMmsNCjD7asdWQS73u768+rZZrwn0+4boz3KWRy5l3ibd6vncclYktGZ/VlTEnej/gRdP8mCvQz6idx15Mw6XNQRfrVk9NladhyOOjZ/6/psqXGu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hrM+7TwI9QsWpzg9F5jdOSZj+TQ9mrLtyrqmUqyLI+j2sP+Q5zwgXMtLT8n87bFBs+VRE+Gbjv9Syaro0Skpjxe2q/USKLSkZS5k65XygHimLeM2S9fAFH4E3LermIstWnGsk0mfMZagbA5szpVALomnQ/1+7tjOTarEVEmpN965yY/pOvOqY+Y9IA1w+O7w87+bpmLSdyW5XUrP7HJ7QtzTiMZZdu4B+4k5E/Qyd9pJkQufh5p+bZSQy5vLTjC5YHknfxvfr3Hcw== 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: 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 Reviewed-by: Liam R. Howlett --- arch/mips/kernel/vdso.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 #include #include +#include #include #include #include @@ -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;