From patchwork Thu Jun 1 16:23:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Ryabinin X-Patchwork-Id: 9760235 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 C8736602BC for ; Thu, 1 Jun 2017 16:22:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C28E7284BF for ; Thu, 1 Jun 2017 16:22:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B73CD284FE; Thu, 1 Jun 2017 16:22:52 +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 autolearn=ham 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 01547284BF for ; Thu, 1 Jun 2017 16:22:51 +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:References:In-Reply-To: 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: List-Owner; bh=/kYFNpLXTdKNOQFBxzRopcobyluRNqtwtq5uEIDRXyk=; b=NrnIzVTtjaOn2q y1fEg8ZO226rGqS07n5nhNtTi9sLJqcva4Fb4bdgCJNU/SRH1qwA5znRa12GmG696gR1G5+RVjmro YbIguC5S3upx9AkG32hi9Kctbk4AoeBY/6vU4rybNkCgNOGBTcM/kA5ikK/oUHRtnzsCVFLLOEVfz hzICncrGm1r+VmQrorf4za2WKyLm01vQ5Czpo2z1rpgplVkJaiLXzGgXz+Ga8v5V+hHsrkUTD6TbD SqYj/658b24ieesS2Csbb2fzXW6TJqzU/MuGCylXtcMqjQ5C8nK10XvacQMFpsj1zFkYFkDXpYD5y kJNgiXfP34LzHy/f8X0Q==; 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 1dGSs6-0001YX-SP; Thu, 01 Jun 2017 16:22:50 +0000 Received: from mail-eopbgr50130.outbound.protection.outlook.com ([40.107.5.130] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dGSs2-0001V1-IZ for linux-arm-kernel@lists.infradead.org; Thu, 01 Jun 2017 16:22: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=dzg6OReGp0TvXIfBsJJf2HsQMVqycYDj7ziH0USI1fc=; b=W3agHjnAMDfNSSGX3faaydXjBXFx06CFLjKCla/AnG7qao1Y+hc5MDnyD0IVCaQmwtaw0wModsF91BhWGakd/ZjS+ytNQNZDDxRFIxFKgcjOint48ThFfnmMgtJlQgf93z3pT1u3AKhb9UPvshHSqZ4pvfwVjalkUOKXB2Uoy2Y= Authentication-Results: linux-foundation.org; dkim=none (message not signed) header.d=none; linux-foundation.org; dmarc=none action=none header.from=virtuozzo.com; Received: from localhost.sw.ru (195.214.232.6) by DB5PR0801MB2727.eurprd08.prod.outlook.com (10.166.176.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 1 Jun 2017 16:22:20 +0000 From: Andrey Ryabinin To: Andrew Morton Subject: [PATCH 3/4] arm64/kasan: don't allocate extra shadow memory Date: Thu, 1 Jun 2017 19:23:37 +0300 Message-ID: <20170601162338.23540-3-aryabinin@virtuozzo.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170601162338.23540-1-aryabinin@virtuozzo.com> References: <20170601162338.23540-1-aryabinin@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: VI1P190CA0007.EURP190.PROD.OUTLOOK.COM (10.165.188.148) To DB5PR0801MB2727.eurprd08.prod.outlook.com (10.166.176.23) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PR0801MB2727: X-MS-Office365-Filtering-Correlation-Id: eb792ed4-51b9-4d93-6fe2-08d4a90a6169 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DB5PR0801MB2727; X-Microsoft-Exchange-Diagnostics: 1; DB5PR0801MB2727; 3:5Qn7WmcGIVPjx9zHiK0O+dSmDZAWLT0lulchOMxM5VH6e/U7uRRpUxIjubhLlpEzzfFkRQAf/d3NMvCuklQRRigVSk+wVv3F0+mFpd7cfrbRZBZ09se9F/3LJzowxejB74UjIpwHbz7wP1Dff/Xq1BBpqgi8zkW9mNU6JHxCnuu+2xMw3WnpAul+iDi+TnNm/3oz936yxsLo5Fn3xiQXg9Gl/50bXCE9wk6PzPedvtaQdB71dwO8P7SfUtRNbRNJhy0W4HwcpiN3bFu2e5bG59oIFw8DiDoDemqEXg6LisNxwJKqATsI6+1Z60MMg6eVuiAoPJu6m+x+Ss4fHtYt2g==; 25:Dm8aZ3GU/a9Yu1r9J+mMRwTDwwNTCEcJ5OjAOi3v7DKP7TJ6pdDUyiU7yTk54dWvAm0OIweQT6ZyMsuXCfCuYNbMIpoqzcKs3mtWy1b7CwTzPxlfUQiONXbLibgA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-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(258649278758335); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB5PR0801MB2727; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB5PR0801MB2727; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR0801MB2727; 4:UoRnXHugWzZHeIcxWb+Py9yGMeL2i47D63il2+kR?= =?us-ascii?Q?ohbKhyeIk5KnNj+OcFD1sKbkmWVkzestPHm9IQmjr6M/IDIQEkXltmpwcj3r?= =?us-ascii?Q?jxA/Bt1GbpzacCiS+lwPkJMGaBF6bUn0t5pi1+y4Faf5tYXzCaRGnpI+qq2D?= =?us-ascii?Q?lEF6MMAp0UjltAl2TTIDvFA3/9epfaV6D50QfTv/IRCDa3t79UH0RlcjevIZ?= =?us-ascii?Q?iehlNcCEpTVPmNskslXaUxixDTCXDWYnPmEZdvw2yNAPZGSsFzoHrHgtQRDG?= =?us-ascii?Q?NL6tVroEJl/Ai1/eZYrKQHLOyosNgl3tIvtyMO1xuSpWviSD6JFj1D1rMMZ7?= =?us-ascii?Q?IqjosY61umcalr6f6U6k1izIiOuRh0/4ARmHvCADYX3HYLbddga78++FqoEr?= =?us-ascii?Q?6W1PUa5NnA0GmDDmphevFjJe1CcQcLdoeNDQhNozJqFIxLUvuxNsffAY2FyG?= =?us-ascii?Q?+sj45QhzN1IytLLEn6sGsVCzt0LQr+F3m2yp2cguI8g/MNBWLSDuVthnfTTL?= =?us-ascii?Q?1vJyxuMmw1k8+eDCTCklyoV02jNKX+A3YN6irPnMMQJkSmwNk7rPLVEAhkDV?= =?us-ascii?Q?msshdaXJEDXqF56JGErJXG1nRgymUAN1PAuoawznzhkPjwI55VFu4kNmQfxP?= =?us-ascii?Q?FrWGGUWMkNpjIG5cWehAyrjXvPyQIUA8FHph13OrCLgQCZ+EjTy+K3pfzPWq?= =?us-ascii?Q?9o20OSKlnf1gBTfziltYuRND2S5xYgQuJvtRQ6jJHw+caOWriKnOcoP3l9kI?= =?us-ascii?Q?eat5ufp5Ay1rc+OaSBFt14W9uVq7DkUKhqTIubIl2HPhE00bcNqjkqHk7Cjg?= =?us-ascii?Q?IhMOEGaaW2NJ9U7jw49YgXzQDQoq6ni2p7psv8uD7h/a8Ym34M76Zl3sxSyL?= =?us-ascii?Q?DJo/8mVK+CbKi95sDOwdbJxgbxaSKkrWIRGXVKifoLZ7G5j2Y8x8Hp/WEKiZ?= =?us-ascii?Q?VvM9AEZlgfsujpKrAHjaKOZ4lWdHFOlOtzuVdNVLjwHkUYJsgFueWS1AFMrN?= =?us-ascii?Q?fSCaoCeJMgXH2lNcXmLNuCmumNdSMXPEr43LiG66YE1zPUylCgyONtBi3LQl?= =?us-ascii?Q?3v0a/p3jA+AKmiCOPKSjzZel9rcred0ZjPyqoiUz5FskdIP6mXqw0d1BOM7F?= =?us-ascii?Q?qZ8NKsw3tQ2fCtxjJahtia9s00omZFNAygSWwzDk/EDfOpJ6oX+Tmp2KTcDR?= =?us-ascii?Q?R1vSR6iNLsmX2gMVCIhyoMZKrleleXebQ8e3Nz9uJfbcdHDhb2YN+y4o2Q?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0325F6C77B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(39830400002)(39400400002)(39410400002)(39450400003)(81166006)(305945005)(2950100002)(1076002)(6666003)(6916009)(50986999)(5003940100001)(7736002)(76176999)(36756003)(76506005)(86362001)(42186005)(53416004)(47776003)(5660300001)(66066001)(33646002)(6116002)(3846002)(6506006)(6486002)(48376002)(53936002)(50466002)(110136004)(38730400002)(6512007)(189998001)(50226002)(54906002)(8676002)(4326008)(478600001)(2906002)(25786009); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR0801MB2727; H:localhost.sw.ru; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR0801MB2727; 23:WU43Lk+GXcX+3vkGQCCkOY6EPY1ozpvKXfDmIhu?= =?us-ascii?Q?FGAwl8eW63kjTzV+ZJNRrgJybmknFoDUBOjTGwJmVyUeum7kW9Yi8Tb2/CNn?= =?us-ascii?Q?2iOjz92v3Kv9mrHb9GFupF33lTDNHC9RW5TxDUc3KMz2Wr3VOh5HCnbtQo28?= =?us-ascii?Q?rztCRqg2cdohYrY5tfbldw0BLXCOWiWqNvcVbi6fGXkKnQ4Q4pf6cqPSxDtc?= =?us-ascii?Q?lOa9sFiL95fAKa2aJdEyVSSpmqLxGOTEzGBoBITRenESpXOVnHI4ysBsl29U?= =?us-ascii?Q?eDJbN90dNECq2njbCmPA3s2FlALc9fxaviw8Llp/Uvs0OaYN8IdfE7SpIgAf?= =?us-ascii?Q?b1K1b5QQIz0Kw3dyB9PFH+T+NCr6EKJ3PPwfV/xGL3QF19lELxJwACAfYm5A?= =?us-ascii?Q?h6cIr7jzO2bq6zGX129YsYMdStdABpy7YKpDAo152LhSNEdze/bDuFkcmJQC?= =?us-ascii?Q?nQ/qiU269OW5ynr4/3ef6jfHhx/ooCYhuqBmKovQNb+AP9cSkOO9+F3qYgdU?= =?us-ascii?Q?JaNjMwyVDoXbzFwjhvEfUUa5Q0rnAN8pQPr1rKZukytTZBI2oe6FOkdbTBgf?= =?us-ascii?Q?3HMf/YWuXYNYwoUVOKzstinlkolYekD/hi4RMlGzcRKB0kW7DUOt1s/RbXUc?= =?us-ascii?Q?n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DQZhcGFYP6rxAeSkb5sVbQgRjxWrfRKrOxb9W5m5/kvHE9tK3mJF/TgWCTU3Ywwdu5xs7RngDl7gOJV8rDtNU64eM8rDKvg==; 20:8Vrfu2KjqEC0e0OzAMu09DMiNb1qCBke5mn49h6SDON+NLDux1aXwItVZBarBSPYHul31YBH110SsB2zWDmRNsvOEnI5AUKg1eagCvVRG2mDM7V9uTR2P+5Lou/smVgn4a9u3fmZ/tLyqeZd3jUSaICbUn7tXasZ5Pb+LxTy+sA= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 16:22:20.3899 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0801MB2727 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170601_092246_994445_43C8DFD3 X-CRM114-Status: UNSURE ( 6.93 ) X-CRM114-Notice: Please train this message. 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: Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, Alexander Potapenko , linux-arm-kernel@lists.infradead.org, Andrey Ryabinin , Dmitry Vyukov 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 We used to read several bytes of the shadow memory in advance. Therefore additional shadow memory mapped to prevent crash if speculative load would happen near the end of the mapped shadow memory. Now we don't have such speculative loads, so we no longer need to map additional shadow memory. Signed-off-by: Andrey Ryabinin Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Acked-by: Mark Rutland --- arch/arm64/mm/kasan_init.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm64/mm/kasan_init.c b/arch/arm64/mm/kasan_init.c index 687a358a3733..81f03959a4ab 100644 --- a/arch/arm64/mm/kasan_init.c +++ b/arch/arm64/mm/kasan_init.c @@ -191,14 +191,8 @@ void __init kasan_init(void) if (start >= end) break; - /* - * end + 1 here is intentional. We check several shadow bytes in - * advance to slightly speed up fastpath. In some rare cases - * we could cross boundary of mapped shadow, so we just map - * some more here. - */ vmemmap_populate((unsigned long)kasan_mem_to_shadow(start), - (unsigned long)kasan_mem_to_shadow(end) + 1, + (unsigned long)kasan_mem_to_shadow(end), pfn_to_nid(virt_to_pfn(start))); }