Re: [PATCH RFC] bpf: Add support for reading user pointers

From: Qais Yousef
Date: Mon May 06 2019 - 17:58:36 EST


On 05/06/19 16:58, Joel Fernandes wrote:
> > If you're trying to dereference a pointer to userspace using
> > probe_kernel_read(), that clearly isn't going to work.
>
> Ok. Thanks for confirming as well. The existing code has this bug and these
> patches fix it.

5.1-rc7 and 4.9.173 stable both managed to read the path in do_sys_open() on my
Juno-r2 board using the defconfig in the tree.

--
Qais Yousef