linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bisected regression: iterate_fd() selinux change affects flash plugin
@ 2012-10-25 14:14 Pavel Roskin
  2012-11-12  4:50 ` Pavel Roskin
  0 siblings, 1 reply; 8+ messages in thread
From: Pavel Roskin @ 2012-10-25 14:14 UTC (permalink / raw)
  To: Al Viro, linux-kernel

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 <viro@zeniv.linux.org.uk>
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 <viro@zeniv.linux.org.uk>

I have found that reverting the changes to security/selinux/hooks.c is  
sufficient to restore the correct behavior.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-30 15:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25 14:14 Bisected regression: iterate_fd() selinux change affects flash plugin Pavel Roskin
2012-11-12  4:50 ` Pavel Roskin
2012-11-12 15:20   ` Eric Paris
2012-11-12 16:57     ` Pavel Roskin
2012-11-16 19:58       ` Eric Paris
2012-11-30  3:40         ` Al Viro
2012-11-30  4:02           ` Al Viro
2012-11-30 15:20             ` Pavel Roskin

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).