Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp267814rdh; Sat, 23 Sep 2023 09:28:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGw1uAtI7ldCt8V1oIaVxj6elVMOhBL/znYhQPZuY6dUhGkXbxEGPiEbozHBeKLVC1UICvT X-Received: by 2002:a05:6808:1314:b0:3a7:53a8:aed2 with SMTP id y20-20020a056808131400b003a753a8aed2mr3612768oiv.7.1695486506002; Sat, 23 Sep 2023 09:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695486505; cv=none; d=google.com; s=arc-20160816; b=0UMtHhpgsj0t9m/b6qYVn7asZGYN1fKND33Rlg3j3186G9gpKEscao1M9dToPHPE26 7oNv3iJSqMTQ3PGQy3fJ5KPVSjHtEPuT8QdKRSPAo44Brrag0QeSpwL3qg23J4U+XXTq cKmJcIJxiYc0RkA0K2zBkKsVIdEyfyf8VYjK1XMKY5CWSmoMMMSVll/cA+bn9VlBkmEE FNMJW5czCLjMLv1odHoQ/ZyevHJWdtDxB5IcTHx561DcPf2ZLaCjhv0ibcB7ldbhn6o/ /F+6cviGp8FvFX4ZFhR+Q/QqZe7TfQg5Ee0NiDn5Td10jKa8Zj0GpJHgVORq/pXwbGxt fCcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8oUCCfTnSUsP+XHZHorrbXh5EmIVs+NRFK1AJQaIa40=; fh=LLxVw4x/YA0p2nrisYkbRBF7OIGhT8MrMihKmdCsSWw=; b=rfXDNLZufL+kwqXtInOfYPk8zbZnoIyUS92dzqvI00/fXQwjKXdHI3BjrAeftGCt9c pHbAWIoeJO9H9lQu9ywpVtS5yriBd54M8nNE8J4yjNJ7XC/lHDYWVR9bp5G++WkpoNie /AF16tND+tGdEgEgqj6JKDA6U5WT/m1p8pY2wO6DT8za4VqFLbt5BC2ev6QET4RUscxj FAxVEBXU7CXJiOFW6n0nsQhkcnI2zOlZQyAQZMG7JA99WwzpBOZ3nD0ByZXfvQbQ/TrF v6NtcUhIJ1LgkL1Jsog0JAtrQkyKQGaOwLV0TYeCMTfhgUH8NMBAmoBvaiwJe0C/5uPT aazQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q1TXhCaO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ca18-20020a056a00419200b0068be1f7db53si6273684pfb.190.2023.09.23.09.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 09:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q1TXhCaO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 16A30807DEFA; Sat, 23 Sep 2023 09:26:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbjIWQ0w (ORCPT + 99 others); Sat, 23 Sep 2023 12:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbjIWQ0v (ORCPT ); Sat, 23 Sep 2023 12:26:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6EE3D3; Sat, 23 Sep 2023 09:26:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE71FC433C7; Sat, 23 Sep 2023 16:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695486404; bh=2piJOAc4UtCWCg8jsg4cD2ZIAtKbobPaZdza3lM1trU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q1TXhCaOUKwD4i9ywBsaA7fqhllTiUUEop2bqUBzfEeLiBK0GMJal6TZCH02gcByL 753jvJ06wYTsHa9bNjwSyI/D53kLiYdlB1AiITQEZl13j1+ufZspu8eHeVKiSfnDPa Xnzc94p2Es7bJABHatU5GnvCNtXzBwLW/ClIG+R90OCKZCTnz4sBwhPKehiv0ITJJM +UjHKGlf0w5d8TT9nGbQtF1BeBR/tDz6eSth+IHkKyRVTlF1gKubvNuOjqYZN8sC6v yInZcSWBoyftCQIH5y4EX0l+ogMUchapNByEIoCoBWaItl9SpqS6bxW8Fm8jrgT5Hv hjgDbZyqE8rAA== Date: Sat, 23 Sep 2023 19:25:47 +0300 From: Mike Rapoport To: Song Liu Cc: linux-kernel@vger.kernel.org, Andrew Morton , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , 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 Subject: Re: [PATCH v3 09/13] powerpc: extend execmem_params for kprobes allocations Message-ID: <20230923162547.GN3303@kernel.org> References: <20230918072955.2507221-1-rppt@kernel.org> <20230918072955.2507221-10-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sat, 23 Sep 2023 09:26:56 -0700 (PDT) X-Spam-Level: ** On Thu, Sep 21, 2023 at 03:30:46PM -0700, Song Liu wrote: > On Mon, Sep 18, 2023 at 12:31 AM Mike Rapoport wrote: > > > [...] > > @@ -135,5 +138,13 @@ struct execmem_params __init *execmem_arch_params(void) > > > > range->pgprot = prot; > > > > + execmem_params.ranges[EXECMEM_KPROBES].start = VMALLOC_START; > > + execmem_params.ranges[EXECMEM_KPROBES].start = VMALLOC_END; > > .end = VMALLOC_END. Thanks, this should have been execmem_params.ranges[EXECMEM_KPROBES].start = range->start; execmem_params.ranges[EXECMEM_KPROBES].end = range->end; where range points to the same range as EXECMEM_MODULE_TEXT. > Thanks, > Song > > > + > > + if (strict_module_rwx_enabled()) > > + execmem_params.ranges[EXECMEM_KPROBES].pgprot = PAGE_KERNEL_ROX; > > + else > > + execmem_params.ranges[EXECMEM_KPROBES].pgprot = PAGE_KERNEL_EXEC; > > + > > return &execmem_params; > > } > > -- > > 2.39.2 > > > > -- Sincerely yours, Mike.