aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2022-03-09 20:33:18 +0800
committerAlexei Starovoitov <[email protected]>2022-03-16 15:12:18 -0700
commit73e14451f39e54f83ea3badb6d6b8a423f901845 (patch)
tree137bebfa791a5058aa800f7a4a6d7b9081bbe6d0 /lib/string_helpers.c
parentaaccdf9c93a00cc5eec6f9d97046b44643c60800 (diff)
bpf, x86: Fall back to interpreter mode when extra pass fails
Extra pass for subprog jit may fail (e.g. due to bpf_jit_harden race), but bpf_func is not cleared for the subprog and jit_subprogs will succeed. The running of the bpf program may lead to oops because the memory for the jited subprog image has already been freed. So fall back to interpreter mode by clearing bpf_func/jited/jited_len when extra pass fails. Signed-off-by: Hou Tao <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions