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 11306C46CD2 for ; Sun, 28 Jan 2024 02:02:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F30F96B006E; Sat, 27 Jan 2024 21:02:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E91CD6B0071; Sat, 27 Jan 2024 21:02:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D32E66B0072; Sat, 27 Jan 2024 21:02:16 -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 BD2266B006E for ; Sat, 27 Jan 2024 21:02:16 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 64D621C1065 for ; Sun, 28 Jan 2024 02:02:16 +0000 (UTC) X-FDA: 81727069872.02.CB802F5 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by imf18.hostedemail.com (Postfix) with ESMTP id BDCA91C0018 for ; Sun, 28 Jan 2024 02:02:13 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=el1ELrHH; spf=pass (imf18.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=1706407334; 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=9QlIxB76xqSeKlvXPc9qmgHmQVUVAy3ugWwpa6lPCno=; b=fYciYMKuC7W1D7rp/sHwev5WlkgHR56GZ+MhEcqhb9wrDpBKXJp19eiFEmZc3C0pi+E1Ew ZkisuDM/rsvFR1RrzOKGELjFNBerrn+CEofgjKkJ+PzRSjaD9iGhotDRut2gGi0ZmGx+Ra 5mam35c8Kj44x/LqlBh+RilMPmigOxA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706407334; a=rsa-sha256; cv=none; b=Drk80JpAEWGgJOmEUVrE0JqgNwjdIVqQORm2VWTuJxEJPB5Tm2ruYMUwMnKIlkiX8FswXV 10G7kT21GZ7a1Z2014kJfnvfywRaPP0jm4zcQIKumc69WbV1lmPVZ7ITALg8nnVzvb1prk PRzrVRANk+pTPg75wErGYBr8ii1/xLw= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=el1ELrHH; spf=pass (imf18.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706407334; x=1737943334; h=date:from:to:cc:subject:message-id:mime-version; bh=3PmfhT6u2nJHl6KS+v8NusVTK9FaGfz7HyqgK/fHumg=; b=el1ELrHHAX0WTwMUOB2OdTB8TwopTQTuYnKkJIV7xYrgA9hBMG7tAcH8 WpxNse8hCtfd3dWkdW+JEwABq+9q3Yj3AKQz+vSRB5ckWRoT0dZPCqiVw Whpq1J9w0plg4CwXb/8mwJk7/v7z3vktZxqoeBdoUeyZ848EbXzlqam5L sbOkFJzhYX/WXs7RegAOeg5+t+X8ZfO54h367zc40WFCUBniRi1mjKtoM FCZrXXxGYLzwtg9hZZT0GDKeceioEaN2LfaDedO22V/GG1RKb4peAfr1h l0wdAtxBNB9jXhKo0Z8Ln0FtqFiZGXVgmesEfwtBdRhjS8Lqmvtl0Bxhz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="9479361" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="9479361" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2024 18:02:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="21737361" Received: from lkp-server01.sh.intel.com (HELO 370188f8dc87) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 27 Jan 2024 18:02:10 -0800 Received: from kbuild by 370188f8dc87 with local (Exim 4.96) (envelope-from ) id 1rTuUp-0002yI-37; Sun, 28 Jan 2024 02:02:07 +0000 Date: Sun, 28 Jan 2024 10:01:53 +0800 From: kernel test robot To: Rakie Kim Cc: oe-kbuild-all@lists.linux.dev, David Hildenbrand , Honggyu Kim , Gregory Price , Hyeongtak Ji , Andrew Morton , Linux Memory Management List Subject: [davidhildenbrand:rmap_batching 86/136] mm/mempolicy.c:3135:17: sparse: sparse: incorrect type in argument 1 (different address spaces) Message-ID: <202401280905.OUS18DsI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: BDCA91C0018 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 5j1qbtxaw38dxhpwo49j3zmwcctsfm1c X-HE-Tag: 1706407333-202298 X-HE-Meta: U2FsdGVkX1+OgkFyh+N5Wfxewwd6F4ib+8PspYgqbjSlse3ybDXqz5NOiCfu+bsOSqZmA3uvtUcIOjSByup0G0cwJgMQF8+Yb02wot7FgrtL1H8MjsXc0EMqej7ylG9Lq7XLcjGQZDDlD5zU2ncXV3jh9G1kfoIUsHsvqTAsqkKP2SkYUQ6esSWQyf5g32G9V+tbHhqUuMpBfwRJUuSYXtoRvx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Bs6GZigEeopD5q76WLcARcTOfLmgHkW9t8P1qUcEB/aY1z9cW4oZ 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://github.com/davidhildenbrand/linux rmap_batching head: 865e6d6a176a1f50bcbb7dd1d6a57b803e398039 commit: e65050eda564d19ea9e6dc8dd3d5e5ccc69bc6ec [86/136] mm/mempolicy: implement the sysfs-based weighted_interleave interface config: x86_64-randconfig-r131-20240127 (https://download.01.org/0day-ci/archive/20240128/202401280905.OUS18DsI-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/20240128/202401280905.OUS18DsI-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/202401280905.OUS18DsI-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) mm/mempolicy.c:3097:15: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *table @@ got unsigned char * @@ mm/mempolicy.c:3097:15: sparse: expected unsigned char [noderef] [usertype] __rcu *table mm/mempolicy.c:3097:15: sparse: got unsigned char * mm/mempolicy.c:3127:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *new @@ got void * @@ mm/mempolicy.c:3127:13: sparse: expected unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3127:13: sparse: got void * mm/mempolicy.c:3132:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *old @@ got unsigned char * @@ mm/mempolicy.c:3132:13: sparse: expected unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c:3132:13: sparse: got unsigned char * >> mm/mempolicy.c:3135:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3135:17: sparse: expected void const * mm/mempolicy.c:3135:17: sparse: got unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3135:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __rcu *old @@ mm/mempolicy.c:3135:17: sparse: expected void const * mm/mempolicy.c:3135:17: sparse: got unsigned char [noderef] [usertype] __rcu *old >> mm/mempolicy.c:3135:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3135:17: sparse: expected void const * mm/mempolicy.c:3135:17: sparse: got unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3135:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __rcu *old @@ mm/mempolicy.c:3135:17: sparse: expected void const * mm/mempolicy.c:3135:17: sparse: got unsigned char [noderef] [usertype] __rcu *old >> mm/mempolicy.c:3135:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3135:17: sparse: expected void *p mm/mempolicy.c:3135:17: sparse: got unsigned char [noderef] [usertype] __rcu *new >> mm/mempolicy.c:3135:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *q @@ got unsigned char [noderef] [usertype] __rcu *old @@ mm/mempolicy.c:3135:17: sparse: expected void const *q mm/mempolicy.c:3135:17: sparse: got unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c:3137:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3137:17: sparse: expected void const * mm/mempolicy.c:3137:17: sparse: got unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3137:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3137:17: sparse: expected void const * mm/mempolicy.c:3137:17: sparse: got unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3137:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got unsigned char [noderef] [usertype] __rcu *new @@ mm/mempolicy.c:3137:17: sparse: expected void *p mm/mempolicy.c:3137:17: sparse: got unsigned char [noderef] [usertype] __rcu *new mm/mempolicy.c:3142: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:3142:15: sparse: expected void const *objp mm/mempolicy.c:3142:15: sparse: got unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c:3239:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __rcu *old @@ got unsigned char * @@ mm/mempolicy.c:3239:13: sparse: expected unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c:3239:13: sparse: got unsigned char * mm/mempolicy.c:3245: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:3245:15: sparse: expected void const *objp mm/mempolicy.c:3245:15: sparse: got unsigned char [noderef] [usertype] __rcu *old mm/mempolicy.c: note: in included file (through include/linux/mmzone.h, include/linux/mempolicy.h): include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false 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: 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 mm/mempolicy.c:3098:31: sparse: sparse: dereference of noderef expression mm/mempolicy.c:3138:12: sparse: sparse: dereference of noderef expression vim +3135 mm/mempolicy.c 3103 3104 static ssize_t node_store(struct kobject *kobj, struct kobj_attribute *attr, 3105 const char *buf, size_t count) 3106 { 3107 struct iw_node_attr *node_attr; 3108 u8 __rcu *new; 3109 u8 __rcu *old; 3110 u8 weight = 0; 3111 3112 node_attr = container_of(attr, struct iw_node_attr, kobj_attr); 3113 if (count == 0 || sysfs_streq(buf, "")) 3114 weight = 0; 3115 else if (kstrtou8(buf, 0, &weight)) 3116 return -EINVAL; 3117 3118 /* 3119 * The default weight is 1 (for now), when the kernel-internal 3120 * default weight array is implemented, this should be updated to 3121 * collect the system-default weight of the node if the user passes 0. 3122 */ 3123 if (!weight) 3124 weight = 1; 3125 3126 /* We only need to allocate up to the number of possible nodes */ 3127 new = kmalloc(nr_node_ids, GFP_KERNEL); 3128 if (!new) 3129 return -ENOMEM; 3130 3131 mutex_lock(&iw_table_lock); 3132 old = rcu_dereference_protected(iw_table, 3133 lockdep_is_held(&iw_table_lock)); 3134 if (old) > 3135 memcpy(new, old, nr_node_ids); 3136 else 3137 memset(new, 1, nr_node_ids); 3138 new[node_attr->nid] = weight; 3139 rcu_assign_pointer(iw_table, new); 3140 mutex_unlock(&iw_table_lock); 3141 synchronize_rcu(); 3142 kfree(old); 3143 return count; 3144 } 3145 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki