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 285A7C47DA9 for ; Tue, 30 Jan 2024 00:32:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AFAAE6B0088; Mon, 29 Jan 2024 19:32:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A5AAC6B0089; Mon, 29 Jan 2024 19:32:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8FC2C6B008A; Mon, 29 Jan 2024 19:32:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 7D9276B0088 for ; Mon, 29 Jan 2024 19:32:29 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4C926403FC for ; Tue, 30 Jan 2024 00:32:29 +0000 (UTC) X-FDA: 81734101218.09.6D41427 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by imf17.hostedemail.com (Postfix) with ESMTP id A7A9D40016 for ; Tue, 30 Jan 2024 00:32:26 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=BCdsO4pl; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 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=1706574747; 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=XHCXvV9R+0Hcf7fssnN2GEX+COyB95c+UTn2nHU5/FQ=; b=TGMCdPOqd3Ep1Sn2E3jcSNgmDg/tZ+AQ3Anpo1kgcAujzCbiAnJZfxukg9fXoV7fdngkI7 2gv5z393Tg3SYb/a87vUQo8v148iCnjFMjdEHZYlBglM0/2hhiv1vD/WwXIioXJJQ4JlDU PSAATf1JJfhY9qc8SyecDuBPxXChMDU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706574747; a=rsa-sha256; cv=none; b=dJPXJImxR3Yi2GHarI76SuaRl4z0fPwotfrKH4+CH2EPrDb/feKN/rnjsV7naBxDbmNRi2 RTfwyPqJ1r0R63C3jhg3/mQjlP9C7t0xEAqTCjCKF5xHjstSsQi+UnPJB2hDP4jfedpzPt /dLLx9KaUtzINl13CCe2TQsCA/POaBU= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=BCdsO4pl; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706574746; x=1738110746; h=date:from:to:cc:subject:message-id:mime-version; bh=3654V3rhVOYfpbVNpN1PoWijFIl/xEiCgsbnv5kCJXA=; b=BCdsO4plzySDfFBxW0V+DjVKSb6/IpSVgIn7Gzt9gTRZLJftcaAtluzA wBB3/ieVRItDgLeCGZzfG3DRwoCYNtt1rj2ndSGjr3uTh6dfiQuRtajKT 6o9XjdxYd/VGVj1fmI+XHdm6qzZ1WnFI14Akg0aeJ+As44UNxZ7SNVtlZ meD4mgIlhapnF+THmDvVno0Brrni2Ak46GNHrIZOGpyeOmtk4rhorYFdi PXAtnkkEeOHmIoN6khcN/CVZP975CGbLFaMuWn64jyfOxIraPSSYARgbl cxy5bT+DBD85zvwy632FROpw/TO94Eh3FBTGjWHsonR7k0otpF7wF78bY A==; X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="467383701" X-IronPort-AV: E=Sophos;i="6.05,227,1701158400"; d="scan'208";a="467383701" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2024 16:32:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,227,1701158400"; d="scan'208";a="3523104" Received: from lkp-server01.sh.intel.com (HELO 370188f8dc87) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 29 Jan 2024 16:32:22 -0800 Received: from kbuild by 370188f8dc87 with local (Exim 4.96) (envelope-from ) id 1rUc30-0004km-2n; Tue, 30 Jan 2024 00:32:18 +0000 Date: Tue, 30 Jan 2024 08:31:50 +0800 From: kernel test robot To: Rakie Kim Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton , Honggyu Kim , Gregory Price , Hyeongtak Ji Subject: [linux-next:master 2547/2825] mm/mempolicy.c:3131:17: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202401300823.Ozj10LjA-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: A7A9D40016 X-Rspam-User: X-Stat-Signature: ss766to7kecpegggbm4sotufkjmn74cu X-Rspamd-Server: rspam03 X-HE-Tag: 1706574746-376134 X-HE-Meta: U2FsdGVkX1/1gN70GFI4gI/BbDGTkw6Pruy3/lfFmXrx4/ADiYLOhFuVkHcgWrJNfmpNL8czOft83uTCF+Gbf1JvoRElxZH1D5Gp18ELC691VZOOWzH52latQFfqMtcDlbtPuQ7MFVpDENwWwtRCAhA3Mulzf/TgvNimZrBkzUHSGyBWhAwZa0mI5XxkEK8HEnmxoKp++QdpKdrK+VcTGQSjcYCNjoqu8blLayPEB3JYbGmvEG95fgKs01kuy0Q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000, 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: 596764183be8ebb13352b281a442a1f1151c9b06 commit: 25506bd0b31e4e9d89dc293aba8f4c6e2110dccf [2547/2825] mm/mempolicy: implement the sysfs-based weighted_interleave interface config: loongarch-randconfig-r113-20240129 (https://download.01.org/0day-ci/archive/20240130/202401300823.Ozj10LjA-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240130/202401300823.Ozj10LjA-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/202401300823.Ozj10LjA-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) mm/mempolicy.c:3094:15: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *table @@ got unsigned char * @@ mm/mempolicy.c:3094:15: sparse: expected unsigned char [noderef] [usertype] __rcu *table mm/mempolicy.c:3094:15: sparse: got unsigned char * mm/mempolicy.c:3123:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *new @@ got void * @@ mm/mempolicy.c:3123:13: sparse: expected unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3123:13: sparse: got void * mm/mempolicy.c:3128:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *old @@ got unsigned char * @@ mm/mempolicy.c:3128:13: sparse: expected unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c:3128:13: sparse: got unsigned char * >> mm/mempolicy.c:3131:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *__to @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3131:17: sparse: expected void *__to mm/mempolicy.c:3131:17: sparse: got unsigned char [noderef] [usertype] __rcu *new >> mm/mempolicy.c:3131:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *__from @@ got unsigned char [noderef] [usertype] __rcu *old @@ mm/mempolicy.c:3131:17: sparse: expected void const *__from mm/mempolicy.c:3131:17: sparse: got unsigned char [noderef] [usertype] __rcu *old >> mm/mempolicy.c:3133:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *__s @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3133:17: sparse: expected void *__s mm/mempolicy.c:3133:17: sparse: got unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3138:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *objp @@ got unsigned char [noderef] [usertype] __rcu *old @@ mm/mempolicy.c:3138:15: sparse: expected void const *objp mm/mempolicy.c:3138:15: sparse: got unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c:3234:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *old @@ got unsigned char * @@ mm/mempolicy.c:3234:13: sparse: expected unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c:3234:13: sparse: got unsigned char * mm/mempolicy.c:3239:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *objp @@ got unsigned char [noderef] [usertype] __rcu *old @@ mm/mempolicy.c:3239:15: sparse: expected void const *objp mm/mempolicy.c:3239:15: sparse: got unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.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 'queue_folios_pte_range' - unexpected unlock mm/mempolicy.c:3095:31: sparse: sparse: dereference of noderef expression mm/mempolicy.c:3134:12: sparse: sparse: dereference of noderef expression vim +3131 mm/mempolicy.c 3100 3101 static ssize_t node_store(struct kobject *kobj, struct kobj_attribute *attr, 3102 const char *buf, size_t count) 3103 { 3104 struct iw_node_attr *node_attr; 3105 u8 __rcu *new; 3106 u8 __rcu *old; 3107 u8 weight = 0; 3108 3109 node_attr = container_of(attr, struct iw_node_attr, kobj_attr); 3110 if (count == 0 || sysfs_streq(buf, "")) 3111 weight = 0; 3112 else if (kstrtou8(buf, 0, &weight)) 3113 return -EINVAL; 3114 3115 /* 3116 * The default weight is 1, for now. When the kernel-internal 3117 * default weight array is implemented, 0 will be a directive to 3118 * the allocators to use the system-default weight instead. 3119 */ 3120 if (!weight) 3121 weight = 1; 3122 3123 new = kmalloc(nr_node_ids, GFP_KERNEL); 3124 if (!new) 3125 return -ENOMEM; 3126 3127 mutex_lock(&iw_table_lock); 3128 old = rcu_dereference_protected(iw_table, 3129 lockdep_is_held(&iw_table_lock)); 3130 if (old) > 3131 memcpy(new, old, nr_node_ids); 3132 else > 3133 memset(new, 1, nr_node_ids); 3134 new[node_attr->nid] = weight; 3135 rcu_assign_pointer(iw_table, new); 3136 mutex_unlock(&iw_table_lock); 3137 synchronize_rcu(); 3138 kfree(old); 3139 return count; 3140 } 3141 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki