All of lore.kernel.org
 help / color / mirror / Atom feed
* mm/memory.c:1462:9: sparse: sparse: context imbalance in 'insert_page_into_pte_locked' - different lock contexts for basic block
@ 2021-02-06  1:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-06  1:45 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 6816 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Arjun Roy <arjunroy@google.com>
CC: Eric Dumazet <edumazet@google.com>
CC: Soheil Hassas Yeganeh <soheil@google.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:   61556703b610a104de324e4f061dc6cf7b218b46
commit: 8efd6f5b1732c4ac88b4bb6908d481d95804fa1c mm/memory.c: refactor insert_page to prepare for batched-lock insert
date:   10 months ago
:::::: branch date: 2 days ago
:::::: commit date: 10 months ago
config: parisc-randconfig-s031-20210206 (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-215-g0fb77bb6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8efd6f5b1732c4ac88b4bb6908d481d95804fa1c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8efd6f5b1732c4ac88b4bb6908d481d95804fa1c
        # 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 <lkp@intel.com>


"sparse warnings: (new ones prefixed by >>)"
   mm/memory.c: note: in included file (through include/linux/export.h, include/linux/linkage.h, include/linux/kernel.h, ...):
   ./include/generated/autoksyms.h:5:16: sparse: sparse: no whitespace before object-like macro body
   ./include/generated/autoksyms.h:6:16: sparse: sparse: no whitespace before object-like macro body
   ./include/generated/autoksyms.h:6:9: sparse: sparse: preprocessor token __KSYM_ redefined
   ./include/generated/autoksyms.h:5:9: sparse: this was the original definition
   ./include/generated/autoksyms.h:7:16: sparse: sparse: no whitespace before object-like macro body
   ./include/generated/autoksyms.h:7:9: sparse: sparse: preprocessor token __KSYM_ redefined
   ./include/generated/autoksyms.h:5:9: sparse: this was the original definition
   ./include/generated/autoksyms.h:8:16: sparse: sparse: no whitespace before object-like macro body
   ./include/generated/autoksyms.h:8:9: sparse: sparse: preprocessor token __KSYM_ redefined
   ./include/generated/autoksyms.h:5:9: sparse: this was the original definition
   ./include/generated/autoksyms.h:9:16: sparse: sparse: no whitespace before object-like macro body
   ./include/generated/autoksyms.h:9:9: sparse: sparse: preprocessor token __KSYM_ redefined
   ./include/generated/autoksyms.h:5:9: sparse: this was the original definition
   mm/memory.c:810:9: sparse: sparse: context imbalance in 'copy_pte_range' - different lock contexts for basic block
   mm/memory.c: note: in included file (through arch/parisc/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
   arch/parisc/include/asm/pgtable.h:525:26: sparse: sparse: context imbalance in 'zap_pte_range' - different lock contexts for basic block
   mm/memory.c:1442:16: sparse: sparse: context imbalance in '__get_locked_pte' - different lock contexts for basic block
>> mm/memory.c:1462:9: sparse: sparse: context imbalance in 'insert_page_into_pte_locked' - different lock contexts for basic block
   mm/memory.c:1491:9: sparse: sparse: context imbalance in 'insert_page' - different lock contexts for basic block
   mm/memory.c:1665:9: sparse: sparse: context imbalance in 'insert_pfn' - different lock contexts for basic block
   mm/memory.c:1884:17: sparse: sparse: context imbalance in 'remap_pte_range' - different lock contexts for basic block
   mm/memory.c:2114:17: sparse: sparse: context imbalance in 'apply_to_pte_range' - unexpected unlock
   mm/memory.c:2598:17: sparse: sparse: context imbalance in 'wp_page_copy' - different lock contexts for basic block
   mm/memory.c:2708:17: sparse: sparse: context imbalance in 'wp_pfn_shared' - unexpected unlock
   mm/memory.c:2771:19: sparse: sparse: context imbalance in 'do_wp_page' - different lock contexts for basic block
   mm/memory.c:3276:9: sparse: sparse: context imbalance in 'do_anonymous_page' - different lock contexts for basic block
   mm/memory.c:3357:19: sparse: sparse: context imbalance in 'pte_alloc_one_map' - different lock contexts for basic block
   mm/memory.c:3541:9: sparse: sparse: context imbalance in 'alloc_set_pte' - different lock contexts for basic block
   mm/memory.c:3586:17: sparse: sparse: context imbalance in 'finish_fault' - unexpected unlock
   mm/memory.c:3695:9: sparse: sparse: context imbalance in 'do_fault_around' - unexpected unlock
   mm/memory.c: note: in included file (through arch/parisc/include/asm/pgtable.h, arch/parisc/include/asm/io.h, include/linux/io.h, ...):
   include/asm-generic/pgtable.h:641:9: sparse: sparse: context imbalance in 'do_numa_page' - different lock contexts for basic block
   mm/memory.c:4124:9: sparse: sparse: context imbalance in 'handle_pte_fault' - different lock contexts for basic block
   mm/memory.c:4355:12: sparse: sparse: context imbalance in '__follow_pte_pmd' - different lock contexts for basic block
   mm/memory.c:4441:16: sparse: sparse: context imbalance in 'follow_pte_pmd' - different lock contexts for basic block

vim +/insert_page_into_pte_locked +1462 mm/memory.c

8efd6f5b1732c4 Arjun Roy 2020-04-10  1452  
8efd6f5b1732c4 Arjun Roy 2020-04-10  1453  static int insert_page_into_pte_locked(struct mm_struct *mm, pte_t *pte,
8efd6f5b1732c4 Arjun Roy 2020-04-10  1454  			unsigned long addr, struct page *page, pgprot_t prot)
8efd6f5b1732c4 Arjun Roy 2020-04-10  1455  {
8efd6f5b1732c4 Arjun Roy 2020-04-10  1456  	if (!pte_none(*pte))
8efd6f5b1732c4 Arjun Roy 2020-04-10  1457  		return -EBUSY;
8efd6f5b1732c4 Arjun Roy 2020-04-10  1458  	/* Ok, finally just insert the thing.. */
8efd6f5b1732c4 Arjun Roy 2020-04-10  1459  	get_page(page);
8efd6f5b1732c4 Arjun Roy 2020-04-10  1460  	inc_mm_counter_fast(mm, mm_counter_file(page));
8efd6f5b1732c4 Arjun Roy 2020-04-10  1461  	page_add_file_rmap(page, false);
8efd6f5b1732c4 Arjun Roy 2020-04-10 @1462  	set_pte_at(mm, addr, pte, mk_pte(page, prot));
8efd6f5b1732c4 Arjun Roy 2020-04-10  1463  	return 0;
8efd6f5b1732c4 Arjun Roy 2020-04-10  1464  }
8efd6f5b1732c4 Arjun Roy 2020-04-10  1465  

---
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: 26350 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-06  1:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-06  1:45 mm/memory.c:1462:9: sparse: sparse: context imbalance in 'insert_page_into_pte_locked' - different lock contexts for basic block 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.