-
Notifications
You must be signed in to change notification settings - Fork 459
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
Add kernelCTF CVE-2024-52925_mitigaiton #166
base: master
Are you sure you want to change the base?
Conversation
933028d
to
c111d81
Compare
76d6b57
to
bf0d68f
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.
Hey,
This is just a quick code quality review. We're planning to review the submissions more deeply (actually understanding what the exploit does) next week.
In general, the code quality looks good, no major concerns. I've left a few smaller comments here and please also apply the changes asked in the other PRs (#161, #162) here as well.
We also have a draft style guide now. Please take a look and let us know if it's helpful for understanding our code quality expectations: https://google.github.io/security-research/kernelctf/style_guide.
Thanks for the submission and PR!
printf("using kernel base %llx\n", base); | ||
|
||
kbase = base; | ||
// i64 diff = 0xffffffff81000000 - base; |
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.
Please remove the commented out, unused code: https://google.github.io/security-research/kernelctf/style_guide#commented-out-code
|
||
rop_chain((uint64_t*) buf); | ||
|
||
spray_sendmsg(); |
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.
Are you calling this twice intentionally or by mistake? If the former, then can you comment here why? See more her: https://google.github.io/security-research/kernelctf/style_guide#explain-duplicated-lines
No description provided.