[kpatch] kpatch run fail on Fedora 20
Josh Poimboeuf
jpoimboe at redhat.com
Mon Mar 3 02:24:44 UTC 2014
On Sat, Mar 01, 2014 at 04:28:15PM +0800, Junliang Li wrote:
> Hi, all
>
> I got a copy of kpatch from github and compile it on my VM which is
> running Fedora 20. Everything is OK until I build a kpatch module. From
> error logs I got some messages like :
>
> "/usr/local/libexec/kpatch/create-diff-object:
> kpatch_create_symbol_table: 372: local symbol starts at section offset
> 10, expected 0"
>
> my test patch is:
>
> --- linux-3.13.4-200.fc20.x86_64.orig/drivers/scsi/constants.c
> 2014-01-20 10:40:07.000000000 +0800
> +++ linux-3.13.4-200.fc20.x86_64.work/drivers/scsi/constants.c
> 2014-03-01 15:52:12.913000000 +0800
> @@ -1546,6 +1546,7 @@
> {
> struct scsi_sense_hdr sshdr;
>
> + printk(KERN_INFO "\nkpatch code\n");
> scmd_printk(KERN_INFO, cmd, " ");
> scsi_decode_sense_buffer(cmd->sense_buffer,
> SCSI_SENSE_BUFFERSIZE,
> &sshdr);
>
> so, should I try another kernel or create a new patch file ?
Hi Junliang,
Thanks for trying it out! This looks like a bug in the kpatch build
code. I opened https://github.com/dynup/kpatch/issues/40 to track it.
I think kpatch is getting confused by the fact that constants.c uses
EXPORT_SYMBOL.
--
Josh
More information about the kpatch
mailing list