[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <04c149d2-4b7d-f1ee-28b7-3a7ff0c7aa51@meta.com>
Date: Thu, 8 Jun 2023 10:40:15 -0700
From: Yonghong Song <yhs@...a.com>
To: Krister Johansen <kjlx@...pleofstupid.com>, bpf@...r.kernel.org
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <martin.lau@...ux.dev>,
Song Liu <song@...nel.org>, Yonghong Song <yhs@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
Stanislav Fomichev <sdf@...gle.com>,
Hao Luo <haoluo@...gle.com>, Jiri Olsa <jolsa@...nel.org>,
Mykola Lysenko <mykolal@...com>, Shuah Khan <shuah@...nel.org>,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH bpf v2 1/2] selftests/bpf: add a test for subprogram
extables
On 6/7/23 2:04 PM, Krister Johansen wrote:
> In certain situations a program with subprograms may have a NULL
> extable entry. This should not happen, and when it does, it turns a
> single trap into multiple. Add a test case for further debugging and to
> prevent regressions. N.b: without any other patches this can panic or
> oops a kernel.
Also, it would be great if you can show the kernel oops stack trace.
>
> Signed-off-by: Krister Johansen <kjlx@...pleofstupid.com>
> ---
> .../bpf/prog_tests/subprogs_extable.c | 35 +++++++++
> .../bpf/progs/test_subprogs_extable.c | 71 +++++++++++++++++++
> 2 files changed, 106 insertions(+)
> create mode 100644 tools/testing/selftests/bpf/prog_tests/subprogs_extable.c
> create mode 100644 tools/testing/selftests/bpf/progs/test_subprogs_extable.c
>
[...]
Powered by blists - more mailing lists