diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-04-25 04:53:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-13 07:59:42 -0400 |
commit | 6eed5b7500dc3754dc4d24f328f02bed118adb89 (patch) | |
tree | dedaa58dc12d8e2d6e64782b3b184e4665c8b952 | |
parent | 506841af86605c1d44df1d45ab271c69dcf46b70 (diff) |
s390/bpf,jit: initialize A register if 1st insn is BPF_S_LDX_B_MSH
commit 6e0de817594c61f3b392a9245deeb09609ec707d upstream.
The A register needs to be initialized to zero in the prolog if the
first instruction of the BPF program is BPF_S_LDX_B_MSH to prevent
leaking the content of %r5 to user space.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | arch/s390/net/bpf_jit_comp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c index 1919db6c0607..3bc6b7e43b24 100644 --- a/arch/s390/net/bpf_jit_comp.c +++ b/arch/s390/net/bpf_jit_comp.c | |||
@@ -243,7 +243,6 @@ static void bpf_jit_noleaks(struct bpf_jit *jit, struct sock_filter *filter) | |||
243 | case BPF_S_LD_W_IND: | 243 | case BPF_S_LD_W_IND: |
244 | case BPF_S_LD_H_IND: | 244 | case BPF_S_LD_H_IND: |
245 | case BPF_S_LD_B_IND: | 245 | case BPF_S_LD_B_IND: |
246 | case BPF_S_LDX_B_MSH: | ||
247 | case BPF_S_LD_IMM: | 246 | case BPF_S_LD_IMM: |
248 | case BPF_S_LD_MEM: | 247 | case BPF_S_LD_MEM: |
249 | case BPF_S_MISC_TXA: | 248 | case BPF_S_MISC_TXA: |