* arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in '__split_huge_page' - different lock contexts for basic block
@ 2021-07-26 15:13 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-26 15:13 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5059 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alex Shi <alex.shi@linux.alibaba.com>
CC: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.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: ff1176468d368232b684f75e82563369208bc371
commit: b6769834aac1d467fa1c71277d15688efcbb4d76 mm/thp: narrow lru locking
date: 7 months ago
:::::: branch date: 17 hours ago
:::::: commit date: 7 months ago
config: mips-randconfig-s031-20210726 (attached as .config)
compiler: mips-linux-gcc (GCC) 10.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-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b6769834aac1d467fa1c71277d15688efcbb4d76
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b6769834aac1d467fa1c71277d15688efcbb4d76
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash
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 >>)
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
mm/huge_memory.c:1640:20: sparse: sparse: context imbalance in 'madvise_free_huge_pmd' - unexpected unlock
mm/huge_memory.c:1677:28: sparse: sparse: context imbalance in 'zap_huge_pmd' - unexpected unlock
mm/huge_memory.c:1787:28: sparse: sparse: context imbalance in 'move_huge_pmd' - unexpected unlock
mm/huge_memory.c:1891:20: sparse: sparse: context imbalance in 'change_huge_pmd' - unexpected unlock
mm/huge_memory.c:1901:12: sparse: sparse: context imbalance in '__pmd_trans_huge_lock' - wrong count at exit
mm/huge_memory.c: note: in included file (through include/linux/irqflags.h, arch/mips/include/asm/atomic.h, include/linux/atomic.h, ...):
>> arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in '__split_huge_page' - different lock contexts for basic block
arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block
vim +/__split_huge_page +101 arch/mips/include/asm/irqflags.h
02b849f7613003 Ralf Baechle 2013-02-08 98
02b849f7613003 Ralf Baechle 2013-02-08 99 static inline void arch_local_irq_enable(void)
02b849f7613003 Ralf Baechle 2013-02-08 100 {
02b849f7613003 Ralf Baechle 2013-02-08 @101 __asm__ __volatile__(
e97c5b609880d9 Jim Quinlan 2012-09-06 102 " .set push \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 103 " .set reorder \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 104 " .set noat \n"
ba9196d2e005a0 Jiaxun Yang 2020-01-13 105 #if defined(CONFIG_CPU_HAS_DIEI)
e97c5b609880d9 Jim Quinlan 2012-09-06 106 " ei \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 107 #else
e97c5b609880d9 Jim Quinlan 2012-09-06 108 " mfc0 $1,$12 \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 109 " ori $1,0x1f \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 110 " xori $1,0x1e \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 111 " mtc0 $1,$12 \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 112 #endif
02b849f7613003 Ralf Baechle 2013-02-08 113 " " __stringify(__irq_enable_hazard) " \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 114 " .set pop \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 115 : /* no outputs */
e97c5b609880d9 Jim Quinlan 2012-09-06 116 : /* no inputs */
e97c5b609880d9 Jim Quinlan 2012-09-06 117 : "memory");
e97c5b609880d9 Jim Quinlan 2012-09-06 118 }
e97c5b609880d9 Jim Quinlan 2012-09-06 119
:::::: The code at line 101 was first introduced by commit
:::::: 02b849f7613003fe5f9e58bf233d49b0ebd4a5e8 MIPS: Get rid of the use of .macro in C code.
:::::: TO: Ralf Baechle <ralf@linux-mips.org>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>
---
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: 35504 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in '__split_huge_page' - different lock contexts for basic block
@ 2021-04-10 23:36 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-10 23:36 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5172 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alex Shi <alex.shi@linux.alibaba.com>
CC: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.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: 52e44129fba5cfc4e351fdb5e45849afc74d9a53
commit: b6769834aac1d467fa1c71277d15688efcbb4d76 mm/thp: narrow lru locking
date: 4 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 4 months ago
config: mips-randconfig-s032-20210411 (attached as .config)
compiler: mips64el-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-279-g6d5d9b42-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b6769834aac1d467fa1c71277d15688efcbb4d76
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b6769834aac1d467fa1c71277d15688efcbb4d76
# 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=mips
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 >>)
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
mm/huge_memory.c:629:25: sparse: sparse: cast from restricted vm_fault_t
mm/huge_memory.c:748:33: sparse: sparse: cast from restricted vm_fault_t
mm/huge_memory.c:1640:20: sparse: sparse: context imbalance in 'madvise_free_huge_pmd' - unexpected unlock
mm/huge_memory.c:1677:28: sparse: sparse: context imbalance in 'zap_huge_pmd' - unexpected unlock
mm/huge_memory.c:1787:28: sparse: sparse: context imbalance in 'move_huge_pmd' - unexpected unlock
mm/huge_memory.c:1891:20: sparse: sparse: context imbalance in 'change_huge_pmd' - unexpected unlock
mm/huge_memory.c:1901:12: sparse: sparse: context imbalance in '__pmd_trans_huge_lock' - wrong count at exit
mm/huge_memory.c: note: in included file (through include/linux/irqflags.h, arch/mips/include/asm/atomic.h, include/linux/atomic.h, ...):
>> arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in '__split_huge_page' - different lock contexts for basic block
mm/huge_memory.c:2774:9: sparse: sparse: context imbalance in 'split_huge_page_to_list' - different lock contexts for basic block
vim +/__split_huge_page +101 arch/mips/include/asm/irqflags.h
02b849f7613003 Ralf Baechle 2013-02-08 98
02b849f7613003 Ralf Baechle 2013-02-08 99 static inline void arch_local_irq_enable(void)
02b849f7613003 Ralf Baechle 2013-02-08 100 {
02b849f7613003 Ralf Baechle 2013-02-08 @101 __asm__ __volatile__(
e97c5b609880d9 Jim Quinlan 2012-09-06 102 " .set push \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 103 " .set reorder \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 104 " .set noat \n"
ba9196d2e005a0 Jiaxun Yang 2020-01-13 105 #if defined(CONFIG_CPU_HAS_DIEI)
e97c5b609880d9 Jim Quinlan 2012-09-06 106 " ei \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 107 #else
e97c5b609880d9 Jim Quinlan 2012-09-06 108 " mfc0 $1,$12 \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 109 " ori $1,0x1f \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 110 " xori $1,0x1e \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 111 " mtc0 $1,$12 \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 112 #endif
02b849f7613003 Ralf Baechle 2013-02-08 113 " " __stringify(__irq_enable_hazard) " \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 114 " .set pop \n"
e97c5b609880d9 Jim Quinlan 2012-09-06 115 : /* no outputs */
e97c5b609880d9 Jim Quinlan 2012-09-06 116 : /* no inputs */
e97c5b609880d9 Jim Quinlan 2012-09-06 117 : "memory");
e97c5b609880d9 Jim Quinlan 2012-09-06 118 }
e97c5b609880d9 Jim Quinlan 2012-09-06 119
:::::: The code at line 101 was first introduced by commit
:::::: 02b849f7613003fe5f9e58bf233d49b0ebd4a5e8 MIPS: Get rid of the use of .macro in C code.
:::::: TO: Ralf Baechle <ralf@linux-mips.org>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>
---
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: 24509 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-26 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 15:13 arch/mips/include/asm/irqflags.h:101:9: sparse: sparse: context imbalance in '__split_huge_page' - different lock contexts for basic block kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-04-10 23:36 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.