summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/uprobes.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-04-24 18:52:37 +0200
committerOleg Nesterov <oleg@redhat.com>2014-04-30 19:10:38 +0200
commit78d9af4cd375880a574327210eb9dab572618364 (patch)
tree8b20ed5d22d82192f8c3aad520d4eff6843c1214 /arch/x86/include/asm/uprobes.h
parent97aa5cddbe9e01521137f337624469374e3cbde5 (diff)
downloadtalos-obmc-linux-78d9af4cd375880a574327210eb9dab572618364.tar.gz
talos-obmc-linux-78d9af4cd375880a574327210eb9dab572618364.zip
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>
Diffstat (limited to 'arch/x86/include/asm/uprobes.h')
-rw-r--r--arch/x86/include/asm/uprobes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/uprobes.h b/arch/x86/include/asm/uprobes.h
index 72caff7afbde..9ce25ce04fee 100644
--- a/arch/x86/include/asm/uprobes.h
+++ b/arch/x86/include/asm/uprobes.h
@@ -53,7 +53,7 @@ struct arch_uprobe {
#ifdef CONFIG_X86_64
long riprel_target;
#endif
- u16 fixups;
+ u8 fixups;
} def;
};
};
OpenPOWER on IntegriCloud