From: Oleg Nesterov Date: Sat, 19 Apr 2014 12:03:05 +0000 (+0200) Subject: uprobes/x86: Add is_64bit_mm(), kill validate_insn_bits() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~34^2~14^2~1^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ae1f49ae1978fedb6ad607e1f8b084aa9752f95;p=pandora-kernel.git uprobes/x86: Add is_64bit_mm(), kill validate_insn_bits() 1. Extract the ->ia32_compat check from 64bit validate_insn_bits() into the new helper, is_64bit_mm(), it will have more users. TODO: this checks is actually wrong if mm owner is X32 task, we need another fix which changes set_personality_ia32(). TODO: even worse, the whole 64-or-32-bit logic is very broken and the fix is not simple, we need the nontrivial changes in the core uprobes code. 2. Kill validate_insn_bits() and change its single caller to use uprobe_init_insn(is_64bit_mm(mm). Signed-off-by: Oleg Nesterov Reviewed-by: Jim Keniston Acked-by: Srikar Dronamraju --- Reading git-diff-tree failed