[openeuler:OLK-5.10 3382/3382] include/linux/uaccess.h:232:16: sparse: sparse: incorrect type in argument 1 (different address spaces)
tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 06a8b520851290347ca458d4335bebc607fe3b58 commit: 8a9bc410e7ccf0bcddb6a6f6ccc526bae11d0311 [3382/3382] arm64: add support for machine check error safe config: arm64-randconfig-r122-20251205 (https://download.01.org/0day-ci/archive/20251206/202512060317.8FXM9zSz-lkp@i...) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251206/202512060317.8FXM9zSz-lkp@i...) 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/202512060317.8FXM9zSz-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) lib/iov_iter.c: note: in included file (through include/linux/sched/task.h, include/linux/sched/signal.h, include/linux/rcuwait.h, ...):
include/linux/uaccess.h:232:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __user *ptr @@ got void *dst @@ include/linux/uaccess.h:232:16: sparse: expected void const [noderef] __user *ptr include/linux/uaccess.h:232:16: sparse: got void *dst lib/iov_iter.c: note: in included file: include/net/checksum.h:31:39: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@ include/net/checksum.h:31:39: sparse: expected restricted __wsum [usertype] sum include/net/checksum.h:31:39: sparse: got unsigned int include/net/checksum.h:31:39: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@ include/net/checksum.h:31:39: sparse: expected restricted __wsum [usertype] sum include/net/checksum.h:31:39: sparse: got unsigned int include/net/checksum.h:31:39: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@ include/net/checksum.h:31:39: sparse: expected restricted __wsum [usertype] sum include/net/checksum.h:31:39: sparse: got unsigned int include/net/checksum.h:31:39: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@ include/net/checksum.h:31:39: sparse: expected restricted __wsum [usertype] sum include/net/checksum.h:31:39: sparse: got unsigned int include/net/checksum.h:39:45: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@ include/net/checksum.h:39:45: sparse: expected restricted __wsum [usertype] sum include/net/checksum.h:39:45: sparse: got unsigned int include/net/checksum.h:39:45: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@ include/net/checksum.h:39:45: sparse: expected restricted __wsum [usertype] sum include/net/checksum.h:39:45: sparse: got unsigned int
vim +232 include/linux/uaccess.h ec6347bb43395c Dan Williams 2020-10-05 226 406637c11f9a83 Tong Tiangen 2022-11-18 227 #ifndef copy_mc_to_user 406637c11f9a83 Tong Tiangen 2022-11-18 228 static inline unsigned long __must_check 406637c11f9a83 Tong Tiangen 2022-11-18 229 copy_mc_to_user(void *dst, const void *src, size_t cnt) 406637c11f9a83 Tong Tiangen 2022-11-18 230 { 406637c11f9a83 Tong Tiangen 2022-11-18 231 check_object_size(src, cnt, true); 406637c11f9a83 Tong Tiangen 2022-11-18 @232 return raw_copy_to_user(dst, src, cnt); 406637c11f9a83 Tong Tiangen 2022-11-18 233 } 406637c11f9a83 Tong Tiangen 2022-11-18 234 #endif 406637c11f9a83 Tong Tiangen 2022-11-18 235 :::::: The code at line 232 was first introduced by commit :::::: 406637c11f9a834ac362d9fcf9073fb381167428 uaccess: add generic fallback version of copy_mc_to_user() :::::: TO: Tong Tiangen <tongtiangen@huawei.com> :::::: CC: Ma Wupeng <mawupeng1@huawei.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot