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

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

 



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.

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!
...

I haven't got a chance to dig into this error.

Thanks,
Song


On Wed, Sep 4, 2024 at 12:09 AM Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> On Tue, Sep 03, 2024 at 11:37:39PM -0700, Josh Poimboeuf wrote:
> > On Tue, Sep 03, 2024 at 10:26:02PM -0700, Song Liu wrote:
> > > Hi Josh,
> > >

Attachment: gcc-v2.config
Description: Binary data

Attachment: 0001-test-klp.patch
Description: Binary data


[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