]> git.baikalelectronics.ru Git - kernel.git/commit
s390/bpf,jit: address randomize and write protect jit code
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 16 Jul 2013 11:25:49 +0000 (13:25 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 18 Jul 2013 10:44:37 +0000 (12:44 +0200)
commit0d168827d2059952fe6ff4c0a3da3d74bf7de821
tree2f30547e740f0931dce2b4d864ee952ef05a297a
parentfd9fbd1ecc4386d0def3b2f8983853c0e5c20b6e
s390/bpf,jit: address randomize and write protect jit code

This is the s390 variant of dc28aa38 "x86: bpf_jit_comp: secure bpf
jit against spraying attacks".
With this change the whole jit code and literal pool will be write
protected after creation. In addition the start address of the jit
code won't be always on a page boundary anymore.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/net/bpf_jit_comp.c