From 1e06a38474110e81f98c1610602f9c1c54c1b08d Mon Sep 17 00:00:00 2001 From: daemon1024 Date: Tue, 16 May 2023 13:38:47 +0530 Subject: [PATCH] se PT_REGS_PARM3 for retcode in inet_csk_accept Signed-off-by: daemon1024 --- KubeArmor/BPF/system_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KubeArmor/BPF/system_monitor.c b/KubeArmor/BPF/system_monitor.c index bf1ffa1a8c..f67947ed63 100644 --- a/KubeArmor/BPF/system_monitor.c +++ b/KubeArmor/BPF/system_monitor.c @@ -1943,7 +1943,7 @@ int kretprobe__inet_csk_accept(struct pt_regs *ctx) u64 types = ARG_TYPE0(STR_T) | ARG_TYPE1(SOCKADDR_T); init_context(&context); context.argnum = get_arg_num(types); - context.retval = PT_REGS_RC(ctx); + context.retval = PT_REGS_PARM3(ctx); if (context.retval >= 0 && drop_syscall(_NETWORK_PROBE)) {