aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/net
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2020-09-16 23:10:07 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-09-17 19:19:20 -0700
commit7f6e4312e15a5c370e84eaa685879b6bdcc717e4 (patch)
tree1fb4e72fb739c21f5d4165d9d175a5a960b9e520 /arch/x86/net
parentbpf: rename poke descriptor's 'ip' member to 'tailcall_target' (diff)
downloadlinux-dev-7f6e4312e15a5c370e84eaa685879b6bdcc717e4.tar.xz
linux-dev-7f6e4312e15a5c370e84eaa685879b6bdcc717e4.zip
bpf: Limit caller's stack depth 256 for subprogs with tailcalls
Protect against potential stack overflow that might happen when bpf2bpf calls get combined with tailcalls. Limit the caller's stack depth for such case down to 256 so that the worst case scenario would result in 8k stack size (32 which is tailcall limit * 256 = 8k). Suggested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/x86/net')
0 files changed, 0 insertions, 0 deletions