mbox series

[bpf,v1,0/2] Fix for check_max_stack_depth

Message ID 20230705144730.235802-1-memxor@gmail.com (mailing list archive)
Headers show
Series Fix for check_max_stack_depth | expand

Message

Kumar Kartikeya Dwivedi July 5, 2023, 2:47 p.m. UTC
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

Comments

Alexei Starovoitov July 6, 2023, 2:19 a.m. UTC | #1
On Wed, Jul 5, 2023 at 7:47 AM Kumar Kartikeya Dwivedi <memxor@gmail.com> wrote:
>
> Fix for a bug in check_max_stack_depth which allows bypassing the
> 512-byte stack limit.

Applied. Thanks