mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02: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 |
||
|---|---|---|
| .. | ||
| arch.h | ||
| builtin.h | ||
| cfi.h | ||
| check.h | ||
| checksum_types.h | ||
| checksum.h | ||
| disas.h | ||
| elf.h | ||
| endianness.h | ||
| klp.h | ||
| objtool.h | ||
| orc.h | ||
| special.h | ||
| trace.h | ||
| util.h | ||
| warn.h | ||