sw64: bpf: fix ebpf jit compiler
Sunway inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5PNGJ -------------------------------- This patch makes following changes to ebpf jit compiler: * switch to unsigned 64-bit div and mod to avoid incorrect overflow result * fix calling other bpf programs directly * fix tail call * fix jit_fill_hole() * change ILLEGAL_INSN so it can be used in the future Results of "test_verifier" in jited and emulated mode are now same. Extra space in jited image is now filled with illegal instructions correctly. Signed-off-by: NMao Minkai <maominkai@wxiat.com> Signed-off-by: NGu Zitao <guzitao@wxiat.com>
Showing
想要评论请 注册 或 登录