Re: [PATCH v8 04/10] futex: Create set_robust_list2() syscall
From: kernel test robot
Date: Fri Nov 20 2026 - 19:15:26 EST
Hi André,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 9f74092fda91ef93c2b07585785c1dc83cd7971f]
url: https://github.com/intel-lab-lkp/linux/commits/Andr-Almeida/futex-Skip-test_futex_robust_unlock-if-not-supported/20261115-143110
base: 9f74092fda91ef93c2b07585785c1dc83cd7971f
patch link: https://lore.kernel.org/r/20261115-tonyk-robust_futex-v8-4-a4fe47333a28%40igalia.com
patch subject: [PATCH v8 04/10] futex: Create set_robust_list2() syscall
config: nios2-randconfig-r2306-20261120 (https://download.01.org/0day-ci/archive/20261121/20261121010932.k2PIHQOd-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261121/20261121010932.k2PIHQOd-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261121010932.k2PIHQOd-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> kernel/futex/syscalls.c:111:46: sparse: sparse: dereference of noderef expression
vim +111 kernel/futex/syscalls.c
107
108 SYSCALL_DEFINE4(set_robust_list2, struct robust_list_head * __user, head, unsigned int,
109 cmd, unsigned int, index, unsigned int, flags)
110 {
> 111 uintptr_t entry = (__force uintptr_t)head;
112 size_t align = sizeof(u32);
113 int ret;
114
115 if (flags)
116 return -EINVAL;
117
118 if (cmd >= FUTEX_ROBUST_LIST_CMD_USER_MAX)
119 return -EINVAL;
120
121 if (cmd == FUTEX_ROBUST_LIST_CMD_CREATE_64 ||
122 cmd == FUTEX_ROBUST_LIST_CMD_MODIFY_64) {
123 if (futex_in_32bit_syscall())
124 return -EOPNOTSUPP;
125 align = sizeof(u64);
126 }
127
128 switch (cmd) {
129 case FUTEX_ROBUST_LIST_CMD_CREATE_64:
130 case FUTEX_ROBUST_LIST_CMD_CREATE_32:
131 if (index)
132 return -EINVAL;
133
134 if (entry % align)
135 return -EINVAL;
136
137 /*
138 * The first two indexes are reserved for the kernel to be used
139 * with the legacy syscall, so we hide them from userspace.
140 *
141 * We map [0, FUTEX_ROBUST_LISTS_PER_USER) to
142 * [FUTEX_ROBUST_LIST2_IDX, FUTEX_ROBUST_LIST2_MAX_IDX)
143 */
144 ret = futex_robust_list_create(entry, cmd);
145
146 if (ret >= 0)
147 ret -= FUTEX_ROBUST_LIST2_IDX;
148
149 return ret;
150
151 case FUTEX_ROBUST_LIST_CMD_MODIFY_64:
152 case FUTEX_ROBUST_LIST_CMD_MODIFY_32:
153 if (entry % align)
154 return -EINVAL;
155 return futex_robust_list_modify(entry, cmd, index);
156 case FUTEX_ROBUST_LIST_CMD_LIST_LIMIT:
157 return FUTEX_ROBUST_LISTS_PER_USER;
158 }
159
160 return -EINVAL;
161 }
162
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki