diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-05-19 16:13:34 +0200 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2014-06-02 15:54:46 +0200 |
commit | 45e0a79a82d31ddfa4c7c1dd9751ca48406f2fa4 (patch) | |
tree | 5dd0c6253beeac1413b9ac38378ef3a48cba30a3 /arch | |
parent | 7fa3134817d3cc813aeba9acc7e284f2f535f1f5 (diff) |
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 <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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions