linux/arch/riscv
Paul Chaignon 96bc4432f5 bpf, riscv: Limit to 33 tail calls
All BPF JIT compilers except RISC-V's and MIPS' enforce a 33-tail calls
limit at runtime.  In addition, a test was recently added, in tailcalls2,
to check this limit.

This patch updates the tail call limit in RISC-V's JIT compiler to allow
33 tail calls.  I tested it using the above selftest on an emulated
RISCV64.

Fixes: 2353ecc6f9 ("bpf, riscv: add BPF JIT for RV64G")
Reported-by: Mahshid Khezri <khezri.mahshid@gmail.com>
Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn.topel@gmail.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/966fe384383bf23a0ee1efe8d7291c78a3fb832b.1575916815.git.paul.chaignon@gmail.com
2019-12-11 13:57:17 +01:00
..
boot Merge branch 'next/nommu' into for-next 2019-11-22 18:59:09 -08:00
configs Merge branch 'next/defconfig-add-debug' into for-next 2019-11-22 18:59:23 -08:00
include pci-v5.5-changes 2019-12-03 13:58:22 -08:00
kernel seccomp updates for v5.5 2019-11-30 17:23:16 -08:00
lib riscv: add nommu support 2019-11-17 15:17:39 -08:00
mm Second set of RISC-V updates for v5.5-rc1 2019-12-04 11:07:00 -08:00
net bpf, riscv: Limit to 33 tail calls 2019-12-11 13:57:17 +01:00
Kbuild riscv: add arch/riscv/Kbuild 2019-08-30 17:34:00 -07:00
Kconfig generic ioremap support 2019-11-28 10:57:12 -08:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.socs riscv: Fix Kconfig indentation 2019-11-21 10:53:41 -08:00
Makefile riscv: provide a flat image loader 2019-11-17 15:17:39 -08:00