Messages in this thread | | | Date | Sat, 6 Oct 2012 15:24:16 +0530 | From | Srikar Dronamraju <> | Subject | Re: [PATCH 7/7] uprobes: Fix the racy uprobe->flags manipulation |
| |
* Oleg Nesterov <oleg@redhat.com> [2012-09-30 21:42:27]:
> 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>
| |