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