From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org, Anthony Iliopoulos <ailiop@suse.com>
Cc: linux-kernel@vger.kernel.org, Naveen N Rao <naveen@kernel.org>
Subject: Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries
Date: Mon, 21 Apr 2025 15:11:05 +0530 [thread overview]
Message-ID: <174516637905.525631.8856999917576384417.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <20250204231821.39140-1-ailiop@suse.com>
On Wed, 05 Feb 2025 00:18:21 +0100, Anthony Iliopoulos wrote:
> get_stubs_size assumes that there must always be at least one patchable
> function entry, which is not always the case (modules that export data
> but no code), otherwise it returns -ENOEXEC and thus the section header
> sh_size is set to that value. During module_memory_alloc() the size is
> passed to execmem_alloc() after being page-aligned and thus set to zero
> which will cause it to fail the allocation (and thus module loading) as
> __vmalloc_node_range() checks for zero-sized allocs and returns null:
>
> [...]
Applied to powerpc/fixes.
[1/1] powerpc64/ftrace: fix module loading without patchable function entries
https://git.kernel.org/powerpc/c/534f5a8ba27863141e29766467a3e1f61bcb47ac
Thanks
prev parent reply other threads:[~2025-04-21 9:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 23:18 Anthony Iliopoulos
2025-02-13 16:59 ` Naveen N Rao
2025-03-26 1:16 ` Adam Williamson
2025-03-26 1:44 ` Madhavan Srinivasan
2025-04-21 9:41 ` Madhavan Srinivasan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=174516637905.525631.8856999917576384417.b4-ty@linux.ibm.com \
--to=maddy@linux.ibm.com \
--cc=ailiop@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=naveen@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®