]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, x86_32: Fix logic error in BPF_LDX zero-extension
authorWang YanQing <udknight@gmail.com>
Thu, 23 Apr 2020 05:06:37 +0000 (13:06 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 25 Apr 2020 00:23:01 +0000 (17:23 -0700)
commit636b10f782c0914c19a52ebdc6b772787bd4df46
tree8fec8a8bb6767c895af20b8da8d9aa555539d005
parentf0f6691ab39f7a0a1a6e053c6a841fdc122fd066
bpf, x86_32: Fix logic error in BPF_LDX zero-extension

When verifier_zext is true, we don't need to emit code
for zero-extension.

Fixes: b437dbcbc81b ("x32: bpf: eliminate zero extension code-gen")
Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200423050637.GA4029@udknight
arch/x86/net/bpf_jit_comp32.c