bpf: remove obsolete prog->aux sanitation in bpf_insn_prepare_dump
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 12 Dec 2018 09:45:38 +0000 (10:45 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 13 Dec 2018 20:42:44 +0000 (12:42 -0800)
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>
kernel/bpf/syscall.c

index 7f1410d6fbe9ac9ce3877e37f0222ce45442a025..6ae062f1cf20d631f9e10ad58104ca943e4e587e 100644 (file)
@@ -2032,13 +2032,6 @@ static struct bpf_insn *bpf_insn_prepare_dump(const struct bpf_prog *prog)
                        insns[i + 1].imm = 0;
                        continue;
                }
-
-               if (!bpf_dump_raw_ok() &&
-                   imm == (unsigned long)prog->aux) {
-                       insns[i].imm = 0;
-                       insns[i + 1].imm = 0;
-                       continue;
-               }
        }
 
        return insns;