From: kernel test robot <lkp@intel.com>
To: Tom Hromatka <tom.hromatka@oracle.com>,
kees@kernel.org, luto@amacapital.net, wad@chromium.org,
sargun@sargun.me, corbet@lwn.net, shuah@kernel.org,
brauner@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
bpf@vger.kernel.org
Subject: Re: [PATCH] seccomp: Add SECCOMP_CLONE_FILTER operation
Date: Thu, 4 Sep 2025 19:53:23 +0800 [thread overview]
Message-ID: <202509041931.XtQcy27H-lkp@intel.com> (raw)
In-Reply-To: <20250903203805.1335307-1-tom.hromatka@oracle.com>
Hi Tom,
kernel test robot noticed the following build warnings:
[auto build test WARNING on kees/for-next/seccomp]
[also build test WARNING on linus/master v6.17-rc4 next-20250904]
[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/Tom-Hromatka/seccomp-Add-SECCOMP_CLONE_FILTER-operation/20250904-043943
base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/seccomp
patch link: https://lore.kernel.org/r/20250903203805.1335307-1-tom.hromatka%40oracle.com
patch subject: [PATCH] seccomp: Add SECCOMP_CLONE_FILTER operation
config: x86_64-randconfig-074-20250904 (https://download.01.org/0day-ci/archive/20250904/202509041931.XtQcy27H-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250904/202509041931.XtQcy27H-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/202509041931.XtQcy27H-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 >>):
samples/seccomp/clone-filter.c: In function 'main':
>> samples/seccomp/clone-filter.c:142:9: warning: 'ret' may be used uninitialized [-Wmaybe-uninitialized]
142 | exit(ret);
| ^~~~~~~~~
samples/seccomp/clone-filter.c:113:13: note: 'ret' was declared here
113 | int ret, status;
| ^~~
vim +/ret +142 samples/seccomp/clone-filter.c
109
110 int main(void)
111 {
112 pid_t ref_pid = -1, child_pid = -1;
113 int ret, status;
114
115 ref_pid = fork();
116 if (ref_pid < 0)
117 exit(errno);
118 else if (ref_pid == 0)
119 do_ref_filter();
120
121 child_pid = fork();
122 if (child_pid < 0)
123 goto out;
124 else if (child_pid == 0)
125 do_child_process(ref_pid);
126
127 waitpid(child_pid, &status, 0);
128 if (WEXITSTATUS(status) != 0) {
129 perror("child process failed");
130 ret = WEXITSTATUS(status);
131 goto out;
132 }
133
134 ret = 0;
135
136 out:
137 if (ref_pid != -1)
138 kill(ref_pid, SIGKILL);
139 if (child_pid != -1)
140 kill(child_pid, SIGKILL);
141
> 142 exit(ret);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-09-04 11:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-03 20:38 Tom Hromatka
2025-09-03 20:45 ` Alexei Starovoitov
2025-09-03 20:51 ` Tom Hromatka
2025-09-03 22:44 ` Alexei Starovoitov
2025-09-04 12:08 ` Tom Hromatka
2025-09-04 14:26 ` Tom Hromatka
2025-09-04 14:54 ` Al Viro
2025-09-04 18:10 ` Tom Hromatka
2025-09-04 11:53 ` kernel test robot [this message]
2025-09-04 16:26 ` Kees Cook
2025-09-04 18:19 ` Tom Hromatka
2025-09-04 17:51 ` Al Viro
2025-09-05 21:03 ` YiFei Zhu
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=202509041931.XtQcy27H-lkp@intel.com \
--to=lkp@intel.com \
--cc=bpf@vger.kernel.org \
--cc=brauner@kernel.org \
--cc=corbet@lwn.net \
--cc=kees@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sargun@sargun.me \
--cc=shuah@kernel.org \
--cc=tom.hromatka@oracle.com \
--cc=wad@chromium.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
all inboxes | Powered by JetHome®