From 736fe81e29932dca459699ad3431a3b02be173bf Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Wed, 25 Sep 2024 01:09:15 +0800 Subject: [PATCH] fix typo --- control/kern/tproxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/kern/tproxy.c b/control/kern/tproxy.c index 8755d1028..9850a280b 100644 --- a/control/kern/tproxy.c +++ b/control/kern/tproxy.c @@ -1742,7 +1742,7 @@ static __always_inline int get_pid_pname(struct pid_pname *pid_pname) char *args = (void *)BPF_CORE_READ(task, mm, arg_start); // Read args to buffer. - char arg_buf[MAX_ARG_LEN]; // Allocate it out of ctx to bypass CO-RE + char arg_buf[MAX_ARG_LEN]; // Allocate it out of ctx to pass CO-RE struct get_real_comm_ctx ctx = { 0 }; ctx.arg_buf = arg_buf; ret = bpf_core_read_user_str(arg_buf, MAX_ARG_LEN, args); @@ -1758,7 +1758,7 @@ static __always_inline int get_pid_pname(struct pid_pname *pid_pname) if (unlikely(ret < 0)) return ret; - unsigned offset = ctx.l; // Copy it to bypass CO-RE + unsigned offset = ctx.l; // Copy it to pass CO-RE ret = bpf_core_read_str(pid_pname->pname, sizeof(pid_pname->pname), arg_buf + offset); if (unlikely(ret < 0)) {