]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c9059b7660b871118283ac7d2c655b1ec6d4815
tree8b20ed5d22d82192f8c3aad520d4eff6843c1214
parentd923108ddb3a7d45eb786955b004d0c067b09a11
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