Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp544047pxf; Thu, 25 Mar 2021 09:01:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm6jVRiMttuoDO3coJfWi4tNM15AUQzwSVxGlXiH2MdivcOGogT4ByixcGHAHJYAu6sUE5 X-Received: by 2002:a2e:9899:: with SMTP id b25mr6144433ljj.376.1616688118877; Thu, 25 Mar 2021 09:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616688118; cv=none; d=google.com; s=arc-20160816; b=PMYUP6b6x+UcW9h+cVUbOr8WMAPiMEbQ/JObf89umggjDOyT//7U6APl5Ym9r9G1Yt b6ji7/X6D6z2xQnC3j4kI7xjW6amLE9Udz9o3yt1hl9Do3zKyRzrhw3reB0rZzO8M4Mo ni3rnCBF9LKPWu6sl2hJMRyDp3W0GyDr6EyEALoJDqHdb2BdOpR9hfofP/+nt/Z3b25/ b3dcN5wMjIrO1G8VHnU1+T0Do8Z1X/zCuW/t/x8l5nL3H8CWktpwrgQk17wn25zVMZoK Z/UImwQiZKDh6Bse67HHmjBisoIXHeg4+9CkO4N08PDBkIJvTEAdSJdMzI4ttJq0LSxk uBjw== 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 :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=UviEL5Uyp6xjoauTaZ0k20qPrJQeJrUFYWvsGOrBUMI=; b=m+ksqTjYhlxkiRwNCXLQDTLwzPKd5F3QVG4YoBcznSRAp9S3O24TC1VuweX9b4P6E0 lefXv0TvNyznrFVsYm7WQ0GJUCNUW7MwQzdlTcqd8dTNluVV40nQ5iZMKVkLLJxZY3dV y1JGv90R/SJShO+y45gvF5GTiPMY26JWQ+3uegCRMyEk3Z5/6cF0EBBWFWz9TJ9IKiSI xx95KHNEvJfxBTie6cu6Jd4fOD6MBa2tDFldXHNQqwgVZZm31OqCM0IpcwHmtHwwyFCs 9cKIvgtSkyLsyjAwmd1JObPxAn73d2GgFmb1L7d5RHlVsFZNR+2SlPgt4YURcNI4PNaS nayg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si4665486eje.579.2021.03.25.09.01.32; Thu, 25 Mar 2021 09:01:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbhCYQAM convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Mar 2021 12:00:12 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]:31746 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbhCYQAI (ORCPT ); Thu, 25 Mar 2021 12:00:08 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-54-d-BEr4zCNlCTYsjGhGGrMA-1; Thu, 25 Mar 2021 16:00:04 +0000 X-MC-Unique: d-BEr4zCNlCTYsjGhGGrMA-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.2; Thu, 25 Mar 2021 15:59:56 +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.012; Thu, 25 Mar 2021 15:59:56 +0000 From: David Laight To: "'Matthew Wilcox (Oracle)'" , "linux-mm@kvack.org" CC: "linux-kernel@vger.kernel.org" , "Andrew Morton" , Christoph Lameter , "Pekka Enberg" , David Rientjes , "Joonsoo Kim" , Vlastimil Babka , "Uladzislau Rezki" , Nicholas Piggin Subject: RE: [PATCH v2 0/4] vmalloc: Improve vmalloc(4MB) performance Thread-Topic: [PATCH v2 0/4] vmalloc: Improve vmalloc(4MB) performance Thread-Index: AQHXIL93smWggbtuakOz/LFGaMnBoqqU3Ndw Date: Thu, 25 Mar 2021 15:59:56 +0000 Message-ID: <38da93959bc948c992fc7fc1efd4d25c@AcuMS.aculab.com> References: <20210324150518.2734402-1-willy@infradead.org> In-Reply-To: <20210324150518.2734402-1-willy@infradead.org> 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: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox > Sent: 24 March 2021 15:05 > > I may have gone a little too far with the first patch. It turns out we > have a lot of code using the vmalloc caller functionality, and I decided > to convert it all to unsigned long instead of leaving some paths as void * > and casting later. What is the 'address of the caller' needed for? If it gets printed anywhere it ought to be a pointer type throughout so that it will get hashed and not leak the real address. Even then it is probably better to use a typed pointer (eg to an undefined structure) than 'void *'. That might also pick up more incorrect uses. Of course things like _RET_IP_ would need changing to return the same pointer type. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)