CC: kbuild-...@lists.01.org
CC: Linux Memory Management List <linux...@kvack.org>
TO: Nicholas Piggin <npig...@gmail.com>
CC: Miaohe Lin <linmia...@huawei.com>
CC: Christoph Hellwig <h...@lst.de>
CC: Andrew Morton <a...@linux-foundation.org>
CC: Linux Memory Management List <linux...@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   e99d8a8495175df8cb8b739f8cf9b0fc9d0cd3b5
commit: 0bdcf521468e8d8b2592922fd2bde0d69e651c69 [8257/11648] mm/vmalloc: 
rename vmap_*_range vmap_pages_*_range
:::::: branch date: 4 hours ago
:::::: commit date: 8 days ago
config: parisc-randconfig-s031-20210409 (attached as .config)
compiler: hppa64-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/next/linux-next.git/commit/?id=0bdcf521468e8d8b2592922fd2bde0d69e651c69
        git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 0bdcf521468e8d8b2592922fd2bde0d69e651c69
        # 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=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>


sparse warnings: (new ones prefixed by >>)
   mm/vmalloc.c: note: in included file (through include/linux/pgtable.h, 
include/linux/mm.h):
   arch/parisc/include/asm/pgtable.h:451:9: sparse: sparse: context imbalance 
in 'vunmap_pte_range' - different lock contexts for basic block
>> mm/vmalloc.c:214:17: sparse: sparse: context imbalance in 
>> 'vmap_pages_pte_range' - different lock contexts for basic block

vim +/vmap_pages_pte_range +214 mm/vmalloc.c

^1da177e4c3f41 Linus Torvalds  2005-04-16  191  
0bdcf521468e8d Nicholas Piggin 2021-04-01  192  static int 
vmap_pages_pte_range(pmd_t *pmd, unsigned long addr,
2ba3e6947aed9b Joerg Roedel    2020-06-01  193                  unsigned long 
end, pgprot_t prot, struct page **pages, int *nr,
2ba3e6947aed9b Joerg Roedel    2020-06-01  194                  pgtbl_mod_mask 
*mask)
^1da177e4c3f41 Linus Torvalds  2005-04-16  195  {
^1da177e4c3f41 Linus Torvalds  2005-04-16  196          pte_t *pte;
^1da177e4c3f41 Linus Torvalds  2005-04-16  197  
db64fe02258f15 Nick Piggin     2008-10-18  198          /*
db64fe02258f15 Nick Piggin     2008-10-18  199           * nr is a running 
index into the array which helps higher level
db64fe02258f15 Nick Piggin     2008-10-18  200           * callers keep track 
of where we're up to.
db64fe02258f15 Nick Piggin     2008-10-18  201           */
db64fe02258f15 Nick Piggin     2008-10-18  202  
2ba3e6947aed9b Joerg Roedel    2020-06-01  203          pte = 
pte_alloc_kernel_track(pmd, addr, mask);
^1da177e4c3f41 Linus Torvalds  2005-04-16  204          if (!pte)
^1da177e4c3f41 Linus Torvalds  2005-04-16  205                  return -ENOMEM;
^1da177e4c3f41 Linus Torvalds  2005-04-16  206          do {
db64fe02258f15 Nick Piggin     2008-10-18  207                  struct page 
*page = pages[*nr];
db64fe02258f15 Nick Piggin     2008-10-18  208  
db64fe02258f15 Nick Piggin     2008-10-18  209                  if 
(WARN_ON(!pte_none(*pte)))
db64fe02258f15 Nick Piggin     2008-10-18  210                          return 
-EBUSY;
db64fe02258f15 Nick Piggin     2008-10-18  211                  if 
(WARN_ON(!page))
^1da177e4c3f41 Linus Torvalds  2005-04-16  212                          return 
-ENOMEM;
^1da177e4c3f41 Linus Torvalds  2005-04-16  213                  
set_pte_at(&init_mm, addr, pte, mk_pte(page, prot));
db64fe02258f15 Nick Piggin     2008-10-18 @214                  (*nr)++;
^1da177e4c3f41 Linus Torvalds  2005-04-16  215          } while (pte++, addr += 
PAGE_SIZE, addr != end);
2ba3e6947aed9b Joerg Roedel    2020-06-01  216          *mask |= 
PGTBL_PTE_MODIFIED;
^1da177e4c3f41 Linus Torvalds  2005-04-16  217          return 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  218  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  219  

:::::: The code at line 214 was first introduced by commit
:::::: db64fe02258f1507e13fe5212a989922323685ce mm: rewrite vmap layer

:::::: TO: Nick Piggin <npig...@suse.de>
:::::: CC: Linus Torvalds <torva...@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to