Re: [PATCH v3 8/8] bpf ppc32: Access only if addr is kernel address

2021-09-21 Thread Christophe Leroy
Le 21/09/2021 à 15:29, Hari Bathini a écrit : With KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. Though PPC32 does not support read protection, considering the fact that

[PATCH v3 8/8] bpf ppc32: Access only if addr is kernel address

2021-09-21 Thread Hari Bathini
With KUAP enabled, any kernel code which wants to access userspace needs to be surrounded by disable-enable KUAP. But that is not happening for BPF_PROBE_MEM load instruction. Though PPC32 does not support read protection, considering the fact that PTR_TO_BTF_ID (which uses BPF_PROBE_MEM mode) coul