From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.13 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795222039; b=XFykWBLu4Yo47hjWjjXwZ5csahT6o2yKpbd8qoPGO6E/0tpfNMg4RE29eHrLmLofu7VD CGpVjNiG0EncnEBQMQsObSZiXMFY0fgdZuFCOt3nyz4pNU+6AOJjdUthMNb3HPMCGMnFT szsflnJ2PfBPtoyyDnvc6HXmR08auDbY2j5C3RZUyhewtmsvPmRYJm8bgrT27VrGSIlj0 iab26wLDkHBSggduUDgLe+qAqFGPlbU0AX9zwHjva4b6+I4yFWAAg9h7/x1vSFhl4wP+F trMkbHKK+e/2TGw3AvLL6fV2VH04HLgDLockH0O4R6h/TR5/ScfEc4pooASKH9ho2sA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795222039; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; bh=ZYuDsRnyclF2VRwaoOL8CawoKJrWply8tLhZ2luNmJc=; b=1pxhfrhFEsvtVR/X0uVE36p1IB6o2dB+JE8lbS/k68AZ7S7eiiEmev32MkAZZMWHAtEy 8FfjkeyXEW0MPF3tK4Vf5GRgclFw1aZ/PsBv03Cj32O2roxQAEGcrNkCVaV/sqmg6pQFU f/J3udB7UA3BiDdTD3PZvrZlUsfrAQwqfD4xbXuhAPdAt4Lg2Y5VjEpBV6xQ9M6cIuqxn b+iRGMeHmHNEIRd4WiY+TksJx+r8JrCnUpwsO2mCm8opI6YeVWCGm0nm8jGV/EvT9jWBj FX2s0Mj8rk5RjyiB1JYVKMDWy5VScsX+W3VVfRLFqWpVQQB7otsVI1ZD9jei5NoCL9Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Jf7rT6bu; arc=none smtp.remote-ip=192.198.163.13 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21585606A69C; Sat, 21 Nov 2026 00:47:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 21585606A69C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Jf7rT6bu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795222033; x=1826758033; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=QxRf+0BoXASOSJt1utY22DHCLw6gWPNr2ZBpfZfUl98=; b=Jf7rT6bus+B4RfNYSmcekubeRdYTEvttXTqmQZw8Epus9JsZivCEz/cj kIAaRy/KJ+IsB0DTii1+GOb9rUB9UgJ1W5yUlWPqhUNO+TJ3lar90R+kj cOkiPuiz3zEFzD0YxmocO0jpp/o8qiw6/vJW0CPnH3pIvblq5+7jMohn7 PK6pzTGNe3nRX1Rrd5kelWWwg9L5VeJM26IsGBhru2jiyO9rregjX75c6 taqRQsv4/o4qttbYVfLwbWObxP3nejS5saQR5qZK46Y1Zr7d4Daxff63e 8f+LWQuREP3c44UkZb0dCcQBnuPe+M9xniZ+9itmy07srP30nsolh/gb6 A==; X-CSE-ConnectionGUID: 8t2uY0jYSgaXHvAJpP4TKA== X-CSE-MsgGUID: S72QXicFTpWeDUzfSlsLvQ== X-IronPort-AV: E=McAfee;i="6800,10657,11972"; a="4098348" X-IronPort-AV: E=Sophos;i="6.27,224,1787036400"; d="scan'208";a="4098348" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2026 16:47:12 -0800 X-CSE-ConnectionGUID: HrY6XosTREuMsuUWurVZDw== X-CSE-MsgGUID: hJJFmc75SKiSLyD/sb7ZjQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,224,1787036400"; d="scan'208";a="11144294" Received: from igk-lkp-server01.igk.intel.com (HELO 1073a420ae3a) ([10.211.93.152]) by fmviesa006.fm.intel.com with ESMTP; 20 Nov 2026 16:47:08 -0800 Received: from kbuild by 1073a420ae3a with local (Exim 4.98.2) (envelope-from ) id 1xUZFt-000000004CH-0WzZ; Sat, 21 Nov 2026 00:47:01 +0000 Date: Sat, 21 Nov 2026 01:46:05 +0100 From: kernel test robot To: =?iso-8859-1?Q?Andr=E9?= Almeida , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , Arnd Bergmann , Sebastian Andrzej Siewior , Waiman Long , Ryan Houdek , Thomas Gleixner 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, =?iso-8859-1?Q?Andr=E9?= Almeida Subject: Re: [PATCH v8 05/10] futex: Create get_robust_list2() syscall Message-ID: <20261121013854.0hhfuC97-lkp@intel.com> References: <20261115-tonyk-robust_futex-v8-5-a4fe47333a28@igalia.com> X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261115-tonyk-robust_futex-v8-5-a4fe47333a28@igalia.com> 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-5-a4fe47333a28%40igalia.com patch subject: [PATCH v8 05/10] futex: Create get_robust_list2() syscall config: loongarch-randconfig-r2311-20261120 (https://download.01.org/0day-ci/archive/20261121/20261121013854.0hhfuC97-lkp@intel.com/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 8db60b003f961f25c5cafe91ee44176f61374279) sparse: v0.6.5-rc1-21-g84ec0658 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261121/20261121013854.0hhfuC97-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 | Closes: https://lore.kernel.org/oe-kbuild-all/20261121013854.0hhfuC97-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) kernel/futex/syscalls.c:119:46: sparse: sparse: dereference of noderef expression kernel/futex/syscalls.c:216:14: 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:216:14: sparse: expected struct robust_list_head *head kernel/futex/syscalls.c:216:14: sparse: got struct robust_list_head [noderef] __user * >> kernel/futex/syscalls.c:218:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __user *__pu_val @@ got struct robust_list_head *head @@ kernel/futex/syscalls.c:218:16: sparse: expected void [noderef] __user *__pu_val kernel/futex/syscalls.c:218:16: sparse: got struct robust_list_head *head vim +218 kernel/futex/syscalls.c 170 171 SYSCALL_DEFINE4(get_robust_list2, int, pid, 172 void __user * __user *, head_ptr, 173 unsigned int, index, unsigned int, flags) 174 { 175 struct robust_list_head *head; 176 void __user *entry_ptr; 177 uintptr_t entry; 178 179 if (index >= FUTEX_ROBUST_LISTS_PER_USER) 180 return -EINVAL; 181 182 if (flags) 183 return -EINVAL; 184 185 /* 186 * The first two indexes are reserved for the kernel to be used with the 187 * legacy syscall, so we hide them from userspace. 188 * 189 * We map [0, FUTEX_ROBUST_LISTS_PER_USER) to 190 * [FUTEX_ROBUST_LIST2_IDX, FUTEX_ROBUST_LIST2_MAX_IDX) 191 */ 192 index += FUTEX_ROBUST_LIST2_IDX; 193 194 entry_ptr = futex_get_robust_list_common(pid, false, index); 195 if (IS_ERR(entry_ptr)) 196 return PTR_ERR(entry_ptr); 197 198 entry = (uintptr_t) entry_ptr; 199 200 if (futex_in_32bit_syscall()) { 201 u32 entry32; 202 203 if (entry && !(entry & FUTEX_ROBUST_LIST_ENTRY_32BIT)) 204 return -EOPNOTSUPP; 205 206 entry32 = (u32)entry; 207 entry32 &= FUTEX_ROBUST_LIST_ENTRY_MASK; 208 209 if (copy_to_user(head_ptr, &entry32, sizeof(entry32))) 210 return -EFAULT; 211 212 return 0; 213 } 214 215 entry &= FUTEX_ROBUST_LIST_ENTRY_MASK; 216 head = (__force struct robust_list_head __user *)entry; 217 > 218 return put_user(head, head_ptr); 219 } 220 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki