]> git.itanic.dy.fi Git - linux-stable/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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 15 May 2014 07:55:54 +0000 (09:55 +0200)
commit96ac4631911c6b2334b502385d6e92ff1cc319ee
tree306f4d46563bc85a27377257bd90f92d607520ce
parent1671b4e1a3b308a3bdc8b3cc4b0d9f1abbed1c47
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: Jiri Slaby <jslaby@suse.cz>
arch/s390/net/bpf_jit_comp.c