public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: mitya@school.ioffe.ru (Dmitry Baryshkov)
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.7-rc2: open() hangs on ReiserFS with SELinux enabled
Date: Thu, 3 Jun 2004 12:36:22 +0400	[thread overview]
Message-ID: <20040603083622.GA9918@school.ioffe.ru> (raw)
In-Reply-To: <1086201647.15871.135.camel@moss-spartans.epoch.ncsc.mil>

Hello,
On Wed, Jun 02, 2004 at 02:40:47PM -0400, Stephen Smalley wrote:
> On Wed, 2004-06-02 at 13:48, Dmitry Baryshkov wrote:
> > Hello,
> 
> The mount process shouldn't be in kernel_t, although that shouldn't
> cause a hang.  Is /sbin/init labeled properly?  Are you using the
> patched /sbin/init that loads policy and then re-execs itself into the
> proper security domain?

Yes and no.
strace & cut was produced using manual booting to shell,
mount /proc
mount /selinux
load_policy /etc/security/selinux/policy.17
strace mount / -o remount,rw

> 
> When the mount process is hung, what output do you get from pressing
> ALT-SysRq-t after enabling sysrq (echo 1 > /proc/sys/kernel/sysrq)?

Here is a part related to mount (sorry, it's copied by hand from
monitor. can't use serial console here.):

inode2sd+0xcc/0x120
pathrelse+0x20/0x30
reiserfs_update_sd_size+0x13a/0x1d0
rwsem_down_read_failed+0x8d/0x170
.text.lock.xattr+0xb5/0x22f
inode_doinit_with_dentry+0x2ea/0x560
d_instantiate+0x47/0x60
reiserfs_mkdir+0x29b/0x2d0
open_xa_dir+0xbe/0x160
get_xa_file_dentry+0x24/0x100
open_xa_file+0x5/0x40
reiserfs_xattr_set+0x8f/0x360
do_journal_end+0x75e/0xa70
vsprintf+0x12/0x20
sprintf+0x11/0x20
context_struct_to_string+0x108/0x170
reiserfs_setxattr+0xf4/0x190
post_create+0xfb/0x220
vfs_create+0xca/0x130
open_namei+0x3d0/0x420
filp_open+0x2d/0x60
sys_open+0x4d/0xa0
syscall_call+0x7/0xb

-- 
With best wishes
DMitry Baryshkov.

  reply	other threads:[~2004-06-03  8:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 17:48 2.6.7-rc2: open() hangs on ReiserFS with SELinux enabled Dmitry Baryshkov
2004-06-02 18:40 ` Stephen Smalley
2004-06-03  8:36   ` Dmitry Baryshkov [this message]
2004-06-03 14:09     ` Stephen Smalley
2004-06-03 19:46       ` Stephen Smalley
2004-06-04 12:00         ` Dmitry Baryshkov
2004-06-02 18:48 ` Valdis.Kletnieks

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=20040603083622.GA9918@school.ioffe.ru \
    --to=mitya@school.ioffe.ru \
    --cc=linux-kernel@vger.kernel.org \
    /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