]> 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)
commit67318e88d24446f9d14ebf5ad7b4ec2074cfab94
tree2f30547e740f0931dce2b4d864ee952ef05a297a
parentbc75007072fd2f3d73c985fcafd93c76bfa95747
s390/bpf,jit: address randomize and write protect jit code

This is the s390 variant of 51d1d536 "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