uprobes: Teach copy_insn() to support tmpfs
authorOleg Nesterov <oleg@redhat.com>
Mon, 19 May 2014 14:13:34 +0000 (16:13 +0200)
committerOleg Nesterov <oleg@redhat.com>
Mon, 2 Jun 2014 13:54:46 +0000 (15:54 +0200)
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 <dvlasenk@redhat.com>
Suggested-by: Hugh Dickins <hughd@google.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>

No differences found