Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2351337rdb; Thu, 21 Sep 2023 16:36:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4p2IZNbfqgGPzR70wDPxb/tO2bev3++aX+0yh7gajk0Rrv3GDJoOjv4l+Djupoz6ujJDf X-Received: by 2002:a05:6870:5803:b0:1bf:2ad9:8dae with SMTP id r3-20020a056870580300b001bf2ad98daemr7291059oap.45.1695339411488; Thu, 21 Sep 2023 16:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695339411; cv=none; d=google.com; s=arc-20160816; b=jDO183lDRN7gDMnu51khMxr8JvV+ZUQSkDOod1pSt6W6WSps+qSgd9u/iojzttl14X qWgkSwWT9WERoS2t3xfgmUq/0CWSo7DO4YLUYIWE2GFxmKz7qA+6ZNya+0mrbDuzQkg5 5hHwrbNtPr0ByEiJ8FtKztiDHcwo3AyNPu1bKzI9crBRdlSU3oRLdZztwGWWwvnzDJ2t cq9x5SHlxt1mD5tU+wkQ7a0oUH1RtshT8KSVlAlcnrmNHt6r4ANXbUZWWc3Gqw6BoUt4 UJKdFeBc413Kr4IZpoavOLrOx335cNoag3yC5HTF33+kUoa6RZB7N/FhgNdWrfgF+VzV gpcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5yuiA80XaMNcVvGwbasPKVlqvsucc4QoydJx/NbnS8k=; fh=nux99dLKaQZPtWtkuy2/AW/ozv3Qzao1Xyv3eoLFGu0=; b=s4NPAhfGFCnMQ4UdHX3erBFkKkvhQTn4CZ+SoNDYXTR9rD/dkWCHXy6riMVgmFBbw/ QNnENSNsJ9CO67fukjKVzpB2r/YMwy/qsGp+GvXGFM508d0B/FmAz/iPiMd2kdh0Z+8g 1l53gGkMpAYzAHDMGeReqKNUhFM+rvzCKUNsgOZvyl0WEPbsLTX8nI7lVmsyRc3lMXpU dIlMPa1M6NiF4vNWAxzOWxm7mybmfozWY3at3GqdzCaPXX8lAg7luK9PJ/4dTJTzYQvY SYVSqg4TaHghreqVofU5bFtwRddBKs9jU04wMrrcnHPr2OO8F1O//rgmOoy28LdZqab4 MSxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BJxXZzf/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s29-20020a63925d000000b00573f9a427d2si2351803pgn.53.2023.09.21.16.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 16:36:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BJxXZzf/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4FB2F82589A3; Thu, 21 Sep 2023 15:31:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231806AbjIUWbI (ORCPT + 99 others); Thu, 21 Sep 2023 18:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjIUWbG (ORCPT ); Thu, 21 Sep 2023 18:31:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FB3391; Thu, 21 Sep 2023 15:31:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC786C433CD; Thu, 21 Sep 2023 22:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695335460; bh=MM21fpAAqNycTt4Xaf9NDcGQ0SQTcft6//RqlmbkVyQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BJxXZzf/aXubyQy2npZARHLDDjhgoXgiIEWqva3Fcvcj9zcoZxEU8fccdvHJ+HE1c zzl8qTcUY9d4Go4O1phE4VHiUrxF82TprIMut63M6/i0lBXABCB/bZlTOwWqPbu1BQ q5zu/0Z8B9EGkvCak3DZShCJdshYKc/r/AcXEeYIu2QyWVYI9Vx+BhQ1n26cL4/b0+ PS4cfkMveOYxyjpv6hbMeZ6FHOjVVnzGDFbwXlAgoIyH9v7qk7z8sPhWkYP6GlWWax 6oJu48Ae0Rkgt9SjGUY0GxlfVZDTstOKna+Ts701hrySxm3sOn2mvMBH6VjZ4iOt+Q WLPXTkK17R7VA== Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-50337b43ee6so2400559e87.3; Thu, 21 Sep 2023 15:31:00 -0700 (PDT) X-Gm-Message-State: AOJu0YwJ80atVQpPwKTRF29CYxJEvthpXSCSKKKNW/fjVvmDib0yO3aJ pd4b/1HM4ExSD3usFq4LwbrZRDCDzrhHjZ27SQQ= X-Received: by 2002:a05:6512:10c4:b0:500:7f71:e46b with SMTP id k4-20020a05651210c400b005007f71e46bmr7439120lfg.1.1695335458957; Thu, 21 Sep 2023 15:30:58 -0700 (PDT) MIME-Version: 1.0 References: <20230918072955.2507221-1-rppt@kernel.org> <20230918072955.2507221-10-rppt@kernel.org> In-Reply-To: <20230918072955.2507221-10-rppt@kernel.org> From: Song Liu Date: Thu, 21 Sep 2023 15:30:46 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 09/13] powerpc: extend execmem_params for kprobes allocations To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, Andrew Morton , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Luis Chamberlain , Mark Rutland , Michael Ellerman , Nadav Amit , "Naveen N. Rao" , Palmer Dabbelt , Puranjay Mohan , Rick Edgecombe , Russell King , Steven Rostedt , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 15:31:14 -0700 (PDT) On Mon, Sep 18, 2023 at 12:31=E2=80=AFAM Mike Rapoport wr= ote: > [...] > @@ -135,5 +138,13 @@ struct execmem_params __init *execmem_arch_params(vo= id) > > range->pgprot =3D prot; > > + execmem_params.ranges[EXECMEM_KPROBES].start =3D VMALLOC_START; > + execmem_params.ranges[EXECMEM_KPROBES].start =3D VMALLOC_END; .end =3D VMALLOC_END. Thanks, Song > + > + if (strict_module_rwx_enabled()) > + execmem_params.ranges[EXECMEM_KPROBES].pgprot =3D PAGE_KE= RNEL_ROX; > + else > + execmem_params.ranges[EXECMEM_KPROBES].pgprot =3D PAGE_KE= RNEL_EXEC; > + > return &execmem_params; > } > -- > 2.39.2 > >