Re: [PATCH net-next 1/2] samples/bpf: fix sockex2 example

2016-11-24 Thread David Miller
From: Alexei Starovoitov Date: Tue, 22 Nov 2016 16:52:08 -0800 > 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 tec

Re: [PATCH net-next 1/2] samples/bpf: fix sockex2 example

2016-11-23 Thread Daniel Borkmann
On 11/23/2016 01:52 AM, Alexei Starovoitov wrote: 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

[PATCH net-next 1/2] samples/bpf: fix sockex2 example

2016-11-22 Thread Alexei Starovoitov
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