All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:follow_pte_pmd 2/2] include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'follow_pfn' - unexpected unlock
@ 2020-10-29 16:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-29 16:37 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Christoph Hellwig <hch@lst.de>

tree:   git://git.infradead.org/users/hch/misc.git follow_pte_pmd
head:   664e96b63d9a79a1966138f586f97b1a670b3809
commit: 664e96b63d9a79a1966138f586f97b1a670b3809 [2/2] mm: simplify follow_pte{,pmd}
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: i386-randconfig-s002-20201029 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-56-gc09e8239-dirty
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc follow_pte_pmd
        git checkout 664e96b63d9a79a1966138f586f97b1a670b3809
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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:5160:22: sparse: sparse: cast removes address space '__user' of expression
   mm/memory.c:943:17: sparse: sparse: context imbalance in 'copy_pte_range' - different lock contexts for basic block
   mm/memory.c:1612:16: sparse: sparse: context imbalance in '__get_locked_pte' - different lock contexts for basic block
   mm/memory.c:2163:17: sparse: sparse: context imbalance in 'remap_pte_range' - different lock contexts for basic block
   mm/memory.c: note: in included file (through include/linux/seqlock.h, include/linux/hrtimer.h, include/linux/interrupt.h, ...):
   include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'apply_to_pte_range' - unexpected unlock
   mm/memory.c:2665:9: sparse: sparse: context imbalance in 'wp_page_copy' - different lock contexts for basic block
   include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'wp_pfn_shared' - unexpected unlock
   mm/memory.c:3072:19: sparse: sparse: context imbalance in 'do_wp_page' - different lock contexts for basic block
   mm/memory.c:3644:19: sparse: sparse: context imbalance in 'pte_alloc_one_map' - different lock contexts for basic block
   include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'finish_fault' - unexpected unlock
   include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'do_fault_around' - unexpected unlock
   mm/memory.c:4699:5: sparse: sparse: context imbalance in 'follow_pte' - different lock contexts for basic block
>> include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'follow_pfn' - unexpected unlock
>> include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'follow_phys' - unexpected unlock

vim +/follow_pfn +394 include/linux/spinlock.h

c2f21ce2e31286a Thomas Gleixner 2009-12-02  391  
3490565b633c705 Denys Vlasenko  2015-07-13  392  static __always_inline void spin_unlock(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  393  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @394  	raw_spin_unlock(&lock->rlock);
c2f21ce2e31286a Thomas Gleixner 2009-12-02  395  }
c2f21ce2e31286a Thomas Gleixner 2009-12-02  396  

:::::: The code at line 394 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

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

only message in thread, other threads:[~2020-10-29 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 16:37 [hch-misc:follow_pte_pmd 2/2] include/linux/spinlock.h:394:9: sparse: sparse: context imbalance in 'follow_pfn' - unexpected unlock 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.