lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPhsuW6gy-OzjYH2u7gPceuphybP8Q43J9YjeUpkWTh5DBFRSQ@mail.gmail.com>
Date: Wed, 4 Sep 2024 13:23:55 -0700
From: Song Liu <song@...nel.org>
To: Josh Poimboeuf <jpoimboe@...nel.org>
Cc: live-patching@...r.kernel.org, linux-kernel@...r.kernel.org, 
	x86@...nel.org, Miroslav Benes <mbenes@...e.cz>, Petr Mladek <pmladek@...e.com>, 
	Joe Lawrence <joe.lawrence@...hat.com>, Jiri Kosina <jikos@...nel.org>, 
	Peter Zijlstra <peterz@...radead.org>, Marcos Paulo de Souza <mpdesouza@...e.com>
Subject: Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

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@...nel.org> 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,
> > >

Download attachment "gcc-v2.config" of type "application/octet-stream" (118193 bytes)

Download attachment "0001-test-klp.patch" of type "application/octet-stream" (672 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ