diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2012-09-30 21:12:44 +0200 |
|---|---|---|
| committer | Oleg Nesterov <oleg@redhat.com> | 2012-10-07 21:19:43 +0200 |
| commit | 71434f2fcba5c22d6e0d51878ba8e241a5dea5fb (patch) | |
| tree | 0a61c5a75390a4eb39f018cc39cf8f40b0103058 /drivers/gpu/drm/omapdrm/omap_gem_helpers.c | |
| parent | 4710f05fd146d4739e57a8832a3abc5bd3bf0997 (diff) | |
uprobes: Fix the racy uprobe->flags manipulation
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 'drivers/gpu/drm/omapdrm/omap_gem_helpers.c')
0 files changed, 0 insertions, 0 deletions
