Re: [PATCH tip/master v2] kprobes: extable: Identify kprobes' insn-slots as kernel text area

From: kbuild test robot
Date: Mon Dec 26 2016 - 12:47:22 EST


Hi Masami,

[auto build test ERROR on tip/master]

url: https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/kprobes-extable-Identify-kprobes-insn-slots-as-kernel-text-area/20161226-233830
config: sh-r7785rp_defconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh

All errors (new ones prefixed by >>):

kernel/built-in.o: In function `init_kernel_text':
>> kernel/extable.c:64: undefined reference to `__is_insn_slot_addr'
>> kernel/extable.c:64: undefined reference to `kprobe_insn_slots'
kernel/built-in.o: In function `kernel_text_address':
kernel/extable.c:134: undefined reference to `__is_insn_slot_addr'
kernel/extable.c:134: undefined reference to `kprobe_insn_slots'

vim +64 kernel/extable.c

^1da177e Linus Torvalds 2005-04-16 58 e = search_module_extables(addr);
^1da177e Linus Torvalds 2005-04-16 59 return e;
^1da177e Linus Torvalds 2005-04-16 60 }
^1da177e Linus Torvalds 2005-04-16 61
4a44bac1 Ingo Molnar 2009-03-19 62 static inline int init_kernel_text(unsigned long addr)
4a44bac1 Ingo Molnar 2009-03-19 63 {
4a44bac1 Ingo Molnar 2009-03-19 @64 if (addr >= (unsigned long)_sinittext &&
5ecbe3c3 Helge Deller 2013-11-28 65 addr < (unsigned long)_einittext)
4a44bac1 Ingo Molnar 2009-03-19 66 return 1;
4a44bac1 Ingo Molnar 2009-03-19 67 return 0;

:::::: The code at line 64 was first introduced by commit
:::::: 4a44bac1f98223ed77e47bf3b42fcfd10cddd85f symbols, stacktrace: look up init symbols after module symbols

:::::: TO: Ingo Molnar <mingo@xxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip