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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1A39C77B7A for ; Wed, 17 May 2023 16:01:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbjEQQBZ (ORCPT ); Wed, 17 May 2023 12:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231983AbjEQQBD (ORCPT ); Wed, 17 May 2023 12:01:03 -0400 Received: from out-50.mta1.migadu.com (out-50.mta1.migadu.com [95.215.58.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7E43A80 for ; Wed, 17 May 2023 09:00:33 -0700 (PDT) Date: Wed, 17 May 2023 11:59:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684339203; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Uj5Rjh+AN0r/Ht1trw7qzyL7wBHUsoOZQ8wgW5hbJew=; b=DKzUV2fMhLT8gizPcUiaWKOzbYxc5ECoXth7Jg+gW5iquDVvCug3k6eHhkGXh2VnHvbXsh WF7yrhikG1PJYZw7Vgi2IvcQJXxvUN+yQTvVEiCRi+ldsou1jQ5un2NZgJyqsC8Ff95uqE +hOLNw5zcm0cdTCRdL7KgsuYii08Ng8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Mike Rapoport Cc: Matthew Wilcox , Kees Cook , Johannes Thumshirn , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-bcachefs@vger.kernel.org" , Kent Overstreet , Andrew Morton , Uladzislau Rezki , "hch@infradead.org" , "linux-mm@kvack.org" , "linux-hardening@vger.kernel.org" , song@kernel.org Subject: Re: [PATCH 07/32] mm: Bring back vmalloc_exec Message-ID: References: <3508afc0-6f03-a971-e716-999a7373951f@wdc.com> <202305111525.67001E5C4@keescook> <202305161401.F1E3ACFAC@keescook> <20230517154412.GC4967@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517154412.GC4967@kernel.org> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2023 at 06:44:12PM +0300, Mike Rapoport wrote: > On Wed, May 17, 2023 at 10:18:11AM -0400, Kent Overstreet wrote: > > On Wed, May 17, 2023 at 05:04:27PM +0300, Mike Rapoport wrote: > > > > And I'm really curious why text_poke() is needed at all. Seems like we > > could just use kmap_local() to create a temporary writeable mapping, > > On 64 bit kmap_local_page() is aliased to page_address() and does not map > anything. text_poke() is needed to actually create a temporary writable > mapping without touching page tables in vmalloc and/or direct map. Duh - thanks!