Files
erofs-linux/kernel/bpf
Lorenz Bauer 8a98ae12fb bpf: Exempt CAP_BPF from checks against bpf_jit_limit
When introducing CAP_BPF, bpf_jit_charge_modmem() was not changed to treat
programs with CAP_BPF as privileged for the purpose of JIT memory allocation.
This means that a program without CAP_BPF can block a program with CAP_BPF
from loading a program.

Fix this by checking bpf_capable() in bpf_jit_charge_modmem().

Fixes: 2c78ee898d ("bpf: Implement CAP_BPF")
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
2021-09-28 09:28:37 +02:00
..
2021-05-24 21:13:05 -07:00
2021-07-07 20:01:45 -07:00
…
2021-07-15 22:31:10 +02:00
…
2021-05-24 21:13:05 -07:00