Skip to content
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

[3.3 backport] pkg/fileutil: fix constant for linux locking #12552

Merged
merged 1 commit into from
Jan 16, 2021

Conversation

kolyshkin
Copy link
Contributor

This is a backport of #12440 to release-3.3 branch, fixing the critical bug in pkg/fileutil. All credits to @moritzboth and @joakim-tjernlund. Original description follows.


The constant F_OFD_GETLK is 36, not 37, according to
/usr/include/bits/fcntl-linux.h
Credits go to joakim-tjernlund who digged deep enough
to find this.

The constant F_OFD_GETLK is 36, not 37, according to
/usr/include/bits/fcntl-linux.h
Credits go to joakim-tjernlund who digged deep enough
to find this.

Fixes #31182
@thaJeztah
Copy link

@jingyih ptal 🤗

@ptabor
Copy link
Contributor

ptabor commented Jan 15, 2021

In 3.4 and master (e.g. bea35fd) the constant was replaced with usage of constant from:
"golang.org/x/sys/unix".
Can we do this analogously, or this branch uses too old golang version ?

@kolyshkin
Copy link
Contributor Author

In 3.4 and master (e.g. bea35fd) the constant was replaced with usage of constant from:
"golang.org/x/sys/unix".
Can we do this analogously, or this branch uses too old golang version?

I think we can. The reason I did not do that is to minimize the code changes to a branch which is in maintenance mode.

@ptabor ptabor merged commit 9530a81 into etcd-io:release-3.3 Jan 16, 2021
@thaJeztah
Copy link

@ptabor are there plans to do a patch release for v3.3.x? I see two fixes were merged in the branch; v3.3.25...release-3.3

@joakim-tjernlund
Copy link

Yes, please do a release so we can close this 3 year old bug.

@kolyshkin
Copy link
Contributor Author

@gyuho can you please cut a v3.3.26 release as per the comments above?

@kolyshkin kolyshkin mentioned this pull request Feb 18, 2021
kolyshkin added a commit to kolyshkin/moby that referenced this pull request Feb 18, 2021
Bump etcd to v3.3.25 + etcd-io/etcd#12552,
to fix moby#31182

This adds 2 new and removes 1 unused package from vendor.conf.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
thaJeztah pushed a commit to moby/moby that referenced this pull request Jan 5, 2022
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix #31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
evol262 pushed a commit to evol262/moby that referenced this pull request Jan 12, 2022
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix moby#31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah pushed a commit to thaJeztah/docker that referenced this pull request Feb 18, 2022
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix moby#31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
lmbarros pushed a commit to balena-os/balena-engine that referenced this pull request Nov 22, 2022
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix moby/moby#31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
lmbarros pushed a commit to balena-os/balena-engine that referenced this pull request Nov 22, 2022
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix moby/moby#31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
lmbarros pushed a commit to balena-os/balena-engine that referenced this pull request Dec 8, 2022
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix moby/moby#31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
lmbarros pushed a commit to balena-os/balena-engine that referenced this pull request Dec 21, 2022
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix moby/moby#31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
lmbarros pushed a commit to balena-os/balena-engine that referenced this pull request Feb 7, 2023
Bump etcd to v3.3.27, which includes etcd-io/etcd#12552,
to fix moby/moby#31182

Full diff: etcd-io/etcd@v3.3.25...v3.3.27

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants