Re: [GIT PULL] uprobes: tmpfs support

From: Oleg Nesterov
Date: Mon Jun 02 2014 - 15:24:58 EST

On 06/02, Christoph Hellwig wrote:
> On Mon, Jun 02, 2014 at 04:14:06PM +0200, Oleg Nesterov wrote:
> > Ingo, please pull from
> >
> > git:// uprobes/core
> >
> > Based on tip:perf/uprobes
> Eww, adding tmpfs-specific code to uprobes screams layering violation.
> Hugh, what is the problem with implementing ->readpage for tmpfs again?

I leave this to you and Hugh.

But I hope you are not arguing with this patch, it is very simple and we
do want to support tmpfs. If tmpfs has ->readpage again we can revert this

BTW. Is it safe to pass file == NULL to read_mapping_page() and ->readpage()?
Last time I tried to check this looked safe but this is not documented. We
need to call read_mapping_page() from uprobe_register() but it doesn't have
"struct file *" and thus we need to delay arch_uprobe_analyze_insn() until
we find the first mapping, too bad.

And why read_mapping_page() has "void *data" but not "struct file *file"...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at