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=-4.0 required=3.0 tests=BAYES_00,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 00510C433EA for ; Thu, 23 Jul 2020 01:52:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 C122A20781 for ; Thu, 23 Jul 2020 01:52:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aLBRifwn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C122A20781 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=csozNPWE6cgD91X4sSx6siOzNNfwyk/dKLFzvewiFcA=; b=aLBRifwnSa5DOxy8AfIpEyWDb IvtSL5T6MezXC/bAanV1KXSuUvC+tny2oQ8trCLSNmQiv5R/qB8wfj/e2JqbMCR2ZqVZceAImqm4i kksOHzyU0j5mFNY6KXk+fmYpIKCpclrhCO1YCqn3Sf99APGyIsyXKSzOJ3MK25TBehxorYSSzmIjP QE/78NGnImY3WRfcr5/sAMboiWvPMzFVi3OV56dpav1aWfH1QMp5OF4dIGJfdKAWVn5Mo5nrPehAm 061wqu5OnpJ2GdLIL5fFmJuYvMBhIl8FFuE/zkgz59QFJYRdSz6dgKuHFeR41gaXWkuDImG4SR3US FqbOJXlTw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyQP7-0002jW-MV; Thu, 23 Jul 2020 01:52:13 +0000 Received: from mga18.intel.com ([134.134.136.126]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyQP3-0002hz-9M; Thu, 23 Jul 2020 01:52:10 +0000 IronPort-SDR: II6dPc/GtRNge9gp0pd5TacgDKjrgXFXOOhsqgUls2bO7dGfzohHMSYzwssogsC1nL8XhNh3O3 gpdt17hUvngA== X-IronPort-AV: E=McAfee;i="6000,8403,9690"; a="137950988" X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="137950988" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2020 18:52:07 -0700 IronPort-SDR: DSkxf9Mhl+tDb0vmbeJyl5WUQvI5D8NETzjzg+c5o7/S1ilVHzlOgQJvp0d2KRaDsv3kq/f0ar zDh/A6gP33Yw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="302147757" Received: from schwings-mobl.ger.corp.intel.com (HELO localhost) ([10.252.33.132]) by orsmga002.jf.intel.com with ESMTP; 22 Jul 2020 18:51:28 -0700 Date: Thu, 23 Jul 2020 04:51:27 +0300 From: Jarkko Sakkinen To: Christophe Leroy Subject: Re: [PATCH v2 1/3] module: Rename module_alloc() to text_alloc() and move to kernel proper Message-ID: <20200723015127.GE45081@linux.intel.com> References: <20200714094625.1443261-1-jarkko.sakkinen@linux.intel.com> <20200714094625.1443261-2-jarkko.sakkinen@linux.intel.com> <20200716184909.Horde.JVRLLcKix_jhrJfiQYRbbQ1@messagerie.si.c-s.fr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200716184909.Horde.JVRLLcKix_jhrJfiQYRbbQ1@messagerie.si.c-s.fr> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_215209_458714_33913890 X-CRM114-Status: GOOD ( 19.37 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Kefeng Wang , Paul Mackerras , Zong Li , Andi Kleen , Paul Burton , Vincent Whitchurch , Petr Mladek , Brian Gerst , Andy Lutomirski , Thomas Gleixner , Jiri Kosina , Anup Patel , linux-kernel@vger.kernel.org, Philipp Rudo , Torsten Duwe , Masami Hiramatsu , Andrew Morton , Mark Rutland , "James E.J. Bottomley" , Vincent Chen , Omar Sandoval , "open list:S390" , Joe Lawrence , Helge Deller , John Fastabend , Anil S Keshavamurthy , Yonghong Song , Iurii Zaikin , Andrii Nakryiko , Thomas Huth , Vasily Gorbik , "moderated list:ARM PORT" , Daniel Axtens , Damien Le Moal , Martin KaFai Lau , Song Liu , Josh Poimboeuf , Heiko Carstens , Alexei Starovoitov , Atish Patra , Will Deacon , Daniel Borkmann , Masahiro Yamada , Nayna Jain , Ley Foon Tan , Christian Borntraeger , Sami Tolvanen , "Naveen N. Rao" , Mao Han , Marco Elver , Steven Rostedt , Babu Moger , Borislav Petkov , Greentime Hu , Ben Dooks , Guan Xuetao , Thomas Bogendoerfer , "open list:PARISC ARCHITECTURE" , Jessica Yu , "open list:BPF JIT for MIPS 32-BIT AND 64-BIT" , "David S. Miller" , Thiago Jung Bauermann , Peter Zijlstra , David Howells , Amit Daniel Kachhap , Sandipan Das , "H. Peter Anvin" , "open list:SPARC + UltraSPARC sparc/sparc64" , Tiezhu Yang , Miroslav Benes , Sven Schnelle , Ard Biesheuvel , Vincenzo Frascino , Anders Roxell , Jiri Olsa , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , Russell King , "open list:RISC-V ARCHITECTURE" , Mike Rapoport , Ingo Molnar , Albert Ou , "Paul E. McKenney" , Paul Walmsley , KP Singh , Dmitry Vyukov , Nick Hu , "open list:BPF JIT for MIPS 32-BIT AND 64-BIT" , "open list:MIPS" , Palmer Dabbelt , "open list:LINUX FOR POWERPC 32-BIT AND 64-BIT" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Thu, Jul 16, 2020 at 06:49:09PM +0200, Christophe Leroy wrote: > Jarkko Sakkinen a =E9crit=A0: > = > > Rename module_alloc() to text_alloc() and module_memfree() to > > text_memfree(), and move them to kernel/text.c, which is unconditionally > > compiled to the kernel proper. This allows kprobes, ftrace and bpf to > > allocate space for executable code without requiring to compile the mod= ules > > support (CONFIG_MODULES=3Dy) in. > = > You are not changing enough in powerpc to have this work. > On powerpc 32 bits (6xx), when STRICT_KERNEL_RWX is selected, the vmalloc > space is set to NX (no exec) at segment level (ie by 256Mbytes zone) unle= ss > CONFIG_MODULES is selected. > = > Christophe This has been deduced down to: https://lore.kernel.org/lkml/20200717030422.679972-1-jarkko.sakkinen@linux.= intel.com/ I.e. not intruding PPC anymore :-) /Jarkko _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv