linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Song Liu <song@kernel.org>,
	bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
	live-patching@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, ast@kernel.org,
	daniel@iogearbox.net, andrii@kernel.org, rostedt@goodmis.org,
	andrey.grodzovsky@crowdstrike.com, mhiramat@kernel.org,
	kernel-team@meta.com, olsajiri@gmail.com,
	Song Liu <song@kernel.org>
Subject: Re: [PATCH v2 bpf 2/3] ftrace: bpf: Fix IPMODIFY + DIRECT in modify_ftrace_direct()
Date: Sun, 26 Oct 2025 17:53:43 +0800	[thread overview]
Message-ID: <202510261733.fSN9P6td-lkp@intel.com> (raw)
In-Reply-To: <20251024182901.3247573-3-song@kernel.org>

Hi Song,

kernel test robot noticed the following build errors:

[auto build test ERROR on bpf/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Song-Liu/ftrace-Fix-BPF-fexit-with-livepatch/20251025-023411
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link:    https://lore.kernel.org/r/20251024182901.3247573-3-song%40kernel.org
patch subject: [PATCH v2 bpf 2/3] ftrace: bpf: Fix IPMODIFY + DIRECT in modify_ftrace_direct()
config: sparc-randconfig-r132-20251026 (https://download.01.org/0day-ci/archive/20251026/202510261733.fSN9P6td-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251026/202510261733.fSN9P6td-lkp@intel.com/reproduce)

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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510261733.fSN9P6td-lkp@intel.com/

All errors (new ones prefixed by >>):

   kernel/bpf/trampoline.c: In function 'register_fentry':
>> kernel/bpf/trampoline.c:229:11: error: dereferencing pointer to incomplete type 'struct ftrace_ops'
      tr->fops->trampoline = 0;
              ^~


vim +229 kernel/bpf/trampoline.c

   207	
   208	/* first time registering */
   209	static int register_fentry(struct bpf_trampoline *tr, void *new_addr)
   210	{
   211		void *ip = tr->func.addr;
   212		unsigned long faddr;
   213		int ret;
   214	
   215		faddr = ftrace_location((unsigned long)ip);
   216		if (faddr) {
   217			if (!tr->fops)
   218				return -ENOTSUPP;
   219			tr->func.ftrace_managed = true;
   220		}
   221	
   222		if (tr->func.ftrace_managed) {
   223			ftrace_set_filter_ip(tr->fops, (unsigned long)ip, 0, 1);
   224			/*
   225			 * Clearing fops->trampoline and fops->NULL is
   226			 * needed by the "goto again" case in
   227			 * bpf_trampoline_update().
   228			 */
 > 229			tr->fops->trampoline = 0;
   230			tr->fops->func = NULL;
   231			ret = register_ftrace_direct(tr->fops, (long)new_addr);
   232		} else {
   233			ret = bpf_arch_text_poke(ip, BPF_MOD_CALL, NULL, new_addr);
   234		}
   235	
   236		return ret;
   237	}
   238	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-10-26  9:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-24 18:28 [PATCH v2 bpf 0/3] Fix ftrace for livepatch + BPF fexit programs Song Liu
2025-10-24 18:28 ` [PATCH v2 bpf 1/3] ftrace: Fix BPF fexit with livepatch Song Liu
2025-10-24 18:29 ` [PATCH v2 bpf 2/3] ftrace: bpf: Fix IPMODIFY + DIRECT in modify_ftrace_direct() Song Liu
2025-10-25  0:11   ` Steven Rostedt
2025-10-25  0:33     ` Song Liu
2025-10-26  9:53   ` kernel test robot [this message]
2025-10-24 18:29 ` [PATCH v2 bpf 3/3] selftests/bpf: Add tests for livepatch + bpf trampoline Song Liu
2025-10-24 20:47 ` [PATCH v2 bpf 0/3] Fix ftrace for livepatch + BPF fexit programs Song Liu
2025-10-26 20:27   ` Jiri Olsa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202510261733.fSN9P6td-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrey.grodzovsky@crowdstrike.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kernel-team@meta.com \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=live-patching@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=olsajiri@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=song@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).