summaryrefslogtreecommitdiff
path: root/arch/s390/net/bpf_jit.h
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2020-06-02 19:43:39 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2020-06-02 21:00:56 +0200
commiteffe5be17706167ee968fa28afe40dec9c6f71db (patch)
tree042cec5b556b86838e1dacb94a58268d3396dadc /arch/s390/net/bpf_jit.h
parent7cec0b927142f510a1fac88033017616cce44c26 (diff)
s390/bpf: Maintain 8-byte stack alignment
Certain kernel functions (e.g. get_vtimer/set_vtimer) cause kernel panic when the stack is not 8-byte aligned. Currently JITed BPF programs may trigger this by allocating stack frames with non-rounded sizes and then being interrupted. Fix by using rounded fp->aux->stack_depth. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20200602174339.2501066-1-iii@linux.ibm.com
Diffstat (limited to 'arch/s390/net/bpf_jit.h')
0 files changed, 0 insertions, 0 deletions