-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
RFC: provide KASLR support to u-boot v2024.07 general availability #7078
RFC: provide KASLR support to u-boot v2024.07 general availability #7078
Conversation
- move /chosen/kaslr-seed support patchset to general 2024.07 BOOTPATCHDIR - attach nanopi-r5c and oprangepi5-plus BOOTPACHDIR to patches/uboot/v2024.07 general dir Hopefully, other boards using same uboot-version can benefit from the added support note for Maintainers - to enable KASLR seed, you need: - CONFIG_RANDOMIZE_BASE=y configured in your kernel .config - CONFIG_CMD_KASLRSEED=y and CONFIG_DM_RNG=y configure in your u-boot .config - exposed crypto and rng nodes in you board's device-tree - kasrlseed command before kernel boot in your boot.cmd - CONFIG_SECURITY_DMESG_RESTRICT=y in kernel .config is also advisable
Given we're approaching 08 milestone, perhaps milestone 11 tag could be wise Thank you :) |
0c0666d
to
21965c1
Compare
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.
Nice!
Using the patch for the defconfigs is probably better since you can quickly glance over what's changed from the default defconfig file. You can use the board_nanopi-r5c
folder without needing to use BOOTPATCHDIR="v2024.07/board_${BOARD}"
, this folder will get included automatically, but only for the board it is for. For this reason, I'd keep the two ***_kaslrseed.patch
(but maybe rename it to e.g. nanopi-r5c-Add-kaslrseed-support-defconfig-patch
, it's always better to be able to quickly see thigns based on naming while glancing over it 😄).
Also, not sure if the two placeholder files for the dt directory are neccessary.
…defconfig to enable KASLR
21965c1
to
1751551
Compare
71bd617
to
ae21336
Compare
Done ;-) Thanks! |
Great, thanks! Did you try to do a |
1c28ae6
to
ed2ad82
Compare
Didn't even know there was a |
Oh, it's basically doing the same like I was more referring to the four patches that you (I think?) took from somewhere like |
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.
Looks good besides the nit mentioned above 👍
Understood, thanks Reference patchset: 1949474 |
Oh. You just need to
Then it's done :) Example: 6d78bd1 |
Grazie!!!!!! |
6d78bd1
to
ed2ad82
Compare
You're welcome! :) |
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.
Note: We should probably squash + merge this PR instead of the usual rebase + merge since there was quite some add, remove and add again stuff going on :D
Maybe a command switch to |
I was more thinking of providing the patch series URL so it can download and apply it automatically. But well, probably that's too much complexity for not much added benefit. The important thing here is the date, it has to be a magic date for Git. |
Description
KASRL-supporting u-boot 2024.07 for everyone:
/chosen/kaslr-seed
DTC node support patchset to general 2024.07BOOTPATCHDIR
BOOTPACHDIR
topatches/uboot/v2024.07
Hopefully, other boards using same uboot-version can benefit from the added support
note for Maintainers - to enable KASLR seed, you need:
-
CONFIG_RANDOMIZE_BASE=y
configured in your kernel.config
-
CONFIG_CMD_KASLRSEED=y
andCONFIG_DM_RNG=y
configured in your u-boot.config
- exposed
crypto
andrng
nodes in you board's device-tree-
kaslrseed
command before kernel boot in your boot.cmd-
CONFIG_SECURITY_DMESG_RESTRICT=y
in kernel.config
is also advisable (integrated by #7079 and #7080 for orangepi5-plus/nanopi-r5c)note for Maintainers 2 - please place your u-boot patches [
defconfig
anddevice-trees
(when needed) come to mind] inpatch/u-boot/v2024.07/board_${BOARD}
How Has This Been Tested?
Checklist: