Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3506135ybl; Mon, 12 Aug 2019 01:26:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxU/JnoyrXZ8oJUvybP4hS3JQXbeUxpRSchl64Q1vQWrkcgoMveKKkA2o092kCSDhgKAig+ X-Received: by 2002:a63:5550:: with SMTP id f16mr30368612pgm.426.1565598379485; Mon, 12 Aug 2019 01:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565598379; cv=none; d=google.com; s=arc-20160816; b=HMRGBeg2LpKFIB1tPTsSqO/aIvf9emnvzC4FD97XSqxwIZ253tQbBbmxDUnavGbKIz 0q3YbHGrGKAxxHjkFSGLtdNMoZtz4KZYX7KJSRs3I+UrtHDmKD3enhWRHuKSuvBX3oAy NHhsX9Cq4V6TeiLSltaenV0CDNsd8kUjte0Jos8DbYTSSC4Y8sjDPkzjOFXiPdxxpg9j pv3NqA662pI40/RzZKOFvtUFus5ag12WX/L07GRr3DogV15LRT7SzH5O3phBQeC7HIwK bqUH9UIjtVtrjdKpJ2dwjQU5S5KXP4pwydCKNDcf6MiQobkRQtl09gvpUk/yFH6mBOzH Ul/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=TRRK6onREYJaE1ursH47QEaUQgHPWm2fXyfmQVltP4A=; b=LQe8a8CKr6au7ll3UQOmZfF64eqARxh4O8DGbyec/f9V9q6b/3GGE5qtsC1vtNBvhd txuRxbYuGiejs03DZq693PIMTFF8jS5zgmlAuv+QllMAlaDflcWCg1s4rUYOtudmKb7B ivRbrCqHgJ+w9G9WTiqLrnaaHI55pWvJZY8FBi2TguhGO5pfHeCxIp2tJCedh9MaHCQA 1Qf08CMoIKAbSBdXB8eAGAdzsWbQzzM+qyUetg6C/ro4pO97R38pIRbCgZ0tJPyv/4IE EWv+FhdJSwzA3tBrJAyVoc4Xl3eqCvcTO8eZSX+CaD1X2mkMhqCXawncdai7yRSh5X1e 5oVA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b42si8698738pjc.18.2019.08.12.01.26.03; Mon, 12 Aug 2019 01:26:19 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727128AbfHLIY5 (ORCPT + 99 others); Mon, 12 Aug 2019 04:24:57 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:40730 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726834AbfHLIY5 (ORCPT ); Mon, 12 Aug 2019 04:24:57 -0400 X-UUID: e2401d4e653c481e87b5cab55e7c4c14-20190812 X-UUID: e2401d4e653c481e87b5cab55e7c4c14-20190812 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 2145448533; Mon, 12 Aug 2019 16:24:48 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 12 Aug 2019 16:24:48 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 12 Aug 2019 16:24:48 +0800 Message-ID: <1565598290.5872.6.camel@mtkswgap22> Subject: Re: [RFC PATCH v2] mm: slub: print kernel addresses in slub debug messages From: Miles Chen To: Matthew Wilcox CC: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , , , , , "Tobin C . Harding" , Kees Cook Date: Mon, 12 Aug 2019 16:24:50 +0800 In-Reply-To: <20190809142617.GO5482@bombadil.infradead.org> References: <20190809010837.24166-1-miles.chen@mediatek.com> <20190809024644.GL5482@bombadil.infradead.org> <1565359918.12824.20.camel@mtkswgap22> <20190809142617.GO5482@bombadil.infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-08-09 at 07:26 -0700, Matthew Wilcox wrote: > 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. > You are right. There is no randomness in this platform. (I ran my test code on Qemu with no randomness) thanks again