Userspace break as a result of missing patch backport
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| linux (Ubuntu) |
High
|
Unassigned | ||
| Xenial |
High
|
Unassigned | ||
| Bionic |
High
|
Unassigned | ||
| Cosmic |
High
|
Unassigned |
Bug Description
Hi,
The most recent set of Ubuntu kernels applied a variety of tty patches including: https:/
But have not applied the more recent https:/
This second patch is required to prevent a rather serious regression where userspace applications reading from stdin can receive EAGAIN when they should not.
I will try to link correspondence from the mailing list archives once they are available, but for now if you have access to the linux-console mailing list you can find discussion under the thread "Userspace break? read from STDIN returns EAGAIN if tty is "touched"".
I would appreciate it if this could be examined soon as it is a regression on userspace.
Thanks
Michael
Good:
4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018
Bad:
4.15.0-44-generic #47-Ubuntu SMP Mon Jan 14 11:26:59 UTC 2019
md_5 (md-5) wrote : | #2 |
See https:/
Stefan Bader (smb) wrote : | #3 |
We will pick the follow-up patch up for the next cycle.
Changed in linux (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in linux (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in linux (Ubuntu Cosmic): | |
importance: | Undecided → High |
Changed in linux (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in linux (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in linux (Ubuntu Cosmic): | |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
Changed in linux (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in linux (Ubuntu Xenial): | |
status: | Triaged → Fix Committed |
Changed in linux (Ubuntu Bionic): | |
status: | Triaged → Confirmed |
status: | Confirmed → Fix Committed |
Changed in linux (Ubuntu Cosmic): | |
status: | Triaged → Fix Committed |
Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package linux - 4.18.0-15.16
---------------
linux (4.18.0-15.16) cosmic; urgency=medium
* Ubuntu boot failure. 4.18.0-14 boot stalls. (does not boot) (LP: #1814555)
- Revert "drm/i915/
* Userspace break as a result of missing patch backport (LP: #1813873)
- tty: Don't hold ldisc lock in tty_reopen() if ldisc present
-- Stefan Bader <email address hidden> Thu, 07 Feb 2019 11:24:34 +0100
Changed in linux (Ubuntu Cosmic): | |
status: | Fix Committed → Fix Released |
status: | Fix Committed → Fix Released |
Joe Wood (joew60) wrote : | #6 |
Hi,
Still present in latest i386 Bionic 18.04.02 LTS
Guilherme G. Piccoli (gpiccoli) wrote : | #7 |
Hi Joe, can you please paste the output of "uname -a" from your system that is presenting this issue?
Thanks in advance
md_5 (md-5) wrote : | #8 |
No package containing the fix for 18.04 has been released yet, only 18.10.
It is therefore expected that 18.04.X still displays the issue.
Rehan Khamaruddin (rsk02) wrote : | #9 |
I am running 18.04 with linux-image-
Guilherme G. Piccoli (gpiccoli) wrote : | #10 |
Great, thanks Rehan!
tags: | added: regression-update |
Brad Figg (brad-figg) wrote : | #11 |
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/
tags: | added: verification-needed-xenial |
Putatieve Prins (narrenschip2) wrote : | #12 |
I tried xenial-proposed, but the fix doesn't seem to be available yet. It's still pulling 4.15.0 from xenial-updates (and that one still has the problem).
I double checked that xenial-proposed is properly configured by installing 'linux-generic':
...
Get:24 http://
Get:25 http://
...
W.
md_5 (md-5) wrote : | #13 |
Putatieve,
Seems like you have the bionic HWE installed, so that is why your server is defaulting to 4.15.
Your apt log shows 4.4 downloading so you should be able to manually boot into it from grub...
Personally I'm hoping an update drops to bionic proposed as Xenial was not part of my original testing....
Putatieve Prins (narrenschip2) wrote : | #14 |
I most definitly do have linux-generic-
Putatieve Prins (narrenschip2) wrote : | #15 |
PS: linux-genric-
Putatieve Prins (narrenschip2) wrote : | #16 |
And I am running ubuntu 16.04
md_5 (md-5) wrote : | #17 |
Right, the fixed kernel mentioned in -proposed is NOT the 4.15 HWE kernel, it's the 4.4.0 kernel.
You need to select the correct kernel if you wish to test the fix.
Putatieve Prins (narrenschip2) wrote : | #18 |
You don't seem to understand what I said: I DO HAVE 4.15.0 installed (linux-
https:/
running 'apt-get install -t xenial-proposed linux-generic-
To double check that I configured xenial-proposed correctly, I installed linux-generic, wich DOES have an update waiting (4.4.0-143 in xenial-proposed over 4.4.0-142 from xenial/main):
nubu lobo (nubulobo) wrote : | #19 |
I'm under unbuntu 16.04 kernel 4.4.0 and the xenial-proposed solved problem reading /dev/tty for me
tags: |
added: verification-done-xenial removed: verification-needed-xenial |
Putatieve Prins (narrenschip2) wrote : | #20 |
Of course, the bug/regression only appeared in 4.15.0-45 (4.15.0-43 is fine).
In post #11, Brad Figg specifically asked us to test a fix, released in the 'proposed' repository, ASAP and report back with the result. Otherwise the proposed fix would be dropped.
But on Ubuntu 16.04 (xenial-proposed) the fix is not available (yet?) or am I missing something?
Guilherme G. Piccoli (gpiccoli) wrote : | #21 |
Hi Putatieve, thanks for you attention here. Let me try to clarify what happens here: the issue is present in kernel 4.4.0-142, 4.15.0-45 and 4.18.0-14. The three versions were already released,
but the fix for the regression observed in this LP is present in the new versions that are getting released in this cycle.
For Ubuntu 16.04/Xenial (and Trusty-HWE), the candidate version is: 4.4.0-143. This version is already available through the -proposed pocket, nubu validated that it fixes the issue (thanks nubu!).
For Ubuntu 18.04/Bionic (and Xenial-HWE), the candidate version for kernel 4.15 wasn't released yet, so we can't validate yet. This was the reason you couldn't test - your Ubuntu is configured to use 4.15 series, the called HWE kernel. Given the proposed version of 4.15 series for this cycle wasn't released yet, you couldn't test. You *can* install 4.4.0-143 from -proposed if you want, but you'll need to manually set grub to boot that instead of 4.15 (as per md_5 comment).
Finally, for Ubuntu 18.10/Cosmic, the fix was released in -updates already, in kernel 4.18.0-15, so the -proposed test isn't even necessary, the fix was released normally by now.
Please, let me know if you have questions on Ubuntu kernel cycles in order we can clarify it for you.
Cheers,
Guilherme
Putatieve Prins (narrenschip2) wrote : | #22 |
Hi Guilherme,
Thanks for your response. I was under the impression that there would also be fix in 'proposed' for Xenial-HWE.
I can confirm that the issue is fixed in 4.4.0-143 (and indeed present in 4.4.0-142).
Best,
W;-)
Hi all.
I'm following your discussion, but I couldn't realize if I can fix or just waiting the fix.
In my case I have two stations with ubuntu 18.04(bionic), both with linux-image-
So, I wait or can I apply somehow the fix it?
All this is very new to me, sorry
Regards,
Samuel
Guilherme G. Piccoli (gpiccoli) wrote : | #24 |
You're welcome Putatieve, thanks for testing the Xenial 4.4.0-143 version!
And you're right, we will have a fix for Xenial-HWE - as soon it is available, you will observe a new message from Brad Figg here, this time adding a tag "verification-
And then, likely the version for Xenial-HWE will be ready to test.
Notice the "likely" word above: happens that the build process is usually parallel, with Bionic 4.15 and Xenial 4.15~16.04 at same time; but there are small code changes (mostly toolchain related) between Bionic 4.15 and Xenial-HWE, so it may happen that Bionic version is ready before Xenial-HWE. It's likely to be at same time (or with some hours of difference) though.
If you're interested in more knowledge about Ubuntu kernel cycles, I'd like to suggest you this interesting wiki page: https:/
You can check the releases and also, how the HWE works (18.04 kernel 4.15 is present as a long-term supported HWE kernel for 16.04.5 version; same relation we observe between 16.04 and 14.04.5).
Feel free to expose any remaining questions you have - also, your testing when the 4.15 version gets released to -proposed is much appreciated!
Cheers,
Guilherme
Ulli Horlacher (framstag) wrote : Re: [Bug 1813873] Re: Userspace break as a result of missing patch backport | #25 |
On Thu 2019-02-14 (10:46), SAMUEL TEIXEIRA SANTOS wrote:
> In my case I have two stations with ubuntu 18.04(bionic), both with
> linux-image-
>
> So, I wait or can I apply somehow the fix it?
Install linux-image-
This package has the bug-fix,
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: <email address hidden>
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://
REF:<email address hidden>
Guilherme G. Piccoli (gpiccoli) wrote : | #26 |
Samuel, for now the suggestion is to keep kernel 4.15.0-43, as it doesn't show the issue reported in this LP.
Soon (probably later today or tomorrow) the new version for 4.15 will show up in -proposed pocket, so you can update to that version for testing purposes, since that version will have the fix for the issue reported here.
Cheers,
Guilherme
Brad Figg (brad-figg) wrote : | #27 |
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/
tags: | added: verification-needed-bionic |
KayNettle (pkn) wrote : | #28 |
I enabled proposed, did an apt-get update, it got the index file:
Get:9 http://
Then I did an apt-get dist-upgrade and no kernel showed up in the list of pacages to upgrade. What do I need to do to test the new kernel.
Singer Michael (bluelupo) wrote : | #29 |
Error seems to be fixed. I have made the following solution:
# apt install --install-
Login as user/root in the text console (tty) with kernel 4.18.0-15 was possible without any problems.
My system: KDE Neon Useredition
Edgar Hipp (edi9999) wrote : | #30 |
The kernel in -proposed solves the problem, I've tested it !
I don't know how to add the flag "verification-
tags: |
added: verification-done-bionic removed: verification-needed-bionic |
Rehan Khamaruddin (rsk02) wrote : | #31 |
I think I may have run into another issue related to the same bug. While the login loop problem appears to have been fixed, the fix does not seem to have cascaded down to other prompts that one may encounter in special circumstances. In my case, I had an external USB drive connected to my server and this happened to have been powered off (physically) when booting. As expected, the system did not complete the boot process and stopped (momentarily) at the "Enter Ctrl-D etc" prompt to allow repair. Well, it just kept going. I was unable to get in at all and eventually just had to physically reset the box and reconnect power to the USB drive. So the looping that used to happen at the console login persists when dropping to the emergency shell. I will be grateful if anyone else can confirm. Just add a spurious entry to fstab and try to reboot.
Status changed to 'Confirmed' because the bug affects multiple users.