* tty: hang on ldisc_sem
@ 2014-03-27 16:08 Sasha Levin
2014-03-27 16:30 ` Peter Hurley
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2014-03-27 16:08 UTC (permalink / raw)
To: Greg KH, jslaby; +Cc: Dave Jones, LKML
Hi all,
While fuzzing with trinity inside a KVM tools guest running latest -next
kernel, I've encountered a lockup on ldisc_sem.
The issue was detected here:
[ 6009.895215] trinity-watchdo D ffff880038efb000 5976 22153 22152 0x10000000
[ 6009.895986] ffff880034205c78 0000000000000002 ffff880034205c38 0000000000000082
[ 6009.896942] ffff880034205fd8 00000000001d79c0 00000000001d79c0 00000000001d79c0
[ 6009.897849] ffff8803ac620000 ffff880038efb000 ffff880034205c58 ffff8805abb00970
[ 6009.898745] Call Trace:
[ 6009.899015] schedule (kernel/sched/core.c:2750)
[ 6009.899596] schedule_timeout (kernel/timer.c:1475)
[ 6009.900674] ? down_read_failed (drivers/tty/tty_ldsem.c:235)
[ 6009.901977] ? _raw_spin_unlock_irq (arch/x86/include/asm/paravirt.h:819 include/linux/spinlock_api_smp.h:168 kernel/locking/spinlock.c:199)
[ 6009.902596] ? get_parent_ip (kernel/sched/core.c:2472)
[ 6009.903143] ? preempt_count_sub (kernel/sched/core.c:2527)
[ 6009.903732] down_read_failed (drivers/tty/tty_ldsem.c:235)
[ 6009.904401] ldsem_down_read (drivers/tty/tty_ldsem.c:331 drivers/tty/tty_ldsem.c:366)
[ 6009.905186] ? tty_ldisc_ref_wait (drivers/tty/tty_ldisc.c:268)
[ 6009.906041] tty_ldisc_ref_wait (drivers/tty/tty_ldisc.c:268)
[ 6009.906776] tty_write (drivers/tty/tty_io.c:1213)
[ 6009.907371] ? redirected_tty_write (drivers/tty/tty_io.c:1238)
[ 6009.908034] ? get_parent_ip (kernel/sched/core.c:2472)
[ 6009.908648] ? preempt_count_sub (kernel/sched/core.c:2527)
[ 6009.909256] redirected_tty_write (drivers/tty/tty_io.c:1238)
[ 6009.909890] vfs_write (fs/read_write.c:485)
[ 6009.910762] SyS_write (fs/read_write.c:535 fs/read_write.c:527)
[ 6009.911347] tracesys (arch/x86/kernel/entry_64.S:749)
[ 6009.911910] 1 lock held by trinity-watchdo/22153:
[ 6009.912394] #0: (&tty->ldisc_sem){++++++}, at: tty_ldisc_ref_wait (drivers/tty/tty_ldisc.c:268)
There are many processes trying to grab ldisc_sem, while the only
process that's holding ldisc_sem is:
[ 6019.904950] sh S 0000000000000016 4584 8737 8665 0x10000000
[ 6019.905793] ffff88012b43fca8 0000000000000002 0000000000000000 ffff8801acdd8500
[ 6019.906836] ffff88012b43ffd8 00000000001d79c0 00000000001d79c0 00000000001d79c0
[ 6019.907704] ffff8800c845b000 ffff88012be23000 ffff88012b43fc88 ffff8805abb00948
[ 6019.908551] Call Trace:
[ 6019.908832] schedule (kernel/sched/core.c:2750)
[ 6019.909398] schedule_timeout (kernel/timer.c:1475)
[ 6019.910025] ? n_tty_read (drivers/tty/n_tty.c:2222)
[ 6019.910785] ? preempt_count_sub (kernel/sched/core.c:2527)
[ 6019.911684] ? put_lock_stats.isra.12 (arch/x86/include/asm/preempt.h:98 kernel/locking/lockdep.c:254)
[ 6019.912450] ? n_tty_read (drivers/tty/n_tty.c:2222)
[ 6019.913222] n_tty_read (drivers/tty/n_tty.c:2224)
[ 6019.913879] ? get_parent_ip (kernel/sched/core.c:2472)
[ 6019.914616] ? get_parent_ip (kernel/sched/core.c:2472)
[ 6019.915301] ? try_to_wake_up (kernel/sched/core.c:2844)
[ 6019.916033] tty_read (drivers/tty/tty_io.c:1039)
[ 6019.916640] vfs_read (fs/read_write.c:408)
[ 6019.917202] SyS_read (fs/read_write.c:519 fs/read_write.c:511)
[ 6019.917772] tracesys (arch/x86/kernel/entry_64.S:749)
Thanks,
Sasha
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tty: hang on ldisc_sem
2014-03-27 16:08 tty: hang on ldisc_sem Sasha Levin
@ 2014-03-27 16:30 ` Peter Hurley
[not found] ` <53377259.3050205@oracle.com>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Hurley @ 2014-03-27 16:30 UTC (permalink / raw)
To: Sasha Levin; +Cc: Greg KH, jslaby, Dave Jones, LKML
Hi Sasha,
On 03/27/2014 12:08 PM, Sasha Levin wrote:
>
> Hi all,
>
> While fuzzing with trinity inside a KVM tools guest running latest -next
> kernel, I've encountered a lockup on ldisc_sem.
Can you send me the whole system log, preferably with the sysrq
show-task-states and held locks output in it (attachment is fine)?
Regards,
Peter Hurley
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tty: hang on ldisc_sem
[not found] ` <53377259.3050205@oracle.com>
@ 2014-04-01 3:40 ` Sasha Levin
2014-04-01 10:32 ` Peter Hurley
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2014-04-01 3:40 UTC (permalink / raw)
To: Peter Hurley; +Cc: Greg KH, jslaby, Dave Jones, LKML
On 03/29/2014 09:24 PM, Sasha Levin wrote:
> On 03/27/2014 12:30 PM, Peter Hurley wrote:
>> Hi Sasha,
>>
>> On 03/27/2014 12:08 PM, Sasha Levin wrote:
>>>
>>> Hi all,
>>>
>>> While fuzzing with trinity inside a KVM tools guest running latest -next
>>> kernel, I've encountered a lockup on ldisc_sem.
>>
>> Can you send me the whole system log, preferably with the sysrq
>> show-task-states and held locks output in it (attachment is fine)?
>
> Attached whole system log which contains all of the above.
Peter,
Could you confirm you got the log file? Oddly enough I see it as sent here
but don't see it on lkml (Oracle servers tend to make mess out of mails).
Thanks,
Sasha
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tty: hang on ldisc_sem
2014-04-01 3:40 ` Sasha Levin
@ 2014-04-01 10:32 ` Peter Hurley
0 siblings, 0 replies; 4+ messages in thread
From: Peter Hurley @ 2014-04-01 10:32 UTC (permalink / raw)
To: Sasha Levin; +Cc: Greg KH, jslaby, Dave Jones, LKML
On 03/31/2014 11:40 PM, Sasha Levin wrote:
> On 03/29/2014 09:24 PM, Sasha Levin wrote:
>> On 03/27/2014 12:30 PM, Peter Hurley wrote:
>>> Hi Sasha,
>>>
>>> On 03/27/2014 12:08 PM, Sasha Levin wrote:
>>>>
>>>> Hi all,
>>>>
>>>> While fuzzing with trinity inside a KVM tools guest running latest -next
>>>> kernel, I've encountered a lockup on ldisc_sem.
>>>
>>> Can you send me the whole system log, preferably with the sysrq
>>> show-task-states and held locks output in it (attachment is fine)?
>>
>> Attached whole system log which contains all of the above.
>
> Peter,
>
> Could you confirm you got the log file? Oddly enough I see it as sent here
> but don't see it on lkml (Oracle servers tend to make mess out of mails).
Yep, thanks, I got it.
Regards,
Peter Hurley
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-01 10:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 16:08 tty: hang on ldisc_sem Sasha Levin
2014-03-27 16:30 ` Peter Hurley
[not found] ` <53377259.3050205@oracle.com>
2014-04-01 3:40 ` Sasha Levin
2014-04-01 10:32 ` Peter Hurley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox