From: kernel test robot <lkp@intel.com>
To: Rong Tao <rtoax@foxmail.com>,
andrii.nakryiko@gmail.com, qmo@kernel.org, ast@kernel.org,
daniel@iogearbox.net, andrii@kernel.org, rongtao@cestc.cn
Cc: oe-kbuild-all@lists.linux.dev,
Martin KaFai Lau <martin.lau@linux.dev>,
Eduard Zingerman <eddyz87@gmail.com>, Song Liu <song@kernel.org>,
Yonghong Song <yonghong.song@linux.dev>,
John Fastabend <john.fastabend@gmail.com>,
KP Singh <kpsingh@kernel.org>,
Stanislav Fomichev <sdf@fomichev.me>, Hao Luo <haoluo@google.com>,
Jiri Olsa <jolsa@kernel.org>,
"(open list:BPF (bpftool))" <bpf@vger.kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH bpf-next v4 1/2] bpftool: Fix gen object segfault
Date: Wed, 11 Dec 2024 17:48:41 +0800 [thread overview]
Message-ID: <202412111714.9jJxt9x6-lkp@intel.com> (raw)
In-Reply-To: <tencent_B497E42A7CAF94A35B88EB060E42A2593408@qq.com>
Hi Rong,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Rong-Tao/libbpf-linker-Avoid-using-object-file-as-both-input-and-output/20241206-100435
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/tencent_B497E42A7CAF94A35B88EB060E42A2593408%40qq.com
patch subject: [PATCH bpf-next v4 1/2] bpftool: Fix gen object segfault
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241211/202412111714.9jJxt9x6-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/202412111714.9jJxt9x6-lkp@intel.com/
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
PERF_VERSION = 6.13.rc1.g228582f448e8
gen.c: In function 'do_object':
>> gen.c:1927:9: warning: 'linker' may be used uninitialized [-Wmaybe-uninitialized]
1927 | bpf_linker__free(linker);
| ^~~~~~~~~~~~~~~~~~~~~~~~
gen.c:1879:28: note: 'linker' was declared here
1879 | struct bpf_linker *linker;
| ^~~~~~
--
gen.c: In function 'do_object':
>> gen.c:1927:9: warning: 'linker' may be used uninitialized [-Wmaybe-uninitialized]
1927 | bpf_linker__free(linker);
| ^~~~~~~~~~~~~~~~~~~~~~~~
gen.c:1879:28: note: 'linker' was declared here
1879 | struct bpf_linker *linker;
| ^~~~~~
gen.c: In function 'do_object':
>> gen.c:1927:9: warning: 'linker' may be used uninitialized [-Wmaybe-uninitialized]
1927 | bpf_linker__free(linker);
| ^~~~~~~~~~~~~~~~~~~~~~~~
gen.c:1879:28: note: 'linker' was declared here
1879 | struct bpf_linker *linker;
| ^~~~~~
gen.c: In function 'do_object':
>> gen.c:1927:9: warning: 'linker' may be used uninitialized [-Wmaybe-uninitialized]
1927 | bpf_linker__free(linker);
| ^~~~~~~~~~~~~~~~~~~~~~~~
gen.c:1879:28: note: 'linker' was declared here
1879 | struct bpf_linker *linker;
| ^~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-11 9:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1733449395.git.rongtao@cestc.cn>
2024-12-06 2:01 ` [PATCH bpf-next v4 1/2] bpftool: Fix gen object segfault Rong Tao
2024-12-06 2:13 ` Alexei Starovoitov
2024-12-11 9:48 ` kernel test robot [this message]
2024-12-06 2:01 ` [PATCH bpf-next v4 2/2] libbpf: linker: Avoid using object file as both input and output Rong Tao
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=202412111714.9jJxt9x6-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrii.nakryiko@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=qmo@kernel.org \
--cc=rongtao@cestc.cn \
--cc=rtoax@foxmail.com \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=yonghong.song@linux.dev \
/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