Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266896AbUJWKpl (ORCPT ); Sat, 23 Oct 2004 06:45:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267283AbUJWKlx (ORCPT ); Sat, 23 Oct 2004 06:41:53 -0400 Received: from mx1.elte.hu ([157.181.1.137]:29069 "EHLO mx1.elte.hu") by vger.kernel.org with ESMTP id S266896AbUJWKlJ (ORCPT ); Sat, 23 Oct 2004 06:41:09 -0400 Date: Sat, 23 Oct 2004 12:40:26 +0200 From: Ingo Molnar To: Chris Wright Cc: akpm@osdl.org, torvalds@osdl.org, Andrea Arcangeli , johansen@immunix.com, Stephen Smalley , Thomas Bleher , linux-kernel@vger.kernel.org Subject: Re: [PATCH] delay rq_lock acquisition in setscheduler Message-ID: <20041023104026.GA31448@elte.hu> References: <20041022125950.X2357@build.pdx.osdl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041022125950.X2357@build.pdx.osdl.net> User-Agent: Mutt/1.4.1i X-ELTE-SpamVersion: MailScanner 4.31.6-itk1 (ELTE 1.2) SpamAssassin 2.63 ClamAV 0.73 X-ELTE-VirusStatus: clean X-ELTE-SpamCheck: no X-ELTE-SpamCheck-Details: score=-4.9, required 5.9, autolearn=not spam, BAYES_00 -4.90 X-ELTE-SpamLevel: X-ELTE-SpamScore: -4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 23 * Chris Wright wrote: > Doing access control checks with rq_lock held can cause deadlock when > audit messages are created (via printk or audit infrastructure) which > trigger a wakeup and deadlock, as noted by both SELinux and SubDomain > folks. This patch will let the security checks happen w/out lock held, > then re-sample the p->policy in case it was raced. Originally from John > Johansen , reworked by me. AFAIK, this version > drew no objections from Ingo or Andrea. Please let me know if there's > any issue with the patch. > > From: John Johansen > Signed-off-by: Chris Wright Acked-by: Ingo Molnar Ingo - 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/