[Xenial][PATCH 0/7] Fix rare tty_ldisc_reinit panic
Kamal Mostafa
kamal at canonical.com
Mon Aug 7 22:52:39 UTC 2017
BugLink: http://bugs.launchpad.net/bugs/1709126
The mainline commit 892d1fa7ea "tty: Destroy ldisc instance on hangup" (circa
v4.6) fixes a rare panic-inducing race in the tty driver. A handful of
prerequisite mainline cherry-picks are required to apply this to v4.4.
Positive test results in the original bug:
https://bugs.launchpad.net/cpc-gce/+bug/1707089
-Kamal
Peter Hurley (7):
tty: Simplify tty_set_ldisc() exit handling
tty: Reset c_line from driver's init_termios
tty: Handle NULL tty->ldisc
tty: Move tty_ldisc_kill()
tty: Use 'disc' for line discipline index name
tty: Refactor tty_ldisc_reinit() for reuse
tty: Destroy ldisc instance on hangup
drivers/tty/tty_io.c | 23 +++---
drivers/tty/tty_ldisc.c | 182 ++++++++++++++++++++++++------------------------
include/linux/tty.h | 5 +-
3 files changed, 105 insertions(+), 105 deletions(-)
--
2.7.4
More information about the kernel-team
mailing list