CA-422743: Fix Kernel lockdown errors from debugfs accesses and remove Python 2.7 code#164
Merged
bernhardkaindl merged 3 commits intoJan 20, 2026
Conversation
added 3 commits
January 19, 2026 20:11
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@citrix.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@citrix.com>
…s/1/rawmsg Signed-off-by: Kevin Lampis <kevin.lampis@citrix.com> Signed-off-by: Bernhard Kaindl <bernhaYrd.kaindl@citrix.com>
Contributor
Author
|
I also have 4 [ This is an improvement for a test case to be more friendly for other, new test cases: It would be terrific to have these done as well, many thanks! |
KevinLCtx
approved these changes
Jan 19, 2026
rosslagerwall
approved these changes
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CA-422743: Fix Kernel lockdown errors from debugfs accesses and remove Python 2.7 code
file_output().-Review questions
As instructed by the xapi-clusterd plugin
/etc/xensource/bugtool/xapi-clusterd/bugtool.xml, we will still loop over the topleveldlmentries and call/usr/sbin/dlm_tool plocks <basename>and/usr/sbin/dlm_tool lockdebug -sv <basename>(but this does not descend into subdirs)bugtool itself would skip the files which trigger the errors (in the comms/ subdirectory):
This is the upstream commit adding them; they only have a write method for sending raw messages, so there is no "read":
https://cgit.freedesktop.org/drm-misc/commit/fs/dlm?id=9af5b8f0ead7cd90161b0555ed8e85ee38f79fa5
PR details
The tests use f-strings, requiring cleaning up the obsolete Python 2.7 pylint checks.
Because of this, I based this PR on two commits to remove outdated Python 2.7 checks and conditions (which are obsolete since the Yangtze EOL), and we switched to Python 3.6 on XS8 in December.
Commit 1: This is the removal of Python 2.7 code conformity checks (pylint cleanup)
Commit 2: This removes the now obsolete checks of
if sys.version_info.major == 2:.Commit 3 fixes the kernel lockdown errors: It depends on one and two; it touches the same context.