]> 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)
commite411901c0b775a3ae7f3e2505f8d2d90ac696178
treeb22399138c4b4c90c745d0f5ac604c786ed3a1db
parentebf7d1f508a73871acf3b2bfbfa1323a477acdb3
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