Re: [PATCH] powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again

2020-05-28 Thread Michael Ellerman
Daniel Borkmann writes: > On 5/28/20 2:23 PM, Michael Ellerman wrote: >> Petr Mladek writes: >>> On Thu 2020-05-28 11:03:43, Michael Ellerman wrote: Petr Mladek writes: > The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() > only > to archs where they work")

Re: [PATCH] powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again

2020-05-28 Thread Daniel Borkmann
On 5/28/20 2:23 PM, Michael Ellerman wrote: Petr Mladek writes: On Thu 2020-05-28 11:03:43, Michael Ellerman wrote: Petr Mladek writes: The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work") caused that bpf_probe_read{, str}() functions were

Re: [PATCH] powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again

2020-05-28 Thread Michael Ellerman
Petr Mladek writes: > On Thu 2020-05-28 11:03:43, Michael Ellerman wrote: >> Petr Mladek writes: >> > The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() only >> > to archs where they work") caused that bpf_probe_read{, str}() functions >> > were not longer available on

Re: [PATCH] powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again

2020-05-28 Thread Petr Mladek
On Thu 2020-05-28 11:03:43, Michael Ellerman wrote: > Petr Mladek writes: > > The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() only > > to archs where they work") caused that bpf_probe_read{, str}() functions > > were not longer available on architectures where the same

Re: [PATCH] powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again

2020-05-27 Thread Michael Ellerman
Petr Mladek writes: > The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() only > to archs where they work") caused that bpf_probe_read{, str}() functions > were not longer available on architectures where the same logical address > might have different content in kernel and

[PATCH] powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again

2020-05-27 Thread Petr Mladek
The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work") caused that bpf_probe_read{, str}() functions were not longer available on architectures where the same logical address might have different content in kernel and user memory mapping. These