Received: by 10.223.185.116 with SMTP id b49csp4153699wrg; Tue, 13 Feb 2018 13:45:16 -0800 (PST) X-Google-Smtp-Source: AH8x227JF4cN/6/Gyuua8xdSXnY4l2EE0cDLiPl8BYCkU4zzGWiS3apQ8TQtVXVDzc7J79UuXIP9 X-Received: by 2002:a17:902:60c4:: with SMTP id k4-v6mr2296975pln.347.1518558316004; Tue, 13 Feb 2018 13:45:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518558315; cv=none; d=google.com; s=arc-20160816; b=V1HIxO7GY9aCIbMOoZCjHGnaAXq8UC2TK0SKPd5NemCsVxjDjmywpm/XoKxJztr3gL ZkawOUIkr/Yt3pSFQ4wzHrESjmwgYxzJW7EBZKL+/eU0ADxInEe5wJWao7dKP9aUYACb yzCVPOrG7euChYxPr94ELu253KUaggprBd0hKfC1VTGNAE7JGv/X0CGLiVv2JerdGkwA WwZciJZS+QIHWySSXAhf4AtLy6qym9Zyanvo2KUJMkK4eeDkcWpstMrRHB4n1hyN7IfU D7euwPfDYiTD/bWwS/i+yERC8NL44pWiz8u7shKHbaqX2dcSLPM0HjPEbBGg22yW2TJS Cnmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=1Tbsf05fkeXgek8o5v6BuSpJoDGhlX0bOG6WL7ai/p8=; b=ZE86IXwu2Y/qRL0jDigJcfbA7rRFCGIZAnhjO6iumI2aABWcn0YC5/W09/GbWa9alX FWfbEF3A1987pXyCjtnrEJQ3X0c44zYEOLp8wKdfY/lXx33XIDqeuXRZVWKBzWAH1jT6 XDm5tiZStVlkRN8RDZ8YS2GHJI51HAZn0K8nBaTx3T3ZR1fyy/b6GI2LhbiVd8XSOl+c ea/hE2bF1ldKDJKZ3Fs0V9tqkvSaiL+QuYxmFlEqsL+melclhphpYJ9JXIrufnv5VrzG U+yKOsdfQA+yjkSfHrKoBqp7HXkkSRZiUWz1HZ6KOuDwAT6/sfqX/eB/stwoFanO+h4a sv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=fjq80vwx; dkim=fail header.i=@chromium.org header.s=google header.b=ffvWa4Cr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si1880924plz.201.2018.02.13.13.45.00; Tue, 13 Feb 2018 13:45:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=fjq80vwx; dkim=fail header.i=@chromium.org header.s=google header.b=ffvWa4Cr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965931AbeBMVnw (ORCPT + 99 others); Tue, 13 Feb 2018 16:43:52 -0500 Received: from mail-vk0-f46.google.com ([209.85.213.46]:46844 "EHLO mail-vk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965843AbeBMVnv (ORCPT ); Tue, 13 Feb 2018 16:43:51 -0500 Received: by mail-vk0-f46.google.com with SMTP id e125so11701073vkh.13 for ; Tue, 13 Feb 2018 13:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1Tbsf05fkeXgek8o5v6BuSpJoDGhlX0bOG6WL7ai/p8=; b=fjq80vwxMLtNsZX+564UHLBryzQK5lC7D4nTNOFYzvlltVw8++EYuPAYmEYnVQ7gG0 FL5OuEis45NKwiranNwWO86i10+g2RtSyfUDEHLEnieXeihkVgzbQAjI4RX/hYEsZ1FY Tx9Vkbf+KIDJFhYQwQBsvdAzDahuwpZHDejC74yCZ+SP/gnU51/ctDSzp4zdqjzx2eo/ NIIdEb5q3+ydggAsgPCZ7JsR4n4MJ+ocGkeZ4O8pzks87IllIPH2lf1IOUO1cP2UxO/x ANgtsCYNhhxB3pdRzNjnxWzjylE5xlO460uQrX+wir0tkJBGydCIpom2ii0QtI6a+rqf /irw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1Tbsf05fkeXgek8o5v6BuSpJoDGhlX0bOG6WL7ai/p8=; b=ffvWa4CrjJ2GGh/V9H6DUizTF1nMPa5up0VPnLzkylUqB0vjNtpbG//0fqA1bQMO2y z8mEMUURL0zPO8xrzC9arQ7FpGxTrMqOMxauqZGmkjFm9907c28g/lqC3+DndTEEID7a 3BG/svJybZprmvzA+cUl54xx6EHJb3L1jswoo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=1Tbsf05fkeXgek8o5v6BuSpJoDGhlX0bOG6WL7ai/p8=; b=U3KVGor9OkOJjW8xfBvCaGAj7RZ2uByMFXqEqs3fscQA+orHemaTZu4H9D4NFEutGL 5QGa9dwNYv47KiWQiGiCcswZHSIfLjhHji6y5929D9OQ+lg8pktpjZIylRCI8L64N7Qe Vw8ndTu0UJ0K/f/d/KkGkSKrfqp8lkkTcbfA3J3JfRplJT4/aGr6wLrc6Iqdwj8e2JkZ c8dT200g9Ho8SmYR2ZeDIMilHZbAc2nf2FbYEvfJ8VPg17ZJ/67OHpZ4dy0H4FJ4FbSW +MeOdpuzVAS/CnkobppxQFFuVNG3cOzrpOaztpgSbHRxK9z4U1cPJnLNRc3qYLUNeai+ t5Rw== X-Gm-Message-State: APf1xPCl26imWSbvGGM67zh46609ejGPmOoSpvib9Z4t/SU7goJifu7K tX5Q8VX0KR+QFDGyjfd551kmzbXSj+Y8bbb8f8wFsQ== X-Received: by 10.31.70.196 with SMTP id t187mr2693289vka.102.1518558230176; Tue, 13 Feb 2018 13:43:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.56.87 with HTTP; Tue, 13 Feb 2018 13:43:49 -0800 (PST) In-Reply-To: References: <20180124175631.22925-1-igor.stoppa@huawei.com> <20180124175631.22925-5-igor.stoppa@huawei.com> <20180126053542.GA30189@bombadil.infradead.org> <8818bfd4-dd9f-f279-0432-69b59531bd41@huawei.com> <17e5b515-84c8-dca2-1695-cdf819834ea2@huawei.com> <414027d3-dd73-cf11-dc2a-e8c124591646@redhat.com> From: Kees Cook Date: Tue, 13 Feb 2018 13:43:49 -0800 X-Google-Sender-Auth: Y4ZBlNokbodaOmkdqQ26_HwIOyo Message-ID: Subject: Re: [kernel-hardening] [PATCH 4/6] Protectable Memory To: Laura Abbott Cc: Jann Horn , Igor Stoppa , Boris Lukashev , Christopher Lameter , Matthew Wilcox , Jerome Glisse , Michal Hocko , Christoph Hellwig , linux-security-module , Linux-MM , kernel list , Kernel Hardening Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 8:09 AM, Laura Abbott wrote: > No, arm64 doesn't fixup the aliases, mostly because arm64 uses larger > page sizes which can't be broken down at runtime. CONFIG_PAGE_POISONING > does use 4K pages which could be adjusted at runtime. So yes, you are > right we would have physmap exposure on arm64 as well. Errr, so that means even modules and kernel code are writable via the arm64 physmap? That seems extraordinarily bad. :( -Kees -- Kees Cook Pixel Security