From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id 7532A7D087 for ; Thu, 11 Oct 2018 08:43:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728358AbeJKQJJ (ORCPT ); Thu, 11 Oct 2018 12:09:09 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:44068 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbeJKQJJ (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-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@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