From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B497C2D0EA for ; Wed, 8 Apr 2020 12:25:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3654520757 for ; Wed, 8 Apr 2020 12:25:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ltKTsgpO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="hR+APYPn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3654520757 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ED65c3lkbDINd6aAyIaK0jotciAMIAEzobq+Klri4/0=; b=ltKTsgpO+eqoOF 5Gf3l5wB2CUxaymxdzzBwNNE1jWwvmz+85V07VIXpTZ/jMJf09cls8Ub4LR6G+MM44gkdqzXyiwjZ enQ0Q3ATQ4aKe+F+ZExDV7+NjLo+XTuUJ0KEzpuPBRUH+G2eTzzbVOzVpQSPkknSbKHSQ4kF9qSm8 3i2mqM1C9PA9kch5Bsz7LF7jVeWos6MoLcMGDAh8+AgnMTIyU716LbanVwNmz2JILvDmXQkDB8gWl AMMD+LYOi3iyFgRTr5ezlsuVAzSG61vfu0KfaIdXI8+8feQD/a/tknvZPI7N1U6Eh5/iUVPqVVT9/ lATK3LiIFmiKilRmWE1A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM9lU-0002Ss-4l; Wed, 08 Apr 2020 12:25:08 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM9lR-0001yD-VO for linux-arm-kernel@bombadil.infradead.org; Wed, 08 Apr 2020 12:25:05 +0000 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 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-Disposition: inline In-Reply-To: <20200408115926.1467567-1-hch@lst.de> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-hyperv@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, linux-mm@kvack.org, "K. Y. Srinivasan" , Sumit Semwal , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Wei Liu , Stephen Hemminger , x86@kernel.org, Laura Abbott , Nitin Gupta , Daniel Vetter , Haiyang Zhang , linaro-mm-sig@lists.linaro.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christophe Leroy , Robin Murphy , linux-kernel@vger.kernel.org, Minchan Kim , iommu@lists.linux-foundation.org, Sakari Ailus , Andrew Morton , linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel