From patchwork Wed Jul 26 17:07:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Safonov X-Patchwork-Id: 9865441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F0F09602B1 for ; Wed, 26 Jul 2017 17:14:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9E83287A1 for ; Wed, 26 Jul 2017 17:14:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CEB60287B0; Wed, 26 Jul 2017 17:14:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D40C4287A7 for ; Wed, 26 Jul 2017 17:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=d/+rIkhlp78D8rbFSQ3XXRNIuh1cwAeLH1INpayuG80=; b=FJb3FMK9Ei9ZvZ Vgtre6NpWk/QlwU4aEv1NUDmb2EF4tWZ+n8oSfCoe0jPsEOIIQUksin2z3FK/A9kBiQu5XElipJ1m +bZo4lFS45yKHSXczDlnjJI27zNDLkzGuIRhzVcXYIj9H2D5iB9v2E+2KCsUOexu8gJCRaIk/nuFY 6zbuylP2CV3v7cGGNx6/2NVH7B6UFcuw1ntgJy14Yx5UXGU44K9UTC4R0ClZGA/P8B7MScik9hDkt UxM5H50ElS31ubMHfdEZzS0Xz+eTihiWZAabeTELoJvw55g+xOEdYobt3gh68+dKZZikEk1NNYj1E FE0+8Ys3+ZAOpFGQidZw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1daPsC-0008Fs-Jg; Wed, 26 Jul 2017 17:13:24 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daPsA-00089A-Fq for linux-arm-kernel@bombadil.infradead.org; Wed, 26 Jul 2017 17:13:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QA+lq8Ae9tMRfy+SuTwEOW+qLUGvwhQS+lUauDcy1C8=; b=NmEHZe/upcYmVr0c3Ppv5YCaRK 6okYsCbq+VBqMnJZxe4kXi23+GyEw1iBqIL8zeem0BSrSE9r+/g0PoGd13B81q3a7KeA+zcZ3KLC2 HksP7EUdpanP2aS8eojS+4gz0TQQjVOpHCUGAqHtUXhaYtYjSHDaXoQbXU3KVeIuOBTXNdsCwbdso NSnBWONE4zBrgh9uTESfgaUU6noLqL/mrGFiUuubIVoIjz2tmg+2XEywYhTPsgO7kqQMsc+6P0hQ+ 5yzyr7LyE5N8mtb+Wsa2FyknVXDGi1B6FFAfluacuQDHlE+DWaa7dB2aJNNefMPUZGCGSgJ0N/Wcy LEpYueqQ==; Received: from mail-eopbgr50132.outbound.protection.outlook.com ([40.107.5.132] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daPnh-0000Mg-Ou for linux-arm-kernel@lists.infradead.org; Wed, 26 Jul 2017 17:08:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QA+lq8Ae9tMRfy+SuTwEOW+qLUGvwhQS+lUauDcy1C8=; b=FsdwPGsq5aCsuQ4magyvL0Qg2IAuEpnbbFJnJPrqVG4mR+cJp8Czv6Mtsna4muh50/w6fiW4eHPbvqph1u9/eo/pljTRIZOX0q5ddu/Tj6U0OjK5N8+/TEJBkCaWOpQa8VYYZtmUbeu0lvieWC6Fz+NpmgpypVtXYM318gW8xdg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dsafonov@virtuozzo.com; Received: from dsafonov.sw.ru (195.214.232.6) by AM5PR0801MB1732.eurprd08.prod.outlook.com (2603:10a6:203:3b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Wed, 26 Jul 2017 17:08:21 +0000 From: Dmitry Safonov To: linux-kernel@vger.kernel.org Subject: [PATCH] arm64/vdso: Support mremap() for vDSO Date: Wed, 26 Jul 2017 20:07:37 +0300 Message-Id: <20170726170737.21696-1-dsafonov@virtuozzo.com> X-Mailer: git-send-email 2.13.3 MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: AM5PR0402CA0008.eurprd04.prod.outlook.com (2603:10a6:203:90::18) To AM5PR0801MB1732.eurprd08.prod.outlook.com (2603:10a6:203:3b::10) X-MS-Office365-Filtering-Correlation-Id: f3067c8d-320a-4cf5-5bc8-08d4d448eb60 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM5PR0801MB1732; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1732; 3:gvdUSm+OsmDnJKqc+MJi/kQENxdM8HmIllXviTjmctSTvhFaVqwpV3RnE1QMYdm7fuQoZ/Mo8trl9JpdaO1NJdBJDAmXctP6wdjucvvLSzawVBb7m7TNSkiZEQc8s6eKbB9S23q70ijMZonpbILd/GX/1ceLq/s3E4zZkYtsQfoVibxZp0QaSayfuud5+cKaSAu8laDEkXPCNip2mBpva3dSQI2B6Et/QijZrto5c3SJywVodtXwJKAY+G8ybIP5jvSlsmc4c99tRO1Fud/4RiYslKIaXI3curhGr0fWO01MZUSHkgvk5NgN4q6sP+SrkC93cInUJO63dHnqetwOKE4OemRy+TL8lPVs4oz/a18YTFJzdX9noZp1nO6PgRNZRec5iSycnEgIdMrDSxYpqfMixeZCDatb1fo+Wx+I/QbM41Ls8kPMnGSVnNWiqsksutRLsQJfnV3afPya/sdWzArSsV50igdmFdreqe5xc+8TsCMlYNpxnnmBlK0Zn8rVmTqH5a+GiDf0pZ2Sx96KssRFBzxZ+KmbCp8nxt8kyKJkD/oyNFMFfDKK2fHv9jRykqKU27a8RF6gh8BrOtOPsRT+NrOsSt3SBwsayrWlM/LDzxzOlre9kNtWi7Ih+dCnrZZX2F3QhgPJMIe43kXpVeTQtm4M5m9YDWAytmBssSUbzA/oEkpjGpTfgXKsQeT7wr+mybffIncov42vECAQvOGe5owMl9vOxvlYXuJ/dAk= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagn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4ponI4q+YEYtTZ0S9A0h0ol7xudxXxLzuE= X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(166708455590820)(258649278758335); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0801MB1732; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0801MB1732; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0801MB1732; 4:LAubEEiu71FR+1WtRpXdg40TqBWq+qJbSF4E26rW?= =?us-ascii?Q?dBj3nBvnU0xeQhQ6x8zPQlwxSpMeFbY2HHtPrYz/IWUixnVNZY1Q9I+pkXXF?= =?us-ascii?Q?klRj1wSigqjD3U4OwqPcMOKc2mIQEOS+Fiaz37kQD8yoGcbojgSGYq7EuF3L?= =?us-ascii?Q?TvOgPbvx17w8q7dmUNlFtSDp4CB0qDMqyYWPVSv/FcJFJAdP4SAlBGH1nLVC?= =?us-ascii?Q?iyx2vdZybhhJ4cp9ElJPjJvzkgzO8weWgbK35Jqb2UXNsUv/Csghk7mHA06a?= =?us-ascii?Q?p525m6d+ohJ743hkg7dmai4lDagZSnrUd9Ypeydbil9roFmru/2WMoW1Wc+O?= =?us-ascii?Q?cXMeoRgskymoVcceTKhp/RYlbAc4pOxNwEr9MbpUJH9mbhVVBTK1p0TKXISx?= =?us-ascii?Q?m2hkWzU6rLxPhSOtQGtca5HtzX2LhBdYCAR2Tl9RxMjnLHt1bziDDQBrIBKT?= =?us-ascii?Q?/ux9CNqULKrG9MJOEwEmu1euOs7PA3yrjsZu4vlPJhZYbOMDy2NCBHcaL9tm?= =?us-ascii?Q?PqKkEtevbFO6ZHHlg5lDfT//lO76u1U+4n0B8zH1NqoK7oboN6tRhNkcHdWs?= =?us-ascii?Q?TF175PeCWypWP89Kcds8fJ+6p+oCn/KsTpgQHYi9/U2Mp5u/MnFVNOQ12f3y?= =?us-ascii?Q?2wQ5EHHEQrU9Yrkl8tWRgBbpZCL0U8CONmNYjV4mKtrfkYB1ICFKPaQIo8l9?= =?us-ascii?Q?S6Sm87sDlUVrRMB/rxH0lN49wUNOOwJ9IX/fpu62XRzpINjK9eJTpLwRUvV7?= =?us-ascii?Q?uF745JXmI59O+m9y0sQXgRxY3u3+wAwx2c4WngXVzTbEUPURVxDHFBmU9piz?= =?us-ascii?Q?uB04p3+w99irEH75PiOvjZ2CRyBJLFj+Jd9oV4+0pF+gOMO/ITsh+j9iilzA?= =?us-ascii?Q?rknnQB/4cx63C5WKMc8FLoBxoR/1IsxvbveQMsUY58LmQ96AEMalfvlsmwEJ?= =?us-ascii?Q?7LqJRh6Li2Hu8cREBzSrghAyK9a/yCmrdtkt5xdr7ndcbt/d25HvgHTkB3qI?= =?us-ascii?Q?zK2XLE6ddNA2myWYPrlxkZM3oac7H0VOCT2pZDy7uz9vtyci8QjfmCCP+4Av?= =?us-ascii?Q?FAhD0pmPBvI9LF9AsTf7QWT31iUcQoVmVMUUIWu/vW6TQxaFze6351hv2o2R?= =?us-ascii?Q?DqQAPEagmuno1isYIOBN3ICy4OHtbnSrRIF0scwLAt5i21U2sX9vOK0rUybe?= =?us-ascii?Q?inzmsunxrBLf/H3Zf6dIEpCjcf2zlhYxZ85wi3itTGQjtwxPzlLe9P8d20eU?= =?us-ascii?Q?hdtzDOaSFd7K911kWxE=3D?= X-Forefront-PRVS: 038002787A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(7370300001)(6009001)(39410400002)(39450400003)(39840400002)(39400400002)(189002)(199003)(86362001)(54906002)(53416004)(38730400002)(6512007)(81166006)(105586002)(4326008)(53936002)(2351001)(110136004)(81156014)(305945005)(189998001)(106356001)(6306002)(101416001)(6486002)(97736004)(8676002)(42186005)(69596002)(7736002)(36756003)(2906002)(66066001)(50466002)(1076002)(50226002)(6506006)(6916009)(50986999)(48376002)(7350300001)(478600001)(68736007)(25786009)(6116002)(966005)(5660300001)(5003940100001)(47776003)(6666003)(2361001)(3846002)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1732; H:dsafonov.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0801MB1732; 23:JniTY+H8RSBroh3Acf6gsvRPT1kb7rYa2AEVz46?= =?us-ascii?Q?/iOHzpyK/NN+GewAIXQ4tZsEuATnoOCEq7UIBea3u5i/FHM70FMDdtqj94NI?= =?us-ascii?Q?gmElubwsktF0DsgI1R9jPK9AHApKW/z9zP0cqB/5Ud5YcULR4De2hjPfsWWB?= =?us-ascii?Q?kBvzJyH5B4h7eqUAWcMhdzsdzM0LlVdcfEUOk+v/6CVkW0LWW8QYlk1FpRYQ?= =?us-ascii?Q?w4byV3ioHy5kxC1EiXIVt/HX9zPDPFc+LMS/uvl62qeu2Pogn2ymHQ6mrNon?= =?us-ascii?Q?1f/QgJYbIB25PABKBxNB6KqHh0tEI/iqFiDtYmc/MWOu3NJse35NIJg0OOFn?= =?us-ascii?Q?1GLVNlcK9C24AmaB0590oouZMVCSCA1jNQ45RaO1w0QY7PqpOl2WoqGPngiR?= =?us-ascii?Q?H2xRXa7JIzTPJjv08mZJ1CmY2tS3opk7tswRqYKYP9HLv30uv6QTlSJuk8ov?= =?us-ascii?Q?Dd/IloAcwZC/WniLvnizSjcB3ZOP3xQ8Ezp0VSdt2lBegsReGcoh+ZgO0T/D?= =?us-ascii?Q?q4onmRemofuLq1QkJOP/u3Yq7JapDZ7evNrDZQbyfordqStbv4NViqZpriQ2?= =?us-ascii?Q?Vjp1lHV15lpqyOW+tkytpDO/PfG28HUMtOoHfcSuCIo2fR6+88mDifEFNQEk?= =?us-ascii?Q?nmupvXx6wxMqnItnix8R0c0htkoVLms3vxhblCMS/vB3RQFD/Nc5z331Zc8t?= =?us-ascii?Q?BHVnlFmuSepCaNDaivUDL1NGp2wa1ASPsIOKjLWj4AwkOL5wwx/h8VxEW/sq?= =?us-ascii?Q?Lk3o69Z3BDbDLp4Y45uleUxSlXoGLV+2xV3UolCNFcNXVPshuwmEyz+OmjEi?= =?us-ascii?Q?P8bqrg3aKZAiNE5+tJm7VcS08XdQndIS7WsPBDEtZrBUZqWVPiqU7rgtSlZr?= =?us-ascii?Q?34k10KhxsyE0Tipk3jriMv+kYND2FDAnm1txze622c1a9Q7DAGcBJHRkpxHG?= =?us-ascii?Q?CiIYMFZk7f9uz1Ix2JjdLCvcy3Ih8alCf6YGl/Cc3LH9ailzCi9qbtJu65wV?= =?us-ascii?Q?uoLCxFv/7rUV8UjltS4Lht0a1yhBLdv/LWD4JlhML+bTwTjZjfeFC2CXG5fX?= =?us-ascii?Q?Q0Ip0Lvxot0jyw+y4uYlbXCvgDMFP6GWw8MZjuV8jxXyD6VF1Po8OKrqLWXq?= =?us-ascii?Q?8rfJT8fnp7rzSN8miFzDoapEaNpJnhj5PAmaC1SNvYF4hcaX6qGGK+kVtavG?= =?us-ascii?Q?aooNIdthfmgamdn9OiO2EaU9rSH/b+0znqMvdd6n12Dcg7cZB27rKl3W8/5W?= =?us-ascii?Q?ywK0d5umq9IHxbdpU8C2cIgi/StQywHuWFJ2Oe+tzY4XxgUgkxfm7qi8kPST?= =?us-ascii?Q?3zvwv0+8bz5gO9GK2993cKI6/03Htpqig+u8GRlvN2FFW?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0801MB1732; 6:TjK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?us-ascii?Q?UPz5fgGl4kDTafIZcNmOjSoZcCCZEjo7LEw6j+QZQJmusN6r/pzOuOi5IAPg?= =?us-ascii?Q?qoqRBAbpfeBx8cj19l30ocBJc/ZgI6r3ohBtyinIVDQdQQQM5mvZB7JkuGBw?= =?us-ascii?Q?rTA=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1732; 5:57/j+H3ZuIOTOpB+5ib+n+YpD/HAXhnA79QspoCopC63327WnZYEiI5POO7/+SUyckejXTObNOzPDIZ+0N/CnJj2QTVGItv69+yWYR7S7Q6/CZNU1M5VjsnInGBLfde0pGPp0vUmF6xI3fmTbqVNB4r9rRoZ+53quQKeWJUxhcZ7RrwfyjmrFiMpGLY8kdxFlpIyJh7IDky8rPLGFRMEvcOW1gpyQfe5aQio9JIAHAkSmFRWCiWVr/1yl+KjpmLptMXWJ6V3eTQqjGCpm18D/kovTx8mMYWfeZSw/DoFHyb34ndkikjoyhk6G1yJWL3ohDNHJR8lOit/O/dtE/g2GE2YAfnyN1sFT6dd+B0qscskfI7AcqiKsqeT8LjEeAfUgj4CyFqGExS3p0C696akftzoGhEtezBeSVCqBb9idGIVvEfVXunCBUFRFzDUetHWZm0iNTqKKabbE1HqAtknch1ZFzma6J9Td+n7FoPJ7wUIXLXBJFVxCcMKqlVlnNbf; 24:r0LRWDB8oCiXvOGMlJRmq85lOCvvH2tcCCIV7RE7Nm9qdSdgtARXEltrZ4ek3jP5qDdzEntX2mvhOdqzNNaGULr35wEIdxy2we8xHtgOTOg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1732; 7:2sBBw/CZfnrNF+4AGz7oL6tN5wq0s1kjgAPP+hL45OBr64UG2aG69oMcLUaQt3QRFFxbi8E7gvkbitOagR7xDm4aiPQPYSAFraZjW5PxhhdDWRde31SQrhFbW2lDx4IQKbJm9U12gXVQQHDnjX6MKSJj8k9UPorjPPqQk39irhn9hcHQEpbYCZ4tD87ib3EiiiKNsU/pzoH0Xgc4jf9WgVe8liuF36boq0J9UVxs7IowsA4jbygsZL8V5B0xJ9BtSWxK6ODVxejEBPv05KLZ2MOmgQn3n8IP9f4bUsvtKUFYsE0XTV77bqlMlFxg+OaZqBO3PAGBkoirURVYEOces63Ri7lhTCc+CPi5TC+32VMg3l+RqKA55u7KtWRqgwCcQcl61HPAdQY9eVTKjfoBk0wg4GaHK7cTdeQgqKISAcm2hdkMSAFaActa/JM8RalxeOrt8OsOkw0t4PVfezuKmOdt3wNHIK1p/32OlvYy9md8UKRQ5YM4J1fMCcreqJoVC6ah2hTiax1bQtrn0qUgBJFTv31Pvf+FckAMY2F0BBx2gQtFdOkAq3WI2INUmbKrfeoEXoMjr1YSYZz7Zeh6v/UDRNwUWsBWoo2CNzez9x6CwJtVFfK2Gq6ghmjvHH74f9v3LSgHWNfd7vB9NieIlPv349YbNCqbrZzjVlWHd45mJ+3geJ2BRgeJSPWdwvr4NErsqWFuOlNJxjJyUTC8kCeTYngTt3klv8dimhyxgv3JD6n1Genwar00Wg1HAK01682l9tLKyPfuUHH2CHy52WglWfA/TRlqKcivjkZFJ0c= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1732; 20:USj6wDKqU0nud9z0Xpp7qfTsHtVKvz3sFJKv3iAssXA3BLzsCoLkrUhH3ZRA38eBplcXZqlrwqrRTmLUjafD1PgweJ0zwSOTd5bRPSgj1t1c8KS9px/uN0UCQqSqVCMgJLMhjq1+nsk2hpznGwbsaCpceybp1012d0b7e/5crHk= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2017 17:08:21.2308 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1732 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170726_180845_891989_42915BFD X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dmitry Safonov , 0x7f454c46@gmail.com, Will Deacon , Russell King , Christopher Covington , Catalin Marinas , Cyrill Gorcunov , linux-arm-kernel@lists.infradead.org, Pavel Emelyanov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP vDSO VMA address is saved in mm_context for the purpose of using restorer from vDSO page to return to userspace after signal handling. In Checkpoint Restore in Userspace (CRIU) project we place vDSO VMA on restore back to the place where it was on the dump. With the exception for x86 (where there is API to map vDSO with arch_prctl()), we move vDSO inherited from CRIU task to restoree position by mremap(). CRIU does support arm64 architecture, but kernel doesn't update context.vdso pointer after mremap(). Which results in translation fault after signal handling on restored application: https://github.com/xemul/criu/issues/288 Make vDSO code track the VMA address by supplying .mremap() fops the same way it's done for x86 and arm32 by: commit b059a453b1cf ("x86/vdso: Add mremap hook to vm_special_mapping") commit 280e87e98c09 ("ARM: 8683/1: ARM32: Support mremap() for sigpage/vDSO"). Cc: Catalin Marinas Cc: Will Deacon Cc: Russell King Cc: linux-arm-kernel@lists.infradead.org Cc: Cyrill Gorcunov Cc: Pavel Emelyanov Cc: Christopher Covington Signed-off-by: Dmitry Safonov Reviewed-by: Will Deacon --- arch/arm64/kernel/vdso.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index e8f759f764f2..2d419006ad43 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -110,12 +110,27 @@ int aarch32_setup_vectors_page(struct linux_binprm *bprm, int uses_interp) } #endif /* CONFIG_COMPAT */ +static int vdso_mremap(const struct vm_special_mapping *sm, + struct vm_area_struct *new_vma) +{ + unsigned long new_size = new_vma->vm_end - new_vma->vm_start; + unsigned long vdso_size = vdso_end - vdso_start; + + if (vdso_size != new_size) + return -EINVAL; + + current->mm->context.vdso = (void *)new_vma->vm_start; + + return 0; +} + static struct vm_special_mapping vdso_spec[2] __ro_after_init = { { .name = "[vvar]", }, { .name = "[vdso]", + .mremap = vdso_mremap, }, };