lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <174516637905.525631.8856999917576384417.b4-ty@linux.ibm.com>
Date: Mon, 21 Apr 2025 15:11:05 +0530
From: Madhavan Srinivasan <maddy@...ux.ibm.com>
To: linuxppc-dev@...ts.ozlabs.org, Anthony Iliopoulos <ailiop@...e.com>
Cc: linux-kernel@...r.kernel.org, Naveen N Rao <naveen@...nel.org>
Subject: Re: [PATCH] powerpc64/ftrace: fix module loading without patchable function entries

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ