2018-12-12 06:40:59 |
Woodrow Shen |
bug |
|
|
added bug |
2018-12-12 06:41:22 |
Woodrow Shen |
linux (Ubuntu): status |
New |
Confirmed |
|
2018-12-12 06:41:29 |
Woodrow Shen |
linux (Ubuntu): assignee |
|
Woodrow Shen (woodrow-shen) |
|
2018-12-12 06:55:19 |
Woodrow Shen |
description |
[Impact]
The agetty stopped working using serial tty when user logged out, especially if there is a remained process. The agetty failed to open tty device due to serial port used by previous process was not released.
[Test Case]
1. Run background processes from serial console
$ while true; do sleep 10; done &
2. Log out
$ logout
3. Read journal log by journalctl | tail
Jan 28 16:07:01 ubuntu systemd[1]: Stopped Serial Getty on ttyAMA0.
Jan 28 16:07:01 ubuntu systemd[1]: Started Serial Getty on ttyAMA0.
Jan 28 16:07:02 ubuntu agetty[1643]: /dev/ttyAMA0: not a tty
[Fix]
The upstream has a fix since 4.20-rc6, which turns off TTY_IO_ERROR flag if port comes from console. The commit link is provided by
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/tty/tty_port.c?h=v4.20-rc6&id=2a48602615e0a2f563549c7d5c8d507f904cf96e
[Regression Potential]
Should be none, and it's regression becoz 4.4 kernel didn't have this case. |
[Impact]
The agetty stopped working using serial tty when user logged out, especially if there is a remained process. The agetty failed to open tty device due to serial port used by previous process was not released.
[Test Case]
1. Run background processes from serial console
$ while true; do sleep 10; done &
2. Log out
$ logout
3. Read journal log by journalctl | tail
Jan 28 16:07:01 ubuntu systemd[1]: Stopped Serial Getty on ttyAMA0.
Jan 28 16:07:01 ubuntu systemd[1]: Started Serial Getty on ttyAMA0.
Jan 28 16:07:02 ubuntu agetty[1643]: /dev/ttyAMA0: not a tty
[Fix]
The upstream has a fix since 4.20-rc6, which turns off TTY_IO_ERROR flag if port comes from console. The commit is cherry-picked by
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/tty/tty_port.c?h=v4.20-rc6&id=2a48602615e0a2f563549c7d5c8d507f904cf96e
[Regression Potential]
Should be none, and it's regression becoz 4.4 kernel didn't have this case. |
|
2018-12-12 08:01:49 |
Woodrow Shen |
linux (Ubuntu): status |
Confirmed |
In Progress |
|
2018-12-17 08:09:54 |
Po-Hsu Lin |
nominated for series |
|
Ubuntu Cosmic |
|
2018-12-17 08:09:54 |
Po-Hsu Lin |
nominated for series |
|
Ubuntu Bionic |
|
2019-01-09 10:23:40 |
Stefan Bader |
bug task added |
|
linux (Ubuntu Bionic) |
|
2019-01-09 10:23:47 |
Stefan Bader |
bug task added |
|
linux (Ubuntu Cosmic) |
|
2019-01-09 15:14:04 |
Kleber Sacilotto de Souza |
linux (Ubuntu Bionic): status |
New |
Fix Committed |
|
2019-01-09 15:14:06 |
Kleber Sacilotto de Souza |
linux (Ubuntu Cosmic): status |
New |
Fix Committed |
|
2019-01-15 10:32:57 |
Brad Figg |
tags |
|
verification-needed-cosmic |
|
2019-01-15 10:37:47 |
Brad Figg |
tags |
verification-needed-cosmic |
verification-needed-bionic verification-needed-cosmic |
|
2019-01-22 08:38:15 |
Woodrow Shen |
tags |
verification-needed-bionic verification-needed-cosmic |
verification-done-bionic verification-needed-cosmic |
|
2019-01-22 08:39:11 |
Woodrow Shen |
tags |
verification-done-bionic verification-needed-cosmic |
verification-done-bionic verification-done-cosmic |
|
2019-01-23 08:02:16 |
Woodrow Shen |
linux (Ubuntu): status |
In Progress |
Fix Committed |
|
2019-01-28 17:12:01 |
Launchpad Janitor |
linux (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2019-01-28 17:12:01 |
Launchpad Janitor |
cve linked |
|
2018-14625 |
|
2019-01-28 17:12:01 |
Launchpad Janitor |
cve linked |
|
2018-16882 |
|
2019-01-28 17:12:01 |
Launchpad Janitor |
cve linked |
|
2018-17972 |
|
2019-01-28 17:12:01 |
Launchpad Janitor |
cve linked |
|
2018-18281 |
|
2019-01-28 17:12:01 |
Launchpad Janitor |
cve linked |
|
2018-19407 |
|
2019-02-04 08:48:45 |
Launchpad Janitor |
linux (Ubuntu Cosmic): status |
Fix Committed |
Fix Released |
|
2019-10-03 07:28:40 |
Po-Hsu Lin |
linux (Ubuntu): status |
Fix Committed |
Fix Released |
|