Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 04, 2024 at 01:23:55PM -0700, Song Liu wrote:
> Hi Josh,
> 
> Thanks for the fix! The gcc kernel now compiles.
> 
> I am now testing with the attached config file (where I disabled
> CONFIG_DEBUG_INFO_BTF), with the attached patch.

Probably a good idea to disable BTF as I think it's causing some
confusion.

> The build was successful:
> 
> $ ./scripts/livepatch/klp-build 0001-test-klp.patch
> - klp-build: building original kernel
> - klp-build: building patched kernel
> - klp-build: diffing objects
> vmlinux.o: changed: bpf_map_mmap
> - klp-build: building patch module
> - klp-build: success
> 
> But I am not able to load it:
> # kpatch load livepatch.ko
> loading patch module: livepatch.ko
> insmod: ERROR: could not insert module livepatch.ko: Invalid parameters
> kpatch: failed to load module livepatch.ko
> # dmesg
> ...
> [ 7285.260195] livepatch: nothing to patch!
> ...

Weird, I'll try to recreate with your config (without BTF for now).

-- 
Josh




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux