Content-Type: multipart/mixed; boundary="===============8118113639013329137==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH 4/6] fprobe: Add exit_handler support Date: Thu, 13 Jan 2022 10:29:38 +0800 Message-ID: <202201131009.oKKmEVVq-lkp@intel.com> In-Reply-To: <164191326189.806991.3684466615191467367.stgit@devnote2> List-Id: --===============8118113639013329137== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Masami, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on rostedt-trace/for-next] [also build test WARNING on bpf-next/master bpf/master linus/master v5.16 n= ext-20220112] [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] url: https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/fprobe-Ad= d-ftrace-based-probe-APIs/20220112-000050 base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace= .git for-next config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220113= /202201131009.oKKmEVVq-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2= 913a43a200f5a6544d424cdc37b771028b) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/c0e0471b58c3c9122bbff7523= f97a363558284eb git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Masami-Hiramatsu/fprobe-Add-ftrace= -based-probe-APIs/20220112-000050 git checkout c0e0471b58c3c9122bbff7523f97a363558284eb # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash arch/x86/kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/kernel/rethook.c:14:23: warning: no previous prototype for func= tion 'arch_rethook_trampoline_callback' [-Wmissing-prototypes] __used __visible void arch_rethook_trampoline_callback(struct pt_regs *r= egs) ^ arch/x86/kernel/rethook.c:14:18: note: declare 'static' if the function = is not intended to be used outside of this translation unit __used __visible void arch_rethook_trampoline_callback(struct pt_regs *r= egs) ^ static = 1 warning generated. vim +/arch_rethook_trampoline_callback +14 arch/x86/kernel/rethook.c 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 10 = 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 11 /* 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 12 * Called from arch_rethoo= k_trampoline 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 13 */ 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 @14 __used __visible void arch= _rethook_trampoline_callback(struct pt_regs *regs) 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 15 { 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 16 unsigned long *frame_poin= ter; 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 17 = 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 18 /* fixup registers */ 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 19 regs->cs =3D __KERNEL_CS; 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 20 #ifdef CONFIG_X86_32 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 21 regs->gs =3D 0; 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 22 #endif 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 23 regs->ip =3D (unsigned lo= ng)&arch_rethook_trampoline; 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 24 regs->orig_ax =3D ~0UL; 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 25 regs->sp +=3D sizeof(long= ); 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 26 frame_pointer =3D ®s->= sp + 1; 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 27 = 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 28 /* 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 29 * The return address at = 'frame_pointer' is recovered by the 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 30 * arch_rethook_fixup_ret= urn() which called from this 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 31 * rethook_trampoline_han= dler(). 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 32 */ 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 33 rethook_trampoline_handle= r(regs, (unsigned long)frame_pointer); 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 34 = 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 35 /* 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 36 * Copy FLAGS to 'pt_regs= ::sp' so that arch_rethook_trapmoline() 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 37 * can do RET right after= POPF. 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 38 */ 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 39 regs->sp =3D regs->flags; 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 40 } 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 41 NOKPROBE_SYMBOL(arch_retho= ok_trampoline_callback); 3727c0ee2be25cf Masami Hiramatsu 2022-01-12 42 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8118113639013329137==--