diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-10-21 02:09:24 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-20 23:13:32 -0700 |
commit | 2a159c6f82381a458bc56e7e202b6bee57a2ccb7 (patch) | |
tree | 060b9cfd0b2af614168f72923c8e76800f76659c /crypto/af_alg.c | |
parent | c16ee04c9b305d57719344922c4d48379e206a79 (diff) |
bpf, verifier: fix register type dump in xadd and st
Using reg_type_str[insn->dst_reg] is incorrect since insn->dst_reg
contains the register number but not the actual register type. Add
a small reg_state() helper and use it to get to the type. Also fix
up the test_verifier test cases that have an incorrect errstr.
Fixes: 9d2be44a7f33 ("bpf: Reuse canonical string formatter for ctx errs")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'crypto/af_alg.c')
0 files changed, 0 insertions, 0 deletions