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 88425C47DDF for ; Wed, 24 Jan 2024 13:05:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EE0DC6B0072; Wed, 24 Jan 2024 08:05:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E8F5D6B0074; Wed, 24 Jan 2024 08:05:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D58606B0075; Wed, 24 Jan 2024 08:05:08 -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 C46416B0072 for ; Wed, 24 Jan 2024 08:05:08 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 9001F1C14EF for ; Wed, 24 Jan 2024 13:05:08 +0000 (UTC) X-FDA: 81714225096.29.91F6726 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by imf24.hostedemail.com (Postfix) with ESMTP id D08AC180019 for ; Wed, 24 Jan 2024 13:05:05 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="DmdFLEc/"; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 192.198.163.9 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706101506; a=rsa-sha256; cv=none; b=gklqTDnmBCvepkACmlbsjou3Reoadf7ujcqXK8a8ihhKOO390Y6nL76+FIFHWHj7wC0+nW SXcVi9o8P2rIUIodWJqhgiYfrfWV2GTb27MJqfSqwEGWXXT/sKlmMXLsxTGnG/ksb6XkYM 7SbS6GvNXmLNzcyzIPmsLL+XUIgMmFY= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="DmdFLEc/"; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 192.198.163.9 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706101506; 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=79WURdsRoPvSteiA1Sr6zPTmAx/gorN+cxsndTKtnwU=; b=yyCzk0KYRwYm2Q8NhzmsTxltWmXRrxgiQGgKgCaRWN7Cdv9Eb0q4yPYMSvZLPnbXTOMtMV Drh5cF25CToW9qPwfb/09cHJy8ssFUyiNwTnsnh0l8HeuLDQ5gONmDAWElOxEdY0sYky4L uG2S95ehQaA/LNCRgtyWO0zE2fzWNHk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706101505; x=1737637505; h=date:from:to:cc:subject:message-id:mime-version; bh=/HFosjyL64mKGXN6CK6Ta+CGJP5ctiQqm3hEm8G9LTA=; b=DmdFLEc/vs8SoeUvETxLjRgubXjq6xJKPVWsEbV+IvLfl2ViJUcAydhG ynqa44I9aOgjpDjEWv5AH03U2CbNU6ZkXaamOI9gb7gDF4rk0sdp4pSa6 SRqpMuQZvDjToW2ucs/FU690BxtYy8sX94wGphl1IaEZgh9LOyGEsb0V5 Phm84RfZnkMK86odaOI4hi/nXxajT8O3f+tLxeM/WZNfM3HuROGPaSMeJ GYjCKXXMlfWh8gFfdYrHNPlvweViLv37INSYisy2BKZW/XtmVrWsLaSw9 sF0lQ9c16xWfPLxfgFHaIPxAMXFfvDkdAIJ75rvJH2tOjVqO2EuowJSts w==; X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="8596923" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="8596923" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2024 05:05:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="820459744" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="820459744" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 24 Jan 2024 05:05:01 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rScw7-00086n-0g; Wed, 24 Jan 2024 13:04:59 +0000 Date: Wed, 24 Jan 2024 21:04:55 +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 1198/1678] include/linux/mm_inline.h:401:30: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202401242108.sR7fhT8J-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: D08AC180019 X-Stat-Signature: reyhhwui4dd8fmbncxswbj1sgp9onzju X-Rspam-User: X-HE-Tag: 1706101505-987349 X-HE-Meta: U2FsdGVkX1/d1ty6l8QcNswi0WDwgbhDpb4fH8hU3QGxU9m+EjzxiFo6NjUWJEL6gFQbYEyPStblmbXVWtbhIi9jrQ5RXnLio5ROpF+NkZtKOH4wbZX3ySLrGz5y4Ld7rsX+OgubfdYTg3QnM42q8qdDQeLjo7ARuHpaX96SON4eZnHB9Knia+2oGMqm6FLpmAmvRYcU5QRQXRA3ewML2FDvM9kRjxvsEPY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DaDQu8MaQ2rWzhRXbdH9tgZWBJx+vw2fSfOUn+v66CEn8r2yGxTeWrtbd4pVzDfmV9rPI2qUm7+E9yNlZguGeJLMO0KLd5T4H1ml6UwsRTqSDsN5kRmeV7L7i384puybYDSNnxP+ox/FoBUYHWZmzulkIwinOlJoPAhZRRaLmRw== 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: 8bf1262c53f50fa91fe15d01e5ef5629db55313c commit: 12600c77ca2b2be6af4e00f83d250f54f9c81496 [1198/1678] mm: make vm_area_struct anon_name field RCU-safe config: x86_64-randconfig-122-20240124 (https://download.01.org/0day-ci/archive/20240124/202401242108.sR7fhT8J-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/20240124/202401242108.sR7fhT8J-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/202401242108.sR7fhT8J-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) kernel/fork.c:1240:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *owner @@ got struct task_struct *p @@ kernel/fork.c:1240:19: sparse: expected struct task_struct [noderef] __rcu *owner kernel/fork.c:1240:19: sparse: got struct task_struct *p kernel/fork.c:1803:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct refcount_struct [usertype] *r @@ got struct refcount_struct [noderef] __rcu * @@ kernel/fork.c:1803:38: sparse: expected struct refcount_struct [usertype] *r kernel/fork.c:1803:38: sparse: got struct refcount_struct [noderef] __rcu * kernel/fork.c:1812:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:1812:31: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:1812:31: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:1813:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got struct k_sigaction [noderef] __rcu * @@ kernel/fork.c:1813:9: sparse: expected void const * kernel/fork.c:1813:9: sparse: got struct k_sigaction [noderef] __rcu * kernel/fork.c:1813:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got struct k_sigaction [noderef] __rcu * @@ kernel/fork.c:1813:9: sparse: expected void const * kernel/fork.c:1813:9: sparse: got struct k_sigaction [noderef] __rcu * kernel/fork.c:1813:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *q @@ got struct k_sigaction [noderef] __rcu * @@ kernel/fork.c:1813:9: sparse: expected void const *q kernel/fork.c:1813:9: sparse: got struct k_sigaction [noderef] __rcu * kernel/fork.c:1814:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:1814:33: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:1814:33: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:2316:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:2316:31: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:2316:31: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:2320:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:2320:33: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:2320:33: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:2631:32: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *real_parent @@ got struct task_struct * @@ kernel/fork.c:2631:32: sparse: expected struct task_struct [noderef] __rcu *real_parent kernel/fork.c:2631:32: sparse: got struct task_struct * kernel/fork.c:2640:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:2640:27: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:2640:27: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:2689:54: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct list_head *head @@ got struct list_head [noderef] __rcu * @@ kernel/fork.c:2689:54: sparse: expected struct list_head *head kernel/fork.c:2689:54: sparse: got struct list_head [noderef] __rcu * kernel/fork.c:2709:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:2709:29: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:2709:29: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:2731:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:2731:29: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:2731:29: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:2758:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sighand_struct *sighand @@ got struct sighand_struct [noderef] __rcu *sighand @@ kernel/fork.c:2758:28: sparse: expected struct sighand_struct *sighand kernel/fork.c:2758:28: sparse: got struct sighand_struct [noderef] __rcu *sighand kernel/fork.c:2787:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:2787:31: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:2787:31: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:2789:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ kernel/fork.c:2789:33: sparse: expected struct spinlock [usertype] *lock kernel/fork.c:2789:33: sparse: got struct spinlock [noderef] __rcu * kernel/fork.c:3230:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *[assigned] parent @@ got struct task_struct [noderef] __rcu *real_parent @@ kernel/fork.c:3230:24: sparse: expected struct task_struct *[assigned] parent kernel/fork.c:3230:24: sparse: got struct task_struct [noderef] __rcu *real_parent kernel/fork.c:3318:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct refcount_struct const [usertype] *r @@ got struct refcount_struct [noderef] __rcu * @@ kernel/fork.c:3318:43: sparse: expected struct refcount_struct const [usertype] *r kernel/fork.c:3318:43: sparse: got struct refcount_struct [noderef] __rcu * kernel/fork.c: note: in included file: >> include/linux/mm_inline.h:401:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct anon_vma_name *anon_name @@ got struct anon_vma_name [noderef] __rcu *anon_name @@ include/linux/mm_inline.h:401:30: sparse: expected struct anon_vma_name *anon_name include/linux/mm_inline.h:401:30: sparse: got struct anon_vma_name [noderef] __rcu *anon_name kernel/fork.c:1908:9: sparse: sparse: dereference of noderef expression kernel/fork.c:2366:22: sparse: sparse: dereference of noderef expression kernel/fork.c: note: in included file (through include/uapi/asm-generic/bpf_perf_event.h, arch/x86/include/generated/uapi/asm/bpf_perf_event.h, ...): include/linux/ptrace.h:210:45: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *new_parent @@ got struct task_struct [noderef] __rcu *parent @@ include/linux/ptrace.h:210:45: sparse: expected struct task_struct *new_parent include/linux/ptrace.h:210:45: sparse: got struct task_struct [noderef] __rcu *parent include/linux/ptrace.h:210:62: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected struct cred const *ptracer_cred @@ got struct cred const [noderef] __rcu *ptracer_cred @@ include/linux/ptrace.h:210:62: sparse: expected struct cred const *ptracer_cred include/linux/ptrace.h:210:62: sparse: got struct cred const [noderef] __rcu *ptracer_cred kernel/fork.c:2687:59: sparse: sparse: dereference of noderef expression kernel/fork.c:2688:59: sparse: sparse: dereference of noderef expression kernel/fork.c:1232:23: sparse: sparse: incompatible types in comparison expression (different address spaces): kernel/fork.c:1232:23: sparse: struct task_struct [noderef] __rcu * kernel/fork.c:1232:23: sparse: struct task_struct * -- >> mm/madvise.c:133:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct anon_vma_name [noderef] __rcu *anon_name @@ got struct anon_vma_name * @@ mm/madvise.c:133:19: sparse: expected struct anon_vma_name [noderef] __rcu *anon_name mm/madvise.c:133:19: sparse: got struct anon_vma_name * >> mm/madvise.c:137:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct kref *kref @@ got struct kref [noderef] __rcu * @@ mm/madvise.c:137:13: sparse: expected struct kref *kref mm/madvise.c:137:13: sparse: got struct kref [noderef] __rcu * >> mm/madvise.c:140:16: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected struct anon_vma_name * @@ got struct anon_vma_name [noderef] __rcu *anon_name @@ mm/madvise.c:140:16: sparse: expected struct anon_vma_name * mm/madvise.c:140:16: sparse: got struct anon_vma_name [noderef] __rcu *anon_name mm/madvise.c: note: in included file (through include/linux/smp.h, include/linux/lockdep.h, include/linux/spinlock.h, ...): include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true mm/madvise.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 'madvise_cold_or_pageout_pte_range' - unexpected unlock include/linux/rcupdate.h:781:9: sparse: sparse: context imbalance in 'madvise_free_pte_range' - unexpected unlock vim +401 include/linux/mm_inline.h 17fca131cee217 Arnd Bergmann 2022-01-14 394 5c26f6ac9416b6 Suren Baghdasaryan 2022-03-04 395 static inline void free_anon_vma_name(struct vm_area_struct *vma) 5c26f6ac9416b6 Suren Baghdasaryan 2022-03-04 396 { 17fca131cee217 Arnd Bergmann 2022-01-14 397 /* 5c26f6ac9416b6 Suren Baghdasaryan 2022-03-04 398 * Not using anon_vma_name because it generates a warning if mmap_lock 5c26f6ac9416b6 Suren Baghdasaryan 2022-03-04 399 * is not held, which might be the case here. 17fca131cee217 Arnd Bergmann 2022-01-14 400 */ 5c26f6ac9416b6 Suren Baghdasaryan 2022-03-04 @401 anon_vma_name_put(vma->anon_name); 5c26f6ac9416b6 Suren Baghdasaryan 2022-03-04 402 } 17fca131cee217 Arnd Bergmann 2022-01-14 403 :::::: The code at line 401 was first introduced by commit :::::: 5c26f6ac9416b63d093e29c30e79b3297e425472 mm: refactor vm_area_struct::anon_vma_name usage code :::::: TO: Suren Baghdasaryan :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki