Re: [iovisor-dev] bpf invalid stack off=-528

2017-02-09 Thread Alexei Starovoitov via iovisor-dev
On Thu, Feb 9, 2017 at 8:43 AM, William Tu via iovisor-dev wrote: > > $(CLANG) \ > -D__KERNEL__ -D__ASM_SYSREG_H -Wno-unused-value -Wno-pointer-sign \ > -Wno-compare-distinct-pointer-types \ > -Wno-gnu-variable-sized-type-not-at-end \ >

Re: [iovisor-dev] bpf invalid stack off=-528

2017-02-09 Thread William Tu via iovisor-dev
On Thu, Feb 9, 2017 at 5:11 AM, Daniel Borkmann wrote: > On 02/08/2017 09:22 PM, William Tu via iovisor-dev wrote: >> >> Hi, >> >> I have a program which I use around at most 300byte of local stack as >> below. The largest struct is the "struct Headers" which is around 80 >>

Re: [iovisor-dev] bpf invalid stack off=-528

2017-02-09 Thread Daniel Borkmann via iovisor-dev
On 02/08/2017 09:22 PM, William Tu via iovisor-dev wrote: Hi, I have a program which I use around at most 300byte of local stack as below. The largest struct is the "struct Headers" which is around 80 byte. However, when loading into the verifier, it says 393: (7b) *(u64 *)(r10 -56) = r1 394: