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=-11.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_PATCH,MAILING_LIST_MULTI,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 7E634C433DB for ; Sat, 16 Jan 2021 22:10:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 13AD822D50 for ; Sat, 16 Jan 2021 22:10:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13AD822D50 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 47ECF8D020F; Sat, 16 Jan 2021 17:10:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 42DDF8D01D5; Sat, 16 Jan 2021 17:10:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2DF048D020F; Sat, 16 Jan 2021 17:10:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0149.hostedemail.com [216.40.44.149]) by kanga.kvack.org (Postfix) with ESMTP id 143FB8D01D5 for ; Sat, 16 Jan 2021 17:10:01 -0500 (EST) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C831C8249980 for ; Sat, 16 Jan 2021 22:10:00 +0000 (UTC) X-FDA: 77713031760.06.beds31_37175682753b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id A1F841003D0C0 for ; Sat, 16 Jan 2021 22:10:00 +0000 (UTC) X-HE-Tag: beds31_37175682753b X-Filterd-Recvd-Size: 2712 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Sat, 16 Jan 2021 22:10:00 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 2972D22C7D; Sat, 16 Jan 2021 22:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610834999; bh=u79Br5glQK1ccWD/xx79tThGH4hD34t28fh9rxyEb8M=; h=From:To:Subject:Date:From; b=f69Njp1NlXa9j/fuhP9196gVY0/nbJruTQA+JAUwO0CDob/agqcdm//o9mm8vlAcE GUI3YvzZeLC+8IZa3UWe64Vpv+sjuUJP6wmixxVVmPZ6VlMd5Z2zh8UoAy1QzhYeQD kr4O5CQbpG2CQSNAg9M8imllEQgx9Vb2jodAytZJGv5i95j6JjyMDzTyVlwyh/1sup UukCFSrQPl5OKlkxbasrSVpxe9l0AHpxOO/wR5/HJCq5oJY9o9JmlH0RnYaR/5bqIy HXfnvWW2uHNVnmbk/1lW4zMNxIfry2OxbR+28NwtroSLl8gHwUxGM8em00chU6hmBB zjgmxr6sF0GEw== From: Timur Tabi To: Andrew Morton , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, Sergey Senozhatsky , Petr Mladek , roman.fietze@magna.com, keescook@chromium.org, Steven Rostedt , John Ogness , linux-mm@kvack.org, Akinobu Mita Subject: [PATCH 0/2] introduce DUMP_PREFIX_UNHASHED for hex dumps Date: Sat, 16 Jan 2021 16:09:48 -0600 Message-Id: <20210116220950.47078-1-timur@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: First patch updates print_hex_dump() and related functions to allow callers to print hex dumps with unhashed addresses. It adds a new prefix type, so existing code is unchanged. Second patch changes a page poising function to use the new address type. This is just an example of a change. If it's wrong, it doesn't need to be applied. IMHO, hashed addresses make very little sense for hex dumps, which print addresses in 16- or 32-byte increments. Typical use-case is to correlate an addresses in between one of these increments with some other address, but that can't be done if the addresses are hashed. I expect most developers to want to replace their usage of DUMP_PREFIX_ADDRESS with DUMP_PREFIX_UNHASHED, now that they have the opportunity. Timur Tabi (2): [v2] lib/hexdump: introduce DUMP_PREFIX_UNHASHED for unhashed addresses mm/page_poison: use unhashed address in hexdump for check_poison_mem() fs/seq_file.c | 3 +++ include/linux/printk.h | 8 +++++--- lib/hexdump.c | 9 +++++++-- lib/seq_buf.c | 9 +++++++-- mm/page_poison.c | 2 +- 5 files changed, 23 insertions(+), 8 deletions(-) --=20 2.25.1