Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp143586pxb; Mon, 7 Feb 2022 08:06:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5AZQuWLKuK+mguWYyVPHvtAVs7869i7zuFFMrtwjvvEhxojxoPq2wD5B5vrinvLGCknmH X-Received: by 2002:a05:6a00:2183:: with SMTP id h3mr243229pfi.12.1644250012033; Mon, 07 Feb 2022 08:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644250012; cv=none; d=google.com; s=arc-20160816; b=vpHgaVDO7wZ2aeWTAD6hCPpBtSsBwiGQ/Dt/asysRaFi7WF8n3cDtS2eSYir1GF+oP up2VFPhouw4dP64SRiHR/FFLB4QKyc6GBQeX174DXc2iiQAdv48i9EFYAlP9xfQi7tMO GvsfTRQIJdeSppT1gYcQlqixVWm6iHo7dOvoEIlSS33HtDCJ9iRQiFNJidhib5SAu7jC PCb7bhZyeoiB3kuoT5kVp8ujGY9FGDMmXqznkJQhObNUsOSUshQpO2JxaWZXztZ9wm6L LBXpZeRTSQ4ZzoSfhuV+iyFSDgQfkDn1lDIZvxOMZ3JBxLw/Pjnhj3T7mfu/lW6HLqjj 1MNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=DVo9TFj10WHnIMP3upbM4NlbZB2TC5ggS49NOyVsTQo=; b=qlHPlxPNE2OfQr9RWva2m3iY8jezDjTHofFfzWtIguwFMtSuz6GKcI3oCZTFzxPmWo 930rGjX5DlvsxUCsYJ8+PCbyhh1A74Y53sFLXwwrmFqNk57o2dO5ApfylcC3vVqgUEYS +8x3i6NqDBY28im8g6KkGqnAnSQvwk2HqyQLQOq/JVkaximU7e2DAIf4ydh0yuwBBqtz Apv+x6IbIhoy4cQfevrb+ZkZnHd0+6moLhHzvJinPWdLsHrCoSKC0pZxtw+1Ljvv5kQ5 iFR6PyvJzQSnJYbTr/Xou3JDb4pP9FaUwmB+oaNj5dPqMzCrBOIz7Ph6fj4aYhiCwFou eqNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=fVv9D5Fu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u38si678022pfg.112.2022.02.07.08.06.39; Mon, 07 Feb 2022 08:06:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=fVv9D5Fu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347487AbiBGB1e (ORCPT + 99 others); Sun, 6 Feb 2022 20:27:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344367AbiBGB1c (ORCPT ); Sun, 6 Feb 2022 20:27:32 -0500 X-Greylist: delayed 496 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 06 Feb 2022 17:27:31 PST Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF81AC06173B; Sun, 6 Feb 2022 17:27:31 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4JsSwK1MWyz4xcZ; Mon, 7 Feb 2022 12:19:13 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1644196753; bh=DVo9TFj10WHnIMP3upbM4NlbZB2TC5ggS49NOyVsTQo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fVv9D5FuEvLaNhfgmXgjlmjX4g5lOMemZmfYENVGDoppdX2Jo87qwVgAkhSIW0EP0 89Lc++67+OIoMEwNxjvC50RgrjFDElHcPnLgKXuA5z1ZQiM++i/WE+BI+matwTnW2P 91Ie3ar6Hr7cTtJ21ddl+Mbkp3WJslga+XRknX57rBaj+Wt1/rbTxjyAQqrUiUMLyq 69wA8R2wfhA4KR8xTZG8HD3WRA+dYQp8A8q5D5TWDPWcWDmNGi2ZrHqlZZAor3hGwP gBZUprAx+25T1ngXxDkvVI01Gokid1upCSXRiWM4/lXk81+HjumKOlIxOkqLRh8iAA xnZSLLukqnG4w== From: Michael Ellerman To: Christophe Leroy Cc: 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" , Benjamin Herrenschmidt , Luis Chamberlain , Paul Mackerras Subject: Re: [PATCH v2 5/5] powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xx In-Reply-To: <9cab4adb-bd4b-48d5-d63c-33a0f25c97e4@csgroup.eu> References: <87h79gmrux.fsf@mpe.ellerman.id.au> <9cab4adb-bd4b-48d5-d63c-33a0f25c97e4@csgroup.eu> Date: Mon, 07 Feb 2022 12:19:06 +1100 Message-ID: <877da7mq2d.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Christophe Leroy writes: > Le 03/02/2022 =C3=A0 06:39, Michael Ellerman a =C3=A9crit=C2=A0: >> Luis Chamberlain writes: >>> On Thu, Jan 27, 2022 at 11:28:12AM +0000, Christophe Leroy wrote: >>>> book3s/32 and 8xx have a separate area for allocating modules, >>>> defined by MODULES_VADDR / MODULES_END. >>>> >>>> On book3s/32, it is not possible to protect against execution >>>> on a page basis. A full 256M segment is either Exec or NoExec. >>>> The module area is in an Exec segment while vmalloc area is >>>> in a NoExec segment. >>>> >>>> In order to protect module data against execution, select >>>> ARCH_WANTS_MODULES_DATA_IN_VMALLOC. >>>> >>>> For the 8xx (and possibly other 32 bits platform in the future), >>>> there is no such constraint on Exec/NoExec protection, however >>>> there is a critical distance between kernel functions and callers >>>> that needs to remain below 32Mbytes in order to avoid costly >>>> trampolines. By allocating data outside of module area, we >>>> increase the chance for module text to remain within acceptable >>>> distance from kernel core text. >>>> >>>> So select ARCH_WANTS_MODULES_DATA_IN_VMALLOC for 8xx as well. >>>> >>>> Signed-off-by: Christophe Leroy >>>> Cc: Michael Ellerman >>>> Cc: Benjamin Herrenschmidt >>>> Cc: Paul Mackerras >>> >>> Cc list first and then the SOB. >>=20 >> Just delete the Cc: list, it's meaningless. >>=20 > > Was an easy way to copy you automatically with 'git send-email', but=20 > getting it through linuxppc-dev list is enough I guess ? It's useful for making the tooling Cc the right people, it's fine to use them for that. But there's no value in committing them to the git history, I actively strip them when applying. The fact that someone is Cc'ed on a patch tells you nothing, given the volume of mail maintainers receive. The link tag back to the original submission gives you the Cc list anyway. cheers