From patchwork Mon Apr 12 08:00:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 12197109 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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 146A4C433B4 for ; Mon, 12 Apr 2021 08:09:25 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 93A7E61221 for ; Mon, 12 Apr 2021 08:09:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 93A7E61221 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 29A4C6B0074; Mon, 12 Apr 2021 04:09:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D8166B0071; Mon, 12 Apr 2021 04:09:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EF4A56B0078; Mon, 12 Apr 2021 04:09:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0109.hostedemail.com [216.40.44.109]) by kanga.kvack.org (Postfix) with ESMTP id C22596B0071 for ; Mon, 12 Apr 2021 04:09:03 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 83B3F2C96 for ; Mon, 12 Apr 2021 08:09:03 +0000 (UTC) X-FDA: 78022989366.09.B52E176 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf24.hostedemail.com (Postfix) with ESMTP id F39B4A0003A2 for ; Mon, 12 Apr 2021 08:08:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=lvcAH3egkmdk3BEVnfleRsOyxvt27C1nGCYDzcE+hkk=; b=sQ5jFlOYyMTzY0JnGSHwnsBEas 3VVJi+90/a64uIGmKHJMN1RZcsGxuwH1JhqV0BEk/hNjPdSW4MkvVQq7bunC7rnk9y9ZiCj8Qb8ZM ZLzkzVA2ISZrT7mRczADplemHqCFAWIYIURVGtWdalUgynLRJ/8Tge/Rie3hXAWkT5MB5dNtoWTrW VI8m/Da5y0acWJvV12VGOwYct7eAOJBhj7z0vltT3YU/697ZzTWCSt/W54YfQ1z0bdE4vhPF74ZER bPcmKKF8kBzlszyzb6jq8S5SJmDlWwtrr0A1S/FjtGCGr13YoJOtZtjFK+IQy9Mfo7a5kF9GBnxOm OfUV58Jg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lVrcl-003yd6-5Q; Mon, 12 Apr 2021 08:08:49 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 798BF300209; Mon, 12 Apr 2021 10:08:44 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 2E6C325F2152C; Mon, 12 Apr 2021 10:08:44 +0200 (CEST) Message-ID: <20210412080012.357146277@infradead.org> User-Agent: quilt/0.66 Date: Mon, 12 Apr 2021 10:00:12 +0200 From: Peter Zijlstra To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, x86@kernel.org, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, chris@chris-wilson.co.uk, intel-gfx@lists.freedesktop.org, linux-mm@kvack.org, keescook@chromium.org, hch@lst.de Subject: [PATCH 0/7] mm: Unexport apply_to_page_range() X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: F39B4A0003A2 X-Stat-Signature: k1gx5uspgh74pft9nrifr88bawzgspgp Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf24; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618214937-271794 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, These patches remove the last few modular apply_to_page_range() users and unexports these interface. Since these functions provide direct access to our page-tables they're a prime target for nefarious activities. These patches rely on the remap_pfn_range_notrack() patches from Christoph that are currently already in Andrew's tree. Please consider.