Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1856484ybb; Thu, 9 Apr 2020 10:15:04 -0700 (PDT) X-Google-Smtp-Source: APiQypJLQyep7nmlzIJkE+lvLCKEKE6+6t23fa7pHgGuDfDeiZq5mDKNf9+PAG20g4n1053HbmbD X-Received: by 2002:ad4:436b:: with SMTP id u11mr1041321qvt.117.1586452504762; Thu, 09 Apr 2020 10:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586452504; cv=none; d=google.com; s=arc-20160816; b=hj+1QF3ygdC07RTgiAi62QNVZyVRAelW7vxxkH66wqfG+q6/7nGe+RHnFL6jH4NAqW U5+LRYYUNgP4dEquiab1i60aWTZ8rtzydJSawJxOPVbKfA1KoTKR0lQRAIMe4mvKnV7+ TGSVnPEzgQF62HrX8oT4gPPn/c9ktfWXxQ0rhMqsX9bRX9mxfIjial3JodkXPdwsrvrk v8g5QLw451N7vzxKlGrwfFOfL3wZirF6bDsll6Lp/n22PCWBEQ/LOmEmUagqoFGMpMLj pNoAFysrHGYeed2f9Gf4PrhTtFDi1JqZji2tytg5GlGNvxDgrofKWK3wtF2mvLwwjkrJ oBAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PkxaeFIVCfsrSeEEx8LVvo4pS30j4LAzfUOxmZwXge8=; b=LkRgJgt3xSG8cMvEWF/RBj8+XuRTXcWENelTD+mIeQAdFIRcI7njK7qg2bIJFNhf5d x92hN4rCi1FfK7WebkSXPALswgd8Bw1k9fNzZK4kYQburvAd7IVTNJCf/5Nod5uV5Ser XRqqynbtEA/Y1z/G5vbgC9MrnoTpYyM/Rb4w6IhXIASEIQB/G3Mkn3E0dq+MTM0FDIeF riIrGO9URKpfRJUL5w84mnYajoQh0M/mb9Ia+yxR4gpMZf0ze0x4pYDFCyWhoJRoWbuI 6PpwF1sIDbGWVkL9pfJyxIRQoj01pH5h0clBtoqkln5LnNc2gqpPSha/24/u8BQRZ5lR 4hyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=GGka1vwl; 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 o55si6441955qtf.240.2020.04.09.10.14.49; Thu, 09 Apr 2020 10:15:04 -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=GGka1vwl; 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 S1727473AbgDIQvA (ORCPT + 99 others); Thu, 9 Apr 2020 12:51:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40948 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbgDIQvA (ORCPT ); Thu, 9 Apr 2020 12:51:00 -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; bh=PkxaeFIVCfsrSeEEx8LVvo4pS30j4LAzfUOxmZwXge8=; b=GGka1vwlLS5MYPkTsGxdsFzTuS DS3rDOfcUb9HLd/6b5SzwWrTADDVOx+0LMT07aKgtVPr0kLJtgCbA+XGpR2mfVKdM0lLjJkIQgK4y JJeb53TiZpO2ZclH17Kurq5SVEpz5LXzF1wWUnNNKS1WGzPcvxRb9wmHrQyxFtRy+uyqP24cIe0KY pOG0lsOHBWcprrx3Gv3iiQRWTZ33466s6rwrhNnc3MB6T0ncOjpk58lBhF98CB6EkIqA1yDHRsSWh wWIOFqpiUn8qqReI/bzkBn05Ww7Pt2yi1wt87V0Jos7AemDE3ibOYANc7V5Qh5so5rDdLtn63Ocq5 lv9xW10Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jMaNt-0003gC-0y; Thu, 09 Apr 2020 16:50:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B26BC3012D8; Thu, 9 Apr 2020 18:50:30 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 962822BA1D82B; Thu, 9 Apr 2020 18:50:30 +0200 (CEST) Date: Thu, 9 Apr 2020 18:50:30 +0200 From: Peter Zijlstra To: Minchan Kim Cc: Christoph Hellwig , Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Nitin Gupta , Robin Murphy , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, sergey.senozhatsky@gmail.com Subject: Re: [PATCH 10/28] mm: only allow page table mappings for built-in zsmalloc Message-ID: <20200409165030.GG20713@hirez.programming.kicks-ass.net> References: <20200408115926.1467567-1-hch@lst.de> <20200408115926.1467567-11-hch@lst.de> <20200409160826.GC247701@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200409160826.GC247701@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2020 at 09:08:26AM -0700, Minchan Kim wrote: > On Wed, Apr 08, 2020 at 01:59:08PM +0200, Christoph Hellwig wrote: > > This allows to unexport map_vm_area and unmap_kernel_range, which are > > rather deep internal and should not be available to modules. > > Even though I don't know how many usecase we have using zsmalloc as > module(I heard only once by dumb reason), it could affect existing > users. Thus, please include concrete explanation in the patch to > justify when the complain occurs. The justification is 'we can unexport functions that have no sane reason of being exported in the first place'. The Changelog pretty much says that.