-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat(internal): Pass 8 CSPRNG random integer words #1899
Conversation
e92dc44
to
28df6c4
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.
All good on my side implementation-wise. Thanks!
Regarding the interaction with Unikraft itself, I'd like to cc @razvand and @michpappas before merging to help verify everything in conjunction with unikraft/unikraft#1496
28df6c4
to
1429fe9
Compare
Updated to check for RDRAND/RDSEED If they are both present then ignore the config option and let Unikraft take its own bytes from the device/generator |
e7925f2
to
5771822
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.
@craciunoiuc just a few comments. Also if you update this, it would be great if you posted a few of the generated cmdlines.
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
5771822
to
b6dbfba
Compare
this is how it looks for one run, note that quotes don't show up in the logs |
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, thanks a lot!
Reviewed-by: Michalis Pappas michalis@unikraft.io
Depends-on: unikraft/unikraft#1496 Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
183beaf
to
c24a60a
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.
Thanks everyone! Looks good from my side. I'll merge this when unikraft/unikraft#1496 is merged into staging.
Linking for completeness: klauspost/cpuid#152 |
c24a60a
to
3f4fa37
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.
@craciunoiuc besides the comments below, I think we should have the conditions on for generating the cmdline rewritten in a more clear / readable way, especially given the security-related nature of that code 🙏🏼
Also since your changes for FEAT_RNG
were merged upstream, please consider if you should also update the CPUID check for Arm too.
Checks are automatically done when checking for the RDRAND features. Imagine it as a an interface with different implementations depending on the OS running the library. So all is good. |
4cc2f51
to
37a3372
Compare
37a3372
to
918cd7b
Compare
918cd7b
to
cb8609d
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.
Looks good, thanks!
Reviewed-by: Michalis Pappas michalis@unikraft.io
Also update API usage. Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
This was added in qemu 4.0.0 and we refuse to run when 4.2.0 or lower is used anyway. Unikraft can now with rdrand only, so this is not a hard requriment. Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
cb8609d
to
5d007fa
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.
Approved-by: Razvan Deaconescu razvand@unikraft.io
Prerequisite checklist
make fmt
on your commit series before opening this PR;Description of changes