From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E085EC46CD4 for ; Tue, 26 Dec 2023 09:53:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C875F6B006E; Tue, 26 Dec 2023 04:53:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C378F6B0071; Tue, 26 Dec 2023 04:53:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B26B66B0072; Tue, 26 Dec 2023 04:53:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A42C16B006E for ; Tue, 26 Dec 2023 04:53:06 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 3B3E41204FE for ; Tue, 26 Dec 2023 09:53:06 +0000 (UTC) X-FDA: 81608505972.02.9D22625 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by imf17.hostedemail.com (Postfix) with ESMTP id 569E640002 for ; Tue, 26 Dec 2023 09:53:03 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=EFpQYBdh; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703584384; a=rsa-sha256; cv=none; b=w9L/WG7T+jsQLgsx6ER/d+ZHr61IZbVsrU/eASfi8HvxoIsZ0Ib7tOvIKwAJhX5gSBqO7W God2gEktNMN8LC92HfxYsaYM3K8kTo8TYwWuiYnv0fWWgZ54uO8rOSKls+qz5WC8JL+t/w adaDepZwB7pl7lEMxdFkjuM8kVm10v8= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=EFpQYBdh; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703584384; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=MrIzsaamO195N4gxjXYbZ07Y0vafeTTug4SlX76uPrM=; b=tycWVIy4BC6H2wjXbcBc+P38Ye7MBwptHr1Mu/euNLNKNteBZDidOnBTL/UkIJhDaNo5ow 8kG7b1ogpk1aIaA7AdredobTA7DIcbpNji/b9vTx9xOet5B7lY9BP3w5SUCXls7DzRHOV/ mp1PpqIDcuPNrHGAu/OmytVoUtY+Lz8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703584384; x=1735120384; h=date:from:to:cc:subject:message-id:mime-version; bh=OUsGGBZlDcFTUNj0SM8ZrNEwP/ExInmKWdxHb8dEvCY=; b=EFpQYBdh3vRhqOiWLXNs6zWk0f/v6HdqJlUMsu4ztB59ZydoeKPrzPjN DyVZvuXtbbQR5LyP6KvKmHYt7LEf0965g23B5xM7Q6i/teuYfY6HXTFs9 9Gra9r5T2XHvCEl4uAMmF6SucGgdYU93f8p/yQfCD/u7YTzxPKNCsHINo 9UrfN+XskqzXiyPP9MDONEXhclMnatrNBG4L+yUeXajslcRKaoYtuw0xS NHmS3Qz/zqNi4GhCRCXpZxisX+B6Oc2GI48fkqXWa/LxCB2E6ixGJP7PN HX5v6GeJbIBZpgPxhroluP2onDtr0Gj3Cbc90v+rUfx9pa9Rs+YwP8ra3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="3150985" X-IronPort-AV: E=Sophos;i="6.04,306,1695711600"; d="scan'208";a="3150985" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Dec 2023 01:53:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,306,1695711600"; d="scan'208";a="26261767" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orviesa001.jf.intel.com with ESMTP; 26 Dec 2023 01:52:59 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rI47M-000EOn-28; Tue, 26 Dec 2023 09:52:56 +0000 Date: Tue, 26 Dec 2023 17:52:13 +0800 From: kernel test robot To: Alexander Potapenko Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: include/net/checksum.h:31:39: sparse: sparse: incorrect type in argument 3 (different base types) Message-ID: <202312261711.KKO6zAnz-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 569E640002 X-Stat-Signature: yitr5jmc8swa9zts9mt31z79w16rgfsb X-HE-Tag: 1703584383-546245 X-HE-Meta: U2FsdGVkX18Nd2ice2PoZ/k8JcoH8dFjQE6UJt86hRLvQ9IPIvCt6n1o6/7wpzmKFqyTEBPUv3kCuDIZPqu6BQZK0HxdWdj5j3Z07sLRu5NNgOLTkxHguOXQ5ZZcmpYHJ9/UM5/F/wZHYW6wuuiZY4RpHR8OxcZcX7A7Y9a4ubPfCXgFK6PF7VaFI8UHiA+VGwviky+972z3WLuG/0mjtbFalpGC8Xssf484sYlh8SIa0JeORrex7Mo0tJRQNz4APEAXnTiHenSTYL+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JsadpmsuH8uwtCDwI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fbafc3e621c3f4ded43720fdb1d6ce1728ec664e commit: d911c67e10b47eb1ace08dcf95ce98fe4d408c88 x86: kasan: kmsan: support CONFIG_GENERIC_CSUM on x86, enable it for KASAN/KMSAN date: 1 year, 3 months ago config: x86_64-randconfig-122-20231101 (https://download.01.org/0day-ci/archive/20231226/202312261711.KKO6zAnz-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231226/202312261711.KKO6zAnz-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/202312261711.KKO6zAnz-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) 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: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 +31 include/net/checksum.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 23 ^1da177e4c3f41 Linus Torvalds 2005-04-16 24 #ifndef _HAVE_ARCH_COPY_AND_CSUM_FROM_USER 5486f5bf790b5c Christophe Leroy 2022-02-17 25 static __always_inline 56649d5d3c4cb0 Al Viro 2006-11-14 26 __wsum csum_and_copy_from_user (const void __user *src, void *dst, c693cc4676a055 Al Viro 2020-07-11 27 int len) ^1da177e4c3f41 Linus Torvalds 2005-04-16 28 { 5904122c46581a Al Viro 2020-02-18 29 if (copy_from_user(dst, src, len)) c693cc4676a055 Al Viro 2020-07-11 30 return 0; c693cc4676a055 Al Viro 2020-07-11 @31 return csum_partial(dst, len, ~0U); ^1da177e4c3f41 Linus Torvalds 2005-04-16 32 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 33 #endif ^1da177e4c3f41 Linus Torvalds 2005-04-16 34 :::::: The code at line 31 was first introduced by commit :::::: c693cc4676a055c4126e487b30b0a96ea7ec9936 saner calling conventions for csum_and_copy_..._user() :::::: TO: Al Viro :::::: CC: Al Viro -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki