Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp2089553lkv; Thu, 20 May 2021 03:10:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh6X2WTGmtWk1taU7+SYPrBMPJ5pHN9JNZKwCkq/eAOPaBFa6ig2s2H0SVC0K0FQQvzNT8 X-Received: by 2002:a05:6402:c8:: with SMTP id i8mr4169497edu.57.1621505422993; Thu, 20 May 2021 03:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621505422; cv=none; d=google.com; s=arc-20160816; b=DmyoaeQ2k0sPiIvum38MI9Ge002FkiWfzAY+l9C76KdltSFzZqmaxeIM19AALP3a3p nhjU/431CwCKzaDJs12qC3Bbj5oaV2Uq3sY2r35XDOlmIgUKgTrsWjeCzIjnHKK5yRYd KkmSASA7Yny/K/0wzNnYaTGASy69zF/5qGSPYRzzPiqs7CytTzFqPw4kQKVy/j0aP6wj pRNRCbiYnmkiy2txO6jo4H1OncoUoJ6Dk09UzylIqjlZJQPk7NXcfFYsHhQxiY3BbWnh CiCMNzXNtnwOBI2MfwpCjLgqomG2pHG/9sbVrQHoq2P1Y0WqBlXo8Mhebbo174bv5gjL GD1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=ca+1Jb9Gr4zJR3rc0b1Sj5GQaDde30YYPbRkVVmv3Co=; b=Y2taGZkd80RE8MzpFrfuR4DnaixOT2BRV2Fm6EOtx/hDcFxYhuTeyDpJacc8u0rmK8 QZJvZZ2ppzci5+K4y5CqpmsyAxF6jnfX02AQ/4HNOrgJv3GPFv/yFemanxE6jk0DkMaU 2NRrDZcFCBADj10Imy9CnbdXvqfmbRaHiBwxA1MC1ft6l1l++8RGr4SDB57hmiDWxLRN fPd6TnGJbon0f/5i4hlVFiWuyTT8EjZYWNNSZJQoeBUSiqTYedIMLcW4MUWurqntaWpj +cqSPRGmd6NxZCoFZT1nC/fgGvtmQSkwg4lOEqYHAz8cP/IKU89ImLv9GcLhWIZBccfV 6GVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si2176156ejp.136.2021.05.20.03.09.58; Thu, 20 May 2021 03:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235476AbhETKIx (ORCPT + 99 others); Thu, 20 May 2021 06:08:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:39416 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234495AbhETKCn (ORCPT ); Thu, 20 May 2021 06:02:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8B5D9ADCE; Thu, 20 May 2021 10:01:21 +0000 (UTC) To: Stephen Boyd , Andrew Morton Cc: linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-mm@kvack.org, Timur Tabi , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Kees Cook , Marco Elver , Linus Torvalds References: <20210520013539.3733631-1-swboyd@chromium.org> From: Vlastimil Babka Subject: Re: [PATCH 0/3] slub: Print non-hashed pointers in slub debugging Message-ID: Date: Thu, 20 May 2021 12:01:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210520013539.3733631-1-swboyd@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +CC folks from the no_hash_pointers debate Full thread with patches here: https://lore.kernel.org/linux-mm/20210520013539.3733631-1-swboyd@chromium.org/ On 5/20/21 3:35 AM, Stephen Boyd wrote: > I was doing some debugging recently and noticed that my pointers were > being hashed while slub_debug was on the kernel commandline. Let's make > the prints in here meaningful in that case by pushing %px throughout. But we actually added no_hash_pointers exactly so that we don't push %px in hexdump and others. So I don't think this will be accepted. > Alternatively, we could force on no_hash_pointers if slub_debug is on > the commandline. Maybe that would be better? That would certainly be more acceptable, but maybe still too much, dunno. I'm neutral on this approach, let's see what others think. > The final patch is just something else I noticed while looking at the > code. The message argument is never used so the debugging messages are > not as clear as they could be. > > Stephen Boyd (3): > lib/hexdump: Add a raw pointer printing format for slub debugging > slub: Print raw pointer addresses when debugging > slub: Actually use 'message' in restore_bytes() > > include/linux/printk.h | 1 + > lib/hexdump.c | 12 ++++++++++-- > mm/slub.c | 24 ++++++++++++------------ > 3 files changed, 23 insertions(+), 14 deletions(-) > > > base-commit: 6efb943b8616ec53a5e444193dccf1af9ad627b5 >