From: Oleg Nesterov Date: Mon, 19 May 2014 14:13:34 +0000 (+0200) Subject: uprobes: Teach copy_insn() to support tmpfs X-Git-Tag: omap-for-v3.16/fixes-against-rc1~34^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45e0a79a82d31ddfa4c7c1dd9751ca48406f2fa4;p=pandora-kernel.git uprobes: Teach copy_insn() to support tmpfs tmpfs is widely used but as Denys reports shmem_aops doesn't have ->readpage() and thus you can't probe a binary on this filesystem. As Hugh suggested we can use shmem_read_mapping_page() in this case, just we need to check shmem_mapping() if ->readpage == NULL. Reported-by: Denys Vlasenko Suggested-by: Hugh Dickins Acked-by: Srikar Dronamraju Signed-off-by: Oleg Nesterov --- Reading git-diff-tree failed