* [mmotm:master 463/499] mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block
@ 2014-03-23 2:53 kbuild test robot
2014-03-24 21:00 ` Christoph Lameter
0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2014-03-23 2:53 UTC (permalink / raw)
To: Christoph Lameter
Cc: Linux Memory Management List, Andrew Morton, Peter Zijlstra,
Johannes Weiner, kbuild-all
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 4ddd4bc6e081ef29f7adaacb357b77052fefcd7e
commit: 6a9ad050c521ac607a30a691042f2a5d24109b07 [463/499] percpu: add raw_cpu_ops
reproduce: make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block
>> arch/x86/include/asm/paravirt.h:699:9: sparse: context imbalance in 'change_pte_range' - unexpected unlock
--
>> fs/ntfs/super.c:3100:1: sparse: directive in argument list
>> fs/ntfs/super.c:3102:1: sparse: directive in argument list
>> fs/ntfs/super.c:3104:1: sparse: directive in argument list
>> fs/ntfs/super.c:3105:1: sparse: directive in argument list
>> fs/ntfs/super.c:3107:1: sparse: directive in argument list
>> fs/ntfs/super.c:3108:1: sparse: directive in argument list
>> fs/ntfs/super.c:3110:1: sparse: directive in argument list
vim +/lock_pte_protection +46 mm/mprotect.c
^1da177e Linus Torvalds 2005-04-16 30 #include <asm/tlbflush.h>
^1da177e Linus Torvalds 2005-04-16 31
1c12c4cf Venki Pallipadi 2008-05-14 32 #ifndef pgprot_modify
1c12c4cf Venki Pallipadi 2008-05-14 33 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
1c12c4cf Venki Pallipadi 2008-05-14 34 {
1c12c4cf Venki Pallipadi 2008-05-14 35 return newprot;
1c12c4cf Venki Pallipadi 2008-05-14 36 }
1c12c4cf Venki Pallipadi 2008-05-14 37 #endif
1c12c4cf Venki Pallipadi 2008-05-14 38
af79e8ed Mel Gorman 2014-03-22 39 /*
af79e8ed Mel Gorman 2014-03-22 40 * For a prot_numa update we only hold mmap_sem for read so there is a
af79e8ed Mel Gorman 2014-03-22 41 * potential race with faulting where a pmd was temporarily none. This
af79e8ed Mel Gorman 2014-03-22 42 * function checks for a transhuge pmd under the appropriate lock. It
af79e8ed Mel Gorman 2014-03-22 43 * returns a pte if it was successfully locked or NULL if it raced with
af79e8ed Mel Gorman 2014-03-22 44 * a transhuge insertion.
af79e8ed Mel Gorman 2014-03-22 45 */
af79e8ed Mel Gorman 2014-03-22 @46 static pte_t *lock_pte_protection(struct vm_area_struct *vma, pmd_t *pmd,
af79e8ed Mel Gorman 2014-03-22 47 unsigned long addr, int prot_numa, spinlock_t **ptl)
af79e8ed Mel Gorman 2014-03-22 48 {
af79e8ed Mel Gorman 2014-03-22 49 pte_t *pte;
af79e8ed Mel Gorman 2014-03-22 50 spinlock_t *pmdl;
af79e8ed Mel Gorman 2014-03-22 51
af79e8ed Mel Gorman 2014-03-22 52 /* !prot_numa is protected by mmap_sem held for write */
af79e8ed Mel Gorman 2014-03-22 53 if (!prot_numa)
af79e8ed Mel Gorman 2014-03-22 54 return pte_offset_map_lock(vma->vm_mm, pmd, addr, ptl);
:::::: The code at line 46 was first introduced by commit
:::::: af79e8edd17efee942ddfd277d0b3e8fc1ea7fe1 mm-numa-recheck-for-transhuge-pages-under-lock-during-protection-changes-fix
:::::: TO: Mel Gorman <mgorman@suse.de>
:::::: CC: Johannes Weiner <hannes@cmpxchg.org>
---
0-DAY kernel build testing backend Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [mmotm:master 463/499] mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block
2014-03-23 2:53 [mmotm:master 463/499] mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block kbuild test robot
@ 2014-03-24 21:00 ` Christoph Lameter
2014-03-25 2:28 ` Fengguang Wu
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Lameter @ 2014-03-24 21:00 UTC (permalink / raw)
To: kbuild test robot
Cc: Linux Memory Management List, Andrew Morton, Peter Zijlstra,
Johannes Weiner, kbuild-all
On Sun, 23 Mar 2014, kbuild test robot wrote:
> >> mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block
> >> arch/x86/include/asm/paravirt.h:699:9: sparse: context imbalance in 'change_pte_range' - unexpected unlock
> --
> >> fs/ntfs/super.c:3100:1: sparse: directive in argument list
> >> fs/ntfs/super.c:3102:1: sparse: directive in argument list
> >> fs/ntfs/super.c:3104:1: sparse: directive in argument list
> >> fs/ntfs/super.c:3105:1: sparse: directive in argument list
> >> fs/ntfs/super.c:3107:1: sparse: directive in argument list
> >> fs/ntfs/super.c:3108:1: sparse: directive in argument list
> >> fs/ntfs/super.c:3110:1: sparse: directive in argument list
Looked through these and I am a bit puzzled how they related to raw cpu
ops patch.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [mmotm:master 463/499] mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block
2014-03-24 21:00 ` Christoph Lameter
@ 2014-03-25 2:28 ` Fengguang Wu
0 siblings, 0 replies; 3+ messages in thread
From: Fengguang Wu @ 2014-03-25 2:28 UTC (permalink / raw)
To: Christoph Lameter
Cc: Linux Memory Management List, Andrew Morton, Peter Zijlstra,
Johannes Weiner, kbuild-all
On Mon, Mar 24, 2014 at 04:00:32PM -0500, Christoph Lameter wrote:
> On Sun, 23 Mar 2014, kbuild test robot wrote:
>
> > >> mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block
> > >> arch/x86/include/asm/paravirt.h:699:9: sparse: context imbalance in 'change_pte_range' - unexpected unlock
> > --
> > >> fs/ntfs/super.c:3100:1: sparse: directive in argument list
> > >> fs/ntfs/super.c:3102:1: sparse: directive in argument list
> > >> fs/ntfs/super.c:3104:1: sparse: directive in argument list
> > >> fs/ntfs/super.c:3105:1: sparse: directive in argument list
> > >> fs/ntfs/super.c:3107:1: sparse: directive in argument list
> > >> fs/ntfs/super.c:3108:1: sparse: directive in argument list
> > >> fs/ntfs/super.c:3110:1: sparse: directive in argument list
>
> Looked through these and I am a bit puzzled how they related to raw cpu
> ops patch.
Ah yes, this is false positive and is because the compilation on the
previous commit failed, so the sparse errors in fs/ntfs/super.c show
up as "new" ones in commit 6a9ad050.
wfg@bee ~/linux% git checkout 6a9ad050c521ac607a30a691042f2a5d24109b07~
...
HEAD is now at 1b1dc6d... arm: move arm_dma_limit to setup_dma_zone
wfg@bee ~/linux/obj-compiletest% make C=1 fs/ntfs/super.o
...
HOSTLD scripts/mod/modpost
In file included from /c/wfg/linux/include/linux/mm.h:897:0,
from /c/wfg/linux/include/linux/suspend.h:8,
from /c/wfg/linux/arch/x86/kernel/asm-offsets.c:12:
/c/wfg/linux/include/linux/vmstat.h: In function a??__count_vm_eventa??:
/c/wfg/linux/include/linux/vmstat.h:36:2: error: implicit declaration of function a??raw_cpu_inca?? [-Werror=implicit-function-declaration]
/c/wfg/linux/include/linux/vmstat.h: In function a??__count_vm_eventsa??:
/c/wfg/linux/include/linux/vmstat.h:46:2: error: implicit declaration of function a??raw_cpu_adda?? [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2
make: Leaving directory `/c/wfg/linux'
Thanks,
Fengguang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-25 2:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-23 2:53 [mmotm:master 463/499] mm/mprotect.c:46:14: sparse: context imbalance in 'lock_pte_protection' - different lock contexts for basic block kbuild test robot
2014-03-24 21:00 ` Christoph Lameter
2014-03-25 2:28 ` Fengguang Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).