[PATCH bpf v1 0/2] Fix for check_max_stack_depth

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

 



Fix for a bug in check_max_stack_depth which allows bypassing the
512-byte stack limit.

Kumar Kartikeya Dwivedi (2):
  bpf: Fix max stack depth check for async callbacks
  selftests/bpf: Add selftest for check_stack_max_depth bug

 kernel/bpf/verifier.c                         |  5 ++-
 .../bpf/prog_tests/async_stack_depth.c        |  9 +++++
 .../selftests/bpf/progs/async_stack_depth.c   | 40 +++++++++++++++++++
 3 files changed, 52 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/async_stack_depth.c
 create mode 100644 tools/testing/selftests/bpf/progs/async_stack_depth.c


base-commit: f7306acec9aae9893d15e745c8791124d42ab10a
-- 
2.40.1





[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