aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/plugin-lib/nsPlugin.py
diff options
context:
space:
mode:
authorNaveen N. Rao <[email protected]>2019-08-21 19:23:58 +0000
committerDaniel Borkmann <[email protected]>2019-08-26 21:05:01 +0000
commitede7c460b1da5be7b8ef4efe47f1687babf06408 (patch)
treee5263710f10a78a6a58716b01eda99dfae0c561a /tools/testing/selftests/tc-testing/plugin-lib/nsPlugin.py
parentnfp: bpf: fix latency bug when updating stack index register (diff)
downloadkernel-ede7c460b1da5be7b8ef4efe47f1687babf06408.tar.gz
kernel-ede7c460b1da5be7b8ef4efe47f1687babf06408.zip
bpf: handle 32-bit zext during constant blinding
Since BPF constant blinding is performed after the verifier pass, the ALU32 instructions inserted for doubleword immediate loads don't have a corresponding zext instruction. This is causing a kernel oops on powerpc and can be reproduced by running 'test_cgroup_storage' with bpf_jit_harden=2. Fix this by emitting BPF_ZEXT during constant blinding if prog->aux->verifier_zext is set. Fixes: a4b1d3c1ddf6cb ("bpf: verifier: insert zero extension according to analysis result") Reported-by: Michael Ellerman <[email protected]> Signed-off-by: Naveen N. Rao <[email protected]> Reviewed-by: Jiong Wang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/tc-testing/plugin-lib/nsPlugin.py')
0 files changed, 0 insertions, 0 deletions