aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox
diff options
context:
space:
mode:
authorGravatar Kumar Kartikeya Dwivedi <memxor@gmail.com> 2023-09-13 01:32:04 +0200
committerGravatar Alexei Starovoitov <ast@kernel.org> 2023-09-16 09:34:21 -0700
commitb62bf8a5e9110922f58f6ea8fe747e1759f49e61 (patch)
treeb5992be840bc234adc2157ec1f62fa4e14b8bd62 /drivers/net/ethernet/mellanox
parentbpf: Add support for custom exception callbacks (diff)
downloadlinux-b62bf8a5e9110922f58f6ea8fe747e1759f49e61.tar.gz
linux-b62bf8a5e9110922f58f6ea8fe747e1759f49e61.tar.bz2
linux-b62bf8a5e9110922f58f6ea8fe747e1759f49e61.zip
bpf: Perform CFG walk for exception callback
Since exception callbacks are not referenced using bpf_pseudo_func and bpf_pseudo_call instructions, check_cfg traversal will never explore instructions of the exception callback. Even after adding the subprog, the program will then fail with a 'unreachable insn' error. We thus need to begin walking from the start of the exception callback again in check_cfg after a complete CFG traversal finishes, so as to explore the CFG rooted at the exception callback. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20230912233214.1518551-8-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
0 files changed, 0 insertions, 0 deletions