Skip to content

eBPF-based security platform

upatch: drop the dead copy of the program name in the cgroup_skb fallback

Daniel Borkmannf6bf27f085f6
diff --git a/builtin-upatch.c b/builtin-upatch.c
index bce35902..bd70ac68 100644
--- a/builtin-upatch.c
+++ b/builtin-upatch.c
@@ -1037,9 +1037,8 @@ static int prog_attach_cgroup_skb_fallback(int prog_fd,
char func[128];
int ret;
- strscpy(func, info->name, sizeof(func));
ret = prog_func_name(prog_fd, info, func, sizeof(func));
- if (ret && !func[0]) {
+ if (ret) {
pr_err("program metadata says raw_tracepoint, but loaded "
"program type is cgroup_skb and function name is "
"unavailable; rebuild the upatch with cgroup_skb "