From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7286506864217006851==" 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 06:28:33 +0800 Message-ID: <202201130629.IyZ9vaDV-lkp@intel.com> In-Reply-To: <164191326189.806991.3684466615191467367.stgit@devnote2> List-Id: --===============7286506864217006851== 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-allyesconfig (https://download.01.org/0day-ci/archive/20220113= /202201130629.IyZ9vaDV-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # 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 make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash arch/x86/ker= nel/ 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 'arc= h_rethook_trampoline_callback' [-Wmissing-prototypes] 14 | __used __visible void arch_rethook_trampoline_callback(struct pt= _regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/arch_rethook_trampoline_callback +14 arch/x86/kernel/rethook.c 3727c0ee2be25c Masami Hiramatsu 2022-01-12 10 = 3727c0ee2be25c Masami Hiramatsu 2022-01-12 11 /* 3727c0ee2be25c Masami Hiramatsu 2022-01-12 12 * Called from arch_rethook= _trampoline 3727c0ee2be25c Masami Hiramatsu 2022-01-12 13 */ 3727c0ee2be25c Masami Hiramatsu 2022-01-12 @14 __used __visible void arch_= rethook_trampoline_callback(struct pt_regs *regs) 3727c0ee2be25c Masami Hiramatsu 2022-01-12 15 { 3727c0ee2be25c Masami Hiramatsu 2022-01-12 16 unsigned long *frame_point= er; 3727c0ee2be25c Masami Hiramatsu 2022-01-12 17 = 3727c0ee2be25c Masami Hiramatsu 2022-01-12 18 /* fixup registers */ 3727c0ee2be25c Masami Hiramatsu 2022-01-12 19 regs->cs =3D __KERNEL_CS; 3727c0ee2be25c Masami Hiramatsu 2022-01-12 20 #ifdef CONFIG_X86_32 3727c0ee2be25c Masami Hiramatsu 2022-01-12 21 regs->gs =3D 0; 3727c0ee2be25c Masami Hiramatsu 2022-01-12 22 #endif 3727c0ee2be25c Masami Hiramatsu 2022-01-12 23 regs->ip =3D (unsigned lon= g)&arch_rethook_trampoline; 3727c0ee2be25c Masami Hiramatsu 2022-01-12 24 regs->orig_ax =3D ~0UL; 3727c0ee2be25c Masami Hiramatsu 2022-01-12 25 regs->sp +=3D sizeof(long); 3727c0ee2be25c Masami Hiramatsu 2022-01-12 26 frame_pointer =3D ®s->s= p + 1; 3727c0ee2be25c Masami Hiramatsu 2022-01-12 27 = 3727c0ee2be25c Masami Hiramatsu 2022-01-12 28 /* 3727c0ee2be25c Masami Hiramatsu 2022-01-12 29 * The return address at '= frame_pointer' is recovered by the 3727c0ee2be25c Masami Hiramatsu 2022-01-12 30 * arch_rethook_fixup_retu= rn() which called from this 3727c0ee2be25c Masami Hiramatsu 2022-01-12 31 * rethook_trampoline_hand= ler(). 3727c0ee2be25c Masami Hiramatsu 2022-01-12 32 */ 3727c0ee2be25c Masami Hiramatsu 2022-01-12 33 rethook_trampoline_handler= (regs, (unsigned long)frame_pointer); 3727c0ee2be25c Masami Hiramatsu 2022-01-12 34 = 3727c0ee2be25c Masami Hiramatsu 2022-01-12 35 /* 3727c0ee2be25c Masami Hiramatsu 2022-01-12 36 * Copy FLAGS to 'pt_regs:= :sp' so that arch_rethook_trapmoline() 3727c0ee2be25c Masami Hiramatsu 2022-01-12 37 * can do RET right after = POPF. 3727c0ee2be25c Masami Hiramatsu 2022-01-12 38 */ 3727c0ee2be25c Masami Hiramatsu 2022-01-12 39 regs->sp =3D regs->flags; 3727c0ee2be25c Masami Hiramatsu 2022-01-12 40 } 3727c0ee2be25c Masami Hiramatsu 2022-01-12 41 NOKPROBE_SYMBOL(arch_rethoo= k_trampoline_callback); 3727c0ee2be25c 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 --===============7286506864217006851==--