[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202405190214.M93ZmZJb-lkp@intel.com>
Date: Thu, 23 May 2024 15:21:12 +0800
From: kernel test robot <yujie.liu@...el.com>
To: Lukas Hruska <lhruska@...e.cz>, <pmladek@...e.com>, <mbenes@...e.cz>,
<jpoimboe@...nel.org>
CC: <oe-kbuild-all@...ts.linux.dev>, <joe.lawrence@...hat.com>,
<live-patching@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-kbuild@...r.kernel.org>, <mpdesouza@...e.com>, <lhruska@...e.cz>,
<llvm@...ts.linux.dev>
Subject: Re: [PATCH v2 6/6] selftests: livepatch: Test livepatching function
using an external symbol
Hi Lukas,
kernel test robot noticed the following build errors:
[auto build test ERROR on masahiroy-kbuild/fixes]
[also build test ERROR on shuah-kselftest/next shuah-kselftest/fixes linus/master v6.9]
[cannot apply to masahiroy-kbuild/for-next next-20240517]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Lukas-Hruska/livepatch-Add-klp-convert-tool/20240516-223103
base: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git fixes
patch link: https://lore.kernel.org/r/20240516133009.20224-7-lhruska%40suse.cz
patch subject: [PATCH v2 6/6] selftests: livepatch: Test livepatching function using an external symbol
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce:
$ clang --version
clang version 18.1.5 (git://gitmirror/llvm_project 617a15a9eac96088ae5e9134248d8236e34b91b1)
Target: x86_64-unknown-linux-gnu
$ cd linux
# download the attached config file and save it as .config
$ make ARCH=x86_64 LLVM=1 -j$(nproc) olddefconfig
$ make ARCH=x86_64 LLVM=1 -j$(nproc)
$ export KDIR=$PWD
$ make ARCH=x86_64 LLVM=1 -j$(nproc) -C tools/testing/selftests/livepatch
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <yujie.liu@...el.com>
| Closes: https://lore.kernel.org/r/202405190214.M93ZmZJb-lkp@intel.com/
All errors (new ones prefixed by >>, old ones prefixed by <<):
make: Entering directory 'tools/testing/selftests/livepatch'
make -C test_modules
make[1]: Entering directory 'tools/testing/selftests/livepatch/test_modules'
make -C /root/linux modules KBUILD_EXTMOD=tools/testing/selftests/livepatch/test_modules
make[2]: Entering directory '/root/linux'
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_atomic_replace.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_busy.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_demo.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_demo2.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_mod.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_extern.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_extern_hello.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_livepatch.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_state.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_state2.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_state3.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_shadow_vars.o
CC [M] tools/testing/selftests/livepatch/test_modules/test_klp_syscall.o
MODPOST tools/testing/selftests/livepatch/test_modules/Module.symvers
>> ERROR: modpost: "".klp.sym.rela.test_klp_extern_hello.test_klp_extern_hello.hello_msg,0"" [tools/testing/selftests/livepatch/test_modules/test_klp_extern.ko] undefined!
make[4]: *** [scripts/Makefile.modpost:146: tools/testing/selftests/livepatch/test_modules/Module.symvers] Error 1
make[3]: *** [Makefile:1873: modpost] Error 2
make[2]: *** [Makefile:240: __sub-make] Error 2
make[2]: Leaving directory 'linux'
make[1]: *** [Makefile:21: modules] Error 2
make[1]: Leaving directory 'tools/testing/selftests/livepatch/test_modules'
make: *** [../lib.mk:107: gen_mods_dir] Error 2
make: Leaving directory 'tools/testing/selftests/livepatch'
FYI, this build error is captured when using clang compiler, while
there is no such error when using gcc, so this may be a
compiler specific issue.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
View attachment "config" of type "text/plain" (196444 bytes)
Powered by blists - more mailing lists