From: Oleg Nesterov Date: Fri, 15 Jun 2012 15:43:25 +0000 (+0200) Subject: uprobes: __copy_insn() should ensure a_ops->readpage != NULL X-Git-Tag: v3.6-rc1~167^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc359d180fa9c25a4c1819f17e07a422d788353d;p=pandora-kernel.git uprobes: __copy_insn() should ensure a_ops->readpage != NULL __copy_insn() blindly calls read_mapping_page(), this will crash the kernel if ->readpage == NULL, add the necessary check. For example, hugetlbfs_aops->readpage is NULL. Perhaps we should change read_mapping_page() instead. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Cc: Ananth N Mavinakayanahalli Cc: Anton Arapov Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20120615154325.GA9568@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed