Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754312Ab2KSTA3 (ORCPT ); Mon, 19 Nov 2012 14:00:29 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:41923 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753906Ab2KSTA1 (ORCPT ); Mon, 19 Nov 2012 14:00:27 -0500 Message-ID: <50AA818F.4020900@oracle.com> Date: Mon, 19 Nov 2012 13:59:27 -0500 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121112 Thunderbird/16.0.1 MIME-Version: 1.0 To: Kees Cook CC: Sasha Levin , james.l.morris@oracle.com, John Johansen , Thomas Gleixner , linux-security-module@vger.kernel.org, "linux-kernel@vger.kernel.org" , Dave Jones Subject: Re: yama: lockdep warning on yama_ptracer_del References: <507F7313.8010707@oracle.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2007 Lines: 49 On 11/19/2012 11:23 AM, Kees Cook wrote: > On Sun, Nov 18, 2012 at 8:05 PM, Sasha Levin wrote: >> Hi Kees, >> >> On Thu, Oct 18, 2012 at 6:39 PM, Kees Cook wrote: >>> On Wed, Oct 17, 2012 at 8:10 PM, Sasha Levin 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] >>>> [ 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/