On Thursday 30 March 2017 03:34 PM, sam wrote:
O Thu, Mar 30, 2017 at 05:57:10PM +0800, Yan Kun wrote:
---------- Forwarded message ----------
From: Kamalesh Babulal <[email protected]>
Date: Thu, Mar 30, 2017 at 4:46 PM
Subject: Re: [kpatch] kpatch: erro:find_local_syms
To: Yan Kun <[email protected]>, [email protected]


On Thursday 30 March 2017 12:38 PM, Yan Kun wrote:

root@samdev:/home/sam/fork/linux_ori# ./kpatch_run.sh
./security/integrity/evm/evm_main.c  ../evm_main.c 4.patch
WARNING: Skipping gcc version matching check (not recommended)
Using source directory at /home/sam/fork/linux_ori
Testing patch file
checking file security/integrity/evm/evm_main.c
Reading special section data
Building original kernel
Building patched kernel
Extracting new and modified ELF sections
/usr/local/libexec/kpatch/create-diff-object: ERROR: evm_main.o:
find_local_syms: 113: find_local_syms for evm_main.c: found_none
ERROR: 1 error(s) encountered. Check /root/.kpatch/build.log for more
details.


Can you share the patch your using to recreate the issue.


--
cheers,
Kamalesh.

Hi,Kamalesh

Here is the patch,
     --- ./security/integrity/evm/evm_main.c 2017-03-30 14:52:34.326720468
     +0800
     +++ ../evm_main.c       2017-03-30 14:53:25.454720071 +0800
     @@ -231,7 +231,6 @@
     void *xattr_value, size_t
     xattr_value_len,
     struct
     integrity_iint_cache
     *iint)
{
    -       evm_initialized=0;
    if (!evm_initialized || !evm_protected_xattr(xattr_name))
        return INTEGRITY_UNKNOWN;

}


It builds successfully on ppc64le. Does it takes more than one run to reproduce this issue ?

--
cheers,
Kamalesh.

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

Reply via email to