mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
When a module function references a vmlinux symbol which is exported with EXPORT_SYMBOL_FOR_MODULES(), a patch to that function needs to use a klp reloc. Currently, livepatch fails to load such a module: livepatch: invalid access to vmlinux symbol 'get_task_policy' from module-specific livepatch relocation section livepatch: failed to initialize patch 'livepatch_test' for module 'testmod' (-22) livepatch: patch 'livepatch_test' failed for module 'testmod', refusing to load module 'testmod' klp diff puts all klp relocs in __klp_relocs.<patched object>, so post-link names the section .klp.rela.<patched object>.<secname>, which the kernel rejects for vmlinux symbols. Commit |
History
|
|
|---|---|---|
| .. | ||
| arch.h | ||
| builtin.h | ||
| cfi.h | ||
| check.h | ||
| checksum.h | ||
| checksum_types.h | ||
| disas.h | ||
| elf.h | ||
| endianness.h | ||
| klp.h | ||
| objtool.h | ||
| orc.h | ||
| special.h | ||
| trace.h | ||
| util.h | ||
| warn.h | ||