Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D848BC433EF for ; Tue, 30 Nov 2021 15:23:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244199AbhK3P0h (ORCPT ); Tue, 30 Nov 2021 10:26:37 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:21372 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245526AbhK3PZQ (ORCPT ); Tue, 30 Nov 2021 10:25:16 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-33-CykIfUoTPdOQVMeGgLdI_g-1; Tue, 30 Nov 2021 15:21:54 +0000 X-MC-Unique: CykIfUoTPdOQVMeGgLdI_g-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 30 Nov 2021 15:21:48 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.026; Tue, 30 Nov 2021 15:21:48 +0000 From: David Laight To: 'Vlastimil Babka' , Christoph Lameter CC: Rustam Kovhaev , "penberg@kernel.org" , "rientjes@google.com" , "iamjoonsoo.kim@lge.com" , "akpm@linux-foundation.org" , "corbet@lwn.net" , "djwong@kernel.org" , "david@fromorbit.com" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "linux-doc@vger.kernel.org" , "gregkh@linuxfoundation.org" , "viro@zeniv.linux.org.uk" , "dvyukov@google.com" Subject: RE: [PATCH v4] slob: add size header to all allocations Thread-Topic: [PATCH v4] slob: add size header to all allocations Thread-Index: AQHX344YYrlQE8gw8k+1+rn2N9Qq+awQ435QgAtSF4CAAAG98A== Date: Tue, 30 Nov 2021 15:21:47 +0000 Message-ID: References: <037227db-c869-7d9c-65e8-8f5f8682171d@suse.cz> <20211122013026.909933-1-rkovhaev@gmail.com> <3c996e22-034f-1013-3978-1f786aae38fb@suse.cz> <148d2774-77b9-bb25-c132-80b00e16ea06@suse.cz> <69fc0cead9774dfdba816a8e25f30a53@AcuMS.aculab.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVmxhc3RpbWlsIEJhYmthDQo+IFNlbnQ6IDMwIE5vdmVtYmVyIDIwMjEgMTQ6NTYNCj4g DQo+IE9uIDExLzIzLzIxIDExOjE4LCBEYXZpZCBMYWlnaHQgd3JvdGU6DQo+ID4gRnJvbTogVmxh c3RpbWlsIEJhYmthDQo+ID4+IFNlbnQ6IDIyIE5vdmVtYmVyIDIwMjEgMTA6NDYNCj4gPj4NCj4g Pj4gT24gMTEvMjIvMjEgMTE6MzYsIENocmlzdG9waCBMYW1ldGVyIHdyb3RlOg0KPiA+PiA+IE9u IE1vbiwgMjIgTm92IDIwMjEsIFZsYXN0aW1pbCBCYWJrYSB3cm90ZToNCj4gPj4gPg0KPiA+PiA+ PiBCdXQgaXQgc2VlbXMgdGhlcmUncyBubyByZWFzb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