* mm/memcontrol.c:1439:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
@ 2021-02-01 12:31 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-02-01 12:31 UTC (permalink / raw)
To: kbuild
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* mm/memcontrol.c:1439:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
@ 2021-04-14 22:12 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-14 22:12 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4592 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: 8e2e0104ef78d49a51db9acfd24eaf6d52dc779e
commit: 6168d0da2b479ce25a4647de194045de1bdd1f1d mm/lru: replace pgdat lru_lock with lruvec lock
date: 4 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 4 months ago
config: sh-randconfig-s031-20210414 (attached as .config)
compiler: sh4-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-280-g2cd6d34e-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__' W=1 ARCH=sh
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: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: 34523 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-14 22:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 12:31 mm/memcontrol.c:1439:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit kernel test robot
2021-04-14 22:12 kernel test robot
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.