public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Blocked in keyctl(...) ???
@ 2012-03-12 16:03 Paul Rolland
  2012-03-16  8:43 ` Blocked in keyctl(...) ??? - RCU related ??? Paul Rolland
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Rolland @ 2012-03-12 16:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: rol

[-- Attachment #1: Type: text/plain, Size: 575 bytes --]

Hello,

Sometimes, my applications start "locking": nothing happens anymore, can't
kill them... 
I manage to strace them, to find that they are executing the following
syscall:

13686 keyctl(0x1, 0, 0xffffffffffffffff, 0x7fa90fd6a2c0, 0

and that syscall never returns.
I don't have anything interesting in the system logs, and that happened to
me while using all the 3.3-rcX up to rc5 (I've just rebooted an rc7).
Can't tell if that occured pre-3.3 or not.

Does anyone know what could cause something like that ? 
Should I fwd my .config ?

Best,
Paul


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: Blocked in keyctl(...) ??? - RCU related ???
  2012-03-12 16:03 Blocked in keyctl(...) ??? Paul Rolland
@ 2012-03-16  8:43 ` Paul Rolland
  2012-04-01  3:02   ` Paul E. McKenney
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Rolland @ 2012-03-16  8:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Rolland


[-- Attachment #1.1: Type: text/plain, Size: 2133 bytes --]

Hello,

On Mon, 12 Mar 2012 17:03:01 +0100
Paul Rolland (ポール・ロラン)  <rol@witbe.net> wrote:

> Sometimes, my applications start "locking": nothing happens anymore, can't
> kill them... 
> I manage to strace them, to find that they are executing the following
> syscall:
> 
> 13686 keyctl(0x1, 0, 0xffffffffffffffff, 0x7fa90fd6a2c0, 0
> 
> and that syscall never returns.

OK, this happened again, while running 3.3-rc7... I've used sysrq to
collect some informations and what I can see from that is the following :

Mar 16 08:40:02 tux kernel: Call Trace:
Mar 16 08:40:02 tux kernel: [<ffffffff813b8771>] ? extract_buf+0x91/0x140
Mar 16 08:40:02 tux kernel: [<ffffffff8166fd5a>] schedule+0x3a/0x50
Mar 16 08:40:02 tux kernel: [<ffffffff8166e09d>] schedule_timeout+0x1ed/0x260
Mar 16 08:40:02 tux kernel: [<ffffffff810636c1>] ? get_parent_ip+0x11/0x50
Mar 16 08:40:02 tux kernel: [<ffffffff810636c1>] ? get_parent_ip+0x11/0x50
Mar 16 08:40:02 tux kernel: [<ffffffff810636c1>] ? get_parent_ip+0x11/0x50
Mar 16 08:40:02 tux kernel: [<ffffffff8166f100>] wait_for_common+0xc0/0x160
Mar 16 08:40:02 tux kernel: [<ffffffff81062150>] ? try_to_wake_up+0x2e0/0x2e0
Mar 16 08:40:02 tux kernel: [<ffffffff810ad020>] ? __call_rcu+0x150/0x150
Mar 16 08:40:02 tux kernel: [<ffffffff8166f1b8>] wait_for_completion+0x18/0x20
Mar 16 08:40:02 tux kernel: [<ffffffff81054628>] wait_rcu_gp+0x48/0x50
Mar 16 08:40:02 tux kernel: [<ffffffff81054630>] ? wait_rcu_gp+0x50/0x50
Mar 16 08:40:02 tux kernel: [<ffffffff810ac09c>] synchronize_rcu+0x1c/0x20
Mar 16 08:40:02 tux kernel: [<ffffffff812ba6a9>] install_session_keyring_to_cred+0x59/0xc0
Mar 16 08:40:02 tux kernel: [<ffffffff812bac3a>] join_session_keyring+0x12a/0x170
Mar 16 08:40:02 tux kernel: [<ffffffff812b8cd2>] keyctl_join_session_keyring+0x32/0x60
Mar 16 08:40:02 tux kernel: [<ffffffff812ba278>] sys_keyctl+0x168/0x180
Mar 16 08:40:02 tux kernel: [<ffffffff81671b62>]
system_call_fastpath+0x16/0x1b

The complete traces collected in /var/log/messages is attached to this email.

Is there anything I can do to investigate this ?

Paul



[-- Attachment #1.2: messages.gz --]
[-- Type: application/x-gzip, Size: 24086 bytes --]

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: Blocked in keyctl(...) ??? - RCU related ???
  2012-03-16  8:43 ` Blocked in keyctl(...) ??? - RCU related ??? Paul Rolland
@ 2012-04-01  3:02   ` Paul E. McKenney
  0 siblings, 0 replies; 3+ messages in thread
From: Paul E. McKenney @ 2012-04-01  3:02 UTC (permalink / raw)
  To: Paul Rolland; +Cc: linux-kernel

On Fri, Mar 16, 2012 at 09:43:28AM +0100, Paul Rolland wrote:
> Hello,
> 
> On Mon, 12 Mar 2012 17:03:01 +0100
> Paul Rolland (ポール・ロラン)  <rol@witbe.net> wrote:
> 
> > Sometimes, my applications start "locking": nothing happens anymore, can't
> > kill them... 
> > I manage to strace them, to find that they are executing the following
> > syscall:
> > 
> > 13686 keyctl(0x1, 0, 0xffffffffffffffff, 0x7fa90fd6a2c0, 0
> > 
> > and that syscall never returns.
> 
> OK, this happened again, while running 3.3-rc7... I've used sysrq to
> collect some informations and what I can see from that is the following :
> 
> Mar 16 08:40:02 tux kernel: Call Trace:
> Mar 16 08:40:02 tux kernel: [<ffffffff813b8771>] ? extract_buf+0x91/0x140
> Mar 16 08:40:02 tux kernel: [<ffffffff8166fd5a>] schedule+0x3a/0x50
> Mar 16 08:40:02 tux kernel: [<ffffffff8166e09d>] schedule_timeout+0x1ed/0x260
> Mar 16 08:40:02 tux kernel: [<ffffffff810636c1>] ? get_parent_ip+0x11/0x50
> Mar 16 08:40:02 tux kernel: [<ffffffff810636c1>] ? get_parent_ip+0x11/0x50
> Mar 16 08:40:02 tux kernel: [<ffffffff810636c1>] ? get_parent_ip+0x11/0x50
> Mar 16 08:40:02 tux kernel: [<ffffffff8166f100>] wait_for_common+0xc0/0x160
> Mar 16 08:40:02 tux kernel: [<ffffffff81062150>] ? try_to_wake_up+0x2e0/0x2e0
> Mar 16 08:40:02 tux kernel: [<ffffffff810ad020>] ? __call_rcu+0x150/0x150
> Mar 16 08:40:02 tux kernel: [<ffffffff8166f1b8>] wait_for_completion+0x18/0x20
> Mar 16 08:40:02 tux kernel: [<ffffffff81054628>] wait_rcu_gp+0x48/0x50
> Mar 16 08:40:02 tux kernel: [<ffffffff81054630>] ? wait_rcu_gp+0x50/0x50
> Mar 16 08:40:02 tux kernel: [<ffffffff810ac09c>] synchronize_rcu+0x1c/0x20
> Mar 16 08:40:02 tux kernel: [<ffffffff812ba6a9>] install_session_keyring_to_cred+0x59/0xc0
> Mar 16 08:40:02 tux kernel: [<ffffffff812bac3a>] join_session_keyring+0x12a/0x170
> Mar 16 08:40:02 tux kernel: [<ffffffff812b8cd2>] keyctl_join_session_keyring+0x32/0x60
> Mar 16 08:40:02 tux kernel: [<ffffffff812ba278>] sys_keyctl+0x168/0x180
> Mar 16 08:40:02 tux kernel: [<ffffffff81671b62>]
> system_call_fastpath+0x16/0x1b
> 
> The complete traces collected in /var/log/messages is attached to this email.
> 
> Is there anything I can do to investigate this ?

>From your message output, it looks like something is stalling RCU grace
periods, possibly due to a task being preempted in an RCU read-side
critical section (this assumes you are running CONFIG_PREEMPT=y).

Could you please try reproducing with CONFIG_RCU_CPU_STALL_VERBOSE=y?
This would identify tasks stalling the RCU grace period.

							Thanx, Paul


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

end of thread, other threads:[~2012-04-01  3:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-12 16:03 Blocked in keyctl(...) ??? Paul Rolland
2012-03-16  8:43 ` Blocked in keyctl(...) ??? - RCU related ??? Paul Rolland
2012-04-01  3:02   ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox