Ard Biesheuvel 3c91c4d3a6 bpf: add __weak hook for allocating executable memory
By default, BPF uses module_alloc() to allocate executable memory,
but this is not necessary on all arches and potentially undesirable
on some of them.

So break out the module_alloc() and module_memfree() calls into __weak
functions to allow them to be overridden in arch code.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Danny Lin <danny@kdrag0n.dev>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Signed-off-by: atndko <z1281552865@gmail.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-01-13 14:37:40 -03:00
..
2024-12-23 00:53:44 -03:00
2024-12-23 00:53:44 -03:00
2023-12-20 15:32:35 +01:00
2024-12-23 00:59:46 -03:00
2020-01-13 19:40:11 +00:00
2024-03-27 17:56:46 -03:00
2020-04-02 16:34:20 +02:00
2021-02-07 14:47:41 +01:00
2024-05-10 15:48:33 -03:00
2022-04-06 13:18:17 +07:00
2022-04-06 13:18:17 +07:00
2024-12-23 00:53:44 -03:00