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 310AAC46CD2 for ; Tue, 30 Jan 2024 12:53:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 73D686B0078; Tue, 30 Jan 2024 07:53:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C8C36B007B; Tue, 30 Jan 2024 07:53:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 566A66B007E; Tue, 30 Jan 2024 07:53:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 414246B0078 for ; Tue, 30 Jan 2024 07:53:09 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 93D1CA080D for ; Tue, 30 Jan 2024 12:53:08 +0000 (UTC) X-FDA: 81735967656.19.7D9AF4E Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf12.hostedemail.com (Postfix) with ESMTP id 553B540014 for ; Tue, 30 Jan 2024 12:53:05 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ASnL0FWH; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 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=1706619186; 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=1iXTHa6geAAV2HdIO3TMVJGtkAx3M1aAItqJz5v6pXE=; b=fX6wB7gXZ6z/bQ0qCL03+t9ImNGYa44uSP/8KDw0dC20JG0aWoc0hjtyOhCQ1QU+ZnNJmz dKxmSvd2y1nf63HYr0wkHgRQzZFrwA4XxWaihuIzwLu4fubnwPebwuOU/KfxEOBeZvF8yU 4C6zsossYJLtbfbP+pzlp8N/fPla6YM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ASnL0FWH; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706619186; a=rsa-sha256; cv=none; b=HQTd7rJGtnyJ5I4PsrnR0qhCEX3alT6bnCp8xUePO843wqxaLUvkw2ysa5mlmxbWpKWNpI xAQLbiA7N/42udsmz0idOp0dbHId3aMFaIjOdmNWwZZx7ehykbJe0vGEF7eKJfdkKEZvOg soGMmkpaPLn7KjuWZoLmeT3ktrjQNeE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706619186; x=1738155186; h=date:from:to:cc:subject:message-id:mime-version; bh=SXbfYpnbZWS4l4+vwNo2gGsrHksFZ7yrEBVZIGgPVI0=; b=ASnL0FWHJ2oIHeLHcYW7vTpsyR98XyisxnVCoGoP4IZgrpVbfr8hu2aA yoVVcqydCrxcIw6160LeQvMyO87do7xW2gDldqmNrDS/+owmGGst21VuZ DKItV1C6KunOYPhDDEw75me99tPs07KFpVkUZKg0pCyxqTDkHkKWga503 pTosn5kyBuamOm3FPIUh1tsRo7sdm4OAAW9qn4FkmULpY+qY/B1QYgk8H NcVEKIXwhvCeuiP58EloAHBFmeN2LCwit1KV1anJiq7l04OfoWf7BTVNw /P3shjD47MDV39pNl+ewwZhhcioNHgXbzEXoMOL0mgj3WPRBqZxe32YIf g==; X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="24745558" X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="24745558" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 04:53:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="907482433" X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="907482433" Received: from lkp-server02.sh.intel.com (HELO 59f4f4cd5935) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 30 Jan 2024 04:53:01 -0800 Received: from kbuild by 59f4f4cd5935 with local (Exim 4.96) (envelope-from ) id 1rUnbn-0000I3-13; Tue, 30 Jan 2024 12:52:59 +0000 Date: Tue, 30 Jan 2024 20:51:35 +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: <202401302054.sXdwijhd-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 553B540014 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: ejou8faeo6wntzmd58r4jgxect6h499g X-HE-Tag: 1706619185-284180 X-HE-Meta: U2FsdGVkX1/SGwPxE8noA3nqEd+6mum2SftGdYToZzWQahGqXctGnPdt4HWA4TZm3GlwOiyi6LzakTvEXKvAehMwU6mr/oZ+65IF7FRjkPtSTVXx/TqsyLX8t70dSmol5DVklGoaxYuReruXNCfVENtWhtRztcnlSoB9ebdk/x7vqyKQ21QqK9m6lblfh5BxgAQ6KbzuoaL3KZLJXcEJO2FaiyvYQHSF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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: 41d66f96d0f15a0a2ad6fa2208f6bac1a66cbd52 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/202401302054.sXdwijhd-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240130/202401302054.sXdwijhd-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/202401302054.sXdwijhd-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