aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2014-05-19 20:41:36 +0200
committerIngo Molnar <[email protected]>2014-06-05 12:30:11 +0200
commit40814f6805a524130a5ec313871147f7aa9b5318 (patch)
tree2605a03d0a7360c377126c590cb929e1ed9d0057 /net/lapb/lapb_iface.c
parent41ccba029e9492dd0fc1bf5c23b72c6322a6dfe9 (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 <[email protected]> Suggested-by: Hugh Dickins <[email protected]> Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: Srikar Dronamraju <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions