ptrace doesn't use down_read_recursive, nor /proc/<>/mem, nor fork.
for /proc/<pid>/maps this check takes care of it of course (or it could
get unfair again: only when we're faulting on our vm we're allowed to go
through):
if (task == current)
down_read_recursive(&mm->mmap_sem, ¤t->mm_recursor);
else
down_read(&mm->mmap_sem);
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/