Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries

2025-04-21 Thread Madhavan Srinivasan
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

Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries

2025-03-25 Thread Madhavan Srinivasan
On 3/26/25 6:46 AM, Adam Williamson wrote: > On Thu, 2025-02-13 at 22:29 +0530, Naveen N Rao wrote: >> On Wed, Feb 05, 2025 at 12:18:21AM +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

Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries

2025-03-25 Thread Adam Williamson
On Thu, 2025-02-13 at 22:29 +0530, Naveen N Rao wrote: > On Wed, Feb 05, 2025 at 12:18:21AM +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), other

Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries

2025-02-13 Thread Naveen N Rao
On Wed, Feb 05, 2025 at 12:18:21AM +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