tree:
https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git
kprobes/kretprobe-stackfix-v4
head: d7b4ac02b00f47d23a03df484e9a99d255f66082
commit: f0701abd896c12bfef69e7f6684572080d9b1e07 [1/12] ia64: kprobes: Fix to pass correct
trampoline address to the handler
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git/commit...
git remote add mhiramat
https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git
git fetch --no-tags mhiramat kprobes/kretprobe-stackfix-v4
git checkout f0701abd896c12bfef69e7f6684572080d9b1e07
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
arch/ia64/kernel/kprobes.c: In function 'get_kprobe_inst':
arch/ia64/kernel/kprobes.c:325:15: warning: variable 'template' set but not
used [-Wunused-but-set-variable]
325 | unsigned int template;
| ^~~~~~~~
arch/ia64/kernel/kprobes.c: At top level:
arch/ia64/kernel/kprobes.c:399:15: warning: no previous prototype for
'trampoline_probe_handler' [-Wmissing-prototypes]
399 | int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/ia64/kernel/kprobes.c: In function 'arch_init_kprobes':
> arch/ia64/kernel/kprobes.c:922:3: error: implicit declaration of
function 'dereference_function_description'; did you mean
'dereference_function_descriptor'? [-Werror=implicit-function-declaration]
922 | dereference_function_description(kretprobe_trampoline);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dereference_function_descriptor
> arch/ia64/kernel/kprobes.c:921:20: warning: assignment to
'kprobe_opcode_t *' {aka 'struct kprobe_opcode *'} from 'int'
makes pointer from integer without a cast [-Wint-conversion]
921 |
trampoline_p.addr =
| ^
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS &&
STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390
&& !MICROBLAZE && !ARM && !ARC && !X86
vim +922 arch/ia64/kernel/kprobes.c
918
919 int __init arch_init_kprobes(void)
920 {
921 trampoline_p.addr =
922 dereference_function_description(kretprobe_trampoline);
923 return
register_kprobe(&trampoline_p);
924 }
925
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org