Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp384559ybl; Fri, 9 Aug 2019 07:27:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQ3G5tfd8zqHv7g3hE0AI5eH8Qo1DG+2EAY7xU1esaE7DFSaLwpkbJTHUxBpISG18mzzMi X-Received: by 2002:a17:902:112c:: with SMTP id d41mr19062593pla.33.1565360851442; Fri, 09 Aug 2019 07:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565360851; cv=none; d=google.com; s=arc-20160816; b=PDZxqmjcFfdggZJHoIYii/Guk9ZCc90l+z+db4bt+PYxnmbyGr8/Ij0X0erXuT94BQ xsesja3ovxQW/XhPqgZanyqTj67eN8pcJ0jh5WEe8Wq1Vm8W3RQ7M7+U/s+i01DrkCz/ T3dHXdyotuWcAOW9IIwbDCFbswzOLQi6Qv0Wxx4ZlVWFdWOdM6b2njdQPT+bmDb8BIS5 1W3rBNhZ6JK0d96w/iLeImj07zle3YN1FLxitH8FGFDvX9ATS9nyXnjKaOmT+kYL34Zo SrT0+85Klmlb0ChFcTyUI6S2ZKertaLCu1JcGjdvZXEhIMJFEcx2vmNClaclqCAjb2UF iBnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EaBoxEWlwr4zZ1rJszejMFTUZoMex/Sf4azgLrG5t04=; b=rRKl5B6po3sU6rk7TX0DvycW4YmVxUcFoOQHWxbv864nvs2Bk2WxRU8rxv6b6vMBRQ IiSeH3e1wTwwGZKza7LrQ+FQ65DAhTK9hI57LuFGaXY2sA5F2gNf1Q+VRb4XTfPCGuOG E3pmaEehLd0cga5/Iw86SstIbU4TAb9sM02kAqokI74jeZ8ioSHhmqW6dNl8UaIy1DhO yO5oa6Qnq5wSuuJAf75BjUf0ZwH67htHi0tI1NhHdDFh/V4Ljh4kJeFV+NKpANbs1jrk 2bnJfEbhqteIudeA6ImTR+Ugs57//vhntZlpSCZvlKoUtZfX+DSL6aaS1f6GCPSQEXGE ZhCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JH5PlAW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si52662480pgp.421.2019.08.09.07.27.15; Fri, 09 Aug 2019 07:27:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JH5PlAW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406944AbfHIO0Z (ORCPT + 99 others); Fri, 9 Aug 2019 10:26:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51728 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbfHIO0Y (ORCPT ); Fri, 9 Aug 2019 10:26:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EaBoxEWlwr4zZ1rJszejMFTUZoMex/Sf4azgLrG5t04=; b=JH5PlAW1P2xfQ+UotOi2WPcif C19dMDk6AncmpZY3SMLP16T8M5SGZUNI02MGYfsWwHSsQxhnYdPMXDE/rLpAP+7lCYOyADYpGM0z7 gtGfOgSE7pZzBwYe+vjSFFHzHmuJDIsqXYQL3ViPGaBxFATmoPqv3oK1UJBO9sAZ02mPwUw29Najp nWDEyZSTpAapVfw0ofuowNHThlH+U7ZlvyQyETUpS2WbUhnYzz9F7kwdt5498KBCoEACm6R+Y6j7q pZa5eIT2eGWi3ZBnt4MBZ2NR5uL/1SxETSyrY8IFjGvtEQ73OpE+b1AxiX4A/ilb/+hcfrlkKqrEv VYTD+LGxg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hw5qT-0007Je-Q0; Fri, 09 Aug 2019 14:26:17 +0000 Date: Fri, 9 Aug 2019 07:26:17 -0700 From: Matthew Wilcox To: Miles Chen Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, "Tobin C . Harding" , Kees Cook Subject: Re: [RFC PATCH v2] mm: slub: print kernel addresses in slub debug messages Message-ID: <20190809142617.GO5482@bombadil.infradead.org> References: <20190809010837.24166-1-miles.chen@mediatek.com> <20190809024644.GL5482@bombadil.infradead.org> <1565359918.12824.20.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1565359918.12824.20.camel@mtkswgap22> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 09, 2019 at 10:11:58PM +0800, Miles Chen wrote: > On Thu, 2019-08-08 at 19:46 -0700, Matthew Wilcox wrote: > > On Fri, Aug 09, 2019 at 09:08:37AM +0800, miles.chen@mediatek.com wrote: > > > INFO: Slab 0x(____ptrval____) objects=25 used=10 fp=0x(____ptrval____) > > > > ... you don't have any randomness on your platform? > > We have randomized base on our platforms. Look at initialize_ptr_random(). If you have randomness, then you get a siphash_1u32() of the address. With no randomness, you get this ___ptrval___ string instead.