Sync/lass 20260916 - #604
Merged
Merged
Conversation
Determine LASS enablement from the kernel-exposed lass flag in /proc/cpuinfo instead of parsing /proc/cmdline, since there is no lass kernel command line parameter and LASS is enabled from CPUID. Also fix lass_enable being unconditionally set to true so the detection result is honored. [Test Components] lass [Test Types] func Co-developed-by: Copilot <copilot@github.com> Signed-off-by: Farrah Chen <farrah.chen@intel.com> (cherry picked from commit 6ab86a2834e016c0df319b4ce79ed8715694f59d)
check_vsyscall_status() read /proc/cmdline into a 256-byte buffer, but a real distro kernel command line often exceeds that. The fgets() loop then keeps only the last chunk, so an early vsyscall= token (e.g. vsyscall=none) was dropped and the mode was misdetected, causing the 'm' case to fail unexpectedly. Enlarge the buffer to hold the whole command line (x86 COMMAND_LINE_SIZE is 2048). [Test Components] lass [Test Types] func Co-developed-by: Copilot <copilot@github.com> Signed-off-by: Farrah Chen <farrah.chen@intel.com> (cherry picked from commit 1fd00ef702cb0dfc8e2c1105126248274a19fff5)
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.
No description provided.