All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yong Zhang <yong.zhang0@gmail.com>
To: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org,
	a.p.zijlstra@chello.nl, sergey.senozhatsky@gmail.com,
	tglx@linutronix.de, mingo@elte.hu
Cc: linux-tip-commits@vger.kernel.org
Subject: Re: [tip:core/urgent] lockdep: Fix wrong assumption in match_held_lock
Date: Wed, 10 Aug 2011 10:58:45 +0800	[thread overview]
Message-ID: <20110810025845.GA5640@zhy> (raw)
In-Reply-To: <tip-80e0401e35410a69bfae05b454db8a7187edd6b8@git.kernel.org>

On Tue, Aug 09, 2011 at 02:30:02PM +0000, tip-bot for Peter Zijlstra wrote:
> Commit-ID:  80e0401e35410a69bfae05b454db8a7187edd6b8
> Gitweb:     http://git.kernel.org/tip/80e0401e35410a69bfae05b454db8a7187edd6b8
> Author:     Peter Zijlstra <a.p.zijlstra@chello.nl>
> AuthorDate: Fri, 5 Aug 2011 14:26:17 +0200
> Committer:  Ingo Molnar <mingo@elte.hu>
> CommitDate: Tue, 9 Aug 2011 11:57:35 +0200
> 
> lockdep: Fix wrong assumption in match_held_lock
> 
> match_held_lock() was assuming it was being called on a lock class
> that had already seen usage.
> 
> This condition was true for bug-free code using lockdep_assert_held(),
> since you're in fact holding the lock when calling it. However the
> assumption fails the moment you assume the assertion can fail, which
> is the whole point of having the assertion in the first place.
> 
> Anyway, now that there's more lockdep_is_held() users, notably
> __rcu_dereference_check(), its much easier to trigger this since we
> test for a number of locks and we only need to hold any one of them to
> be good.
> 
> Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Link: http://lkml.kernel.org/r/1312547787.28695.2.camel@twins

BTW, I can't open this link.

Thanks,
Yong


  reply	other threads:[~2011-08-10  2:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1312547787.28695.2.camel@twins>
2011-08-09 14:30 ` [tip:core/urgent] lockdep: Fix wrong assumption in match_held_lock tip-bot for Peter Zijlstra
2011-08-10  2:58   ` Yong Zhang [this message]
2011-08-10 10:01     ` Peter Zijlstra
2011-08-10 11:45       ` Yong Zhang
2011-08-10 11:48         ` Yong Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110810025845.GA5640@zhy \
    --to=yong.zhang0@gmail.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=mingo@redhat.com \
    --cc=sergey.senozhatsky@gmail.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.