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=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,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 E316EC32788 for ; Thu, 11 Oct 2018 08:42:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A7952087A for ; Thu, 11 Oct 2018 08:42:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A7952087A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728395AbeJKQJK (ORCPT ); Thu, 11 Oct 2018 12:09:10 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:44070 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbeJKQJJ (ORCPT ); Thu, 11 Oct 2018 12:09:09 -0400 Received: from ramsan.of.borg ([84.194.111.163]) by michel.telenet-ops.be with bizsmtp id m8ir1y0013XaVaC068irhG; Thu, 11 Oct 2018 10:42:51 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1gAWYU-0000Ny-Tp; Thu, 11 Oct 2018 10:42:50 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1gAWYU-0001Bg-Rp; Thu, 11 Oct 2018 10:42:50 +0200 From: Geert Uytterhoeven To: Petr Mladek , Andy Shevchenko , "Tobin C . Harding" , Andrew Morton , Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 0/3] lib/vsprintf: Hash remaining raw addresses Date: Thu, 11 Oct 2018 10:42:46 +0200 Message-Id: <20181011084249.4520-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, There are still two format specifiers that print unhanced kernel addresses, potentially leaking sensitive information regarding the kernel layout in memory. This patch series fixes this by printing hashed addresses instead. Changes compared to v1: - Get rid of the forward declaration for ptr_to_id(), - Add Reviewed-by. Thanks! Geert Uytterhoeven (3): lib/vsprintf: Prepare for more general use of ptr_to_id() lib/vsprintf: Hash legacy clock addresses lib/vsprintf: Hash printed address for netdev bits fallback Documentation/core-api/printk-formats.rst | 5 +- lib/vsprintf.c | 216 +++++++++++----------- 2 files changed, 110 insertions(+), 111 deletions(-) -- 2.17.1 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