diff options
| author | Adrian Barnaś <abarnas@google.com> | 2025-09-22 13:04:27 +0000 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2025-11-07 15:00:14 +0000 |
| commit | 8e8ae788964aa2573b4335026db4068540fa6a86 (patch) | |
| tree | 1d731bb6c3c23c9ebb5a95eeef2624fe1d0276de /rust/kernel/alloc/vec_ext.rs | |
| parent | 6d4a0fbd34a40c9f877b136de874dc3498031309 (diff) | |
arm64: Reject modules with internal alternative callbacks
During module loading, check if a callback function used by the
alternatives specified in the '.altinstruction' ELF section (if present)
is located in core kernel .text. If not fail module loading before
callback is called.
Reported-by: Fanqin Cui <cuifq1@chinatelecom.cn>
Closes: https://lore.kernel.org/all/20250807072700.348514-1-fanqincui@163.com/
Signed-off-by: Adrian Barnaś <abarnas@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
[will: Folded in 'noinstr' tweak from Mark]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/vec_ext.rs')
0 files changed, 0 insertions, 0 deletions
