Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6572602ybf; Fri, 6 Mar 2020 00:05:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vsiE3QoCeG8qz8FXxt7Jxta4f/RD543d91wVMQkMFLH8DABnm0ubrixMtVz8ZiVv71kECmC X-Received: by 2002:a05:6808:3a1:: with SMTP id n1mr1662741oie.89.1583481925465; Fri, 06 Mar 2020 00:05:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583481925; cv=none; d=google.com; s=arc-20160816; b=ogJCeQBgZlrJkH+AK+mIsSmvueKjsAvtN2dYry49NVA3hrPcvJIhqfsM+CS6cAfZV8 9j2STSI4L3MJoMHkCKjReE/Ea+JGxuQ2KdmaazXEnOa/ITGQ3YBxvlDqaoptNXIjyPr8 8e+1AFNH3UI2OZIwkbb84KkESjojFUKiyCaCtAg51th1tAJJLr8ddpyFEXdk83psgFBA K9eoGADPMT/S7t2c66xBaLsq9/r/nOdEKoAJ4rUhDUpSnNcQAsEcBqfL1xBmIDeXDlez qY14OobVBQuf9qT1DtDv90iHRpuU0JQWnMpTBURxY7NUSVK7ak0gV0Ilp0ACf6D0AQ4J C4mg== 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 :in-reply-to:references:mime-version; bh=amxHAEVuD5PKAqXH5UoPsqWC2PaLt0se617vrFyjmJ8=; b=gfXo/m/rx6RGX0sqqRxl16lfWdB13AvS2TzYhgIILFbYEOeEP+x9//9gfgMDnsPmqO eZoIGPudYPr8Nw/PcCnTNPGAZX+6ZwGPTQuUaCe+5UihvM3siyrHWuzgQfbsUGlXFE6/ PSHmgpLL4U77BI8JYfKc2oc3mpdCLG1udxhqFyZRGaBQnBlS79SVFxgdGuu8s1VvXupi 3Jxlnn4ET58rf0R16DsLuOtK9sG0EjoXZHpCEq2m7kwI9url231lh9/GhubgobzecFq0 phQx39vAArinv3v2EDI66r0s+YkiasZ7EZDuqrKQqrxBb+lRN5UWswGfWzoDB9clDLjR JgBw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15si931298oih.32.2020.03.06.00.05.13; Fri, 06 Mar 2020 00:05:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726108AbgCFIEw (ORCPT + 99 others); Fri, 6 Mar 2020 03:04:52 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36808 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbgCFIEw (ORCPT ); Fri, 6 Mar 2020 03:04:52 -0500 Received: by mail-ot1-f68.google.com with SMTP id j14so1608636otq.3; Fri, 06 Mar 2020 00:04:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=amxHAEVuD5PKAqXH5UoPsqWC2PaLt0se617vrFyjmJ8=; b=tqWmf9O9IATJFlsTAx3XcZspYBhvgbZFq4jAFrRz1fzwPvlUG4Lr3CZPxdaECv34I1 Ct7z/MbkTK9Q/RRPXCSX4WckxDZ9pPkAShwBWeaX6QwjOhU4mYfrHFB3xC0juaabLYs4 NLe74zh/8rMzntrljrossamqQl55QjJNKNnNWjLihquUApv5kdgpxolCVh6yGqa4iFZq foZqzxCe44mring3vcQWjXQWvAluaPV9SsbgRmTcl+OnquQPGI3Qg/H03t0WZYjvDgVq wi97FrtvM56Rxzs3qOuM1WFUNCV2GLCdp+S//PI3T8HzeLDGazHorKCD7rbX97w4sW8g 4Jnw== X-Gm-Message-State: ANhLgQ2VIl0+/sCt20IZjebDD8wM0ip2LNyVkaoSWD5eYAentJEXvH7p TD2OD4JOYI26/bdw+ydb7j6Yu1jji6EAesP1yWDpURna X-Received: by 2002:a05:6830:12d1:: with SMTP id a17mr1547778otq.39.1583481891563; Fri, 06 Mar 2020 00:04:51 -0800 (PST) MIME-Version: 1.0 References: <202003021038.8F0369D907@keescook> <20200305151010.835954-1-nivedita@alum.mit.edu> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 6 Mar 2020 09:04:40 +0100 Message-ID: Subject: Re: [PATCH] sh: Stop printing the virtual memory layout To: John Paul Adrian Glaubitz Cc: Arvind Sankar , Kees Cook , "Tobin C . Harding" , Tycho Andersen , kernel-hardening@lists.openwall.com, Yoshinori Sato , Rich Felker , Linux-sh list , Linux Kernel Mailing List 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 Hi Adrian, On Thu, Mar 5, 2020 at 4:18 PM John Paul Adrian Glaubitz wrote: > On 3/5/20 4:10 PM, Arvind Sankar wrote: > > For security, don't display the kernel's virtual memory layout. > > > > Kees Cook points out: > > "These have been entirely removed on other architectures, so let's > > just do the same for ia32 and remove it unconditionally." > > > > 071929dbdd86 ("arm64: Stop printing the virtual memory layout") > > 1c31d4e96b8c ("ARM: 8820/1: mm: Stop printing the virtual memory layout") > > 31833332f798 ("m68k/mm: Stop printing the virtual memory layout") > > fd8d0ca25631 ("parisc: Hide virtual kernel memory layout") > > adb1fe9ae2ee ("mm/page_alloc: Remove kernel address exposure in free_reserved_area()") > Aww, why wasn't this made configurable? I found these memory map printouts > very useful for development. In most of the above (but not in this patch), "%p" was used to print addresses, which started showing useless hashed addresses since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"). Instead of changing them all to print usable addresses instead, it was agreed upon to just remove them. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds