-
Notifications
You must be signed in to change notification settings - Fork 6
feat(virtio-linux): further strip out unnecessary kconfigs #569
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: gominimal/pkgs
Length of output: 204
🏁 Script executed:
Repository: gominimal/pkgs
Length of output: 13902
🏁 Script executed:
Repository: gominimal/pkgs
Length of output: 2281
🌐 Web query:
Linux v6.12 Kconfig KEXEC_FILE KEXEC_CORE KEXEC dependency init/Kconfig💡 Result:
In Linux kernel v6.12, the configuration options related to kexec are consolidated within the kernel/Kconfig.kexec file [1][2]. The dependencies and relationships between KEXEC, KEXEC_FILE, and KEXEC_CORE are structured as follows: KEXEC_CORE This is a hidden boolean configuration symbol that acts as a core dependency for both the traditional kexec and the file-based kexec interfaces [3][1][4]. It does not have user-visible prompt text and is selected by both KEXEC and KEXEC_FILE [3][1]. KEXEC (Enable kexec system call) This option enables the traditional kexec system call [3][1]. - Depends on: ARCH_SUPPORTS_KEXEC (defined by individual architectures) [3][1]. - Selects: KEXEC_CORE [3][1]. KEXEC_FILE (Enable kexec file based system call) This option enables the newer, file-based kexec system call that uses file descriptors for the kernel and initramfs [3][1]. - Depends on: ARCH_SUPPORTS_KEXEC_FILE (defined by individual architectures) [3][1]. - Selects: KEXEC_CORE [3][1]. - Additionally selects: CRYPTO and CRYPTO_LIB_SHA256 (or CRYPTO_SHA256, depending on the specific kernel branch) to support the required cryptographic verification of the kernel image [3][1][4][5]. In summary, KEXEC_CORE is the underlying infrastructure required by both KEXEC and KEXEC_FILE, and both options explicitly select it to ensure it is enabled when either is configured [1][6]. The architecture-specific support is enforced by the ARCH_SUPPORTS_KEXEC and ARCH_SUPPORTS_KEXEC_FILE dependencies, which prevent these features from being enabled on architectures that do not support them [2].
Citations:
Security Misconfiguration (CWE-16)
Reachability: Internal · Exploitability: Difficult
Disable
KEXEC_FILEtoo.KEXEC_FILEindependently selectsKEXEC_CORE, so disabling onlyKEXECcan leave the file-based kexec path enabled. AddKEXEC_FILEtonopeand verify that the published configuration contains noCONFIG_KEXEC=y,CONFIG_KEXEC_FILE=y, orCONFIG_KEXEC_CORE=y.🤖 Prompt for AI Agents