Commit 7534945
Sean Christopherson
Bug fix - mprotect may be called with wrong flags
Query si_flags instead of attributes when determining whether a layout
entry should be readable/writable or not accessible. The current code
magically works because all layout entries that should be marked R/W
will have a non-zero value for attributes since added pages are marked
with either ADD_EXTEND_PAGE or ADD_EXTEND_PAGE.
Signed-off-by: Sean Christopherson <[email protected]>1 parent dd537b7 commit 7534945
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
| 755 | + | |
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| |||
0 commit comments