All of lore.kernel.org
 help / color / mirror / Atom feed
* Failed to attach to kprobe (non blacklisted)
@ 2021-07-06 11:56 asaf eitani
  2021-07-06 16:03 ` Yonghong Song
  0 siblings, 1 reply; 2+ messages in thread
From: asaf eitani @ 2021-07-06 11:56 UTC (permalink / raw)
  To: bpf

Hi BPF experts,

I'm having issues to attach to certain kprobes and kretprobes that are
not in the blacklist, like ftrace_modify_all_code.
There are kernel modules that are capable of attaching to those
kprobes and kretprobes but I could not attach them using libbpf.

I tried using both tracee(https://github.com/aquasecurity/tracee) and
bpftrace(https://github.com/iovisor/bpftrace) to attach to those
kprobes, which to my understanding uses libbpf, but both of them
returned an "Invalid argument" error.

As the blacklist doesn't seem to cover all the functions which are not
attachable to kprobes, is there a way to get/compile such a list?
Also, what is the specific problem with attaching to this function
(ftrace_modify_all_code)?

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-06 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 11:56 Failed to attach to kprobe (non blacklisted) asaf eitani
2021-07-06 16:03 ` Yonghong Song

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.