Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp61936lqh; Mon, 6 May 2024 11:15:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWVM9tyvXx9NbVtLNq1y7gOMDhd4Ehwrs72+nsq07oaT/lolf1+0H5BVPgfqelUeSlJ9+QnWcmWJe5uVlpbPuBBsuORN+AfzbAzteowg== X-Google-Smtp-Source: AGHT+IE7TK1UV8tAxqb+CHOszEZIutyYOiA5H0qHtodNFT22YVrErNmcCVA6RLMJk3pBv03nymwb X-Received: by 2002:a05:6871:7890:b0:23d:5caa:cefc with SMTP id oz16-20020a056871789000b0023d5caacefcmr13751839oac.12.1715019329105; Mon, 06 May 2024 11:15:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715019329; cv=pass; d=google.com; s=arc-20160816; b=Nw06JdLvxQ3g47B+phu1LhVZhyDIu1EA3BsktZ61pqvkTv48FXtoaYkxFfM5xpr2Gm Jv4EcbTyNZTvVl4rX0fPnsHjemrDWRdyElfc+agcx+7TvrRp2VUjHDFZ9fHDljfnHKAL qHOAayoadJWTXkh0OpfXDwswxcAHXYPQ/hnm0WkH4Ln6ntzx6dx5Mo7/xz5ivsAiulPl X2i33MqyTQWiiEigH2s2kdefOlf0yNFZqd7LzXTknT8LV4DKQ+Grtvi9Tai4FhEBKKTX mTPIzRDOy3pmY0qNv6d3lOBL5lB4szBj+75i4FoBApHwXygG40clWAosJRX2pvZcjyb/ QC8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=6OxKPekNSG+ixjRpYZOUp115EykwUOQy4Dl8mdK1Jmc=; fh=i7ask+9a9iD6cQOMVYEZ9JbzJxzsgol/ow2k2T0GpvU=; b=fvYEpb2u0rGlG16+V+HwLru3M7ABtwwFK9eSo0OIx3vhcEfPuJaOgy9ajvzSF+U0X3 AQjCKD8AnqMsWsYIsGBuzHQAg/k+gQw25F92qoQYNp+4HoCDtesn8Rh108KWpmkwgLsd BJRd0JWZHGh5MNC8kNO1zHpb2J/OYQvwgJ5q5XfphTcsMBZuVynEEMnCQeiaL5nAGtuQ or9HrZmulWJO0mxgSU0jGUnoRRZ/ZxJiOl8MH7slg4bjuFHgM1QFIC6i0lidE8RR9+Fh +CZzxveotMxkfloPtk+D8hsvcAwI1nKFNoY+ygK1GkhkLcbWV9L6ArJIUmnAliFiXoPN 8xTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-170281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170281-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m15-20020a05622a054f00b00437794a297fsi9745659qtx.599.2024.05.06.11.15.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 11:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-170281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170281-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CD6E71C22204 for ; Mon, 6 May 2024 18:15:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D754E158A2D; Mon, 6 May 2024 18:15:15 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2ED85156641; Mon, 6 May 2024 18:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715019315; cv=none; b=h3+ymjmW45lCp+GvN6GKcyrsNL5QsCBLiSeilSszSMDyvqIghA8HEoJ9GOLiN8K2EvjtvQQ+lHNjvOfEQfs+oLXpgOUvWQDHRBiGyUponEeg/ZkJwMPydJU8K5dd2BX+eYzb9ifvl5jERSbTlbh/myPpuYG+Si37qXkVv+IWKfA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715019315; c=relaxed/simple; bh=ZhH5iWadclZ9+WfXofPKpyaOZHjgm7/VzbgUngE0oP8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FanQkZg96UguXoIjJosomOTl3sHWhTjfV+Vg5/uElN9flOe52yatyN7YRdjzVCx/X6V51ZD/OWxeAoeLgbMJBBBkcqJxYGfcWGMMrYP9oLl5nrF7Wxhp7HCeClcibsg72o4+mj+DmAXslWlI3vrp/vi/0C1SLgy99q6lliPLErw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4789AC116B1; Mon, 6 May 2024 18:15:10 +0000 (UTC) Date: Mon, 6 May 2024 14:15:15 -0400 From: Steven Rostedt To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, Alexandre Ghiti , Andrew Morton , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Donald Dutile , Eric Chanudet , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Liviu Dudau , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Michael Ellerman , Nadav Amit , Palmer Dabbelt , Peter Zijlstra , Philippe =?UTF-8?B?TWF0aGlldS1EYXVkw6k=?= , Rick Edgecombe , Russell King , Sam Ravnborg , Song Liu , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arch@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 v8 06/17] mm: introduce execmem_alloc() and execmem_free() Message-ID: <20240506141515.10fb2a69@gandalf.local.home> In-Reply-To: <20240505142600.2322517-7-rppt@kernel.org> References: <20240505142600.2322517-1-rppt@kernel.org> <20240505142600.2322517-7-rppt@kernel.org> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 5 May 2024 17:25:49 +0300 Mike Rapoport wrote: > diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c > index 70139d9d2e01..c8ddb7abda7c 100644 > --- a/arch/x86/kernel/ftrace.c > +++ b/arch/x86/kernel/ftrace.c > @@ -25,6 +25,7 @@ > #include > #include > #include > +#include > > #include > > @@ -261,15 +262,14 @@ void arch_ftrace_update_code(int command) > #ifdef CONFIG_X86_64 > > #ifdef CONFIG_MODULES > -#include > /* Module allocation simplifies allocating memory for code */ > static inline void *alloc_tramp(unsigned long size) > { > - return module_alloc(size); > + return execmem_alloc(EXECMEM_FTRACE, size); > } > static inline void tramp_free(void *tramp) > { > - module_memfree(tramp); > + execmem_free(tramp); > } > #else > /* Trampolines can only be created if modules are supported */ > diff --git a/arch/x86/kernel/kprobes/core.c b/arch/x86/kernel/kprobes/core.c Acked-by: Steven Rostedt (Google) -- Steve