Re: execve hanging in selinux_bprm_post_apply_creds

Previous thread: Re: PROBLEM: sata_sil24 lockups under heavy i/o by Robert Hancock on Thursday, January 4, 2007 - 7:29 pm. (1 message)

Next thread: Re: /usr/include/*/acpi.h by Robert Hancock on Thursday, January 4, 2007 - 7:36 pm. (1 message)
To: linux-kernel Mailing List <linux-kernel@...>
Date: Thursday, January 4, 2007 - 6:26 pm

Kernel 2.6.19.1 SMP on Pentium D. I ran command restorecon -R /wrk.
After a while or two programs stopped responding and I had to reboot.

I'm not sure is this bug or feature...
I upgraded selinux policy before running restorecon.

2007-01-04 22:41:55.360538500 <4>softlimit D 61707865 0 18679 18678 (NOTLB)
2007-01-04 22:41:55.360549500 <4> ec5efdd0 00000046 f8964fda 61707865 0000006a 00000072 00000043 0000005b
2007-01-04 22:41:55.360551500 <4> f7264580 000000a9 000000fb 0000000e 000000cc 00000055 c1805700 f4f2e13c
2007-01-04 22:41:55.360553500 <4> 0001be4d 1f64183b 0000073d f4f2e030 c05785ac 00000246 f4f2e030 ec5efe18
2007-01-04 22:41:55.360554500 <4>Call Trace:
2007-01-04 22:41:55.360571500 <4> [<c04b490e>] __mutex_lock_slowpath+0x85/0x1df
2007-01-04 22:41:55.360572500 <4> [<c04b487c>] mutex_lock+0x21/0x24
2007-01-04 22:41:55.360573500 <4> [<c0279dde>] selinux_bprm_post_apply_creds+0x65/0x40a
2007-01-04 22:41:55.360575500 <4> [<c01720cb>] compute_creds+0x4f/0x52
2007-01-04 22:41:55.360576500 <4> [<c019a788>] load_elf_binary+0x944/0xd0e
2007-01-04 22:41:55.360589500 <4> [<c01721f3>] search_binary_handler+0x9a/0x24c
2007-01-04 22:41:55.360590500 <4> [<c0172508>] do_execve+0x163/0x1f1
2007-01-04 22:41:55.360592500 <4> [<c01019fd>] sys_execve+0x32/0x84
2007-01-04 22:41:55.360593500 <4> [<c0102e73>] syscall_call+0x7/0xb
2007-01-04 22:41:55.360594500 <4> [<00ecc410>] 0xecc410
2007-01-04 22:41:55.360620500 <4> =======================

...

2007-01-04 22:41:55.359020500 <4>crond D DDC59E64 0 18627 1837 18668 (NOTLB)
2007-01-04 22:41:55.359022500 <4> ddc59e78 00000046 c01454c5 ddc59e64 ddc59e58 c04f4d56 ddc59e74 000000d0
2007-01-04 22:41:55.359033500 <4> f7a50ac0 f78d8a5e 000006e3 000011f7 00000000 c1967030 c17fd700 d10a6b7c
2007-01...

To: Sami Farin <7atbggg02@...>
Cc: linux-kernel Mailing List <linux-kernel@...>, Stephen Smalley <sds@...>, James Morris <jmorris@...>
Date: Thursday, January 4, 2007 - 8:03 pm

On Fri, 5 Jan 2007 00:26:42 +0200

Curious. It look like running restorecon left tty_mutex held. I just did
a full tty_mutex audit on 2.6.20-rc3 and all looks to be OK.

Is it repeatable?

-

To: linux-kernel Mailing List <linux-kernel@...>
Cc: Andrew Morton <akpm@...>, Stephen Smalley <sds@...>, James Morris <jmorris@...>
Date: Thursday, January 4, 2007 - 9:13 pm

Once in a lifetime.

But... system didn't blow up when I ran
"restorecon -R /wrk" again after reboot.

--
-

Previous thread: Re: PROBLEM: sata_sil24 lockups under heavy i/o by Robert Hancock on Thursday, January 4, 2007 - 7:29 pm. (1 message)

Next thread: Re: /usr/include/*/acpi.h by Robert Hancock on Thursday, January 4, 2007 - 7:36 pm. (1 message)