WTF is VLI?
Quoted 4 lines · Avi Kivity
for (offset = 0; offset < max_instr_len; ++offset) {
create_object_file(code + offset, len - offset);
disassemble();
if (disassembly_includes_eip())Will fail for
movl eax,cc000000 ;or something similar, you get the point *EIP here*
and result in
INT3
Signature · 4 lines
Keep your hands off strong drink. It can make you shoot at the tax collector
and miss.
-- R.A. Heinlein
Friß, Spammer: [email protected] [email protected]Quoted 12 lines · Bodo Eggert
Quoted 6 lines · Avi Kivity
for (offset = 0; offset < max_instr_len; ++offset) { create_object_file(code + offset, len - offset); disassemble(); if (disassembly_includes_eip())
Quoted 10 lines
Will fail for
movl eax,cc000000 ;or something similar, you get the point *EIP here*
and result in
INT3
no, it will start at lower offsets first and see the movl.
of course, there is a chance that it will get confused (by even earlier partial code), but it will usually be better than the current method and it will never be confused at or above eip (same as current method).
Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.