Files
linux-stable-mirror/include/linux
Ilya LeoshkevichandDaniel Borkmann b7b3fc8dd9 bpf: Support doubleword alignment in bpf_jit_binary_alloc
Currently passing alignment greater than 4 to bpf_jit_binary_alloc does
not work: in such cases it silently aligns only to 4 bytes.

On s390, in order to load a constant from memory in a large (>512k) BPF
program, one must use lgrl instruction, whose memory operand must be
aligned on an 8-byte boundary.

This patch makes it possible to request 8-byte alignment from
bpf_jit_binary_alloc, and also makes it issue a warning when an
unsupported alignment is requested.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191115123722.58462-1-iii@linux.ibm.com
2019-11-15 22:25:00 +01:00
..
2019-10-09 19:33:43 -07:00
2019-09-24 15:54:08 -07:00
2019-10-02 06:36:50 -07:00
2019-10-15 20:40:06 -07:00
2019-10-07 09:58:27 -04:00
2019-10-31 14:01:40 -07:00
2019-09-25 17:51:41 -07:00
2019-10-02 10:06:45 +02:00
2019-10-14 15:04:01 -07:00