Skip to content

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

Merged
ptabor merged 1 commit intoetcd-io:release-3.3from
kolyshkin:3.3-fix-lock
Jan 16, 2021
Merged

[3.3 backport] pkg/fileutil: fix constant for linux locking#12552
ptabor merged 1 commit intoetcd-io:release-3.3from
kolyshkin:3.3-fix-lock

Conversation

@kolyshkin
Copy link
Copy Markdown
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
Copy Markdown

@jingyih ptal 🤗

@ptabor
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@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
Copy Markdown

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

@kolyshkin
Copy link
Copy Markdown
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 <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit ffd5a20)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
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