[PATCH v2 bpf-next 0/4] bpf: Fix errors in verifying a union

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

 



From: root <root@vultr.guest>

Patch #1: Fix an issue found in code review
Patch #2: Selftest for #1
Patch #3: Fix an issue found in our dev server
Patch #4: Selftest for #3

Changes:
- bpf: Introduce union trusted
  https://lore.kernel.org/bpf/20230709025912.3837-1-laoar.shao@xxxxxxxxx/
- bpf: Fix errors in verifying a union
  https://lore.kernel.org/bpf/20230628115205.248395-1-laoar.shao@xxxxxxxxx/

Yafang Shao (4):
  bpf: Fix an error around PTR_UNTRUSTED
  selftests/bpf: Add selftests for nested_trust
  bpf: Fix an error in verifying a field in a union
  selftests/bpf: Add selftest for PTR_UNTRUSTED

 kernel/bpf/btf.c                              | 22 ++++++------
 kernel/bpf/verifier.c                         |  5 +++
 .../selftests/bpf/prog_tests/ptr_untrusted.c  | 36 +++++++++++++++++++
 .../bpf/progs/nested_trust_failure.c          | 16 +++++++++
 .../bpf/progs/nested_trust_success.c          | 15 ++++++++
 .../selftests/bpf/progs/test_ptr_untrusted.c  | 29 +++++++++++++++
 6 files changed, 111 insertions(+), 12 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/ptr_untrusted.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_ptr_untrusted.c

-- 
2.39.3





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux