[Bug 1030118] New: Dirty COW fix causes some apps to freeze; patch is available in upstream linux
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118 Bug ID: 1030118 Summary: Dirty COW fix causes some apps to freeze; patch is available in upstream linux Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: x86-64 OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: oss+suse@c-mauderer.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, please note: I already sent this bug to the OpenSUSE kernel mailing list and I've been instructed to file a bug here. The original mailing list discussion can be found here: https://lists.opensuse.org/opensuse-kernel/2017-03/msg00003.html Now to the problem: I run across a problem with an application using wine on OpenSUSE 42.1. After some search, I found out that it is a known bug and that there is an fix available: https://bugs.winehq.org/show_bug.cgi?id=41637 Basically the (backported) Dirty COW fix misses some adaptions in a second file and that leads to problems in some very special cases. For details please see the LKML thread with the fix: https://lkml.org/lkml/2017/1/5/13 It seems that the patch is also not applied in 42.2. At least I haven't found it in the git history. During the mailing list discussion Michael Hocko added that in the vanilla kernel, the fix has the following commit hash: 8310d48b125d ("mm/huge_memory.c: respect FOLL_FORCE/FOLL_COW for thp"). Further he said, that SLE12-SP2 is also affected. The patch from vanilla linux does not apply cleanly onto the current openSUSE-42.1 branch of git://kernel.opensuse.org/kernel.git. But over at Ubuntu, there is a patch for a kernel version that is not too far away from the openSUSE-42.1 one that applies cleanly to this branch but according to Jiri Slaby, it does not apply or build on 3.12. http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/commit/?id=9c49adf93cd... Please note that till now, I haven't build any kernel with the patch applied. If that is necessary I can build one but you would have to tell me exactly from which branch so it would be useful. Kind Regards Christian Mauderer -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118#c3
Takashi Iwai
OK, so I've backported the fix to 3.12 based 12-SP2 (openSUSE-42.1 should get it from there automagically AFAIU)
openSUSE-42.1 is based on 4.1.x, so it is a different tree. It's openSUSE-42.2 which takes from 4.4.x SLE12-SP2 branch automatically. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118#c5
Takashi Iwai
(In reply to Michal Hocko from comment #1)
OK, so I've backported the fix to 3.12 based 12-SP2 (openSUSE-42.1 should get it from there automagically AFAIU)
openSUSE-42.1 is based on 4.1.x, so it is a different tree. It's openSUSE-42.2 which takes from 4.4.x SLE12-SP2 branch automatically.
The test kernel package with the fix patch for openSUSE-42.1 is being built in OBS home:tiwai:bnc1030118-os42.1 repo. Could you test it later once after the build finishes? Usually it takes one or two hours. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118#c6
--- Comment #6 from Christian Mauderer
(In reply to Takashi Iwai from comment #3)
(In reply to Michal Hocko from comment #1)
OK, so I've backported the fix to 3.12 based 12-SP2 (openSUSE-42.1 should get it from there automagically AFAIU)
openSUSE-42.1 is based on 4.1.x, so it is a different tree. It's openSUSE-42.2 which takes from 4.4.x SLE12-SP2 branch automatically.
The test kernel package with the fix patch for openSUSE-42.1 is being built in OBS home:tiwai:bnc1030118-os42.1 repo. Could you test it later once after the build finishes? Usually it takes one or two hours.
Thanks for your fast support. Of course I'll test it. Would it be OK if I only test it in a virtual machine? The system that is originally affected is my work notebook and I don't have access to it until tomorrow. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118#c10
--- Comment #10 from Takashi Iwai
(In reply to Takashi Iwai from comment #5)
(In reply to Takashi Iwai from comment #3)
(In reply to Michal Hocko from comment #1)
OK, so I've backported the fix to 3.12 based 12-SP2 (openSUSE-42.1 should get it from there automagically AFAIU)
openSUSE-42.1 is based on 4.1.x, so it is a different tree. It's openSUSE-42.2 which takes from 4.4.x SLE12-SP2 branch automatically.
The test kernel package with the fix patch for openSUSE-42.1 is being built in OBS home:tiwai:bnc1030118-os42.1 repo. Could you test it later once after the build finishes? Usually it takes one or two hours.
Thanks for your fast support. Of course I'll test it. Would it be OK if I only test it in a virtual machine? The system that is originally affected is my work notebook and I don't have access to it until tomorrow.
Sure, it's no problem whether it's a real machine or not. And this isn't a super-urgent issue, either, so don't worry about the time :) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118
http://bugzilla.opensuse.org/show_bug.cgi?id=1030118#c11
--- Comment #11 from Christian Mauderer
participants (1)
-
bugzilla_noreply@novell.com