Re: [PATCH] WTF is VLI?

From: Avi Kivity
Date: Thu Nov 18 2004 - 19:08:32 EST


Bodo Eggert wrote:

Avi Kivity wrote:



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


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).

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/