forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Kexec bpf v5 #1
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
Open
pfliu
wants to merge
13
commits into
master
Choose a base branch
from
kexec_bpf_v5
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Kexec bpf v5 #1
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2bede9d
kexec_file: Make kexec_image_load_default global visible
735441e
lib/decompress: Keep decompressor when CONFIG_KEEP_COMPRESSOR
91dbf03
bpf: Introduce bpf_copy_to_kernel() to buffer the content from bpf-prog
436a7ef
bpf: Introduce decompressor kfunc
b3183f3
kexec: Introduce kexec_pe_image to parse and load PE file
47b249d
kexec: Integrate with the introduced bpf kfuncs
7b06d6e
kexec: Introduce a bpf-prog lskel to parse PE file
072f713
kexec: Factor out routine to find a symbol in ELF
300304b
kexec: Integrate bpf light skeleton to load zboot image
24dffb3
arm64/kexec: Add PE image format support
d8b3651
tools/kexec: Introduce a bpf-prog to parse zboot image format
9e012d7
tools/kexec: Add a zboot image building tool
b43dc73
Merge branch 'torvalds:master' into kexec_bpf_v5
pfliu 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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,15 @@ config KEXEC_FILE | |
| for kernel and initramfs as opposed to list of segments as | ||
| accepted by kexec system call. | ||
|
|
||
| config KEXEC_PE_IMAGE | ||
| bool "Enable parsing UEFI PE file through kexec file based system call" | ||
| select KEEP_DECOMPRESSOR | ||
| depends on KEXEC_FILE | ||
| depends on DEBUG_INFO_BTF && BPF_SYSCALL | ||
| help | ||
| This option makes the kexec_file_load() syscall cooperates with bpf-prog | ||
| to parse PE format file | ||
|
Comment on lines
+55
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| config KEXEC_SIG | ||
| bool "Verify kernel signature during kexec_file_load() syscall" | ||
| depends on ARCH_SUPPORTS_KEXEC_SIG | ||
|
|
||
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
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
Oops, something went wrong.
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.
This declaration appears to have a typo. The corresponding object defined in
kernel/kexec_pe_image.cis namedkexec_pe_image_ops. This declaration is also unused and seems redundant, asarch/arm64/include/asm/kexec.halready provides the correct declaration. Please correct the name or remove this line to avoid confusion.