From: kernel test robot <lkp@intel.com>
To: "André Almeida" <andrealmeid@igalia.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Darren Hart" <dvhart@infradead.org>,
"Davidlohr Bueso" <dave@stgolabs.net>,
"Arnd Bergmann" <arnd@arndb.de>,
"Sebastian Andrzej Siewior" <bigeasy@linutronix.de>,
"Waiman Long" <longman@redhat.com>,
"Ryan Houdek" <Sonicadvance1@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-api@vger.kernel.org,
kernel-dev@igalia.com, "André Almeida" <andrealmeid@igalia.com>
Subject: Re: [PATCH v6 4/9] futex: Create get_robust_list2() syscall
Date: Sun, 23 Nov 2025 15:16:41 +0800 [thread overview]
Message-ID: <202511231423.O6KdcL8r-lkp@intel.com> (raw)
In-Reply-To: <20251122-tonyk-robust_futex-v6-4-05fea005a0fd@igalia.com>
Hi André,
kernel test robot noticed the following build warnings:
[auto build test WARNING on c42ba5a87bdccbca11403b7ca8bad1a57b833732]
url: https://github.com/intel-lab-lkp/linux/commits/Andr-Almeida/futex-Use-explicit-sizes-for-compat_robust_list-structs/20251122-135406
base: c42ba5a87bdccbca11403b7ca8bad1a57b833732
patch link: https://lore.kernel.org/r/20251122-tonyk-robust_futex-v6-4-05fea005a0fd%40igalia.com
patch subject: [PATCH v6 4/9] futex: Create get_robust_list2() syscall
config: i386-randconfig-063-20251123 (https://download.01.org/0day-ci/archive/20251123/202511231423.O6KdcL8r-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251123/202511231423.O6KdcL8r-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/202511231423.O6KdcL8r-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> kernel/futex/syscalls.c:200:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct robust_list_head *head @@ got struct robust_list_head [noderef] __user * @@
kernel/futex/syscalls.c:200:22: sparse: expected struct robust_list_head *head
kernel/futex/syscalls.c:200:22: sparse: got struct robust_list_head [noderef] __user *
>> kernel/futex/syscalls.c:202:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void [noderef] __user *__x @@ got struct robust_list_head *head @@
kernel/futex/syscalls.c:202:24: sparse: expected void [noderef] __user *__x
kernel/futex/syscalls.c:202:24: sparse: got struct robust_list_head *head
vim +200 kernel/futex/syscalls.c
160
161 SYSCALL_DEFINE4(get_robust_list2, int, pid,
162 void __user * __user *, head_ptr,
163 unsigned int, index, unsigned int, flags)
164 {
165 void __user *entry_ptr;
166 uintptr_t entry;
167
168 if (index >= FUTEX_ROBUST_LISTS_PER_USER)
169 return -EINVAL;
170
171 if (flags)
172 return -EINVAL;
173
174 /*
175 * The first two indexes are reserved for the kernel to be used with the
176 * legacy syscall, so we hide them from userspace.
177 *
178 * We map [0, FUTEX_ROBUST_LISTS_PER_USER) to
179 * [FUTEX_ROBUST_LIST2_IDX, FUTEX_ROBUST_LIST2_MAX_IDX)
180 */
181 index += FUTEX_ROBUST_LIST2_IDX;
182
183 entry_ptr = futex_get_robust_list_common(pid, false, index);
184 if (IS_ERR(entry_ptr))
185 return PTR_ERR(entry_ptr);
186
187 entry = (uintptr_t) entry_ptr;
188
189 if (entry & FUTEX_ROBUST_LIST_ENTRY_32BIT) {
190 entry &= FUTEX_ROBUST_LIST_ENTRY_MASK;
191
192 if (copy_to_user(head_ptr, &entry, sizeof(u32)))
193 return -EFAULT;
194
195 return 0;
196 } else {
197 struct robust_list_head *head;
198
199 entry &= FUTEX_ROBUST_LIST_ENTRY_MASK;
> 200 head = (__force struct robust_list_head __user *)entry;
201
> 202 return put_user(head, head_ptr);
203 }
204 }
205
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-11-23 7:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-22 5:50 [PATCH v6 0/9] futex: Create {set,get}_robust_list2() syscalls André Almeida
2025-11-22 5:50 ` [PATCH v6 1/9] futex: Use explicit sizes for compat_robust_list structs André Almeida
2025-11-22 5:50 ` [PATCH v6 2/9] futex: Make exit_robust_list32() unconditionally available for 64-bit kernels André Almeida
2025-11-22 5:50 ` [PATCH v6 3/9] futex: Create set_robust_list2() syscall André Almeida
2025-11-22 5:50 ` [PATCH v6 4/9] futex: Create get_robust_list2() syscall André Almeida
2025-11-23 7:16 ` kernel test robot [this message]
2025-11-23 10:02 ` kernel test robot
2025-11-22 5:50 ` [PATCH v6 5/9] futex: Wire up set_robust_list2 syscall André Almeida
2025-11-22 5:50 ` [PATCH v6 6/9] futex: Wire up get_robust_list2 syscall André Almeida
2025-11-22 6:49 ` kernel test robot
2025-11-23 18:47 ` Thomas Gleixner
2025-11-23 19:19 ` Arnd Bergmann
2025-11-23 20:02 ` Thomas Gleixner
2025-11-22 7:32 ` kernel test robot
2025-11-22 7:44 ` kernel test robot
2025-11-22 5:50 ` [PATCH v6 7/9] selftests/futex: Expand for set_robust_list2() André Almeida
2025-11-22 5:50 ` [PATCH v6 8/9] selftests/futex: Expand for get_robust_list2() André Almeida
2025-11-22 5:50 ` [PATCH v6 9/9] futex: Use new robust list API internally André Almeida
2025-11-22 14:25 ` [PATCH v6 0/9] futex: Create {set,get}_robust_list2() syscalls André Almeida
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=202511231423.O6KdcL8r-lkp@intel.com \
--to=lkp@intel.com \
--cc=Sonicadvance1@gmail.com \
--cc=andrealmeid@igalia.com \
--cc=arnd@arndb.de \
--cc=bigeasy@linutronix.de \
--cc=dave@stgolabs.net \
--cc=dvhart@infradead.org \
--cc=kernel-dev@igalia.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mingo@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
/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).