Description
The key ts of fd_arg_path_map may be in conflict. If many threads do syscall invoke at the same time, the key of fd_arg_path_map will be conflict, which will lost some fd path.
if (f) {
u64 ts = sys->ts;
fd_arg_path_t fd_arg_path = {};
void *file_path = get_path_str(__builtin_preserve_access_index(&f->f_path));
bpf_probe_read_kernel_str(&fd_arg_path.path, sizeof(fd_arg_path.path), file_path);
bpf_map_update_elem(&fd_arg_path_map, &ts, &fd_arg_path, BPF_ANY);
}
}
Output of tracee version:
Every version, include the latest.
Output of uname -a:
Linux localhost 5.10.209-android13-4-00013-g2cf4978b8f8c #1 SMP PREEMPT Tue May 28 04:00:35 UTC 2024 aarch64 Toybo
Additional details
Description
The key
tsof fd_arg_path_map may be in conflict. If many threads do syscall invoke at the same time, the key of fd_arg_path_map will be conflict, which will lost some fd path.Output of
tracee version:Output of
uname -a:Additional details