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 7943CC43334 for ; Thu, 16 Jun 2022 14:49:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ED15C6B0071; Thu, 16 Jun 2022 10:49:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E80B76B0072; Thu, 16 Jun 2022 10:49:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D216D6B0074; Thu, 16 Jun 2022 10:49:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id BF6006B0071 for ; Thu, 16 Jun 2022 10:49:08 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 87F9A80F2F for ; Thu, 16 Jun 2022 14:49:08 +0000 (UTC) X-FDA: 79584381576.23.B2BB59E Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf24.hostedemail.com (Postfix) with ESMTP id B7014180079 for ; Thu, 16 Jun 2022 14:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655390946; x=1686926946; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8GRTdOKhgZUTyAOwSLAdCbYHI0wnSiuMdd9R7+rwbdI=; b=Mu1+K+8q69X5wraXXYxo+ssxwas5+ff0TTbtfZLZnx3GRdiAjava9lJK IBb7mQYLWHdEJKVOQ6d/+SyJPUot68BXs0HkThN9AmQqcoOyrXDFu0dQI d/fzNb8sWLuVTZAtJg3CuaSDuhG1j4IcFNd2tSnq4TGgWWY4Rpi1sYyEH psh6niWczaSolII1z1qyRiHwbgVqkVS+Noi2DnwIBBhbFLJFNOWyDmzBu 8imEjhPpc0LnV+ppaCOfGZj4oXArAyiyHvKJSm06OXVdVnL3FTmsjsU5e e6TPEu8Sc/Lm207NIqxGGjWoL+UBoMqoNTHOM+VqdNEpC4akd1rgFuuRF Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="343222605" X-IronPort-AV: E=Sophos;i="5.92,305,1650956400"; d="scan'208";a="343222605" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 07:49:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,305,1650956400"; d="scan'208";a="831590928" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 16 Jun 2022 07:49:03 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o1qnu-000OTA-Lw; Thu, 16 Jun 2022 14:49:02 +0000 Date: Thu, 16 Jun 2022 22:48:58 +0800 From: kernel test robot To: Liam Howlett , "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , Qian Cai Cc: kbuild-all@lists.01.org, Yu Zhao Subject: Re: [PATCH v2 Fix 2/3] maple_tree: Change spanning store to work on larger trees Message-ID: <202206162211.tEs2TZjY-lkp@intel.com> References: <20220616011739.802669-3-Liam.Howlett@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220616011739.802669-3-Liam.Howlett@oracle.com> ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Mu1+K+8q; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf24.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655390947; 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:in-reply-to:references:references:dkim-signature; bh=220FerlzT8wWMRwGtBuaODh2TuCij5jIbPLlOg/bWoo=; b=8CzquC8/2611uQHe7vZy1IaPwQzLGALzsnowMuIhY9l0BwNWm2oWUDCt8aLP5pwrpq6Um+ HPw7/CC1UDUewlY9Q+BwDY2HJNzaIZpBO+ZzFttYrxsYuS16NvIj6i7jWX9QcN6LTOS+Ws D7Yhwj4Z2GUgiH277c4yKH9iva/4V1U= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655390947; a=rsa-sha256; cv=none; b=hCvQid3VZVlYo12B8Bwb79UJUZQ5oKt67jQZR+W31Klbg3RtGAYRi04XTA04zJ3+9xXrW/ 7RYH4oHyP9W9we5gAB2X5ISofvIJOLEF8oCPsJzgHWobbJH3s+3yLLDO8Wl4KPEFRD4WV9 ZQn5wV1ZOSK7bbMHFy7mM5kC8frLv5M= X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: B7014180079 X-Rspam-User: Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Mu1+K+8q; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf24.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com X-Stat-Signature: ntngux9wi9mqk8jsf143tbdhq96ana1y X-HE-Tag: 1655390946-201579 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: Hi Liam, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on akpm-mm/mm-everything] [cannot apply to linus/master v5.19-rc2 next-20220616] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Liam-Howlett/Maple-tree-spanning-fixes/20220616-091945 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: openrisc-randconfig-s032-20220616 (https://download.01.org/0day-ci/archive/20220616/202206162211.tEs2TZjY-lkp@intel.com/config) compiler: or1k-linux-gcc (GCC) 11.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-30-g92122700-dirty # https://github.com/intel-lab-lkp/linux/commit/ebc93d5486b6fed251043d034790c95faac9394d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Liam-Howlett/Maple-tree-spanning-fixes/20220616-091945 git checkout ebc93d5486b6fed251043d034790c95faac9394d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=openrisc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> lib/maple_tree.c:5506:69: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct maple_enode const *entry @@ got void [noderef] __rcu * @@ lib/maple_tree.c:5506:69: sparse: expected struct maple_enode const *entry lib/maple_tree.c:5506:69: sparse: got void [noderef] __rcu * lib/maple_tree.c:5507:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct maple_enode const *entry @@ got void [noderef] __rcu * @@ lib/maple_tree.c:5507:38: sparse: expected struct maple_enode const *entry lib/maple_tree.c:5507:38: sparse: got void [noderef] __rcu * >> lib/maple_tree.c:2322:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **l_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2322:17: sparse: expected void **l_slots lib/maple_tree.c:2322:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2325:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **r_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2325:17: sparse: expected void **r_slots lib/maple_tree.c:2325:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2329:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2329:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2329:57: sparse: got void **l_slots >> lib/maple_tree.c:2333:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2333:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2333:57: sparse: got void **r_slots lib/maple_tree.c:2351:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2351:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2351:57: sparse: got void **l_slots lib/maple_tree.c:2358:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2358:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2358:57: sparse: got void **r_slots >> lib/maple_tree.c:2322:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **l_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2322:17: sparse: expected void **l_slots lib/maple_tree.c:2322:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2325:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void **r_slots @@ got void [noderef] __rcu ** @@ lib/maple_tree.c:2325:17: sparse: expected void **r_slots lib/maple_tree.c:2325:17: sparse: got void [noderef] __rcu ** >> lib/maple_tree.c:2329:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2329:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2329:57: sparse: got void **l_slots >> lib/maple_tree.c:2333:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2333:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2333:57: sparse: got void **r_slots lib/maple_tree.c:2351:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **l_slots @@ lib/maple_tree.c:2351:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2351:57: sparse: got void **l_slots lib/maple_tree.c:2358:57: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __rcu **slots @@ got void **r_slots @@ lib/maple_tree.c:2358:57: sparse: expected void [noderef] __rcu **slots lib/maple_tree.c:2358:57: sparse: got void **r_slots lib/maple_tree.c:5444:9: sparse: sparse: context imbalance in 'mt_free_walk' - different lock contexts for basic block vim +5506 lib/maple_tree.c 5472 5473 static void mt_destroy_walk(struct maple_enode *enode, unsigned char ma_flags, 5474 bool free) 5475 { 5476 void __rcu **slots; 5477 struct maple_node *node = mte_to_node(enode); 5478 struct maple_enode *start; 5479 struct maple_tree mt; 5480 5481 MA_STATE(mas, &mt, 0, 0); 5482 5483 if (mte_is_leaf(enode)) 5484 goto free_leaf; 5485 5486 mt_init_flags(&mt, ma_flags); 5487 mas_lock(&mas); 5488 5489 mas.node = start = enode; 5490 slots = mas_destroy_descend(&mas, start, 0); 5491 node = mas_mn(&mas); 5492 do { 5493 enum maple_type type; 5494 unsigned char offset; 5495 5496 node->slot_len = mas_dead_leaves(&mas, slots); 5497 if (free) 5498 mt_free_bulk(node->slot_len, slots); 5499 offset = node->parent_slot + 1; 5500 mas.node = node->piv_parent; 5501 if (mas_mn(&mas) == node) 5502 goto start_slots_free; 5503 5504 type = mte_node_type(mas.node); 5505 slots = ma_slots(mte_to_node(mas.node), type); > 5506 if ((offset < mt_slots[type]) && mte_node_type(slots[offset]) && 5507 mte_to_node(slots[offset])) { 5508 struct maple_enode *parent = mas.node; 5509 5510 mas.node = mas_slot_locked(&mas, slots, offset); 5511 slots = mas_destroy_descend(&mas, parent, offset); 5512 } 5513 node = mas_mn(&mas); 5514 } while (start != mas.node); 5515 5516 node = mas_mn(&mas); 5517 node->slot_len = mas_dead_leaves(&mas, slots); 5518 if (free) 5519 mt_free_bulk(node->slot_len, slots); 5520 5521 start_slots_free: 5522 mas_unlock(&mas); 5523 5524 free_leaf: 5525 if (free) 5526 mt_free_rcu(&node->rcu); 5527 } 5528 -- 0-DAY CI Kernel Test Service https://01.org/lkp