Re: [PATCH bpf v2 1/2] selftests/bpf: add a test for subprogram extables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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@xxxxxxxxxxxxxxxxxx>
---
  .../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

[...]



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux