From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: mm/memcontrol.c:1439:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
Date: Mon, 01 Feb 2021 20:31:13 +0800 [thread overview]
Message-ID: <202102012006.fXPe44Az-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4855 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alex Shi <alex.shi@linux.alibaba.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1048ba83fb1c00cd24172e23e8263972f6b5d9ac
commit: 6168d0da2b479ce25a4647de194045de1bdd1f1d mm/lru: replace pgdat lru_lock with lruvec lock
date: 7 weeks ago
:::::: branch date: 15 hours ago
:::::: commit date: 7 weeks ago
config: xtensa-randconfig-s032-20210201 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.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.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6168d0da2b479ce25a4647de194045de1bdd1f1d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6168d0da2b479ce25a4647de194045de1bdd1f1d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
mm/memcontrol.c:4234:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4234:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4234:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4236:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4236:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4236:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4392:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4392:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4392:9: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4486:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4486:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4486:9: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:6043:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:6043:23: sparse: struct task_struct [noderef] __rcu *
mm/memcontrol.c:6043:23: sparse: struct task_struct *
mm/memcontrol.c:1402:15: sparse: sparse: context imbalance in 'lock_page_lruvec' - wrong count at exit
mm/memcontrol.c: note: in included file (through include/linux/wait.h, include/linux/pid.h, include/linux/sched.h, include/linux/cgroup.h, ...):
>> include/linux/spinlock.h:379:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irq' - wrong count at exit
>> mm/memcontrol.c:1439:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
mm/memcontrol.c:2201:19: sparse: sparse: context imbalance in 'lock_page_memcg' - wrong count at exit
include/linux/spinlock.h:409:9: sparse: sparse: context imbalance in '__unlock_page_memcg' - unexpected unlock
vim +/lock_page_lruvec_irqsave +1439 mm/memcontrol.c
6168d0da2b479c Alex Shi 2020-12-15 1431
6168d0da2b479c Alex Shi 2020-12-15 1432 struct lruvec *lock_page_lruvec_irqsave(struct page *page, unsigned long *flags)
6168d0da2b479c Alex Shi 2020-12-15 1433 {
6168d0da2b479c Alex Shi 2020-12-15 1434 struct lruvec *lruvec;
6168d0da2b479c Alex Shi 2020-12-15 1435 struct pglist_data *pgdat = page_pgdat(page);
6168d0da2b479c Alex Shi 2020-12-15 1436
6168d0da2b479c Alex Shi 2020-12-15 1437 rcu_read_lock();
6168d0da2b479c Alex Shi 2020-12-15 1438 lruvec = mem_cgroup_page_lruvec(page, pgdat);
6168d0da2b479c Alex Shi 2020-12-15 @1439 spin_lock_irqsave(&lruvec->lru_lock, *flags);
6168d0da2b479c Alex Shi 2020-12-15 1440 rcu_read_unlock();
6168d0da2b479c Alex Shi 2020-12-15 1441
6168d0da2b479c Alex Shi 2020-12-15 1442 lruvec_memcg_debug(lruvec, page);
6168d0da2b479c Alex Shi 2020-12-15 1443
6168d0da2b479c Alex Shi 2020-12-15 1444 return lruvec;
6168d0da2b479c Alex Shi 2020-12-15 1445 }
6168d0da2b479c Alex Shi 2020-12-15 1446
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28460 bytes --]
next reply other threads:[~2021-02-01 12:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-01 12:31 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-14 22:12 mm/memcontrol.c:1439:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202102012006.fXPe44Az-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.