]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/bpf,jit: initialize A register if 1st insn is BPF_S_LDX_B_MSH
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 25 Apr 2014 08:53:44 +0000 (10:53 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 25 Apr 2014 12:03:25 +0000 (14:03 +0200)
commit6e0de817594c61f3b392a9245deeb09609ec707d
tree43eab06f874cef545dd9c116379af3c02dcf55d5
parent06cd7a874ec6e09d151aeb1fa8600e14f1ff89f6
s390/bpf,jit: initialize A register if 1st insn is BPF_S_LDX_B_MSH

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/net/bpf_jit_comp.c