diff options
author | Alexei Starovoitov <ast@fb.com> | 2016-11-23 03:52:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-25 00:04:52 +0300 |
commit | d2b024d32d6e6f704633a8a474bd883cf9e25254 (patch) | |
tree | 94f9aacde15016c8541a2da9067d751db4ca9c71 /samples/bpf/bpf_load.c | |
parent | e3f42f8453902d1520dcdc9909731f274c6d52c1 (diff) | |
download | linux-d2b024d32d6e6f704633a8a474bd883cf9e25254.tar.xz |
samples/bpf: fix sockex2 example
since llvm commit "Do not expand UNDEF SDNode during insn selection lowering"
llvm will generate code that uses uninitialized registers for cases
where C code is actually uses uninitialized data.
So this sockex2 example is technically broken.
Fix it by initializing on the stack variable fully.
Also increase verifier buffer limit, since verifier output
may not fit in 64k for this sockex2 code depending on llvm version.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/bpf_load.c')
0 files changed, 0 insertions, 0 deletions