From patchwork Fri Jan 24 09:27:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 232820 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=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 C6043C2D0DB for ; Fri, 24 Jan 2020 11:42:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90C5A206D4 for ; Fri, 24 Jan 2020 11:42:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579866120; bh=zEjikqgN+4XezL7ZwWvV/RPtGlMNwTf5fCbigx2ZWuQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=YfkcytMdSvfYgjiQjSB/6VVN/s3uG3S1sCE6DLV7EOAEYLu9pSfWpt/5F5BLqE2FF 0o4UIoFca63LWXEAXVHfxKkKpM5XH/9zbH8lUxbIcihIHP6xd8f7w2yLcxoWsSRzmm 7E9m9FY3frGnBUidyAhq4NwQ9jmTgg9adyuSqT/k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390283AbgAXLPa (ORCPT ); Fri, 24 Jan 2020 06:15:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:52090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388378AbgAXLPa (ORCPT ); Fri, 24 Jan 2020 06:15:30 -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 CC42320708; Fri, 24 Jan 2020 11:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864529; bh=zEjikqgN+4XezL7ZwWvV/RPtGlMNwTf5fCbigx2ZWuQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bu+/jYOM89ZRpDzD8bSXj8Fjsc8eUPdngPOYMXpFnfbM4qwKPdBxdtsJLIGnoSsxP LYn1MWR2Ha4l70sRZjUahMcL4dpI/VnTu6QHVikglzVLVA/0+sp2tMZ+v6aSBsZmZh 3c/UAVatNjbXc84HuXRm9Z/7xbEa8qDyDU7krsRU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Rutland , Matteo Croce , Will Deacon , Sasha Levin Subject: [PATCH 4.19 291/639] arm64/vdso: dont leak kernel addresses Date: Fri, 24 Jan 2020 10:27:41 +0100 Message-Id: <20200124093123.346392872@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: Matteo Croce [ Upstream commit 0f1bf7e39822476b2f921435cf990f67a61f5f92 ] Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), two obfuscated kernel pointer are printed at every boot: vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____)) Remove the the print completely, as it's useless without the addresses. Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Acked-by: Mark Rutland Signed-off-by: Matteo Croce Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/kernel/vdso.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index ec0bb588d7553..42b7082029e1d 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -146,8 +146,6 @@ static int __init vdso_init(void) } vdso_pages = (vdso_end - vdso_start) >> PAGE_SHIFT; - pr_info("vdso: %ld pages (%ld code @ %p, %ld data @ %p)\n", - vdso_pages + 1, vdso_pages, vdso_start, 1L, vdso_data); /* Allocate the vDSO pagelist, plus a page for the data. */ vdso_pagelist = kcalloc(vdso_pages + 1, sizeof(struct page *),