]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: allow for tailcalls in BPF subprograms for x64 JIT
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Wed, 16 Sep 2020 21:10:09 +0000 (23:10 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 18 Sep 2020 02:56:06 +0000 (19:56 -0700)
commit745d4b9fcf149264f9200ee6ff8a924b31fd0dab
treeb22399138c4b4c90c745d0f5ac604c786ed3a1db
parent6386ef19e5573f7ca4f888ad74ffec949c2f44b2
bpf: allow for tailcalls in BPF subprograms for x64 JIT

Relax verifier's restriction that was meant to forbid tailcall usage
when subprog count was higher than 1.

Also, do not max out the stack depth of program that utilizes tailcalls.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c