dynup / kpatch

kpatch - live kernel patching
GNU General Public License v2.0
1.49k stars 305 forks source link

testing: gcc-static-local-var-2.patch fails to build on Ubuntu 16 #634

Closed joe-lawrence closed 1 year ago

joe-lawrence commented 7 years ago

(After working around the KERNEL_VERSION(4, 5, 0) checks in kmod/core/core.c and kmod/patch/livepatch-patch-hook.c to handle a backport of upstream 7523e4dc5057e "module: use a structure to encapsulate layout".)

OS: Ubuntu 16.04.1 kernel version: 4.4.0-53-generic gcc version: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

build: gcc-static-local-var-2
Using cache at /home/vagrant/.kpatch/src
Testing patch file
checking file mm/mmap.c
Reading special section data
Building original kernel
Building patched kernel
Extracting new and modified ELF sections
ERROR: mmap.o: 1 unsupported section change(s)
mmap.o: changed function: __split_vma.isra.31
mmap.o: changed function: copy_vma
mmap.o: changed function: SyS_remap_file_pages
mmap.o: changed function: mmap_region
mmap.o: data section .data..read_mostly selected for inclusion
/home/vagrant/kpatch.joe/kpatch-build/create-diff-object: unreconcilable difference
ERROR: 1 error(s) encountered. Check /home/vagrant/.kpatch/build.log for more details.
ERROR: gcc-static-local-var-2: build failed
joe-lawrence commented 1 year ago

This issue is ancient. Closing.