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=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 417EAC433ED for ; Mon, 19 Apr 2021 04:04:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0699160E09 for ; Mon, 19 Apr 2021 04:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234033AbhDSEEp (ORCPT ); Mon, 19 Apr 2021 00:04:45 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:60489 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbhDSEEj (ORCPT ); Mon, 19 Apr 2021 00:04:39 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 4FNtVJ3l0Wz9vDw; Mon, 19 Apr 2021 14:04:08 +1000 (AEST) From: Michael Ellerman To: Paul Mackerras , Benjamin Herrenschmidt , jniethe5@gmail.com, Christophe Leroy , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <0c3d5cb8a4dfdf6ca1b8aeb385c01470d6628d55.1617283827.git.christophe.leroy@csgroup.eu> References: <0c3d5cb8a4dfdf6ca1b8aeb385c01470d6628d55.1617283827.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH 1/3] powerpc/modules: Load modules closer to kernel text Message-Id: <161880478975.1398509.1364784415611338894.b4-ty@ellerman.id.au> Date: Mon, 19 Apr 2021 13:59:49 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Apr 2021 13:30:41 +0000 (UTC), Christophe Leroy wrote: > On book3s/32, when STRICT_KERNEL_RWX is selected, modules are > allocated on the segment just before kernel text, ie on the > 0xb0000000-0xbfffffff when PAGE_OFFSET is 0xc0000000. > > On the 8xx, TASK_SIZE is 0x80000000. The space between TASK_SIZE and > PAGE_OFFSET is not used and could be used for modules. > > [...] Applied to powerpc/next. [1/3] powerpc/modules: Load modules closer to kernel text https://git.kernel.org/powerpc/c/2ec13df167040cd153c25c4d96d0ffc573ac4c40 [2/3] powerpc/8xx: Define a MODULE area below kernel text https://git.kernel.org/powerpc/c/9132a2e82adc6e5a1c7c7385df3bfb25576bdd80 [3/3] powerpc/32s: Define a MODULE area below kernel text all the time https://git.kernel.org/powerpc/c/80edc68e0479bafdc4869ec3351e42316b824596 cheers