diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-09-30 21:12:44 +0200 |
---|---|---|
committer | Anton Arapov <anton@redhat.com> | 2012-10-29 11:50:20 +0100 |
commit | 25867805ad90019c10b8e71a78ea394bf344007c (patch) | |
tree | 14ffe027fbcab2380ccdcb99bbe2d2e17f4a95bd /arch/arm/mach-imx/mm-imx3.c | |
parent | 7e0dbbe849e1d99b1b3ae1b5acc7a1dabaf64e7f (diff) | |
download | kernel-uprobes-f17_uprobes_upstream.tar.gz kernel-uprobes-f17_uprobes_upstream.tar.xz kernel-uprobes-f17_uprobes_upstream.zip |
uprobes: Fix the racy uprobe->flags manipulationf17_uprobes_upstreamf17_uprobes_tipf17_uprobes_oleg
Multiple threads can manipulate uprobe->flags, this is obviously
unsafe. For example mmap can set UPROBE_COPY_INSN while register
tries to set UPROBE_RUN_HANDLER, the latter can also race with
can_skip_sstep() which clears UPROBE_SKIP_SSTEP.
Change this code to use bitops.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'arch/arm/mach-imx/mm-imx3.c')
0 files changed, 0 insertions, 0 deletions