/// Find double locks. False positives may occur when some paths cannot /// occur at execution, due to the values of variables, and when there is /// an intervening function call that releases the lock. /// // Confidence: Moderate // Copyright: (C) 2010 Nicolas Palix, DIKU. GPLv2. // Copyright: (C) 2010 Julia Lawall, DIKU. GPLv2. // Copyright: (C) 2010 Gilles Muller, INRIA/LiP6. GPLv2. // URL: http://coccinelle.lip6.fr/ // Comments: // Options: --no-includes --include-headers virtual org virtual report @locked@ position p1; expression E1; position p; @@ ( mutex_lock@p1 | mutex_trylock@p1 | spin_lock@p1 | spin_trylock@p1 | read_lock@p1 | read_trylock@p1 | write_lock@p1 | write_trylock@p1 ) (E1@p,...); @balanced@ position p1 != locked.p1; position locked.p; identifier lock,unlock; expression x <= locked.E1; expression E,locked.E1; expression E2; @@ if (E) { <+... when != E1 lock(E1@p,...) ...+> } ... when != E1 when != \(x = E2\|&x\) when forall if (E) { <+... when != E1 unlock@p1(E1,...) ...+> } @r depends on !balanced exists@ expression x <= locked.E1; expression locked.E1; expression E2; identifier lock; position locked.p,p1,p2; @@ lock@p1 (E1@p,...); ... when != E1 when != \(x = E2\|&x\) lock@p2 (E1,...); @script:python depends on org@ p1 << r.p1; p2 << r.p2; lock << r.lock; @@ cocci.print_main(lock,p1) cocci.print_secs("second lock",p2) @script:python depends on report@ p1 << r.p1; p2 << r.p2; lock << r.lock; @@ msg = "second lock on line %s" % (p2[0].line) coccilib.report.print_report(p1[0],msg) t-next.git/'>summaryrefslogtreecommitdiff
path: root/include/trace/trace_events.h
-remove&id=99421c1cb27fb837e93b517036fab4500fe39de5'>Makefile
diff options
AgeCommit message (Collapse)AuthorFilesLines
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-15 16:09:50 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-15 16:09:50 -0800
commit99421c1cb27fb837e93b517036fab4500fe39de5 (patch)
treede5fc5bacb671223f389793ad643cebe520bc292 /tools/power/cpupower/Makefile
parentc92816275674c1491ce228ee49aa030a5fa1be04 (diff)
parent93362fa47fe98b62e4a34ab408c4a418432e7939 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull namespace fixes from Eric Biederman: "This tree contains 4 fixes. The first is a fix for a race that can causes oopses under the right circumstances, and that someone just recently encountered. Past that are several small trivial correct fixes. A real issue that was blocking development of an out of tree driver, but does not appear to have caused any actual problems for in-tree code. A potential deadlock that was reported by lockdep. And a deadlock people have experienced and took the time to track down caused by a cleanup that removed the code to drop a reference count" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: sysctl: Drop reference added by grab_header in proc_sys_readdir pid: fix lockdep deadlock warning due to ucount_lock libfs: Modify mount_pseudo_xattr to be clear it is not a userspace mount mnt: Protect the mountpoint hashtable with mount_lock
Diffstat (limited to 'tools/power/cpupower/Makefile')