diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-12-12 04:45:38 -0500 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-12-13 15:42:44 -0500 |
commit | 9f8c1c5712954f9d8877ac55b18adbdf03e51e1f (patch) | |
tree | 38f4c20be571e00bcdb41e994b9f780e9faf9b95 /kernel/bpf/syscall.c | |
parent | eb896a69a0cf3afa69f0983470cc41f9cb04c017 (diff) |
bpf: remove obsolete prog->aux sanitation in bpf_insn_prepare_dump
This logic is not needed anymore since we got rid of the verifier
rewrite that was using prog->aux address in f6069b9aa993 ("bpf:
fix redirect to map under tail calls").
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 7f1410d6fbe9..6ae062f1cf20 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c | |||
@@ -2032,13 +2032,6 @@ static struct bpf_insn *bpf_insn_prepare_dump(const struct bpf_prog *prog) | |||
2032 | insns[i + 1].imm = 0; | 2032 | insns[i + 1].imm = 0; |
2033 | continue; | 2033 | continue; |
2034 | } | 2034 | } |
2035 | |||
2036 | if (!bpf_dump_raw_ok() && | ||
2037 | imm == (unsigned long)prog->aux) { | ||
2038 | insns[i].imm = 0; | ||
2039 | insns[i + 1].imm = 0; | ||
2040 | continue; | ||
2041 | } | ||
2042 | } | 2035 | } |
2043 | 2036 | ||
2044 | return insns; | 2037 | return insns; |