bpf_iter_cgroup_show_fdinfo() says that if cgroup_path_ns() fails, buf is an empty string and nothing is printed. That isn't the case for a path which doesn't fit in PATH_MAX: cgroup_path_ns() now returns -E2BIG with the end of the path in buf, and fdinfo prints that. The end of the path is still useful to show, so let's update the comment to say so rather than change what is printed. Signed-off-by: Chris Down --- kernel/bpf/cgroup_iter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/bpf/cgroup_iter.c b/kernel/bpf/cgroup_iter.c index fd51fe3d92cc..12e702e421aa 100644 --- a/kernel/bpf/cgroup_iter.c +++ b/kernel/bpf/cgroup_iter.c @@ -251,7 +251,8 @@ static void bpf_iter_cgroup_show_fdinfo(const struct bpf_iter_aux_info *aux, } /* If cgroup_path_ns() fails, buf will be an empty string, cgroup_path - * will print nothing. + * will print nothing. The exception is a path which doesn't fit, where + * buf holds as much of the end of the path as fits. * * Path is in the calling process's cgroup namespace. */ -- 2.56.1