mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vegard Nossum <vegard.nossum@oracle.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Jiri Slaby <jslaby@suse.com>,
	linux-kernel@vger.kernel.org,
	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Subject: Re: [linux-next / tty] possible circular locking dependency detected
Date: Mon, 29 May 2017 12:43:39 +0200	[thread overview]
Message-ID: <72780780-6259-045f-abb5-3b6e97ec4ffd@oracle.com> (raw)
In-Reply-To: <50cc6717-c709-873c-b434-07da13365977@oracle.com>

On 05/22/17 12:27, Vegard Nossum wrote:
> On 05/22/17 12:24, Greg Kroah-Hartman wrote:
>> On Mon, May 22, 2017 at 04:39:43PM +0900, Sergey Senozhatsky wrote:
>>> Hello,
>>>
>>> [ 1274.378287] ======================================================
>>> [ 1274.378289] WARNING: possible circular locking dependency detected
>>> [ 1274.378290] 4.12.0-rc1-next-20170522-dbg-00007-gc09b2ab28b74-dirty 
>>> #1317 Not tainted
>>> [ 1274.378291] ------------------------------------------------------
>>> [ 1274.378293] kworker/u8:5/111 is trying to acquire lock:
>>> [ 1274.378294]  (&buf->lock){+.+...}, at: [<ffffffff812f2831>] 
>>> tty_buffer_flush+0x34/0x88
>>> [ 1274.378300]
>>>                 but task is already holding lock:
>>> [ 1274.378301]  (&o_tty->termios_rwsem/1){++++..}, at: 
>>> [<ffffffff812ee5c7>] isig+0x47/0xd2
>>> [ 1274.378307]
>>>                 which lock already depends on the new lock.
>>>
> 
>> Any hint as to what you were doing when this happened?
>>
>> Does this also show up in 4.11?
> 
> It's my patch "tty: fix port buffer locking" :-/
> 
> At a glance, looks related to pty taking the lock on the other side in a
> different order. I'll have a closer look.

I can reproduce the lockdep report locally on v4.12-rc3. Looking at it now.


Vegard

  reply	other threads:[~2017-05-29 10:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-22  7:39 Sergey Senozhatsky
2017-05-22 10:24 ` Greg Kroah-Hartman
2017-05-22 10:26   ` Jiri Slaby
2017-05-22 10:27   ` Vegard Nossum
2017-05-29 10:43     ` Vegard Nossum [this message]
2017-06-03  9:34       ` Greg Kroah-Hartman
2017-06-03 20:50         ` Vegard Nossum
2017-05-22 10:39   ` Sergey Senozhatsky
2017-05-30 10:47 ` Geert Uytterhoeven

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=72780780-6259-045f-abb5-3b6e97ec4ffd@oracle.com \
    --to=vegard.nossum@oracle.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sergey.senozhatsky.work@gmail.com \
    --cc=sergey.senozhatsky@gmail.com \
    /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

all inboxes | Powered by JetHome®