Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752845AbdLGLN7 (ORCPT ); Thu, 7 Dec 2017 06:13:59 -0500 Received: from resqmta-ch2-02v.sys.comcast.net ([69.252.207.34]:59220 "EHLO resqmta-ch2-02v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698AbdLGLN6 (ORCPT ); Thu, 7 Dec 2017 06:13:58 -0500 Date: Thu, 7 Dec 2017 05:13:56 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Geert Uytterhoeven cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , "Tobin C . Harding" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kees Cook Subject: Re: [PATCH] mm/slab: Do not hash pointers when debugging slab In-Reply-To: <1512641861-5113-1-git-send-email-geert+renesas@glider.be> Message-ID: References: <1512641861-5113-1-git-send-email-geert+renesas@glider.be> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfD/e9g6HZmKh7ddYXVnUSjQdGSfBWui8761u+c7VB/qcwySwzRcZzptH5kVnZ1TmajXsHPWtjPyz5fPwMIt7laaMHtOF1++NtBhbmZMtjB7mdFWrLyop B4bTQ3YRIYbQZ2ootJ450ry7rRmL0dn4AGeubBRKclfkngtToSLVpL7/69VgVC/eLGNXSxw2k4dch0vOnm6I1jwu4Is62JD6XjRWC6uN+Xb7OFRUnZVvPHsY rXpSFnIIYPPZ6U6la1Q8Q5sEcEzuplPNSVC6iGdva2StS1mdDWqtmPhfKZXmiZXpZKA2qO+6ODzGeatH9lZ86klyVSFNLnd0DcZhxIiF7fOXChCjlNQVwqPw sW2kwBIXdi0WltKWLmv8oqFlWVPab4JN4dNMEtASI4qELyyEWOt4VLoAFI1x2/cng1wHhK97 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 426 Lines: 11 On Thu, 7 Dec 2017, Geert Uytterhoeven wrote: > If CONFIG_DEBUG_SLAB/CONFIG_DEBUG_SLAB_LEAK are enabled, the slab code > prints extra debug information when e.g. corruption is detected. > This includes pointers, which are not very useful when hashed. > > Fix this by using %px to print unhashed pointers instead. Acked-by: Christoph Lameter These SLAB config options are only used for testing so this is ok.