Skip to contentSkip to conversation

WTF is VLI?

PATCH Bodo Eggert 2 participants 2 messages Nov 18, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
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]
#3 lore raw
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.