mirror of
https://github.com/dynup/kpatch
synced 2025-02-08 13:06:52 +00:00
kmod/core: fix dynrela writes for kernel 4.11+
Starting with kernel 4.11, CONFIG_DEBUG_SET_MODULE_RONX has been replaced with CONFIG_ARCH_HAS_SET_MEMORY. This fixes the following error: kpatch: write to 0xffffffffc0d7650e failed for symbol copy_mnt_ns Fixes #721.
This commit is contained in:
parent
4960f09fe2
commit
a4dec316f3
@ -676,7 +676,7 @@ static int kpatch_write_relocations(struct kpatch_module *kpmod,
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_SET_MODULE_RONX
|
||||
#if defined(CONFIG_DEBUG_SET_MODULE_RONX) || defined(CONFIG_ARCH_HAS_SET_MEMORY)
|
||||
#if (( LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) ) || \
|
||||
( LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) && \
|
||||
UTS_UBUNTU_RELEASE_ABI >= 7 ) \
|
||||
|
Loading…
Reference in New Issue
Block a user