You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the original insn is a jump, then it is not subjected to branch
adjustment, which is incorrect. As discovered by Yauheni in
https://lore.kernel.org/bpf/[email protected]/
this causes `test_progs -t global_funcs` failures on s390.
Most likely, the current code includes the original insn in the
patchlet, because there was no infrastructure to insert new insns, only
to replace the existing ones. Now that bpf_patch_insns_data() can do
insertions, stop including the original insns in zext patchlets.
Fixes: a4b1d3c ("bpf: verifier: insert zero extension according to analysis result")
Reported-by: Yauheni Kaliuta <[email protected]>
Signed-off-by: Ilya Leoshkevich <[email protected]>
---
kernel/bpf/verifier.c | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
0 commit comments