You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recent optimization effort (f806cb4) moved some parts of the program data initialization to the event submission stage. This results in the information that is used to construct pcap file names to be missing (the process name portion of the pcap file is empty).
I also noticed that (somewhat expectedly), using process info inside a bpf program results in incorrect data. Some bpf programs may rely on this data which will result in unexpected behavior.
There may be more side effects for this change, anywhere that process info is used and isn't in a regular event submitted to user space.
A recent optimization effort (f806cb4) moved some parts of the program data initialization to the event submission stage. This results in the information that is used to construct pcap file names to be missing (the process name portion of the pcap file is empty).
The commit was intended to update all instances where a particular field was necessary for a program but left uninitialized. However, network events were inadvertently omitted, as they involve duplicating the entire event context within a different kprobe (__cgroup_bpf_run_filter_skb).
I also noticed that (somewhat expectedly), using process info inside a bpf program results in incorrect data. Some bpf programs may rely on this data which will result in unexpected behavior.
There may be more side effects for this change, anywhere that process info is used and isn't in a regular event submitted to user space.
This is the intended behavior. We don't want to intialize any field if in general it is not required by all (or most) bpf programs. If a specific program needs a certain field - it is the program responsibility to initialize it.
Adding the following line to where we save the network event task context should fix the problem: init_task_context(&p->event->context.task, p->event->task, p->config->options);
Description
A recent optimization effort (f806cb4) moved some parts of the program data initialization to the event submission stage. This results in the information that is used to construct pcap file names to be missing (the process name portion of the pcap file is empty).
I also noticed that (somewhat expectedly), using process info inside a bpf program results in incorrect data. Some bpf programs may rely on this data which will result in unexpected behavior.
There may be more side effects for this change, anywhere that process info is used and isn't in a regular event submitted to user space.
Output of
tracee version
:Commit f806cb4
The text was updated successfully, but these errors were encountered: