From b32361f3fe91984c58f4fbe0c9859b3da1b8c69a Mon Sep 17 00:00:00 2001 From: arthur-zhang Date: Fri, 27 Dec 2024 11:54:49 +0800 Subject: [PATCH] fix: update cwd_read to assign vfsmnt correctly Signed-off-by: arthur-zhang --- bpf/process/bpf_process_event.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bpf/process/bpf_process_event.h b/bpf/process/bpf_process_event.h index b478af9144d..f22e90ec00b 100644 --- a/bpf/process/bpf_process_event.h +++ b/bpf/process/bpf_process_event.h @@ -202,8 +202,7 @@ FUNC_INLINE long cwd_read(struct cwd_read_data *data) probe_read(&data->dentry, sizeof(data->dentry), _(&mnt->mnt_mountpoint)); data->mnt = parent; - probe_read(&data->vfsmnt, sizeof(data->vfsmnt), - _(&mnt->mnt)); + data->vfsmnt = _(&parent->mnt); return 0; } // resolved all path components successfully