On 07/25/2018 08:29 AM, Juerg Haefliger wrote:
> On Tue, Jul 24, 2018 at 10:39 AM, Lennert Buytenhek
> <[email protected]> wrote:
>> Hi!
>>
>> I need the patch below to make kpatch-build work on Ubuntu 18.04.  On
>> this distro, the linux-image package is built from the linux-signed
>> source package, which just seems to be a wrapper and does not actually
>> contain the kernel source code.
>>
>> Also, on top of the instructions on the github page, I need to 'apt
>> install elfutils' for eu-readelf to be there, but with those changes,
>> it seems I can generate a live patch:
>>
>>         root@build:~/kpatch/kpatch-build# ./kpatch-build 
>> ~/kvm-fix-lapic-timer-drift-when-guest-uses-periodic-mode.patch
>>         Using cache at /root/.kpatch/src
>>         Testing patch file(s)
>>         Reading special section data
>>         Building original kernel
>>         Building patched kernel
>>         Extracting new and modified ELF sections
>>         lapic.o: new function: advance_periodic_target_expiration
>>         lapic.o: changed function: apic_timer_fn
>>         lapic.o: changed function: kvm_lapic_expired_hv_timer
>>         Patched objects: arch/x86/kvm/kvm.ko
>>         Building patch module: 
>> livepatch-kvm-fix-lapic-timer-drift-when-guest-u.ko
>>         SUCCESS
>>         root@build:~/kpatch/kpatch-build#
> 
> Note that upstream kpatch does not build an Ubuntu kernel correctly.
> kpatch-build uses the kernel's Makefile but an Ubuntu kernel is built
> using specific Debian rules. I've started to fix this but then got
> side-tracked by Meltdown/Spectre which still keeps me busy,
> unfortunately. If your build host runs Ubuntu, you should be able to
> use the kpatch-build package from the Ubuntu repo. And if that doesn't
> work please file a bug at
> https://launchpad.net/ubuntu/+source/kpatch/+bugs.
> 
> ...Juerg
> 

Hi Juerg,

I know of at least one possible issue that results from the Makefile
differences:

  https://github.com/dynup/kpatch/issues/713

but like you, don't have the time to fully investigate Ubuntu-specific
changes that haven't been ported back to upstream kpatch :(

Any work in this space would be appreciated!

Thanks,

-- Joe

_______________________________________________
kpatch mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kpatch

Reply via email to