uprobes && shmem (Was: uprobes: Shift ->readpage check from __copy_insn() to uprobe_register())

From: Oleg Nesterov
Date: Fri May 16 2014 - 11:31:58 EST


Hi Hugh,

On 05/16, Oleg Nesterov wrote:
>
> copy_insn() fails with -EIO if ->readpage == NULL

In particular, this means that we can not probe the binaries on tmpfs.
This is pity.

It seems that the potential fix is trivial, copy_insn() could use
shmem_getpage_gfp(). But, is there any way to figure out that this
inode/mapping/aops/whatever is actually shmem?

I am looking at shmem_get_inode() and I see nothing which could help,
and shmem_aops/etc are all static.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/