From mboxrd@z Thu Jan 1 00:00:00 1970 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 CA96DC33CAF for ; Thu, 16 Jan 2020 18:44:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 97F952077B for ; Thu, 16 Jan 2020 18:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579200274; bh=kd2oORSfcd0NFsaqVRs4srB+IOVU7V1SjKKyE1YnOWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=IJ5vXAUDUtFFhMSxT11Sq4pNzEGkmYQcjR7dZiRhJi9rN7dxD4t0VKe87EtkWaajm co9bC3NQkyROVkwRmnb96Yz4RHYPHIeW75HST0l/xUcDsfBoy14Rz7gomCu0jqkyZg So8fvzeVpp/CchihHk3c8fRSARlWsvA/GR7vF6fI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389800AbgAPSod (ORCPT ); Thu, 16 Jan 2020 13:44:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:50106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390070AbgAPRKw (ORCPT ); Thu, 16 Jan 2020 12:10:52 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3D26924681; Thu, 16 Jan 2020 17:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579194652; bh=kd2oORSfcd0NFsaqVRs4srB+IOVU7V1SjKKyE1YnOWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gM1FOUx3BwXl90dW6e7FwhjZs6MbeSjaSonbnI8JyP1+GsuelvsP3p2M6vx4zzWBD wVhL9oBcdN1sbrI4zqP0rYfcfQivarRuKliIJKXbuwjZ4GSRo9gimdSeIciVcUUlAX bE0HQrEGZsobWEvS2Bpt11sgfEidSnGGfw1MtI4M= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Geert Uytterhoeven , Geert Uytterhoeven , Russell King , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 506/671] ARM: 8896/1: VDSO: Don't leak kernel addresses Date: Thu, 16 Jan 2020 12:02:24 -0500 Message-Id: <20200116170509.12787-243-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116170509.12787-1-sashal@kernel.org> References: <20200116170509.12787-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 f4dd7f9663c1..e8cda5e02b4e 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 *), -- 2.20.1