From: Oleg Nesterov Date: Fri, 15 Jun 2012 15:43:47 +0000 (+0200) Subject: uprobes: No need to re-check vma_address() in write_opcode() X-Git-Tag: v3.6-rc1~167^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb2bf57bee42c7565032f93adaa211e2c9fcc52c;p=pandora-kernel.git uprobes: No need to re-check vma_address() in write_opcode() write_opcode() is called by register_for_each_vma() and uprobe_mmap() paths. In both cases the caller has already verified this vaddr under mmap_sem, no need to re-check. Note also that this check is wrong anyway, we should not truncate loff_t returned by vma_address() if we do not trust this mapping. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Acked-by: Ananth N Mavinakayanahalli Cc: Anton Arapov Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20120615154347.GA9604@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed