-
Notifications
You must be signed in to change notification settings - Fork 180
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
Wrong number of MAX_FIXED_MTRR #26
Comments
Thanks, applied. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type of this issue (please specify)
Issue description
mtrr_ranges array has wrong size and may eventually overflow if user gets really REALLY unlucky
Current Behavior
Let's deconstruct this issue:
in ksm.h:
struct mtrr_range mtrr_ranges[MAX_MTRR];
in mm.h:
in ksm.c:
in mm.c:
Here's the problem: for each fixed MTRR, there are actually 8 subranges.
Intel manual says:
Expected Behavior
I think fix is as simple as defining MAX_FIXED_MTRR to 11*8.
Inline code / patches to be used when reproducing
The text was updated successfully, but these errors were encountered: