From: kernel test robot <lkp@intel.com>
To: Sasha Levin <sashal@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC] btf: split core BTF parsing out of BPF subsystem into kernel/btf/
Date: Sun, 29 Mar 2026 02:21:47 +0800 [thread overview]
Message-ID: <202603290251.bXJOBeBs-lkp@intel.com> (raw)
In-Reply-To: <20260325011853.657295-1-sashal@kernel.org>
Hi Sasha,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on bpf-next/master]
[also build test WARNING on bpf/master akpm-mm/mm-nonmm-unstable linus/master v7.0-rc5]
[cannot apply to bpf-next/net next-20260327]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Sasha-Levin/btf-split-core-BTF-parsing-out-of-BPF-subsystem-into-kernel-btf/20260327-005818
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/20260325011853.657295-1-sashal%40kernel.org
patch subject: [RFC] btf: split core BTF parsing out of BPF subsystem into kernel/btf/
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20260329/202603290251.bXJOBeBs-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260329/202603290251.bXJOBeBs-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/202603290251.bXJOBeBs-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/bpf/core.c: In function 'bpf_prog_kallsyms_add':
kernel/bpf/core.c:589:54: warning: '%s' directive argument is null [-Wformat-truncation=]
589 | snprintf(sym, (size_t)(end - sym), "_%s", func_name);
| ^~
In file included from include/linux/uuid.h:11,
from include/linux/mod_devicetable.h:14,
from arch/parisc/include/asm/hardware.h:5,
from arch/parisc/include/asm/processor.h:18,
from arch/parisc/include/asm/spinlock.h:7,
from arch/parisc/include/asm/atomic.h:22,
from include/linux/atomic.h:7,
from include/linux/filter.h:8,
from kernel/bpf/core.c:21:
In function 'kbasename',
inlined from 'bpf_prog_get_file_line' at kernel/bpf/core.c:3352:11:
>> include/linux/string.h:381:28: warning: argument 1 null where non-null expected [-Wnonnull]
381 | const char *tail = strrchr(path, '/');
| ^~~~~~~~~~~~~~~~~~
include/linux/string.h: In function 'bpf_prog_get_file_line':
include/linux/string.h:183:15: note: in a call to function 'strrchr' declared 'nonnull'
183 | extern char * strrchr(const char *,int);
| ^~~~~~~
--
kernel/bpf/log.c: In function 'verbose_linfo':
>> kernel/bpf/log.c:423:17: warning: argument 1 null where non-null expected [-Wnonnull]
423 | fname = strrchr(s, '/');
| ^~~~~~~~~~~~~~~
In file included from include/linux/uuid.h:11,
from include/linux/mod_devicetable.h:14,
from arch/parisc/include/asm/hardware.h:5,
from arch/parisc/include/asm/processor.h:18,
from arch/parisc/include/asm/spinlock.h:7,
from arch/parisc/include/asm/atomic.h:22,
from include/linux/atomic.h:7,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:67,
from include/linux/kernel.h:23,
from kernel/bpf/log.c:7:
include/linux/string.h:183:15: note: in a call to function 'strrchr' declared 'nonnull'
183 | extern char * strrchr(const char *,int);
| ^~~~~~~
kernel/bpf/log.c: In function 'print_reg_state':
kernel/bpf/log.c:702:30: warning: '%s' directive argument is null [-Wformat-overflow=]
702 | verbose(env, "%s", btf_type_name(reg->btf, reg->btf_id));
| ^~~~
kernel/bpf/log.c:14:64: note: in definition of macro 'verbose'
14 | #define verbose(env, fmt, args...) bpf_verifier_log_write(env, fmt, ##args)
| ^~~
kernel/bpf/log.c:702:31: note: format string is defined here
702 | verbose(env, "%s", btf_type_name(reg->btf, reg->btf_id));
| ^~
--
In file included from include/asm-generic/bug.h:31,
from arch/parisc/include/asm/bug.h:97,
from include/linux/bug.h:5,
from include/linux/alloc_tag.h:8,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:11,
from kernel/bpf/bpf_struct_ops.c:4:
kernel/bpf/bpf_struct_ops.c: In function 'prepare_arg_info.constprop':
include/linux/kern_levels.h:5:25: warning: '%s' directive argument is null [-Wformat-overflow=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:564:9: note: in expansion of macro 'printk'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:564:16: note: in expansion of macro 'KERN_WARNING'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
kernel/bpf/bpf_struct_ops.c:210:17: note: in expansion of macro 'pr_warn'
210 | pr_warn("the number of arguments of the stub function %s does not match the number of arguments of the member %s of struct %s\n",
| ^~~~~~~
include/linux/kern_levels.h:5:25: warning: '%s' directive argument is null [-Wformat-overflow=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:564:9: note: in expansion of macro 'printk'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:564:16: note: in expansion of macro 'KERN_WARNING'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
kernel/bpf/bpf_struct_ops.c:191:17: note: in expansion of macro 'pr_warn'
191 | pr_warn("Cannot find the stub function name for the %s in struct %s\n",
| ^~~~~~~
In function 'is_module_member',
inlined from 'bpf_struct_ops_desc_init' at kernel/bpf/bpf_struct_ops.c:412:37:
>> kernel/bpf/bpf_struct_ops.c:321:17: warning: argument 1 null where non-null expected [-Wnonnull]
321 | return !strcmp(btf_name_by_offset(btf, t->name_off), "module");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/uuid.h:11,
from include/linux/mod_devicetable.h:14,
from arch/parisc/include/asm/hardware.h:5,
from arch/parisc/include/asm/processor.h:18,
from arch/parisc/include/asm/spinlock.h:7,
from arch/parisc/include/asm/atomic.h:22,
from include/linux/atomic.h:7,
from arch/parisc/include/asm/bitops.h:13,
from include/linux/bitops.h:67,
from include/linux/log2.h:12,
from include/asm-generic/div64.h:55,
from ./arch/parisc/include/generated/asm/div64.h:1,
from include/linux/math.h:6,
from include/linux/math64.h:6,
from include/linux/time64.h:5,
from include/linux/restart_block.h:9,
from include/linux/thread_info.h:14,
from include/asm-generic/preempt.h:5,
from ./arch/parisc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/alloc_tag.h:11:
include/linux/string.h: In function 'bpf_struct_ops_desc_init':
include/linux/string.h:161:12: note: in a call to function 'strcmp' declared 'nonnull'
161 | extern int strcmp(const char *,const char *);
| ^~~~~~
include/linux/kern_levels.h:5:25: warning: '%s' directive argument is null [-Wformat-overflow=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:564:9: note: in expansion of macro 'printk'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:564:16: note: in expansion of macro 'KERN_WARNING'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
kernel/bpf/bpf_struct_ops.c:406:25: note: in expansion of macro 'pr_warn'
406 | pr_warn("bit field member %s in struct %s is not supported\n",
| ^~~~~~~
include/linux/kern_levels.h:5:25: warning: '%s' directive argument is null [-Wformat-overflow=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:564:9: note: in expansion of macro 'printk'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:564:16: note: in expansion of macro 'KERN_WARNING'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
kernel/bpf/bpf_struct_ops.c:432:33: note: in expansion of macro 'pr_warn'
432 | pr_warn("func ptr %s in struct %s returns non-struct pointer, which is not supported\n",
| ^~~~~~~
include/linux/kern_levels.h:5:25: warning: '%s' directive argument is null [-Wformat-overflow=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:564:9: note: in expansion of macro 'printk'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:12:25: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:564:16: note: in expansion of macro 'KERN_WARNING'
564 | printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
kernel/bpf/bpf_struct_ops.c:442:25: note: in expansion of macro 'pr_warn'
442 | pr_warn("Error in parsing func ptr %s in struct %s\n",
| ^~~~~~~
kernel/bpf/bpf_struct_ops.c: In function 'bpf_struct_ops_map_update_elem':
>> kernel/bpf/bpf_struct_ops.c:647:51: warning: '%s' directive argument is null [-Wformat-truncation=]
647 | snprintf(ksym->name, KSYM_NAME_LEN, "bpf__%s_%s", tname, mname);
| ^~
vim +381 include/linux/string.h
639b9e34f15e4b Akinobu Mita 2012-07-30 369
b18888ab256f05 Andy Shevchenko 2012-12-17 370 /**
b18888ab256f05 Andy Shevchenko 2012-12-17 371 * kbasename - return the last part of a pathname.
b18888ab256f05 Andy Shevchenko 2012-12-17 372 *
b18888ab256f05 Andy Shevchenko 2012-12-17 373 * @path: path to extract the filename from.
645b9ad2dc6b2d Kriish Sharma 2025-11-18 374 *
645b9ad2dc6b2d Kriish Sharma 2025-11-18 375 * Returns:
645b9ad2dc6b2d Kriish Sharma 2025-11-18 376 * Pointer to the filename portion inside @path. If no '/' exists,
645b9ad2dc6b2d Kriish Sharma 2025-11-18 377 * returns @path unchanged.
b18888ab256f05 Andy Shevchenko 2012-12-17 378 */
b18888ab256f05 Andy Shevchenko 2012-12-17 379 static inline const char *kbasename(const char *path)
b18888ab256f05 Andy Shevchenko 2012-12-17 380 {
b18888ab256f05 Andy Shevchenko 2012-12-17 @381 const char *tail = strrchr(path, '/');
b18888ab256f05 Andy Shevchenko 2012-12-17 382 return tail ? tail + 1 : path;
b18888ab256f05 Andy Shevchenko 2012-12-17 383 }
b18888ab256f05 Andy Shevchenko 2012-12-17 384
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-03-28 18:22 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 16:48 [PATCH 0/2] kallsyms: show typed function parameters in oops/WARN dumps Sasha Levin
2026-03-23 16:48 ` [PATCH 1/2] kallsyms: show function parameter info " Sasha Levin
2026-03-24 15:03 ` Alexei Starovoitov
2026-03-24 16:00 ` Sasha Levin
2026-03-24 16:04 ` Alexei Starovoitov
2026-03-24 18:44 ` Sasha Levin
2026-03-25 1:18 ` [RFC] btf: split core BTF parsing out of BPF subsystem into kernel/btf/ Sasha Levin
2026-03-25 2:15 ` bot+bpf-ci
2026-03-28 17:49 ` kernel test robot
2026-03-28 18:21 ` kernel test robot [this message]
2026-03-28 20:19 ` kernel test robot
2026-04-22 10:44 ` Alan Maguire
2026-04-22 14:48 ` Alexei Starovoitov
2026-03-24 17:34 ` [PATCH 1/2] kallsyms: show function parameter info in oops/WARN dumps Alan Maguire
2026-03-24 18:51 ` Sasha Levin
2026-04-25 1:59 ` sashiko-bot
2026-03-23 16:48 ` [PATCH 2/2] kallsyms: add BTF-based deep parameter rendering in oops dumps Sasha Levin
2026-03-24 15:07 ` Alexei Starovoitov
2026-04-25 2:15 ` sashiko-bot
2026-03-23 18:43 ` [PATCH 0/2] kallsyms: show typed function parameters in oops/WARN dumps Alexey Dobriyan
2026-03-23 22:58 ` Sasha Levin
2026-03-23 22:50 ` Andrew Morton
2026-03-23 23:08 ` Sasha Levin
2026-03-24 8:57 ` Jiri Olsa
2026-03-24 11:39 ` Sasha Levin
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=202603290251.bXJOBeBs-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sashal@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.