Files
linux/include/linux
Alexei Starovoitov 09b28d76ea bpf: Add abnormal return checks.
LD_[ABS|IND] instructions may return from the function early. bpf_tail_call
pseudo instruction is either fallthrough or return. Allow them in the
subprograms only when subprograms are BTF annotated and have scalar return
types. Allow ld_abs and tail_call in the main program even if it calls into
subprograms. In the past that was not ok to do for ld_abs, since it was JITed
with special exit sequence. Since bpf_gen_ld_abs() was introduced the ld_abs
looks like normal exit insn from JIT point of view, so it's safe to allow them
in the main program.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2020-09-17 19:56:07 -07:00
..
2020-08-03 18:19:23 -07:00
2020-08-24 18:01:33 -07:00
2020-08-25 15:37:41 -07:00
2020-07-27 14:29:23 -04:00
2020-08-14 19:56:56 -07:00
2020-08-04 21:02:38 -04:00
2020-07-31 18:08:59 +10:00
2020-08-31 12:52:33 -07:00
2020-08-19 16:09:19 -07:00
2020-08-07 11:33:24 -07:00
2020-08-01 11:28:17 +02:00