Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464Ab2KLEuG (ORCPT ); Sun, 11 Nov 2012 23:50:06 -0500 Received: from c62.cesmail.net ([216.154.195.54]:39303 "EHLO c62.cesmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751471Ab2KLEuF convert rfc822-to-8bit (ORCPT ); Sun, 11 Nov 2012 23:50:05 -0500 Message-ID: <20121111235001.a3gqhaijmec0gk0g-cebfxv@webmail.spamcop.net> Date: Sun, 11 Nov 2012 23:50:01 -0500 From: Pavel Roskin To: Pavel Roskin Cc: Al Viro , linux-kernel@vger.kernel.org, selinux@tycho.nsa.gov Subject: Re: Bisected regression: iterate_fd() selinux change affects flash plugin References: <20121025101416.v1wilj95q8wkk0os-cebfxv@webmail.spamcop.net> In-Reply-To: <20121025101416.v1wilj95q8wkk0os-cebfxv@webmail.spamcop.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 8BIT User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1755 Lines: 50 Quoting Pavel Roskin : > Hello, Al! > > I have noticed that Mozilla Firefox gets stuck for seconds or minutes > on some sites, in particular on Facebook with Linux 3.7-rc1 and newer > mainline kernels. Disabling flash plugin fixes the delays. > > This is a Fedora 17 system with SELinux enabled, on x86_64 > architecture, with all updates, with LXDE desktop. It's not the Fedora > 16 system I mentioned before, it has never had LXDE login problems due > to replace_fd(). > > Bisecting lead me to the patch that introduced iterate_fd(): > > commit c3c073f808b22dfae15ef8412b6f7b998644139a > Author: Al Viro > Date: Tue Aug 21 22:32:06 2012 -0400 > > new helper: iterate_fd() > > iterates through the opened files in given descriptor table, > calling a supplied function; we stop once non-zero is returned. > Callback gets struct file *, descriptor number and const void * > argument passed to iterator. It is called with files->file_lock > held, so it is not allowed to block. > > tty_io, netprio_cgroup and selinux flush_unauthorized_files() > converted to its use. > > Signed-off-by: Al Viro > > I have found that reverting the changes to security/selinux/hooks.c is > sufficient to restore the correct behavior. > > -- > Regards, > Pavel Roskin I've made a bugzilla entry for the bug and put a preliminary patch there. https://bugzilla.kernel.org/show_bug.cgi?id=50401 -- Regards, Pavel Roskin -- 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/