[PATCH v2 0/2] arm64: modules: Reject loading of malformed modules

Will Deacon will at kernel.org
Fri Nov 7 07:53:42 PST 2025


On Mon, 22 Sep 2025 13:04:25 +0000, Adrian Barnaś wrote:
> Here is version two of the patches I previously posted here:
> 
>   v1: https://lore.kernel.org/all/20250919122321.946462-1-abarnas@google.com/
> 
> Changes:
>   * Renamed the parameter `is_module` to `skip_dry_run` in scs_patch()
>   * Moved comments to module_finalize() and improve justification
>   * Instead of rejecting all modules with callback, reject those with cb
>     pointing outside core kernel text
>   * Replace -EPERM to -ENOEXEC when rejecting modules with incorrect cb
>   * Fix missing return in apply_alternatives_module() placeholder
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/2] arm64: Fail module loading if dynamic SCS patching fails
      https://git.kernel.org/arm64/c/6d4a0fbd34a4
[2/2] arm64: Reject modules with internal alternative callbacks
      https://git.kernel.org/arm64/c/8e8ae788964a

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list