From patchwork Fri Jan 24 09:31:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 232917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4753C35242 for ; Fri, 24 Jan 2020 11:29:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7B5E020718 for ; Fri, 24 Jan 2020 11:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865345; bh=qCRfSDyxX8ddBJkJ1Nhmhf7hJPevwkuUZYm+NW2GXxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=2OiCtVtbveTfj6XrIRVdB/DvQt4Jp01RYOnwDepmAKxp1I2gVZBYzJSCMXNztrM/D zkCSB0U0Lcdg4dezrzU4vIZiQdL960tngxDee72Yc6Inb1pCuX+Q/gZcvPOQf3aWwg 9O9ufe40+YKTC050lLGih6Dyd4kzBrVF2aTpzpfA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387874AbgAXL3E (ORCPT ); Fri, 24 Jan 2020 06:29:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:45568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391768AbgAXL3D (ORCPT ); Fri, 24 Jan 2020 06:29:03 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3D60E20704; Fri, 24 Jan 2020 11:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865343; bh=qCRfSDyxX8ddBJkJ1Nhmhf7hJPevwkuUZYm+NW2GXxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gTbgWmpFvm1rNgHN9a6wDh7hBELOKqspYid+SrghGWMPAdGslxUmI/BtB1OD8hpYr 358RQvEgN8PHSnKrUvDfExdrb7dWc26gqsjcmvKAwWenQBy1jQnIU9SDrfejH2Vwcp vpVKIiWdxhRH/6HeNc8jJeC07HRrRI4GyJO5JLfE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Russell King , Sasha Levin Subject: [PATCH 4.19 520/639] ARM: 8896/1: VDSO: Dont leak kernel addresses Date: Fri, 24 Jan 2020 10:31:30 +0100 Message-Id: <20200124093153.931381442@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit 3e07590e7248db951fed6a2039403b5a39010be7 ] Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), an obfuscated kernel pointer is printed at every boot if debugging is enabled: vdso: 1 text pages at base (____ptrval____) Remove the print completely, as it's useless without the address. Based on commit 0f1bf7e39822476b ("arm64/vdso: don't leak kernel addresses"). Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Geert Uytterhoeven Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/kernel/vdso.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/kernel/vdso.c b/arch/arm/kernel/vdso.c index f4dd7f9663c10..e8cda5e02b4ea 100644 --- a/arch/arm/kernel/vdso.c +++ b/arch/arm/kernel/vdso.c @@ -205,7 +205,6 @@ static int __init vdso_init(void) } text_pages = (vdso_end - vdso_start) >> PAGE_SHIFT; - pr_debug("vdso: %i text pages at base %p\n", text_pages, vdso_start); /* Allocate the VDSO text pagelist */ vdso_text_pagelist = kcalloc(text_pages, sizeof(struct page *),