Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporarily fix loading err on >= 6.6 kernels
[1] changed the kprobe loading behavior in a way that if we try to attach a kprobe to a function with a duplicate name, then it will fail with EADDRNOTAVAIL [2]. As pwru loads kprobes by using function symbol names, we are prone to this behavior change. Fix the loading problem by ignoring EADDRNOTAVAIL w/ the kprobe backend. Also, instruct users when the kprobe.multi backend is used. The proper fix is to use function addrs instead of syms when loading. This is what Leon H. is working on. [1]: https://lore.kernel.org/all/[email protected]/. [2]: https://elixir.bootlin.com/linux/v6.6/source/kernel/trace/trace_kprobe.c#L884 Signed-off-by: Leon Hwang <[email protected]> Signed-off-by: Martynas Pumputis <[email protected]>
- Loading branch information