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 C00C3C47258 for ; Thu, 25 Jan 2024 10:23:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 277126B006E; Thu, 25 Jan 2024 05:23:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 200426B007B; Thu, 25 Jan 2024 05:23:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F1FC08D001B; Thu, 25 Jan 2024 05:23:37 -0500 (EST) 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 DBAB38D001A for ; Thu, 25 Jan 2024 05:23:37 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 80D58160D5A for ; Thu, 25 Jan 2024 10:23:37 +0000 (UTC) X-FDA: 81717446874.09.168B45D Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by imf10.hostedemail.com (Postfix) with ESMTP id 8577BC0008 for ; Thu, 25 Jan 2024 10:23:35 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NpPPAKeV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 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=1706178215; 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=WDwMtd0/Hqz/COmsH0uiPXgz5IiSROYrS2JoVrOoeK8=; b=Fsa++8e2gAb4+6kmipVHcUqg14BDDUwC6IbQi2CvoiUdI6VOZMbj2CX/lspMeWY5g6bnq+ Euov7JYSrItgS0NKLaElCsFVXMZqfa3zHt2PAz0yB7RLdn8gI/RA4fWfjJrz4v+2AWW7kw hEJYf+7jXCKXo9jHwRzK7GFV4QlTEKE= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=NpPPAKeV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706178215; a=rsa-sha256; cv=none; b=UgZJ9CqBsIYreaW2/tQ3s8TGBygaLesA59uunUuVUu09dTxIf5RnB9K9CJS5r09cthjz1h Tdp9xMEGcubF4BlEiuZRzH95SjdrJI8eFglgq28je6yIgBlpquc+8JYIHa8qcbxjkzRH6B rlWzLALiEcSggjttOM2gtcV8S3MyLwA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706178215; x=1737714215; h=date:from:to:cc:subject:message-id:mime-version; bh=JGRSWsf/bJfZ+uYQM0hPbAZ+CFYm1tvD7H9lhaGrMTo=; b=NpPPAKeVLo2jzUdxrXWI+rAs8esCnJbfULcQTrlpKJ7VP9HKas1zaYOS HNMWMK9tU+U9OL+1m6qdYlQ/UE/L40SSqP27jDBTRf75QuEK2I5rVEXuU H+Lr2bIPIWf0xfOVp+CHLh5SsmLQuCl8nd1tRA82mlSxJmyHzvJ+PQUcV lTTefxAlltOzUFRoI2PfjqMnIEOGJa5tRmHRQRlIbIeJ0dMCNJlRxeGJS IMyjr8k69yphqPiNR36PJgz5wr8/x2byPkhZpd4WqDgMOytWjltU4dZAH oLmaeeKDXYrVHZhN0LDiQyQrIWcbMM9nMBYE3nTIwtFHuUKPHByOR0j50 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="405872198" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="405872198" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 02:23:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="905921824" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="905921824" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 25 Jan 2024 02:23:32 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rSwtO-0008uH-0J; Thu, 25 Jan 2024 10:23:30 +0000 Date: Thu, 25 Jan 2024 18:22:36 +0800 From: kernel test robot To: Suren Baghdasaryan Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton Subject: [linux-next:master 1589/1892] fs/proc/task_mmu.c:143:45: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202401251829.0m6Eo4LI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 8577BC0008 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 1mqrk5t4t4dcj15ue4abpzompbt6hzeh X-HE-Tag: 1706178215-612001 X-HE-Meta: U2FsdGVkX1/YhtoLN4/DagU1gB0g13Cw78mlw7p3Qr/otEJfoF5vJbUQupXRvZjQc3tqVm8hiKNfCXXWTp4KWuSro7v0rVmPkXLLV8mYxZupbRRSpS7j4dQd5caudW4LA5cbYA+FG10jwRzaGfA7C4DWHuz6IIM/inCMVE/24+Bg4tbA6GVymWMCnWShZU+qDydl4ylx+gPcntnrdff/nIHkC5HzMV0a42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ybI97v75unvj49xZeIeZxdBr7w2Ko 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/next/linux-next.git master head: 01af33cc9894b4489fb68fa35c40e9fe85df63dc commit: 0c30c4cd953025979b7689e49844837f762303ec [1589/1892] mm/maps: read proc/pid/maps under RCU config: x86_64-randconfig-121-20240125 (https://download.01.org/0day-ci/archive/20240125/202401251829.0m6Eo4LI-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240125/202401251829.0m6Eo4LI-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/202401251829.0m6Eo4LI-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> fs/proc/task_mmu.c:143:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct file [noderef] __rcu **f @@ got struct file ** @@ fs/proc/task_mmu.c:143:45: sparse: expected struct file [noderef] __rcu **f fs/proc/task_mmu.c:143:45: sparse: got struct file ** fs/proc/task_mmu.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, ...): include/linux/rcupdate.h:781:9: sparse: sparse: context imbalance in 'get_vma_snapshot' - unexpected unlock fs/proc/task_mmu.c:264:22: sparse: sparse: context imbalance in 'm_start' - different lock contexts for basic block include/linux/rcupdate.h:781:9: sparse: sparse: context imbalance in 'm_stop' - unexpected unlock include/linux/rcupdate.h:781:9: sparse: sparse: context imbalance in 'smaps_pte_range' - unexpected unlock include/linux/rcupdate.h:781:9: sparse: sparse: context imbalance in 'clear_refs_pte_range' - unexpected unlock include/linux/rcupdate.h:781:9: sparse: sparse: context imbalance in 'pagemap_pmd_range' - unexpected unlock include/linux/rcupdate.h:781:9: sparse: sparse: context imbalance in 'pagemap_scan_pmd_entry' - unexpected unlock fs/proc/task_mmu.c: note: in included file (through arch/x86/include/asm/uaccess.h, include/linux/uaccess.h, include/linux/sched/task.h, ...): arch/x86/include/asm/uaccess_64.h:88:24: sparse: sparse: cast removes address space '__user' of expression arch/x86/include/asm/uaccess_64.h:88:24: sparse: sparse: cast removes address space '__user' of expression vim +143 fs/proc/task_mmu.c 132 133 /* 134 * Take VMA snapshot and pin vm_file and anon_name as they are used by 135 * show_map_vma. 136 */ 137 static int get_vma_snapshot(struct proc_maps_private *priv, struct vm_area_struct *vma) 138 { 139 struct vm_area_struct *copy = &priv->vma_copy; 140 int ret = -EAGAIN; 141 142 memcpy(copy, vma, sizeof(*vma)); > 143 if (copy->vm_file && !get_file_rcu(©->vm_file)) 144 goto out; 145 146 if (!anon_vma_name_get_if_valid(copy)) 147 goto put_file; 148 149 if (priv->mm_wr_seq == mmap_write_seq_read(priv->mm)) 150 return 0; 151 152 /* Address space got modified, vma might be stale. Wait and retry. */ 153 rcu_read_unlock(); 154 ret = mmap_read_lock_killable(priv->mm); 155 mmap_write_seq_record(priv->mm, &priv->mm_wr_seq); 156 mmap_read_unlock(priv->mm); 157 rcu_read_lock(); 158 159 if (!ret) 160 ret = -EAGAIN; /* no other errors, ok to retry */ 161 162 anon_vma_name_put_if_valid(copy); 163 put_file: 164 if (copy->vm_file) 165 fput(copy->vm_file); 166 out: 167 return ret; 168 } 169 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki