https://bugs.kde.org/show_bug.cgi?id=451626

--- Comment #4 from Andreas Gerstmayr <andr...@gerstmayr.me> ---
(In reply to Mark Wielaard from comment #3)
> Thanks for doing the research. The fix is simple in that case:
> 
> diff --git a/coregrind/m_syswrap/syswrap-linux.c
> b/coregrind/m_syswrap/syswrap-linux.c
> index b9d531de3..38edccc98 100644
> --- a/coregrind/m_syswrap/syswrap-linux.c
> +++ b/coregrind/m_syswrap/syswrap-linux.c
> @@ -12920,8 +12920,9 @@ PRE(sys_bpf)
>                 break;
>              }
>              /* Name is limited to 128 characters in kernel/bpf/syscall.c. */
> -            pre_asciiz_str(tid, attr->raw_tracepoint.name, 128,
> -                           "bpf(attr->raw_tracepoint.name)");
> +            if (attr->raw_tracepoint.name != NULL)
> +               pre_asciiz_str(tid, attr->raw_tracepoint.name, 128,
> +                              "bpf(attr->raw_tracepoint.name)");
>           }
>           break;
>        case VKI_BPF_BTF_LOAD:
> 
> https://code.wildebeest.org/git/user/mjw/valgrind/commit/?h=bpf-
> raw_tracepoint-name

Thanks! I've verified that the above fix resolves this issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to