CC: [email protected]
TO: [email protected]

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   ea97f3929567b2b7db49a6ded3bf6c4b2733a686
commit: 35eacb5c87b9b5e9683e25a24282cde1a2d4a1d5 [19/21] ANDROID: mm: allow 
vmas with vm_ops to be speculatively handled
:::::: branch date: 3 months ago
:::::: commit date: 3 months ago
config: x86_64-randconfig-s032-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        git remote add android-common 
https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout 35eacb5c87b9b5e9683e25a24282cde1a2d4a1d5
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
   mm/memory.c:3542:13: sparse: sparse: incorrect type in assignment (different 
base types) @@     expected restricted vm_fault_t [usertype] ret @@     got int 
@@
   mm/memory.c:3542:13: sparse:     expected restricted vm_fault_t [usertype] 
ret
   mm/memory.c:3542:13: sparse:     got int
   mm/memory.c:981:17: sparse: sparse: context imbalance in 'copy_pte_range' - 
different lock contexts for basic block
   mm/memory.c:1663:16: sparse: sparse: context imbalance in '__get_locked_pte' 
- different lock contexts for basic block
   mm/memory.c:1712:9: sparse: sparse: context imbalance in 'insert_page' - 
different lock contexts for basic block
   mm/memory.c:2215:17: sparse: sparse: context imbalance in 'remap_pte_range' 
- different lock contexts for basic block
   mm/memory.c:2460:17: sparse: sparse: context imbalance in 
'apply_to_pte_range' - unexpected unlock
   mm/memory.c: note: in included file (through arch/x86/include/asm/msr.h, 
arch/x86/include/asm/processor.h, arch/x86/include/asm/cpufeature.h, ...):
   arch/x86/include/asm/paravirt.h:663:9: sparse: sparse: context imbalance in 
'pte_spinlock' - different lock contexts for basic block
>> arch/x86/include/asm/paravirt.h:663:9: sparse: sparse: context imbalance in 
>> '__pte_map_lock_speculative' - different lock contexts for basic block
   mm/memory.c:2704:13: sparse: sparse: context imbalance in 'pte_map_lock' - 
different lock contexts for basic block
   mm/memory.c:2715:6: sparse: sparse: context imbalance in 'pte_map_lock_addr' 
- different lock contexts for basic block
   mm/memory.c:3217:9: sparse: sparse: context imbalance in 'wp_page_copy' - 
unexpected unlock
   mm/memory.c: note: in included file:
   include/linux/mm.h:1022:9: sparse: sparse: context imbalance in 
'finish_mkwrite_fault' - unexpected unlock
   mm/memory.c:3290:17: sparse: sparse: context imbalance in 'wp_pfn_shared' - 
unexpected unlock
   mm/memory.c:3353:19: sparse: sparse: context imbalance in 'do_wp_page' - 
different lock contexts for basic block
   mm/memory.c:3772:9: sparse: sparse: context imbalance in 'do_swap_page' - 
unexpected unlock
   mm/memory.c:3901:9: sparse: sparse: context imbalance in 'do_anonymous_page' 
- unexpected unlock
   mm/memory.c:4137:23: sparse: sparse: context imbalance in 'finish_fault' - 
unexpected unlock
   mm/memory.c:4431:17: sparse: sparse: context imbalance in 'do_numa_page' - 
unexpected unlock
   mm/memory.c:4690:9: sparse: sparse: context imbalance in 'handle_pte_fault' 
- unexpected unlock
   mm/memory.c:5234:5: sparse: sparse: context imbalance in 
'follow_invalidate_pte' - different lock contexts for basic block
   mm/memory.c: note: in included file (through arch/x86/include/asm/msr.h, 
arch/x86/include/asm/processor.h, arch/x86/include/asm/cpufeature.h, ...):
   arch/x86/include/asm/paravirt.h:379:16: sparse: sparse: context imbalance in 
'follow_pfn' - unexpected unlock
   mm/memory.c:5385:9: sparse: sparse: context imbalance in 'follow_phys' - 
unexpected unlock

vim +/__pte_map_lock_speculative +663 arch/x86/include/asm/paravirt.h

139ec7c416248b include/asm-i386/paravirt.h     Rusty Russell  2006-12-07  660  
b5908548537ccd arch/x86/include/asm/paravirt.h Steven Rostedt 2010-11-10  661  
static inline notrace void arch_local_irq_enable(void)
139ec7c416248b include/asm-i386/paravirt.h     Rusty Russell  2006-12-07  662  {
5c83511bdb9832 arch/x86/include/asm/paravirt.h Juergen Gross  2018-08-28 @663   
PVOP_VCALLEE0(irq.irq_enable);
139ec7c416248b include/asm-i386/paravirt.h     Rusty Russell  2006-12-07  664  }
139ec7c416248b include/asm-i386/paravirt.h     Rusty Russell  2006-12-07  665  

:::::: The code at line 663 was first introduced by commit
:::::: 5c83511bdb9832c86be20fb86b783356e2f58062 x86/paravirt: Use a single ops 
structure

:::::: TO: Juergen Gross <[email protected]>
:::::: CC: Thomas Gleixner <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to