-
Notifications
You must be signed in to change notification settings - Fork 317
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
utils: ignore ENOTSUP when chmod a symlink #1309
Conversation
0b2bf5e
to
66d6cd7
Compare
commit 5d1f903f75a80daa4dfb3d84e114ec8ecbf29956 in the kernel, present in a release since Linux 6.6 doesn't allow anymore to change the mode of a symlink, so just ignore the failure. Closes: containers#1308 Signed-off-by: Giuseppe Scrivano <[email protected]>
66d6cd7
to
57262a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM , just a small question above.
Did you ask on the kernel list to revert or at least not backport this change? |
no, I've not asked it yet. @brauner even if the issue is in user space (as in our case), do you think the mentioned patch "attr: block mode changes of symlinks" should be reverted on LTS releases to prevent such kind of errors when the kernel is updated? |
I would leave it in the LTS as well to make it consistent what you did above could fail before btw. It depends on the fstype whether this breaks and whether posix acls are enabled or not. That's why this was blocked in the first place as it only works sometimes. The code you added in there isn't guaranteed to work and why both glibc and musl removed it. If you want to insist on it getting reverted from the LTS than you can probably get Greg to do this but if you can live with fixing this up here we're all better off imho. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
NB1: ENOTSUP == EOPNOTSUPP in glibc (but not in the kernel).
NB2: The code to handle ENOTSUP was added in 2019 in commit 805e01d.
Later in 2020, glibc added its own handling of AT_SYMLINK_NOFOLLOW
to its fchmodat
, and it returns EOPNOTSUPP
in case of a symlink. This was added by https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a492b1e5ef7ab50c6fdd4e4e9879ea5569ab0a6c (see also https://sourceware.org/bugzilla/show_bug.cgi?id=14578) and is there since glibc-2.32.
I think musl did a similar change but haven't took a closer look.
@giuseppe do you have a guess on when this will hit bodhi? |
today! :) |
Ref: containers/crun#1309 Signed-off-by: Chris Evich <[email protected]>
Ref: containers/crun#1309 Signed-off-by: Chris Evich <[email protected]>
...from f38 + f37. Requires one minor e2e test change, to handle an error logging change in conmon 2.1.8. Also, this is important, requires crun-1.9.1 because of a kernel symlink change; see containers/crun#1309 The VM images here were carefully built to include that. By the time the next VM images get built, it should be default. Since we've bumped crun, remove two obsolete skips And, skip a flaky pasta test, containers#20170 Signed-off-by: Ed Santiago <[email protected]>
This issue occurs with kernel 6.5.5 too (podman container with systemd) |
This issue is now effecting Debian stable, which updated its kernel to 6.1.0-13 (6.1.55), which includes the backported change, as you can see in this change log. This is breaking some of my podman containers on my Debian install. |
I received an update crun-1.9.2-1.fc37 (Fedora 37) today and now systemd in a podman container works again. Kernel 6.5.6-100.fc37.x86_64 |
I see this on Fedora39 with all updates as of today, on aarch64 and x86_64.
Reproduces in a newly deployed Fed39 KVM guest on x86_64: I used 'podman build [..]' to build an image (based on Debian Bookworm in my case) and then 'podman run':
|
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]> Acked-by: Dumitru Ceara <[email protected]> Signed-off-by: Numan Siddique <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]> Acked-by: Dumitru Ceara <[email protected]> Signed-off-by: Numan Siddique <[email protected]> (cherry picked from commit 891cf58)
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: 0-day Robot <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]> (cherry picked from commit cbf4fc8)
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]> Acked-by: Dumitru Ceara <[email protected]> Signed-off-by: Numan Siddique <[email protected]> (cherry picked from commit 891cf58) Signed-off-by: Dumitru Ceara <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]> (cherry picked from commit cbf4fc8)
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 23.10 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Ales Musil <[email protected]> Acked-by: Dumitru Ceara <[email protected]> Signed-off-by: Numan Siddique <[email protected]> (cherry picked from commit 891cf58) Signed-off-by: Dumitru Ceara <[email protected]>
There are some issues with older crun and newer kernel combination [0]. Unfortunately Ubuntu 22.04 falls into this category and the jobs will often time fail. Temoprarily use newer crun from git that has the fix [1]. [0] containers/crun#1309 [1] https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/ Signed-off-by: Mohammad Heib <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]> (cherry picked from commit cbf4fc8)
commit 5d1f903f75a80daa4dfb3d84e114ec8ecbf29956 in the kernel, present in a release since Linux 6.6 doesn't allow anymore to change the mode of a symlink, so just ignore the failure.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5d1f903f75a80daa4dfb3d84e114ec8ecbf29956
Closes: #1308