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 696A7C433EF for ; Sat, 28 May 2022 01:13:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7B6338D0003; Fri, 27 May 2022 21:13:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7623E8D0002; Fri, 27 May 2022 21:13:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 64F0A8D0003; Fri, 27 May 2022 21:13:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 569808D0002 for ; Fri, 27 May 2022 21:13:34 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1F22220BD6 for ; Sat, 28 May 2022 01:13:34 +0000 (UTC) X-FDA: 79513379148.22.ACE75A4 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf03.hostedemail.com (Postfix) with ESMTP id B71A720028 for ; Sat, 28 May 2022 01:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653700413; x=1685236413; h=date:from:to:cc:subject:message-id:mime-version; bh=+2gSy9OkOYPeWsx7EaA1g4/8Js2covD6Tt4kuwbqN9o=; b=IcGcxAT4QqyM0oQf6Yb4AMSxpOkcA9UOiSesM4OhSdXUb9UzG96472LL zhENLTO2NlwUzUEm9qg6aKgpe2s6+sXK/tii2tFaPGBSucLNfZ45El89p 5eGO3Db/brbBt0/qmqwhzo04pnN7JpujZARQ50lbO4F6YdpiCb4bG0YVI JJDoAqr4RfD0IK2jRap6So3XrfHAtaIf7FBw9ZzOgeR1kKdQp1WZZLaVx DrCgxC/PiOjnfOUQG8TGuNiW7HwmCcEEpA7tCdSQgCX0XT0ltdEms8YNx s2ePM13bfZ4AsSI0bENKO10B+TQWLdJx2NwgMOy5YbRg1f+d/e97NDSrr Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10360"; a="299957012" X-IronPort-AV: E=Sophos;i="5.91,257,1647327600"; d="scan'208";a="299957012" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2022 18:13:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,257,1647327600"; d="scan'208";a="528411721" Received: from lkp-server01.sh.intel.com (HELO db63a1be7222) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 27 May 2022 18:13:27 -0700 Received: from kbuild by db63a1be7222 with local (Exim 4.95) (envelope-from ) id 1nul1C-0005Kj-OW; Sat, 28 May 2022 01:13:26 +0000 Date: Sat, 28 May 2022 09:12:54 +0800 From: kernel test robot To: David Howells Cc: kbuild-all@lists.01.org, Linux Memory Management List , Steve French Subject: [linux-next:master 13726/14198] lib/iov_iter.c:1815:9: sparse: sparse: incorrect type in argument 2 (different address spaces) Message-ID: <202205280944.JM8XsoYY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: B71A720028 X-Stat-Signature: xjsrws1skoeif9ebo7upc7s8mfzzm99g X-Rspam-User: Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IcGcxAT4; spf=none (imf03.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1653700399-377071 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d3fde8ff50ab265749704bd7fbcf70d35235421f commit: 15c8a3b370909a43c03bb937a373921ee92be65a [13726/14198] iov_iter: Add a general purpose iteration function config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20220528/202205280944.JM8XsoYY-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-14-g5a0004b5-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=15c8a3b370909a43c03bb937a373921ee92be65a git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 15c8a3b370909a43c03bb937a373921ee92be65a # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> lib/iov_iter.c:1815:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *p @@ got void [noderef] __user *[assigned] base @@ lib/iov_iter.c:1815:9: sparse: expected void const *p lib/iov_iter.c:1815:9: sparse: got void [noderef] __user *[assigned] base vim +1815 lib/iov_iter.c 1791 1792 /** 1793 * iov_iter_scan - Scan a source iter 1794 * @i: The iterator to scan 1795 * @bytes: The amount of buffer/data to scan 1796 * @scanner: The function to call for each bit 1797 * @priv: Private data to pass to the scanner function 1798 * 1799 * Scan an iterator, passing each segment to the scanner function. If the 1800 * scanner returns an error at any time, scanning stops and the error is 1801 * returned, otherwise the sum of the scanner results is returned. 1802 */ 1803 ssize_t iov_iter_scan(struct iov_iter *i, size_t bytes, 1804 ssize_t (*scanner)(struct iov_iter *i, const void *p, 1805 size_t len, size_t off, void *priv), 1806 void *priv) 1807 { 1808 ssize_t ret = 0, scanned = 0; 1809 1810 if (!bytes) 1811 return 0; 1812 if (iter_is_iovec(i)) 1813 might_fault(); 1814 > 1815 iterate_and_advance( 1816 i, bytes, base, len, off, ({ 1817 ret = scanner(i, base, len, off, priv); 1818 if (ret < 0) 1819 break; 1820 scanned += ret; 1821 }), ({ 1822 ret = scanner(i, base, len, off, priv); 1823 if (ret < 0) 1824 break; 1825 scanned += ret; 1826 }) 1827 ); 1828 return ret < 0 ? ret : scanned; 1829 } 1830 EXPORT_SYMBOL(iov_iter_scan); 1831 -- 0-DAY CI Kernel Test Service https://01.org/lkp