Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2093084pxb; Wed, 9 Feb 2022 10:40:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWpH0ryMpBr7DkjJZzz0tIknlyiXiKJ/TCeBcMkqSBa5Wr1H6pJDtamTRKU4hAD8VlZXkG X-Received: by 2002:a17:907:8a10:: with SMTP id sc16mr3118214ejc.344.1644432006302; Wed, 09 Feb 2022 10:40:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644432006; cv=none; d=google.com; s=arc-20160816; b=lAC7PcVTOlxcPRp2dwkAxCzDHApni39w/mzs9LBuzPe9jm2LEuwr7OOtbUgAgGq8J2 GSvPnLQzOWCB7KWIUnMaYwliqyhKhzN77VPvchIPGjzi3MmFsfQL6ZCGpE+UDG8q3obx Ca+fw18fsxmAl4HrLd5GB9xeOYrofIv77YRhtTdHwPjeGD6c8bqMnlqbWMoZGhYGtFki fY2IuFshRQ37oASUyE7TVX46TWEBDpB+ZAzFc2rOfuVmHMm3GW8xFdbQqu8DDqwCP7h9 doTu/y80XN8oA1BoB0EzZubMfyZi8xeT01G582u5br/Y3N4GogOWTgFXPqoiGKXONHOL 4FEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=cPanT84froBQDy0fnPPljPjc/sJJc6UFVNaQtZQNyJo=; b=GJr0FoJ0/Bq1KDeIV2aS0LwXfkkENwGmA8hdoj0wQtVh1T52LVbbs9RyFkEPJZ4d4S XmjBxuLthXLBsVHz1sT4seX6zG0nSPLRRwYmCPRWgL1QV9DjJ4P3ErsQhicGQaXFrFn2 ctF+J+tEGwL53aPK1IIpnFksHkN6lK4qfNtX2V4d9T5SJ7O1o5FGCwchvoK917raAbpM avEa+Qly2Cu3j7SBZpJiAryG/apIDcbM0SxpWKSRwfkWKOGqynJiEMaHg43fV3embzEk y312nIn1bagYZAmcWHmzkcJ8oAe79P0HJn+2wq8HRZZLZw9LtfZQyJUVxSGG+RNkl0T3 PeDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="SdlN6/o0"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=0X+aVbHt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he13si998760ejc.936.2022.02.09.10.39.40; Wed, 09 Feb 2022 10:40:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="SdlN6/o0"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=0X+aVbHt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232603AbiBIPnD (ORCPT + 99 others); Wed, 9 Feb 2022 10:43:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236209AbiBIPm5 (ORCPT ); Wed, 9 Feb 2022 10:42:57 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5309C05CB8A; Wed, 9 Feb 2022 07:42:56 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 7205821106; Wed, 9 Feb 2022 15:42:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1644421375; h=from:from:reply-to: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=cPanT84froBQDy0fnPPljPjc/sJJc6UFVNaQtZQNyJo=; b=SdlN6/o0bkHJLdF7/rqstxANEqRu2FGQdADvtFm36FXgWN7qy8cv5E9FmMIqemtYqj5JCx jcFKtYvkxRDAXyWddaU5BJQjRCKUXa8uB96+IfTENqG3s4IjsNq2JfIo9n1aVAoh4vUxkN ye8z9cU4lRKUrZHOL79VeCmsS2uUcBg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1644421375; h=from:from:reply-to: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=cPanT84froBQDy0fnPPljPjc/sJJc6UFVNaQtZQNyJo=; b=0X+aVbHtAO76L1P2h7Y2RgH4e7i5tXnnZmX6Tcr6MKy1WuACuL/CGsKG7z3DXWtcr4kHZJ FFE4oGuZFBJRVUCA== Received: from pobox.suse.cz (pobox.suse.cz [10.100.2.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 5BFF8A3B88; Wed, 9 Feb 2022 15:42:55 +0000 (UTC) Date: Wed, 9 Feb 2022 16:42:55 +0100 (CET) From: Miroslav Benes To: Christophe Leroy cc: Luis Chamberlain , Jessica Yu , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "kgdb-bugreport@lists.sourceforge.net" , "linux-mm@kvack.org" , "linux-arch@vger.kernel.org" Subject: Re: [PATCH v2 0/5] Allocate module text and data separately In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Jan 2022, Christophe Leroy wrote: > This series allow architectures to request having modules data in > vmalloc area instead of module area. > > This is required on powerpc book3s/32 in order to set data non > executable, because it is not possible to set executability on page > basis, this is done per 256 Mbytes segments. The module area has exec > right, vmalloc area has noexec. Without this change module data > remains executable regardless of CONFIG_STRICT_MODULES_RWX. > > This can also be useful on other powerpc/32 in order to maximize the > chance of code being close enough to kernel core to avoid branch > trampolines. > > Changes in v2: > - Dropped first two patches which are not necessary. They may be added back later as a follow-up series. > - Fixed the printks in GDB > > Christophe Leroy (5): > modules: Always have struct mod_tree_root > modules: Prepare for handling several RB trees > modules: Introduce data_layout > modules: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC > powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and > 8xx > > arch/Kconfig | 6 ++ > arch/powerpc/Kconfig | 1 + > include/linux/module.h | 8 ++ > kernel/debug/kdb/kdb_main.c | 10 +- > kernel/module.c | 193 +++++++++++++++++++++++++----------- > 5 files changed, 156 insertions(+), 62 deletions(-) Looks good to me apart from the typo I mentioned at v1. I will review again once it is rebased on Aaron's patch set. Regards, Miroslav