Re: [PATCH bpf] bpf, x64: fix stack layout of JITed bpf code

2019-06-15 Thread Alexei Starovoitov
On Fri, Jun 14, 2019 at 4:10 PM Alexei Starovoitov wrote: > > Since commit 177366bf7ceb the %rbp stopped pointing to %rbp of the > previous stack frame. That broke frame pointer based stack unwinding. > This commit is a partial revert of it. > Note that the location of tail_call_cnt is fixed, sinc

[PATCH bpf] bpf, x64: fix stack layout of JITed bpf code

2019-06-14 Thread Alexei Starovoitov
Since commit 177366bf7ceb the %rbp stopped pointing to %rbp of the previous stack frame. That broke frame pointer based stack unwinding. This commit is a partial revert of it. Note that the location of tail_call_cnt is fixed, since the verifier enforces MAX_BPF_STACK stack size for programs with ta