1 TITLE: possible deadlock in tty_buffer_flush 2 CORRUPTED: Y 3 4 [ 1722.511384] WARNING: possible circular locking dependency detected 5 [ 1722.511384] 4.12.0-rc2-next-20170525+ #1 Not tainted 6 [ 1722.511384] ------------------------------------------------------ 7 [ 1722.511384] kworker/u4:2/54 is trying to acquire lock: 8 [ 1722.511384] (&buf->lock){+.+...}, at: [<ffffffff9edb41bb>] tty_buffer_flush+0xbb/0x3a0 drivers/tty/tty_buffer.c:221 9 [ 1722.511384] 10 [ 1722.511384] but task is already holding lock: 11 [ 1722.511384] (&o_tty->termios_rwsem/1){++++..}, at: [<ffffffff9eda4961>] isig+0xa1/0x4d0 drivers/tty/n_tty.c:1100 12 [ 1722.511384] 13 [ 1722.511384] which lock already depends on the new lock. 14