-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
centos:6 image segfaults on newer Linux kernels with Spectre V1 mitigation #103
Comments
Verified in Arch Linux using kernel 4.15.8-1 and Docker 18.02.0. Downgrading to 4.14.15-1 makes |
FYI, on 4.15.12-1-ARCH, I have the same behavior except that it exit silently without any error. Downgrading does fix the problem. |
So it seems that we just need the image to be updated with one that doesn't segfault on newer kernels. @jperrin was the last to update these images, looping him in here. |
While this issue can be circumvented by defining vsyscall=emulate in the bootloader's kernel options, this is unlikely to be the default for all distributions. As more systems adopt the patched kernels, images depending on the existing CentOS 6 line of images will likely fail. Is it even possible to rebuild the |
The images are built from the latest sources available for c6. I don't test them on anything other than CentOS and Fedora hosts. If it's failing on Arch, and you'd like to contribute Arch specific documentation to the docker docs repo CentOS page, I'm happy to ack it there. |
I would be happy to write docs, but I have no idea what the "docker docs repo CentOS page" is. Can you point me in the right direction? |
@jperrin I think Arch is a red herring here. The kernel changes have been seen in Alpine (moby/moby#28705), and they're slated to drop in Debian 10 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874034). I'd look at this as a canary situation instead. A debian test install produces the same results:
|
+1 Now fails on Debian testing as well. Is there any way to actually fix this instead of adding a note to the docs to use a less secure configuration? |
This is a duplicate of #62 |
I was having the same issue because of the new Debian 10 kernel. Edit the file Then regenerate the grub file |
Yes, this was commented last May as well. |
I somehow missed it. Thanks @timotheemoulin @terminalmage and @sgowie for the work around. |
Centos:6 does not work with 4.15.* kernel CentOS/sig-cloud-instance-images#103
The CentOS 6 image has not been updated in several years (and with EL6 being end-of-life) I doubt it will ever get an update. Closing. |
Running a
docker run --rm -it centos:6 bash
fails with exit status 139 (i.e. bash exits with SIGSEGV) on Linux kernel 4.15.9. Downgrading to 4.14.15 (which is vulnerable to Spectre V1) gets rid of the segfault.This has been tried both with the latest image pulled from the docker hub, and I also built from the most recent update here on GitHub (https://github.com/CentOS/sig-cloud-instance-images/blob/d2bb3d66e4f4330480f534ed4940e7c89210cfe6/docker/Dockerfile) and that image also fails.
The docker host is Arch Linux running Docker 18.02.0.
The text was updated successfully, but these errors were encountered: