From: Oleg Nesterov Date: Sun, 30 Sep 2012 19:12:44 +0000 (+0200) Subject: uprobes: Fix the racy uprobe->flags manipulation X-Git-Tag: v3.7-rc3~40^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71434f2fcba5c22d6e0d51878ba8e241a5dea5fb;p=pandora-kernel.git 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 Acked-by: Srikar Dronamraju --- Reading git-diff-tree failed