uprobes/x86: Cleanup the usage of arch_uprobe->def.fixups, make it u8
authorOleg Nesterov <oleg@redhat.com>
Thu, 24 Apr 2014 16:52:37 +0000 (18:52 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 30 Apr 2014 17:10:38 +0000 (19:10 +0200)
commit78d9af4cd375880a574327210eb9dab572618364
tree8b20ed5d22d82192f8c3aad520d4eff6843c1214
parent97aa5cddbe9e01521137f337624469374e3cbde5
uprobes/x86: Cleanup the usage of arch_uprobe->def.fixups, make it u8

handle_riprel_insn() assumes that nobody else could modify ->fixups
before. This is correct but fragile, change it to use "|=".

Also make ->fixups u8, we are going to add the new members into the
union. It is not clear why UPROBE_FIX_RIP_.X lived in the upper byte,
redefine them so that they can fit into u8.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/x86/include/asm/uprobes.h
arch/x86/kernel/uprobes.c