Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp658539ybb; Wed, 8 Apr 2020 07:31:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJQlmbpkYOOp0ud0Ziq6CXXpFZjUqSiq7xAweF0g92t3Y5cblGREQQa33fJTf3hJStJDEHl X-Received: by 2002:a54:4e13:: with SMTP id a19mr2701725oiy.108.1586356301219; Wed, 08 Apr 2020 07:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586356301; cv=none; d=google.com; s=arc-20160816; b=isiGQtDrKNJrjEAUSTjri7JB9jnxJ2d0EC0TxXpF5/HMU6f88m9Yyok0c+2cRF1qKC aDu+gepFQsrPM2nZ/GXGHqva2plciLq5nyFYsVNkD6zoTdtektwF6v4/yneJffMsZjYL 8rsVE/wnKIEaB61yL7fhLjaFOLcR/exvYp73kKrW+tABRLgC/k+jKmQ/il6FbDuX/McQ 0pjcGLq7eClXOB9KAmvZ8mok6q1vGmM6fCUDMfLsTNk5QxuX5hpl7OsEb/llKUKlSAe1 He+5co9vUmEBxhSeTlPU1PbAbG9hlqiDooLMfJWJ5qTwCDcnP9cZFB54yHQrvUNteW1T mKsg== 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=7Zn3+mRH+PPxg4lfhT29xWKaDYKNW3X7ClOJo4l/mhI=; b=DLGGg2vTHus6et2LsNqv7D1rVSfY36/GiNiD5Y17uvA/TnTyIDeJbH5sfS360Xksux i/tuSY/nliVLnpHJPWtuocdS/g3mJn0Z4Y46Eka0/gOtXp8UEGjPtdLc2UH7PIpFKobV RBtFokI34CAdUHRkQ5GO5JncMh5ddt+gTF8ww7H8cG7JeMY+rC0d75Zy/BlPVA0BEmOI cD1DYPJfe59O8H3Msrfs98csPMnZQR5Ce6QNscT9yr7xAHflTAG3w0owJ5wNrabC2/4R 4pb74RJD5wjbuICJm11aUbenH6c5pZuAhee4rupqCjIdpqrMvEWOv0Pl1toBE8URPTbL /7cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=hR+APYPn; 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 w1si2146025otj.207.2020.04.08.07.31.25; Wed, 08 Apr 2020 07:31:41 -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=merlin.20170209 header.b=hR+APYPn; 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 S1728378AbgDHMZW (ORCPT + 99 others); Wed, 8 Apr 2020 08:25:22 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57944 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727897AbgDHMZW (ORCPT ); Wed, 8 Apr 2020 08:25:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=7Zn3+mRH+PPxg4lfhT29xWKaDYKNW3X7ClOJo4l/mhI=; b=hR+APYPn4qf6/AfXml5kyb0qcP V8wEdWOLbEZNmFaTiQ2UeSmHXcuij5eNxrY9thz2k4jvGG1jN0iA25HRNzWfBhU2oBvyerv4zQ/sN FOQW6ZyVJcXPI7YZo0n52lmciZe+6TIbYlobXKiyRAbPh1OtukE4wXj1l8s8xo5ESVBJabBbvK4TZ OJsQVfctMQ+6rLnYDXm5xFzxrUu+GEC92g9J7raz3AbyePtFxfHqt4/dvPu8TIhiRIvcrn9Mhis9G GuL+c0JOXyi9ryNMynez0bJMTjgJloauImGZwQf1d3PZ587V2aWWKogtmLIYkYUpr/ITsFCj8oxCu o1KSHQ+Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM9lQ-0001k8-35; Wed, 08 Apr 2020 12:25:04 +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 833F5300478; Wed, 8 Apr 2020 14:25:01 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 702412BA90A66; Wed, 8 Apr 2020 14:25:01 +0200 (CEST) Date: Wed, 8 Apr 2020 14:25:01 +0200 From: Peter Zijlstra To: Christoph Hellwig Cc: Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , x86@kernel.org, David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , 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 Subject: Re: decruft the vmalloc API Message-ID: <20200408122501.GA20713@hirez.programming.kicks-ass.net> References: <20200408115926.1467567-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408115926.1467567-1-hch@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 08, 2020 at 01:58:58PM +0200, Christoph Hellwig wrote: > Hi all, > > Peter noticed that with some dumb luck you can toast the kernel address > space with exported vmalloc symbols. > > I used this as an opportunity to decruft the vmalloc.c API and make it > much more systematic. This also removes any chance to create vmalloc > mappings outside the designated areas or using executable permissions > from modules. Besides that it removes more than 300 lines of code. > Looks great, thanks for doing this! Acked-by: Peter Zijlstra (Intel)