linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sasha Levin <sasha.levin@oracle.com>
To: Kees Cook <keescook@chromium.org>
Cc: Sasha Levin <levinsasha928@gmail.com>,
	james.l.morris@oracle.com,
	John Johansen <john.johansen@canonical.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux-security-module@vger.kernel.org,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Dave Jones <davej@redhat.com>
Subject: Re: yama: lockdep warning on yama_ptracer_del
Date: Mon, 19 Nov 2012 13:59:27 -0500	[thread overview]
Message-ID: <50AA818F.4020900@oracle.com> (raw)
In-Reply-To: <CAGXu5j+XuQxJcUWSNaziMivNjKsB9S9cFMKDbigCBN16NGBRgw@mail.gmail.com>

On 11/19/2012 11:23 AM, Kees Cook wrote:
> On Sun, Nov 18, 2012 at 8:05 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
>> Hi Kees,
>>
>> On Thu, Oct 18, 2012 at 6:39 PM, Kees Cook <keescook@chromium.org> wrote:
>>> On Wed, Oct 17, 2012 at 8:10 PM, Sasha Levin <sasha.levin@oracle.com> wrote:
>>>> Hi all,
>>>>
>>>> I was fuzzing with trinity within a KVM tools guest (lkvm) on a linux-next kernel, and got the
>>>> following dump which I believe to be noise due to how the timers work - but I'm not 100% sure.
>>>> ...
>>>> [  954.674123]  Possible interrupt unsafe locking scenario:
>>>> [  954.674123]
>>>> [  954.674123]        CPU0                    CPU1
>>>> [  954.674123]        ----                    ----
>>>> [  954.674123]   lock(ptracer_relations_lock);
>>>> [  954.674123]                                local_irq_disable();
>>>> [  954.674123]                                lock(&(&new_timer->it_lock)->rlock);
>>>> [  954.674123]                                lock(ptracer_relations_lock);
>>>> [  954.674123]   <Interrupt>
>>>> [  954.674123]     lock(&(&new_timer->it_lock)->rlock);
>>>> [  954.674123]
>>>> [  954.674123]  *** DEADLOCK ***
>>>
>>> I've been wanting to get rid of the Yama ptracer_relations_lock
>>> anyway, so maybe I should do that now just to avoid this case at all?
>>
>> I still see this one in -rc6, is there anything to get rid of it
>> before the release?
> 
> I'm not sure about changes to the timer locks, but I haven't been able
> to get rid of the locking on Yama's task_free path. I did send a patch
> to get rid of locking during a read, though:
> 
> https://lkml.org/lkml/2012/11/13/808

Aw, alrighty. It didn't make it to -next yet though.

I'll add the patch to my tree and test with it.


Thanks,
Sasha


  reply	other threads:[~2012-11-19 19:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18  3:10 yama: lockdep warning on yama_ptracer_del Sasha Levin
2012-10-18 22:39 ` Kees Cook
2012-11-19  4:05   ` Sasha Levin
2012-11-19 16:23     ` Kees Cook
2012-11-19 18:59       ` Sasha Levin [this message]
2012-11-19 22:08         ` Kees Cook

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=50AA818F.4020900@oracle.com \
    --to=sasha.levin@oracle.com \
    --cc=davej@redhat.com \
    --cc=james.l.morris@oracle.com \
    --cc=john.johansen@canonical.com \
    --cc=keescook@chromium.org \
    --cc=levinsasha928@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --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 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).