diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-04-24 18:52:37 +0200 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2014-04-30 19:10:38 +0200 |
commit | 78d9af4cd375880a574327210eb9dab572618364 (patch) | |
tree | 8b20ed5d22d82192f8c3aad520d4eff6843c1214 /arch/x86/include/asm/uprobes.h | |
parent | uprobes/x86: Move default_xol_ops's data into arch_uprobe->def (diff) | |
download | linux-78d9af4cd375880a574327210eb9dab572618364.tar.xz 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.h | 2 |
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; }; }; |