You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
General cleanup and audit in load_code(). FixesSolo5#126, removes
unnecessary casts and verifies that the load address/sizes in program
header are valid.
The guard page at the end of the last loaded segment is removed; it
didn't serve any useful function.
While reviewing #123 and trying to write a test to go into
tests/
for #73 I found (at least) the following issues with the ELF loader in ukvm:load_code()
the test for a loadable segment is incorrect,phdr.p_type
is not a bitmap.mprotect()
are not checked.mprotect()
call which is supposed to write-protect.text
is passed alen
which is not a multiple of the page size.char *
in the guest produces anEFAULT
exit fromKVM_RUN
where it should succeed.I'm working on auditing that code and fixing the above.
The text was updated successfully, but these errors were encountered: