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

Really fix future kernel compatibility #11

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

kolyshkin
Copy link
Owner

Earlier commit (see #1) made sure we don't error out if the kernel capability version is unknown; this ensures compatibility with future kernels.

Looking at the code, I realized p.hdr.version should be initialized to linuxCapVer3 in that case, not the version returned by the kernel, otherwise we supply v3 data structure with (say) v4 version set in header.

Practically, this was not a real bug (yet) because v4 is not (yet) available, but if it will ever be introduced later, this fix makes us ready.

Fixes: 5584105 ("Fix future version compatibility")

Earlier commit made sure we don't error out if the kernel capability
version is unknown; this ensures compatibility with future kernels.

Looking at the code, I realized p.hdr.version should be initialized to
linuxCapVer3 in that case, not the version returned by the kernel,
otherwise we supply v3 data structure with (say) v4 version set in
header.

Practically, this was not a real bug (yet) because v4 is not (yet)
available, but if it will ever be introduced later, this fix makes us
ready.

Fixes: 5584105 ("Fix future version compatibility")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin merged commit 4715f7e into main Aug 1, 2024
5 checks passed
@kolyshkin kolyshkin deleted the really-fix-compat branch August 1, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant