[PATCH v3 00/15] uprobes/x86: fix the handling of relative jmp's/call's

From: Oleg Nesterov
Date: Sun Apr 13 2014 - 13:46:11 EST


Hello.

OK, let me resend everything. This is what I am going to add to my tree
and ask Ingo to pull. I am still testing this all, seems to work so far.

Changes:

01-09: No changes, added the acks from Masami.

09-15: Updated the changelogs, the comments in 13/15, plus the
following renames:

- s/ttt/branch/

- s/disp/offs/

- s/_clear_displacement/_clear_offset/

No changes in compiled code, I preserved the acks from Jim.

>From 13/15:

Note: as Denys Vlasenko pointed out, amd and intel treat "callw" (0x66 0xe8)
differently. This patch relies on lib/insn.c and thus implements the intel's
behaviour: 0x66 is simply ignored. Fortunately nothing sane should ever use
this insn, so we postpone the fix until we decide what should we do; emulate
or not, support or not, etc.

Yes. Lets discuss (and fix?) this separately, I'll write another email.

Any objections?

Oleg.

arch/x86/include/asm/uprobes.h | 16 +-
arch/x86/kernel/uprobes.c | 551 +++++++++++++++++++++++++---------------
kernel/events/uprobes.c | 31 +--
3 files changed, 372 insertions(+), 226 deletions(-)

--
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/